index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  1. <template>
  2. <view class="pos-order-list" ref="container">
  3. <!-- #ifdef MP || APP-PLUS -->
  4. <NavBar titleText="订单管理" bagColor="#f5f5f5" :iconColor="iconColor" :textColor="iconColor"
  5. :isScrolling="isScrolling" showBack></NavBar>
  6. <!-- #endif -->
  7. <view class="searchCon acea-row">
  8. <view class="search acea-row row-middle">
  9. <text class="iconfont icon-ic_search"></text>
  10. <input class="inputs" placeholder='请输入订单号' placeholder-style="font-size:28rpx" placeholder-class='placeholder' confirm-type='search'
  11. name="search" v-model="searchListData.orderNo" @confirm="searchSubmit"></input>
  12. </view>
  13. <view class="btn" @click="filterShow = true">
  14. <text class="iconfont icon-a-icon_filter1x"></text>
  15. </view>
  16. </view>
  17. <view :style="{ height: navHeight + 'px' }" v-if="isFixed"></view>
  18. <!-- #ifdef MP -->
  19. <view class="nav acea-row row-around row-middle" :style="{
  20. top:getHeight.barTop+getHeight.barHeight+'px'
  21. }" id="nav">
  22. <!-- #endif -->
  23. <!-- #ifndef MP -->
  24. <view class="nav acea-row row-around row-middle" id="nav">
  25. <!-- #endif -->
  26. <scroll-view scroll-x="true" class="scroll_view">
  27. <view class="item" :class="state == 'all' ? 'on' : ''" @click="changeStatus('all')" v-if="searchListData.type ==-1">
  28. 全部({{headerArr['all']!=undefined?headerArr['all']:0}})
  29. <image src="../static/adorn.png" v-if="state == 'all'"></image>
  30. </view>
  31. <view class="item" :class="state == 'await' ? 'on' : ''" @click="changeStatus('await')" v-if="searchListData.type != -1">
  32. 待接单
  33. <image src="../static/adorn.png" v-if="state == 'await'"></image>
  34. </view>
  35. <!--view class="item" :class="state == 'notShipped' ? 'on' : ''" @click="changeStatus('notShipped')">
  36. 待接单({{headerArr['notShipped']!=undefined?headerArr['notShipped']:0}})
  37. <image src="../static/adorn.png" v-if="state == 'notShipped'"></image>
  38. </view-->
  39. <view class="item" :class="state == 'pickUp' ? 'on' : ''" @click="changeStatus('pickUp')">
  40. 待取货({{headerArr['pickUp']!=undefined?headerArr['pickUp']:0}})
  41. <image src="../static/adorn.png" v-if="state == 'pickUp'"></image>
  42. </view>
  43. <view class="item" :class="state == 'delivery' ? 'on' : ''"
  44. @click="changeStatus('delivery')">
  45. 配送中({{headerArr['delivery']!=undefined?headerArr['delivery']:0}})
  46. <image src="../static/adorn.png" v-if="state == 'delivery'"></image>
  47. </view>
  48. <view class="item" :class="state == 'complete' ? 'on' : ''" @click="changeStatus('complete')">
  49. 已完成({{headerArr['complete']!=undefined?headerArr['complete']:0}})
  50. <image src="../static/adorn.png" v-if="state == 'complete'"></image>
  51. </view>
  52. <!--view class="item" :class="state == 'complete' ? 'on' : ''" @click="changeStatus('complete')">
  53. 已完成({{headerArr['complete']!=undefined?headerArr['complete']:0}})
  54. <image src="../static/adorn.png" v-if="state == 'complete'"></image>
  55. </view>
  56. <view class="item" :class="state == 'refunded' ? 'on' : ''" @click="changeStatus('refunded')">
  57. 已退款({{headerArr['refunded']!=undefined?headerArr['refunded']:0}})
  58. <image src="../static/adorn.png" v-if="state == 'refunded'"></image>
  59. </view>
  60. <view class="item" :class="state == 'deleted' ? 'on' : ''" @click="changeStatus('deleted')">
  61. 已删除({{headerArr['deleted']!=undefined?headerArr['deleted']:0}})
  62. <image src="../static/adorn.png" v-if="state == 'deleted'"></image>
  63. </view-->
  64. </scroll-view>
  65. </view>
  66. <view class="list" v-if="list.length">
  67. <view class="item" v-for="(item, index) in list" :key="index">
  68. <view class="order-num acea-row row-between-wrapper" @click="toDetail(item)">
  69. <view>
  70. <view class="title">
  71. <view class="type">{{orderType[item.orderType]}}</view>{{item.orderNo}}
  72. </view>
  73. </view>
  74. <view class="state">
  75. {{orderStatus[item.status]}}
  76. </view>
  77. </view>
  78. <view class="pos-order-goods">
  79. <view class="goods acea-row">
  80. <!-- <scroll-view class="picTxt scroll-view" scroll-x="true"
  81. v-if="item.infoResponseList.length > 1">
  82. <view class="pictrue" v-for="(val, key) in item.infoResponseList" :key="key">
  83. <image :src="val.image" />
  84. </view>
  85. </scroll-view> -->
  86. <view class="picTxt" @click="toDetail(item)">
  87. <view class="acea-row" >
  88. <view class="order-content">
  89. <view class="bold-size flex-y-center" style="padding: 10rpx 0;">
  90. <view class="icon-info"></view>
  91. <text>配送详情</text>
  92. </view>
  93. <view style="padding-bottom: 10rpx;position: relative;" id="myLineRef">
  94. <view class="line"></view>
  95. <view class="box-item">
  96. <view class="bold-size">
  97. <text class="order-icon">取</text>{{item.merName}}
  98. </view>
  99. </view>
  100. <text class="onBold-size"><text class="order-icon" style="opacity: 0">取</text>{{item.merAddress}}</text>
  101. </view>
  102. <view>
  103. <view class="box-item">
  104. <view class="bold-size">
  105. <text class="order-icon">送</text>{{item.userAddress}}
  106. </view>
  107. </view>
  108. <!--text class="onBold-size"><text class="order-icon" style="opacity: 0">送</text>{{remark}}</text-->
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="money">
  114. 配送费 <baseMoney :money="item.deliveCharge" symbolSize="20" integerSize="32" decimalSize="20">
  115. </baseMoney>
  116. <view class="num">距离{{ item.distance }}km</view>
  117. <view class="map" @click="goMap(item)">
  118. <text class="iconfont icon-chakanditu"></text>
  119. <view class="map_text">查看地图</view>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. <view class="operation acea-row row-between-wrapper">
  125. <view class="more">
  126. </view>
  127. <view class="acea-row row-middle">
  128. <view v-if="item.status==1 || item.status==2" @click="cancel(item)" class="bnt on acea-row row-center-wrapper">取消订单</view>
  129. <view v-if="item.status==1 && item.merPhone !=null" @click="makePhoneCall(item.merPhone )" class="bnt on acea-row row-center-wrapper">
  130. <text v-if="searchListData.type==1">联系驿站</text><text v-if="searchListData.type==0">联系商家</text></view>
  131. <view v-if="item.status==2 && item.userPhone!=null" @click="makePhoneCall(item.userPhone )" class="bnt on acea-row row-center-wrapper">联系客户</view>
  132. <view class="bnt primary" v-if="item.status==0"
  133. @click="receiving(item)">接单
  134. </view>
  135. <view class="bnt primary" v-if="item.status==1"
  136. @click="pickUp(item)"><text v-if="searchListData.type==1">取件配送</text><text v-if="searchListData.type==0">取货配送</text>
  137. </view>
  138. <view class="bnt primary" v-if="item.status==2"
  139. @click="complete(item)">送达完成
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <emptyPage v-else title="暂无订单~" :imgSrc="urlDomain+'crmebimage/presets/noShopper.png'"></emptyPage>
  146. <Loading :loaded="loaded" :loading="loading"></Loading>
  147. <PriceChange :change="change" :orderInfo="orderInfo" :isRefund="isRefund"
  148. v-on:statusChange="statusChange($event)" v-on:closechange="changeclose($event)"
  149. v-on:savePrice="savePrice" :status="status"></PriceChange>
  150. <view class="mask" v-if="filterShow" @click="filterShow=!filterShow"></view>
  151. <!-- #ifdef H5 -->
  152. <view class="filter-popup" :class="{ on: filterShow }">
  153. <!-- #endif -->
  154. <!-- #ifndef H5 -->
  155. <view class="filter-popup" :class="{ on: filterShow }" :style="{
  156. top:getHeight.barTop+getHeight.barHeight+'px'}">
  157. <!-- #endif -->
  158. <view class="search-box">
  159. <view class="search acea-row row-middle">
  160. <text class="iconfont icon-ic_search"></text>
  161. <input class="input" placeholder='请输入要查询的订单' placeholder-style="font-size:28rpx" placeholder-class='placeholder'
  162. confirm-type='search' name="search" v-model="searchListData.orderNo"
  163. @confirm="searchSubmit"></input>
  164. </view>
  165. </view>
  166. <view class="content">
  167. <view class="item">
  168. <view class="title">按下单时间</view>
  169. <view class="acea-row list">
  170. <view class="cell" v-for="(item, index) in dateList" :key="index"
  171. :class="{ on: item.val == dateSelected }" @click="dateChange(item.val)">{{ item.label }}
  172. </view>
  173. </view>
  174. </view>
  175. <view class="item">
  176. <view class="title">按订单类型</view>
  177. <view class="acea-row list">
  178. <view class="cell" v-for="(item, index) in payList" :key="index"
  179. :class="{ on: item.val === searchListData.type }" @click="payChange(item.val)">
  180. {{ item.label }}
  181. </view>
  182. </view>
  183. </view>
  184. <view class="bottom">
  185. <view class="no_view" @click="resetBtn">重置</view>
  186. <view class="yes_view" @click="submitBtn">确定</view>
  187. </view>
  188. </view>
  189. </view>
  190. <view v-if="confirmShow" class="mask"></view>
  191. <view v-if="confirmShow" class="confirm-popup">
  192. <view class="title">确认付款</view>
  193. <view class="info">确认该订单用户已付款</view>
  194. <view class="acea-row btn-box">
  195. <view class="btn" @click="confirmShow = false">取消</view>
  196. <view class="btn primary" @click="offlinePay">确认</view>
  197. </view>
  198. </view>
  199. <view class="footerH"></view>
  200. <footerPage></footerPage>
  201. </view>
  202. </template>
  203. <script>
  204. // import UniDatetime from '../components/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue'
  205. import {
  206. toLogin
  207. } from '@/libs/login.js';
  208. import {
  209. mapGetters
  210. } from "vuex";
  211. import Loading from '../components/Loading/index'
  212. import PriceChange from '../components/PriceChange/index.vue'
  213. import footerPage from '../components/footerPage/index.vue'
  214. import emptyPage from '@/components/emptyPage.vue'
  215. import baseMoney from '../components/BaseMoney.vue'
  216. // #ifdef MP || APP-PLUS
  217. import NavBar from '../components/NavBar.vue';
  218. // #endif
  219. import {
  220. isMoney
  221. } from '@/utils/validate.js';
  222. import {
  223. HTTP_REQUEST_URL
  224. } from '@/config/app';
  225. import {
  226. riderOrderAllList,riderOrderList,riderExpressOrderList,riderOrderReceiving,orderStatusNum,orderPickUp,orderComplete,orderCancel
  227. } from '@/api/rider.js';
  228. export default {
  229. name: "AdminOrderList",
  230. components: {
  231. Loading,
  232. PriceChange,
  233. footerPage,
  234. emptyPage,
  235. baseMoney,
  236. // #ifdef MP || APP-PLUS
  237. NavBar,
  238. // #endif
  239. },
  240. data() {
  241. return {
  242. urlDomain: this.$Cache.get("imgHost"),
  243. datetimerange: [],
  244. orderType: ['外卖','快递'],
  245. orderStatus: ['待接单', '待取货', '配送中', '已完成'],
  246. getHeight: this.$util.getWXStatusHeight(),
  247. iconColor: '#333333',
  248. isScrolling: false,
  249. top: 0,
  250. navHeight: 0,
  251. isFixed: false,
  252. filterShow: false,
  253. current: "",
  254. change: false,
  255. types: 0,
  256. list: [],
  257. loaded: false,
  258. loading: false,
  259. orderInfo: {},
  260. status: "",
  261. state: 'all',
  262. isRefund: 0, //1是仅退款;0是退货退款
  263. //imgHost: HTTP_REQUEST_URL,
  264. dateSelected: '1',
  265. dateList: [{
  266. label: '全部',
  267. val: '1',
  268. },
  269. {
  270. label: '今天',
  271. val: '2',
  272. },
  273. {
  274. label: '最近7天',
  275. val: '3',
  276. },
  277. {
  278. label: '本周',
  279. val: '4',
  280. },
  281. ],
  282. payList: [
  283. {
  284. label: '全部订单',
  285. val: '',
  286. },
  287. {
  288. label: '外卖订单',
  289. val: 0,
  290. },
  291. {
  292. label: '待取快递订单',
  293. val: 1,
  294. }
  295. // {
  296. // label: '拼团订单',
  297. // val: 2,
  298. // }
  299. ],
  300. confirmOrder: {},
  301. confirmShow: false,
  302. searchListData: {
  303. dateLimit: '',
  304. limit: 10,
  305. merId: '',
  306. orderNo: '',
  307. page: 1,
  308. status: 'await',
  309. type: 1,
  310. latitude: uni.getStorageSync('user_latitude'),
  311. longitude: uni.getStorageSync('user_longitude'),
  312. },
  313. headerArr: {},
  314. totalPage: '',
  315. };
  316. },
  317. computed: mapGetters(['isLogin']),
  318. onLoad(options) {
  319. //await
  320. this.state = options.type ? options.type : 'all';
  321. this.searchListData.status = options.type ? options.type : 'all';
  322. this.searchListData.type = options.orderType ? options.orderType : -1;
  323. },
  324. // created() {
  325. // this.getInitList()
  326. // this.statusHeader()
  327. // },
  328. onShow() {
  329. if (this.isLogin) {
  330. this.searchListData.page=1
  331. this.getInitList()
  332. this.statusHeader()
  333. } else {
  334. toLogin();
  335. }
  336. },
  337. methods: {
  338. // 拨打电话
  339. makePhoneCall(phone) {
  340. const phoneNumber = phone; // 替换为的电话号码
  341. uni.makePhoneCall({
  342. phoneNumber: phoneNumber,
  343. success() {
  344. console.log('拨打电话成功');
  345. },
  346. fail() {
  347. console.log('拨打电话失败');
  348. }
  349. });
  350. },
  351. //订单表头数量
  352. statusHeader() {
  353. orderStatusNum(this.searchListData).then(res => {
  354. this.headerArr = res.data
  355. })
  356. },
  357. // 订单搜索
  358. searchSubmit() {
  359. this.searchListData.page=1
  360. this.getInitList()
  361. this.statusHeader()
  362. },
  363. //订单列表
  364. getInitList(type) {
  365. this.loading=true;
  366. //let api=riderOrderList;
  367. let api=this.searchListData.type==0?riderOrderList:(this.searchListData.type==1?riderExpressOrderList:riderOrderAllList);
  368. api(this.searchListData).then(res => {
  369. //下拉触底
  370. if (type == 'bottom') {
  371. this.list = this.list.concat(res.data.list)
  372. } else {
  373. this.list = res.data.list
  374. }
  375. this.totalPage = res.data.totalPage
  376. }).catch(err=>{
  377. this.$util.Tips({
  378. title: err
  379. })
  380. })
  381. this.loading=false;
  382. },
  383. toDetail(item) {
  384. uni.navigateTo({
  385. url: (this.searchListData.type==1 || item.orderType==1)?`/pages/rider_index/express/detail?orderInfo=${JSON.stringify(item)}`:`/pages/rider_index/order/detail?orderInfo=${JSON.stringify(item)}`
  386. })
  387. },
  388. //查看内置地图
  389. goMap(item) {
  390. let that = this;
  391. let latitude=item.status==1 || item.status==0?item.merLatitude:item.userLatitude;
  392. let longitude=item.status==1 || item.status==0?item.merLongitude:item.userLongitude;
  393. let merName=item.status==1 || item.status==0?item.merName:item.userName;
  394. let address=item.status==1 || item.status==0?item.merAddress:item.userAddress;
  395. //#ifdef H5
  396. if (that.$wechat.isWeixin() === true) {
  397. that.$wechat.seeLocation({
  398. latitude: parseFloat(latitude),
  399. longitude: parseFloat(longitude),
  400. name: merName,
  401. address: address,
  402. }).then(res => {
  403. console.log('success');
  404. })
  405. } else {
  406. //#endif
  407. uni.openLocation({
  408. latitude: parseFloat(latitude),
  409. longitude: parseFloat(longitude),
  410. scale: 8,
  411. name: merName,
  412. address: address,
  413. success: function(res) {
  414. that.go_map = true
  415. },
  416. });
  417. // #ifdef H5
  418. }
  419. //#endif
  420. },
  421. //发送货
  422. goDelivery(item) {
  423. if (item.refundStatus == 1) return this.$util.Tips({
  424. title: '请处理售后,再操作',
  425. });
  426. uni.navigateTo({
  427. url: `/pages/admin/order/send?orderNo=${item.orderNo}`
  428. })
  429. },
  430. // 商品操作
  431. modify: function(item, status, type) {
  432. this.change = true;
  433. this.status = status.toString();
  434. this.orderInfo = item;
  435. if (status == 2) {
  436. this.isRefund = type
  437. }
  438. },
  439. //接单
  440. receiving(item) {
  441. riderOrderReceiving(item).then(res => {
  442. if (res.code == 200) {
  443. setTimeout(() => {
  444. this.statusHeader();
  445. this.getInitList();
  446. }, 50)
  447. return this.$util.Tips({
  448. title: '接单成功'
  449. })
  450. } else {
  451. self.$util.Tips({
  452. title: res.message
  453. });
  454. }
  455. })
  456. },
  457. //取消
  458. cancel(item) {
  459. orderCancel(item.orderNo).then(res => {
  460. if (res.code == 200) {
  461. setTimeout(() => {
  462. this.statusHeader();
  463. this.getInitList();
  464. }, 50)
  465. return this.$util.Tips({
  466. title: '取消成功'
  467. })
  468. } else {
  469. self.$util.Tips({
  470. title: res.message
  471. });
  472. }
  473. })
  474. },
  475. //取货
  476. pickUp(item) {
  477. orderPickUp(item.orderNo).then(res => {
  478. if (res.code == 200) {
  479. setTimeout(() => {
  480. this.statusHeader();
  481. this.getInitList();
  482. }, 50)
  483. return this.$util.Tips({
  484. title: '取件完成,请尽快安排配送'
  485. })
  486. } else {
  487. self.$util.Tips({
  488. title: res.message
  489. });
  490. }
  491. })
  492. },
  493. //收货完成
  494. complete(item) {
  495. orderComplete(item.orderNo).then(res => {
  496. if (res.code == 200) {
  497. setTimeout(() => {
  498. this.statusHeader();
  499. this.getInitList();
  500. }, 50)
  501. return this.$util.Tips({
  502. title: '配送完成'
  503. })
  504. } else {
  505. self.$util.Tips({
  506. title: res.message
  507. });
  508. }
  509. })
  510. },
  511. changeclose: function(msg) {
  512. this.change = msg;
  513. },
  514. async savePrice(opt) {
  515. if (!opt.remark) {
  516. return this.$util.Tips({
  517. title: '请输入备注'
  518. })
  519. } else {
  520. this.toMark(this.orderInfo.orderNo, opt.remark)
  521. }
  522. },
  523. //备注
  524. toMark(orderNo, remark) {
  525. employeeOrderMark({
  526. orderNo,
  527. remark
  528. }).then(res => {
  529. res.code == 200 && (this.change = false);
  530. return this.$util.Tips({
  531. title: '备注成功'
  532. })
  533. })
  534. },
  535. // 导航切换
  536. changeStatus(val) {
  537. if (this.state != val) {
  538. this.state = val;
  539. // this.where.status = val == -1 ? '' : val;
  540. this.searchListData.status = val
  541. this.searchListData.page = 1
  542. this.searchListData={...this.searchListData}
  543. this.getInitList()
  544. }
  545. },
  546. dateChange(value) {
  547. if (value == 1) {
  548. this.searchListData.dateLimit = ''
  549. this.dateSelected = value;
  550. return
  551. } else if (value == 2) {
  552. this.searchListData.dateLimit = 'today'
  553. } else if (value == 3) {
  554. this.searchListData.dateLimit = 'lately7'
  555. } else if (value == 4) {
  556. this.searchListData.dateLimit = 'week'
  557. }
  558. this.dateSelected = value;
  559. },
  560. payChange(val) {
  561. this.searchListData.type = val;
  562. },
  563. // 点击确认按钮
  564. submitBtn() {
  565. this.filterShow = false;
  566. this.searchListData.page=1
  567. this.getInitList()
  568. this.statusHeader()
  569. },
  570. //点击重置按钮
  571. resetBtn() {
  572. this.searchListData.orderNo=''
  573. this.searchListData.dateLimit = ''
  574. this.searchListData.type = '';
  575. this.dateSelected = '1'
  576. }
  577. },
  578. onReachBottom() {
  579. this.searchListData.page += 1
  580. this.totalPage >= this.searchListData.page && this.getInitList('bottom')
  581. }
  582. }
  583. </script>
  584. <style lang="scss" scoped>
  585. @import '../style/admin_order.scss';
  586. </style>
  587. <style scoped lang="scss">
  588. .map {
  589. text-align: center;
  590. padding-left: 36rpx;
  591. position: relative;
  592. @include main_color(theme);
  593. &::before {
  594. content: '';
  595. display: inline-block;
  596. width: 2rpx;
  597. height: 42rpx;
  598. background-color: #DDDDDD;
  599. position: absolute;
  600. left: 0;
  601. top: 18rpx;
  602. }
  603. .iconfont {
  604. color: var(--view-theme);
  605. }
  606. .map_text {
  607. color: var(--view-theme);
  608. }
  609. }
  610. .order-item {
  611. background-color: #fff;
  612. border-radius: 23rpx;
  613. padding: 19rpx 38rpx;
  614. }
  615. .order-top {
  616. display: flex;
  617. align-items: center;
  618. justify-content: space-between;
  619. padding: 17rpx;
  620. border-bottom: 2rpx dashed #D6D7DC;
  621. }
  622. .bold-size {
  623. white-space: nowrap;
  624. overflow: hidden;
  625. text-overflow: ellipsis;
  626. font-weight: 500;
  627. font-size: 27rpx;
  628. color: #141414;
  629. z-index: 9999;
  630. }
  631. .onBold-size {
  632. font-weight: 400;
  633. font-size: 23rpx;
  634. color: #999999;
  635. }
  636. .order-content {
  637. padding: 10rpx 0 15rpx 0;
  638. .box-item {
  639. display: flex;
  640. align-items: center;
  641. justify-content: space-between;
  642. margin-bottom: 10rpx;
  643. }
  644. .order-info {
  645. width: 100%;
  646. background: #F8F9FB;
  647. padding: 19rpx 38rpx 45rpx 19rpx;
  648. .store-name {
  649. font-weight: 600;
  650. font-size: 27rpx;
  651. color: #141414;
  652. }
  653. .scroll-container {
  654. display: flex;
  655. flex-wrap: nowrap;
  656. margin: 20rpx 0;
  657. overflow-x: auto;
  658. /* 允许水平滚动 */
  659. white-space: nowrap;
  660. /* 防止项目换行 */
  661. -webkit-overflow-scrolling: touch;
  662. /* 在iOS上平滑滚动 */
  663. .item {
  664. display: flex;
  665. flex-direction: column;
  666. align-items: center;
  667. justify-content: center;
  668. margin-right: 19rpx;
  669. image {
  670. width: 115rpx;
  671. height: 115rpx;
  672. }
  673. text {
  674. font-weight: 400;
  675. font-size: 21rpx;
  676. color: #141414;
  677. margin-top: 9rpx;
  678. }
  679. }
  680. }
  681. .container2 {
  682. display: flex;
  683. justify-content: space-between;
  684. align-items: center;
  685. font-weight: 500;
  686. font-size: 21rpx;
  687. color: #141414;
  688. view {
  689. display: flex;
  690. align-items: center;
  691. }
  692. .image2 {
  693. width: 42rpx;
  694. height: 42rpx;
  695. }
  696. }
  697. }
  698. }
  699. .order-dis {
  700. font-weight: 400;
  701. font-size: 23rpx;
  702. color: #141414;
  703. }
  704. .order-icon {
  705. display: inline-block;
  706. margin-left: 10rpx;
  707. margin-right: 20rpx;
  708. padding: 5rpx 10rpx;
  709. font-weight: 400;
  710. font-size: 23rpx;
  711. color: #FFFFFF;
  712. border-radius: 50%;
  713. background-color: $bg-color-primary;
  714. }
  715. .order-bottom {
  716. border-top: 2rpx dashed #D6D7DC;
  717. .bottom-but {
  718. padding: 39rpx 67rpx;
  719. .sub {
  720. width: 100%;
  721. background-color: $bg-color-primary;
  722. font-weight: 500;
  723. font-size: 31rpx;
  724. color: #FFFFFF;
  725. padding: 17rpx 0;
  726. }
  727. }
  728. }
  729. .icon-info {
  730. width: 8rpx;
  731. height: 31rpx;
  732. background: $bg-color-primary;
  733. margin-right: 15rpx;
  734. }
  735. .line {
  736. z-index: 1;
  737. position: absolute;
  738. left: 28rpx;
  739. width: 1rpx;
  740. height: 100%;
  741. border-left: 1rpx dashed $bg-color-primary;
  742. }
  743. </style>