serve.vue 22 KB

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