index.vue 21 KB

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