index.vue 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. <template>
  2. <view class="">
  3. <view class="content">
  4. <view style='background:#fff;display:flex;' class="cu-bar search">
  5. <view style='flex:6;' class="search-form round" >
  6. <text style='color: #ccc;text-indent:6px;' class="cuIcon-search"></text>
  7. <input type="text" v-model="searchKeyWord" @input="doSearch" placeholder="请输入业务编号或对方名称" confirm-type="search"></input>
  8. </view>
  9. <view style="width:4%;flex:1;">{{content}}</view>
  10. <text v-if='searchKeyWord.length>0' class='tip_text cuIcon-roundclosefill'></text>
  11. </view>
  12. <view style='background:#fff;padding:0 15px;'>
  13. <view @click='tabcarchange(0)' class='line' :class='status==0?"active":""'>全部</view>
  14. <view @click='tabcarchange(1)' class='line' :class='status==1?"active":""'>待签收</view>
  15. <view @click='tabcarchange(1)' class='line' :class='status==1?"active":""'>待结算</view>
  16. </view>
  17. <view @click='sendreceiverecord({status:0})' class="guess-section">
  18. <view style='width:100%;align-items:center;' class="flex justify-between">
  19. <view class='type send'>发</view>
  20. <view>
  21. <view class='businessnumber'>我是业务编号最长这么长</view>
  22. <view class='consigner'>发货方名称最多十个字</view>
  23. </view>
  24. <view>
  25. <view class='time'>2021-07-05</view>
  26. <view class='goods'>优质玉米淀粉</view>
  27. </view>
  28. </view>
  29. <view style='width:100%;' class='goodsstatus'>
  30. <text style='margin-right:10px;'>待签收:3</text>
  31. <text>待结算:0</text>
  32. </view>
  33. <view style='width:100%;' class='flex justify-end'>
  34. <view class='del'>删除</view>
  35. </view>
  36. </view>
  37. <view @click='sendreceiverecord({status:1})' class="guess-section">
  38. <view style='width:100%;align-items:center;' class="flex justify-between">
  39. <view class='type put'>收</view>
  40. <view>
  41. <view>我是业务编号最长这么长</view>
  42. <view>发货方名称最多十个字</view>
  43. </view>
  44. <view>
  45. <view>2021-07-05</view>
  46. <view>优质玉米淀粉</view>
  47. </view>
  48. </view>
  49. <view class='goodsstatus'>
  50. <text style='margin-right:10px;'>待签收:3</text>
  51. <text>待结算:0</text>
  52. </view>
  53. <view style='width:100%;' class='flex justify-end'>
  54. <view class='del'>删除</view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="footer">
  59. <button @click='addgoods' class='addgoods'>新建发货任务</button>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. export default {
  65. name: "business",
  66. data() {
  67. return {
  68. searchKeyWord:'',
  69. content:'搜索',
  70. status:0,
  71. }
  72. },
  73. onShow() {
  74. },
  75. onLoad(options) {
  76. },
  77. onPageScroll(e) {
  78. },
  79. //下拉刷新
  80. onPullDownRefresh() {
  81. },
  82. onReachBottom() { //上拉触底函数
  83. },
  84. methods: {
  85. addgoods(){
  86. uni.navigateTo({
  87. url:'/pageA/freightTransport/addsendgoods'
  88. })
  89. },
  90. sendreceiverecord(item){
  91. if(item.status==0){
  92. uni.navigateTo({
  93. url:'/pageA/freightTransport/sendrecord'
  94. })
  95. }else{
  96. uni.navigateTo({
  97. url:'/pageA/freightTransport/payrecord'
  98. })
  99. }
  100. }
  101. }
  102. }
  103. </script>
  104. <style lang='scss'>
  105. page,
  106. .content {
  107. background: #F5F6FA;
  108. }
  109. .line {
  110. display: inline-block;
  111. padding: 5px;
  112. position: relative;
  113. font-size: 17px;
  114. }
  115. .line.active {
  116. font-size: 19px;
  117. font-weight: 900;
  118. }
  119. .line.active:after {
  120. content: '';
  121. display: block;
  122. position: absolute;
  123. width: 38px;
  124. left: 50%;
  125. transform: translateX(-50%);
  126. bottom: 0;
  127. border-bottom: 1px solid #22C572;
  128. }
  129. .cu-tag.badge {
  130. right: 26rpx;
  131. }
  132. .cu-item {
  133. height: 80rpx;
  134. display: inline-block;
  135. line-height: 80rpx;
  136. }
  137. .search-form {
  138. background: #F5F6F9;
  139. padding-left: 20rpx;
  140. }
  141. .title-tip {
  142. color: #E63113;
  143. text-align: right;
  144. }
  145. .tag1 {
  146. background: #F5F6F9;
  147. padding: 5px;
  148. color: #333333;
  149. display: inline-flex;
  150. font-size: 22rpx;
  151. border-radius: 3px;
  152. margin: 3px;
  153. }
  154. .tag {
  155. background: #F5F6F9;
  156. padding: 7px 12px;
  157. color: #333333;
  158. display: inline-flex;
  159. font-size: 22rpx;
  160. border-radius: 15px;
  161. margin: 3px;
  162. }
  163. .tag-bule {
  164. background: #EBEEFA;
  165. color: #5C76DF;
  166. }
  167. .tag-green {
  168. background: #C6F7BC;
  169. color: #065112;
  170. }
  171. .tag-yellow {
  172. background: #F9F2EA;
  173. color: #BE9C69;
  174. }
  175. .tag-red {
  176. background: #FEECE6;
  177. color: #FE6430;
  178. }
  179. .text-white {
  180. color: #fff;
  181. }
  182. .text-white text {
  183. position: relative;
  184. z-index: 2;
  185. background: linear-gradient(45deg, #3DC146, #B2D612);
  186. padding: 5px 10px;
  187. border-radius: 38rpx;
  188. }
  189. .guess-section {
  190. padding-bottom: 100upx;
  191. display: flex;
  192. flex-wrap: wrap;
  193. padding:30upx;
  194. background: #fff;
  195. margin:10px;
  196. border-radius:6px;
  197. .type{
  198. border-radius:10px;
  199. padding:5px;
  200. wdith:22px;height:22px;
  201. line-height:14px;
  202. font-size:12px;
  203. }
  204. .type.send{
  205. background:#22C572;
  206. color:#fff;
  207. }
  208. .type.put{
  209. background:#FD714F;
  210. color:#fff;
  211. }
  212. .businessnumber{
  213. font-size:16px;
  214. font-weight:600;
  215. }
  216. .consigner{
  217. font-size:12px;
  218. }
  219. .time{
  220. color:#878C9C;
  221. }
  222. .goods{
  223. font-size:12px;
  224. }
  225. .goodsstatus{
  226. background:#F9F9FA;
  227. color:#9698A2;
  228. padding:10px 0;
  229. padding-left:47px;
  230. margin:10px 0;
  231. }
  232. .del{
  233. width:60px;
  234. height: 33px;
  235. line-height:33px;
  236. font-size:14px;
  237. background: #fff;
  238. border:1px solid #CDCDCD;
  239. border-radius:30px;
  240. text-align:center;
  241. }
  242. }
  243. .navbar {
  244. position: fixed;
  245. left: 0;
  246. top: var(--window-top);
  247. display: flex;
  248. width: 100%;
  249. height: 80upx;
  250. background: #fff;
  251. box-shadow: 0 2upx 10upx rgba(0, 0, 0, .06);
  252. z-index: 10;
  253. .nav-item {
  254. flex: 1;
  255. display: flex;
  256. justify-content: center;
  257. align-items: center;
  258. height: 100%;
  259. font-size: 30upx;
  260. color: $font-color-dark;
  261. position: relative;
  262. &.current {
  263. color: $base-color;
  264. &:after {
  265. content: '';
  266. position: absolute;
  267. left: 50%;
  268. bottom: 0;
  269. transform: translateX(-50%);
  270. width: 120upx;
  271. height: 0;
  272. border-bottom: 4upx solid $base-color;
  273. }
  274. }
  275. }
  276. .p-box {
  277. display: flex;
  278. flex-direction: column;
  279. .yticon {
  280. display: flex;
  281. align-items: center;
  282. justify-content: center;
  283. width: 30upx;
  284. height: 14upx;
  285. line-height: 1;
  286. margin-left: 4upx;
  287. font-size: 26upx;
  288. color: #888;
  289. &.active {
  290. color: $base-color;
  291. }
  292. }
  293. .xia {
  294. transform: scaleY(-1);
  295. }
  296. }
  297. .cate-item {
  298. display: flex;
  299. justify-content: center;
  300. align-items: center;
  301. height: 100%;
  302. width: 80upx;
  303. position: relative;
  304. font-size: 44upx;
  305. &:after {
  306. content: '';
  307. position: absolute;
  308. left: 0;
  309. top: 50%;
  310. transform: translateY(-50%);
  311. border-left: 1px solid #ddd;
  312. width: 0;
  313. height: 36upx;
  314. }
  315. }
  316. }
  317. /* 分类 */
  318. .cate-mask {
  319. position: fixed;
  320. left: 0;
  321. top: var(--window-top);
  322. bottom: 0;
  323. width: 100%;
  324. background: rgba(0, 0, 0, 0);
  325. z-index: 95;
  326. transition: .3s;
  327. .cate-content {
  328. width: 630upx;
  329. height: 100%;
  330. background: #fff;
  331. float: right;
  332. transform: translateX(100%);
  333. transition: .3s;
  334. }
  335. &.none {
  336. display: none;
  337. }
  338. &.show {
  339. background: rgba(0, 0, 0, .4);
  340. .cate-content {
  341. transform: translateX(0);
  342. }
  343. }
  344. }
  345. .cate-list {
  346. display: flex;
  347. flex-direction: column;
  348. height: 100%;
  349. .cate-item {
  350. display: flex;
  351. align-items: center;
  352. height: 90upx;
  353. padding-left: 30upx;
  354. font-size: 28upx;
  355. color: #555;
  356. position: relative;
  357. }
  358. .two {
  359. height: 64upx;
  360. color: #303133;
  361. font-size: 30upx;
  362. background: #f8f8f8;
  363. }
  364. .active {
  365. color: $base-color;
  366. }
  367. }
  368. .introduce-section .title {
  369. font-size: 17px;
  370. font-weight: bold;
  371. height: 40px;
  372. line-height: 40px;
  373. flex: 2.5;
  374. border-bottom: 1px solid #EEEEEE;
  375. }
  376. .introduce-section .address {
  377. color: #878C9C;
  378. font-size: 12px;
  379. padding: 10px 0 10px;
  380. }
  381. .introduce-section .price {
  382. padding: 10px 0 10px;
  383. color: #FD714F;
  384. font-size: 19px;
  385. font-weight: 700;
  386. }
  387. .introduce-section .guess-item {
  388. border-radius: 10px;
  389. background: #fff;
  390. padding: 0upx 30upx 20upx;
  391. margin: 8px;
  392. border-bottom: 1px solid #ccc;
  393. }
  394. /* 销售信息 */
  395. .introduce-section {
  396. .title-tip {
  397. flex: 1;
  398. }
  399. .price-box {
  400. display: flex;
  401. align-items: baseline;
  402. font-size: 26upx;
  403. }
  404. .price {
  405. font-size: $font-lg + 2upx;
  406. }
  407. .m-price {
  408. margin: 0 12upx;
  409. color: $font-color-light;
  410. text-decoration: line-through;
  411. }
  412. .coupon-tip {
  413. align-items: center;
  414. padding: 4upx 10upx;
  415. background: $uni-color-primary;
  416. font-size: $font-sm;
  417. color: #fff;
  418. border-radius: 6upx;
  419. line-height: 1;
  420. transform: translateY(-4upx);
  421. }
  422. .bot-row {
  423. display: flex;
  424. align-items: center;
  425. height: 50upx;
  426. font-size: $font-sm;
  427. color: $font-color-light;
  428. view {
  429. flex: 1;
  430. }
  431. }
  432. }
  433. .footer{
  434. background:#fff;
  435. position:fixed;
  436. bottom:0;
  437. width: 100%;
  438. padding:20px 0;
  439. }
  440. .addgoods{
  441. width:90%;
  442. background:#22C572;
  443. color:#fff;
  444. border-radius:30px;
  445. }
  446. .addgoods:after{
  447. border:none;
  448. }
  449. </style>