serve.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  1. <template>
  2. <view :style="colorStyle">
  3. <view class="my-order">
  4. <view class="nav acea-row row-around" style="position: fixed;top: 0;">
  5. <view class="item" :class="orderStatus === 0 ? 'on' : ''" @click="statusClick(0)">
  6. <view>待服务</view>
  7. <!-- <view class="num">{{ orderData.order_count || 0 }}</view> -->
  8. </view>
  9. <!-- <view class="item" :class="orderStatus === 1 ? 'on' : ''" @click="statusClick(1)">
  10. <view>进行中</view>
  11. <view class="num">{{ orderData.unpaid_count || 0 }}</view>
  12. </view> -->
  13. <view class="item" :class="orderStatus == 2 ? 'on' : ''" @click="statusClick(2)">
  14. <view>已完成</view>
  15. <!-- <view class="num">{{ orderData.unshipped_count || 0 }}</view> -->
  16. </view>
  17. <view class="item" :class="orderStatus == -1 ? 'on' : ''" @click="statusClick(-1)">
  18. <view>退款</view>
  19. <!-- <view class="num ">{{ orderData.received_count || 0 }}</view> -->
  20. </view>
  21. </view>
  22. <view class="nav">
  23. </view>
  24. <Loading :loaded="loaded" :loading="loading"></Loading>
  25. <view class="list">
  26. <view class="item" v-for="(item, index) in orderList" :key="index" v-if="showOrder(item)">
  27. <view >
  28. <!-- <view @click="goOrderDetails(item.order_id)"> -->
  29. <view class="title acea-row row-between-wrapper">
  30. <view class="acea-row row-middle">
  31. 订单ID:{{item.order_id}}
  32. </view>
  33. <!-- <view v-if="item._status._type == 9" class="font-color">线下付款,未支付</view>
  34. <view v-else-if="item._status._type == 0" class="font-color">待付款</view>
  35. <view v-else-if="item._status._type == 1 && (item.shipping_type == 1 || item.shipping_type == 3)" class="font-color">待发货
  36. <text v-if="item.refund.length">{{item.is_all_refund?',退款中':',部分退款中'}}</text>
  37. </view>
  38. <view v-else-if="item._status._type == 1 && (item.shipping_type == 2 || item.shipping_type == 4)" class="font-color">
  39. {{item.shipping_type == 2?'待核销':'待收货'}}
  40. <text v-if="item.refund.length">{{item.is_all_refund?',退款中':',部分退款中'}}</text>
  41. </view>
  42. <view v-else-if="item._status._type == 2" class="font-color">待收货
  43. <text v-if="item.refund.length">{{item.is_all_refund?',退款中':',部分退款中'}}</text>
  44. </view>
  45. <view v-else-if="item._status._type == 3" class="font-color">待评价
  46. <text v-if="item.refund.length">{{item.is_all_refund?',退款中':',部分退款中'}}</text>
  47. </view>
  48. <view v-else-if="item._status._type == 4" class="font-color">已完成
  49. <text v-if="item.refund.length">{{item.is_all_refund?',退款中':',部分退款中'}}</text>
  50. </view>
  51. <view v-else-if="item._status._type == -2" class="font-color">已退款
  52. </view>
  53. <view v-else-if="item._status._type == 5 && item.status == 0" class="font-color">待核销
  54. <text v-if="item.refund.length">{{item.is_all_refund?',退款中':',部分退款中'}}</text>
  55. </view>
  56. <view v-else-if="item._status._type == 5 && item.status == 5" class="font-color">部分核销
  57. <text v-if="item.refund.length">{{item.is_all_refund?',退款中':',部分退款中'}}</text>
  58. </view>
  59. <view v-else-if="item._status._type == -1" class="font-color">申请退款
  60. </view> -->
  61. </view>
  62. <view class="item-info acea-row row-between row-top" v-for="(items, index) in item.info"
  63. :key="index">
  64. <view class="pictrue">
  65. <image :src="items.slider_image"></image>
  66. </view>
  67. <view class="text acea-row row-between">
  68. <view class="name line2">{{ items.store_name }}</view>
  69. <view class="money">
  70. <view>¥{{ items.pay_price }}</view>
  71. <view>x1</view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="totalPrice showstore">
  76. <view class="">
  77. 下单时间: {{ showTime(item.add_time) }}
  78. </view>
  79. <view class="">
  80. 预约时间: {{ showTime(item.reservation_time) }}
  81. </view>
  82. </view>
  83. <view class="address acea-row row-between-wrapper" style="padding: 10rpx 30rpx; flex-wrap: nowrap;">
  84. <view class="addressCon">
  85. <view class='name acea-row row-middle'>
  86. <view class="nameCon line1 on">{{item.store.name || ''}}</view>
  87. </view>
  88. <view>
  89. {{item.store.detailed_address || ''}}
  90. </view>
  91. </view>
  92. <view style="flex-shrink: 0;" class="icon acea-row row-middle">
  93. <view class="iconfont icon-dianhua" @click.stop="call(item.store.phone)"></view>
  94. <view class="iconfont icon-dingwei2" @click.stop="showMaoLocation(item.store)"></view>
  95. </view>
  96. </view>
  97. <view class="totalPrice">
  98. 共{{ item.info.length || 0 }}件商品,<text class="money" v-if="item.coupon_price">¥优惠{{ item.coupon_price }}</text>总金额
  99. <text class="money">¥{{ showTolPrice(item.info,item.coupon_price) }}</text>
  100. </view>
  101. </view>
  102. <view class="bottom acea-row row-right row-middle" v-if="item.status != 2">
  103. <!-- <view class="icon acea-row row-middle" style="justify-self: flex-start;">
  104. <view class="iconfont icon-dianhua" @click.stop="call(item.store.phone)"></view>
  105. <view class="iconfont icon-dingwei2" @click.stop="showMaoLocation(tem.store)"></view>
  106. </view> -->
  107. <view class="bnt cancelBnt" v-if="item.status == 0 || item.status==1"
  108. @click="cancelOrder(index, item.id)">取消订单</view>
  109. <view class="bnt cancelBnt" v-if="item.status == -1 && (item.refund_status == 1 || item.refund_status == 2 || item.refund_status == 3)">退款审核中</view>
  110. <view class="bnt cancelBnt" v-if="item.status == -1 && (item.refund_status == 4 || item.refund_status == 5)">退款完成</view>
  111. <view class="bnt cancelBnt" v-if="item.status == -1 && item.refund_status == -1 ">退款已拒绝</view>
  112. <!-- <view class="bnt bg-color" v-if="item._status._type == 0"
  113. @click="goPay(item.pay_price, item.order_id)">立即付款</view> -->
  114. <!-- <view class="bnt bg-color" v-else-if="item._status._type == 3"
  115. @click="goOrderDetails(item.order_id)">去评价</view> -->
  116. <!-- <view class="bnt bg-color"
  117. v-else-if="item.seckill_id < 1 && item.bargain_id < 1 && item.combination_id < 1 && item._status._type == 4"
  118. @click="goOrderDetails(item.order_id)">
  119. 再次购买
  120. </view> -->
  121. <!-- <view class="bnt cancelBnt" v-if="item._status._type == 4"
  122. @click="delOrder(item.order_id, index)">删除订单</view> -->
  123. <!-- <view class="bnt bg-color" @click="goOrderDetails(item.order_id)">查看详情</view> -->
  124. </view>
  125. </view>
  126. </view>
  127. <view class="loadingicon acea-row row-center-wrapper" v-if="orderList.length > 0">
  128. <text class="loading iconfont icon-jiazai" :hidden="loading == false"></text>
  129. {{ loadTitle }}
  130. </view>
  131. <view v-if="orderList.length == 0 && !loading">
  132. <emptyPage title="暂无订单信息~"></emptyPage>
  133. </view>
  134. </view>
  135. <home v-if="navigation"></home>
  136. <payment :payMode="payMode" :pay_close="pay_close" @onChangeFun="onChangeFun" :order_id="pay_order_id"
  137. :totalPrice="totalPrice"></payment>
  138. <!-- #ifdef MP -->
  139. <!-- <authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize> -->
  140. <!-- #endif -->
  141. </view>
  142. </template>
  143. <script>
  144. import {
  145. getOrderList,
  146. orderData,
  147. orderCancel,
  148. orderDel,
  149. orderPay,
  150. SqRefund
  151. } from '@/api/order.js';
  152. import {
  153. getUserInfo,
  154. getServeOrder
  155. } from '@/api/user.js';
  156. import {
  157. openOrderSubscribe
  158. } from '@/utils/SubscribeMessage.js';
  159. import home from '@/components/home';
  160. import payment from '@/components/payment';
  161. import {
  162. toLogin
  163. } from '@/libs/login.js';
  164. import {
  165. mapGetters
  166. } from 'vuex';
  167. import emptyPage from '@/components/emptyPage.vue';
  168. import colors from '@/mixins/color.js';
  169. import Loading from '@/components/Loading/index.vue'
  170. export default {
  171. components: {
  172. Loading,
  173. payment,
  174. home,
  175. emptyPage
  176. },
  177. mixins: [colors],
  178. data() {
  179. return {
  180. userInfo: {},
  181. itemList: ['不想买了', '信息填错了', '买错商品了', '卖家缺货'],
  182. loaded: false,
  183. loading: false, //是否加载中
  184. loadend: false, //是否加载完毕
  185. loadTitle: '加载更多', //提示语
  186. orderList: [], //订单数组
  187. orderData: {}, //订单详细统计
  188. orderStatus: 0, //订单状态
  189. page: 1,
  190. limit: 20,
  191. payMode: [{
  192. name: '微信支付',
  193. icon: 'icon-weixinzhifu',
  194. value: 'weixin',
  195. title: '使用微信快捷支付',
  196. payStatus: true
  197. },
  198. {
  199. name: '支付宝支付',
  200. icon: 'icon-zhifubao',
  201. value: 'alipay',
  202. title: '使用线上支付宝支付',
  203. payStatus: true
  204. },
  205. {
  206. name: '余额支付',
  207. icon: 'icon-yuezhifu',
  208. value: 'yue',
  209. title: '当前可用余额:',
  210. number: 0,
  211. payStatus: true
  212. }
  213. ],
  214. pay_close: false,
  215. pay_order_id: '',
  216. totalPrice: '0',
  217. isAuto: false, //没有授权的不会自动授权
  218. isShowAuth: false //是否隐藏授权
  219. };
  220. },
  221. computed: mapGetters(['isLogin']),
  222. onShow() {
  223. uni.removeStorageSync('form_type_cart');
  224. this.page = 1;
  225. this.loadend = false;
  226. this.orderList = [];
  227. if (this.isLogin) {
  228. this.getFun();
  229. } else {
  230. toLogin()
  231. }
  232. },
  233. /**
  234. * 生命周期函数--监听页面加载
  235. */
  236. onLoad(options) {
  237. if (options.status) this.orderStatus = (options.status == undefined && options.status != 0) ? '' : parseInt(
  238. options.status);
  239. },
  240. methods: {
  241. showOrder(item) {
  242. return item.info[0].paid != 0
  243. },
  244. showTime(time) {
  245. var date = new Date(time * 1000);
  246. var year = date.getFullYear(); // 获取年份
  247. var month = ("0" + (date.getMonth() + 1)).slice(-2); // 获取月份(注意月份从 0 开始,需要加 1)
  248. var day = ("0" + date.getDate()).slice(-2); // 获取日期
  249. var hours = ("0" + date.getHours()).slice(-2); // 获取小时
  250. var minutes = ("0" + date.getMinutes()).slice(-2); // 获取分钟
  251. var seconds = ("0" + date.getSeconds()).slice(-2); // 获取秒钟
  252. var dateString = year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds; // 自定义时间格式
  253. return dateString
  254. },
  255. call(phone) {
  256. uni.makePhoneCall({
  257. phoneNumber: phone,
  258. });
  259. },
  260. showMaoLocation(e) {
  261. let self = this;
  262. // #ifdef H5
  263. if (self.$wechat.isWeixin()) {
  264. self.$wechat.seeLocation({
  265. latitude: Number(e.latitude),
  266. longitude: Number(e.longitude),
  267. name: e.name,
  268. scale: 13,
  269. address: `${e.address}-${e.detailed_address}`,
  270. }).then(res => {})
  271. } else {
  272. // #endif
  273. uni.openLocation({
  274. latitude: Number(e.latitude),
  275. longitude: Number(e.longitude),
  276. name: e.name,
  277. address: `${e.address}-${e.detailed_address}`,
  278. success: function() {
  279. Number
  280. }
  281. });
  282. // #ifdef H5
  283. }
  284. // #endif
  285. },
  286. showTolPrice(list,money) {
  287. let price = 0;
  288. list.forEach(item => {
  289. price += item.pay_price * 1;
  290. })
  291. if(money){
  292. price = price-money
  293. }
  294. return price.toFixed(2);
  295. },
  296. getFun() {
  297. // this.getOrderData();
  298. this.getUserInfo();
  299. },
  300. onLoadFun() {
  301. this.getFun();
  302. this.isShowAuth = false;
  303. },
  304. // 授权关闭
  305. authColse: function(e) {
  306. this.isShowAuth = e;
  307. },
  308. /**
  309. * 事件回调
  310. *
  311. */
  312. onChangeFun: function(e) {
  313. let opt = e;
  314. let action = opt.action || null;
  315. let value = opt.value != undefined ? opt.value : null;
  316. action && this[action] && this[action](value);
  317. },
  318. /**
  319. * 获取用户信息
  320. *
  321. */
  322. getUserInfo: function() {
  323. let that = this;
  324. getUserInfo().then(res => {
  325. that.userInfo = res.data
  326. that.getOrderList();
  327. that.payMode[2].number = res.data.now_money;
  328. that.$set(that, 'payMode', that.payMode);
  329. });
  330. },
  331. /**
  332. * 关闭支付组件
  333. *
  334. */
  335. payClose: function() {
  336. this.pay_close = false;
  337. },
  338. /**
  339. * 获取订单统计数据
  340. *
  341. */
  342. getOrderData: function() {
  343. let that = this;
  344. orderData().then(res => {
  345. that.$set(that, 'orderData', res.data);
  346. that.payMode.map(item => {
  347. if (item.value == 'weixin') {
  348. item.payStatus = res.data.pay_weixin_open ? true : false;
  349. }
  350. if (item.value == 'alipay') {
  351. item.payStatus = res.data.ali_pay_status ? true : false;
  352. }
  353. if (item.value == 'yue') {
  354. item.payStatus = res.data.yue_pay_status == 1 ? true : false;
  355. }
  356. });
  357. //#ifdef MP
  358. this.payMode[1].payStatus = false;
  359. //#endif
  360. });
  361. },
  362. /**
  363. * 取消订单
  364. *
  365. */
  366. cancelOrder: function(index, order_id) {
  367. let that = this;
  368. if (!order_id)
  369. return that.$util.Tips({
  370. title: '缺少订单号无法取消订单'
  371. });
  372. // uni.showModal({
  373. // title: '取消订单',
  374. // content: '您是否确认取消此订单',
  375. // confirmText: '确认',
  376. // cancelText: '再想想',
  377. // success: (res) => {
  378. // if (res.confirm) {
  379. // orderCancel(order_id)
  380. // .then(res => {
  381. // return that.$util.Tips({
  382. // title: res.msg,
  383. // icon: 'success'
  384. // },
  385. // function() {
  386. // that.orderList.splice(index, 1);
  387. // that.$set(that, 'orderList', that.orderList);
  388. // that.$set(that.orderData, 'unpaid_count', that.orderData.unpaid_count - 1);
  389. // that.getOrderData();
  390. // }
  391. // );
  392. // })
  393. // .catch(err => {
  394. // return that.$util.Tips({
  395. // title: err
  396. // });
  397. // });
  398. // }
  399. // }
  400. // })
  401. uni.showActionSheet({
  402. itemList: that.itemList,
  403. success(e) {
  404. console.log(e)
  405. console.log(that.itemList[e.tapIndex])
  406. SqRefund({
  407. id: order_id,
  408. refund_reason: that.itemList[e.tapIndex]
  409. }).then(res => {
  410. return that.$util.Tips({
  411. title: res.msg,
  412. icon: 'success'
  413. },
  414. function() {
  415. that.orderList.splice(index, 1);
  416. that.$set(that, 'orderList', that.orderList);
  417. that.$set(that.orderData, 'unpaid_count', that.orderData
  418. .unpaid_count - 1);
  419. that.getOrderData();
  420. }
  421. );
  422. }).catch(err => {
  423. return that.$util.Tips({
  424. title: err
  425. });
  426. });
  427. }
  428. })
  429. },
  430. /**
  431. * 打开支付组件
  432. *
  433. */
  434. goPay: function(pay_price, order_id) {
  435. this.$set(this, 'pay_close', true);
  436. this.$set(this, 'pay_order_id', order_id);
  437. this.$set(this, 'totalPrice', pay_price);
  438. },
  439. /**
  440. * 支付成功回调
  441. *
  442. */
  443. pay_complete: function() {
  444. this.loadend = false;
  445. this.page = 1;
  446. this.$set(this, 'orderList', []);
  447. this.pay_close = false;
  448. uni.navigateTo({
  449. url: '/pages/goods/order_pay_status/index?order_id=' + this.pay_order_id +
  450. '&msg=支付成功&type=3&totalPrice=' + this.totalPrice
  451. })
  452. this.pay_order_id = '';
  453. this.getOrderData();
  454. this.getOrderList();
  455. },
  456. /**
  457. * 支付失败回调
  458. *
  459. */
  460. pay_fail: function() {
  461. this.pay_close = false;
  462. this.pay_order_id = '';
  463. },
  464. /**
  465. * 去订单详情
  466. */
  467. goOrderDetails: function(order_id) {
  468. if (!order_id)
  469. return that.$util.Tips({
  470. title: '缺少订单号无法查看订单详情'
  471. });
  472. // #ifdef MP
  473. uni.showLoading({
  474. title: '正在加载'
  475. });
  476. openOrderSubscribe()
  477. .then(() => {
  478. uni.hideLoading();
  479. uni.navigateTo({
  480. url: '/pages/goods/order_details/index?order_id=' + order_id
  481. })
  482. })
  483. .catch(err => {
  484. uni.hideLoading();
  485. });
  486. // #endif
  487. // #ifndef MP
  488. uni.navigateTo({
  489. url: '/pages/goods/order_details/index?order_id=' + order_id
  490. });
  491. // #endif
  492. },
  493. /**
  494. * 切换类型
  495. */
  496. statusClick: function(status) {
  497. if (this.loading) return
  498. if (status === this.orderStatus) return;
  499. this.orderStatus = status;
  500. this.loadend = false;
  501. this.page = 1;
  502. this.$set(this, 'orderList', []);
  503. this.getOrderList();
  504. },
  505. /**
  506. * 获取订单列表
  507. */
  508. getOrderList: function() {
  509. let that = this;
  510. if (that.loadend) return;
  511. if (that.loading) return;
  512. that.loading = true;
  513. that.loadTitle = '加载更多';
  514. getServeOrder({
  515. uid: that.userInfo.uid,
  516. status: that.orderStatus,
  517. page: that.page,
  518. limit: that.limit
  519. })
  520. .then(res => {
  521. let list = res.data.list || [];
  522. console.log(list, 'list')
  523. if (that.orderStatus == 0) {
  524. that.orderData.order_count = res.data.count;
  525. } else if (that.orderStatus == 1) {
  526. that.orderData.unpaid_count = res.data.count;
  527. } else if (that.orderStatus == 2) {
  528. that.orderData.unshipped_count = res.data.count;
  529. } else if (that.orderStatus == 3) {
  530. that.orderData.received_count = res.data.count;
  531. }
  532. let loadend = list.length < that.limit;
  533. that.orderList = (that.$util.SplitArray(list, that.orderList)).map(re=>{
  534. re.coupon_price = +re.coupon_price;
  535. return re;
  536. });
  537. that.$set(that, 'orderList', that.orderList);
  538. that.loadend = loadend;
  539. that.loading = false;
  540. that.loadTitle = loadend ? '没有更多内容啦~' : '加载更多';
  541. that.page = that.page + 1;
  542. })
  543. .catch(err => {
  544. that.loading = false;
  545. that.loadTitle = '加载更多';
  546. });
  547. },
  548. /**
  549. * 删除订单
  550. */
  551. delOrder: function(order_id, index) {
  552. let that = this;
  553. uni.showModal({
  554. title: '删除订单',
  555. content: '确定删除该订单',
  556. success: function(res) {
  557. if (res.confirm) {
  558. orderDel(order_id)
  559. .then(res => {
  560. that.orderList.splice(index, 1);
  561. that.$set(that, 'orderList', that.orderList);
  562. that.$set(that.orderData, 'unpaid_count', that
  563. .orderData.unpaid_count - 1);
  564. that.getOrderData();
  565. return that.$util.Tips({
  566. title: '删除成功',
  567. icon: 'success'
  568. });
  569. })
  570. .catch(err => {
  571. return that.$util.Tips({
  572. title: err
  573. });
  574. });
  575. } else if (res.cancel) {
  576. return that.$util.Tips({
  577. title: '已取消'
  578. });
  579. }
  580. }
  581. });
  582. }
  583. },
  584. onReachBottom: function() {
  585. this.getOrderList();
  586. }
  587. };
  588. </script>
  589. <style scoped lang="scss">
  590. .my-order .header {
  591. height: 260rpx;
  592. padding: 0 30rpx;
  593. }
  594. .my-order .header .picTxt {
  595. height: 190rpx;
  596. }
  597. .my-order .header .picTxt .text {
  598. color: rgba(255, 255, 255, 0.8);
  599. font-size: 26rpx;
  600. font-family: 'Guildford Pro';
  601. }
  602. .my-order .header .picTxt .text .name {
  603. font-size: 34rpx;
  604. font-weight: bold;
  605. color: #fff;
  606. margin-bottom: 20rpx;
  607. }
  608. .my-order .header .picTxt .pictrue {
  609. width: 122rpx;
  610. height: 109rpx;
  611. }
  612. .my-order .header .picTxt .pictrue image {
  613. width: 100%;
  614. height: 100%;
  615. }
  616. .my-order .nav {
  617. background-color: #fff;
  618. width: 750rpx;
  619. height: 90rpx;
  620. border-radius: 6rpx;
  621. margin: 0 auto;
  622. }
  623. .my-order .nav .item {
  624. text-align: center;
  625. font-size: 26rpx;
  626. color: #282828;
  627. padding: 27rpx 0;
  628. border-bottom: 5rpx solid transparent;
  629. }
  630. .my-order .nav .item.on {
  631. /* #ifdef H5 || MP */
  632. font-weight: bold;
  633. /* #endif */
  634. /* #ifdef APP-PLUS */
  635. color: #000;
  636. /* #endif */
  637. border-color: var(--view-theme);
  638. }
  639. .my-order .nav .item .num {
  640. margin-top: 18rpx;
  641. }
  642. .my-order .list {
  643. width: 690rpx;
  644. margin: 14rpx auto 0 auto;
  645. }
  646. .my-order .list .item {
  647. background-color: #fff;
  648. border-radius: 6rpx;
  649. margin-bottom: 14rpx;
  650. }
  651. .my-order .list .item .title {
  652. height: 84rpx;
  653. padding: 0 30rpx;
  654. border-bottom: 1rpx solid #eee;
  655. font-size: 28rpx;
  656. color: #282828;
  657. }
  658. .my-order .list .item .title .sign {
  659. font-size: 24rpx;
  660. padding: 0 7rpx;
  661. height: 36rpx;
  662. margin-right: 15rpx;
  663. }
  664. .my-order .list .item .item-info {
  665. padding: 0 30rpx;
  666. margin-top: 22rpx;
  667. }
  668. .my-order .list .item .item-info .pictrue {
  669. width: 120rpx;
  670. height: 120rpx;
  671. }
  672. .my-order .list .item .item-info .pictrue image {
  673. width: 100%;
  674. height: 100%;
  675. border-radius: 6rpx;
  676. }
  677. .my-order .list .item .item-info .text {
  678. width: 486rpx;
  679. font-size: 28rpx;
  680. color: #999;
  681. }
  682. .my-order .list .item .item-info .text .name {
  683. width: 306rpx;
  684. color: #282828;
  685. height: 74rpx;
  686. }
  687. .my-order .list .item .item-info .text .money {
  688. text-align: right;
  689. }
  690. .my-order .list .item .item-info .text .money .return {
  691. // color: var(--view-priceColor);
  692. margin-top: 10rpx;
  693. font-size: 24rpx;
  694. }
  695. .my-order .list .item .totalPrice {
  696. font-size: 26rpx;
  697. color: #282828;
  698. text-align: right;
  699. margin: 27rpx 0 0 30rpx;
  700. padding: 0 30rpx 30rpx 0;
  701. border-bottom: 1rpx solid #eee;
  702. }
  703. .my-order .list .item .totalPrice .money {
  704. font-size: 28rpx;
  705. font-weight: bold;
  706. color: var(--view-priceColor);
  707. }
  708. .my-order .list .item .bottom {
  709. height: 107rpx;
  710. padding: 0 30rpx;
  711. }
  712. .my-order .list .item .bottom .bnt {
  713. width: 176rpx;
  714. height: 60rpx;
  715. text-align: center;
  716. line-height: 60rpx;
  717. color: #fff;
  718. border-radius: 50rpx;
  719. font-size: 27rpx;
  720. }
  721. .my-order .list .item .bottom .bnt.cancelBnt {
  722. border: 1rpx solid #ddd;
  723. color: #aaa;
  724. }
  725. .my-order .list .item .bottom .bnt~.bnt {
  726. margin-left: 17rpx;
  727. }
  728. .noCart {
  729. margin-top: 171rpx;
  730. padding-top: 0.1rpx;
  731. }
  732. .noCart .pictrue {
  733. width: 414rpx;
  734. height: 336rpx;
  735. margin: 78rpx auto 56rpx auto;
  736. }
  737. .noCart .pictrue image {
  738. width: 100%;
  739. height: 100%;
  740. }
  741. .line2 {
  742. word-break: break-all;
  743. }
  744. .showstore {
  745. border-bottom: none !important;
  746. text-align: left !important;
  747. padding-bottom: 10rpx !important;
  748. }
  749. .icon {
  750. .iconfont {
  751. width: 44rpx;
  752. height: 44rpx;
  753. background: var(--view-minorColorT);
  754. font-size: 20rpx;
  755. border-radius: 50%;
  756. text-align: center;
  757. line-height: 44rpx;
  758. color: var(--view-theme);
  759. margin-left: 26rpx;
  760. }
  761. }
  762. </style>