serve.vue 21 KB

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