serve.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797
  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 @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. 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) {
  287. let price = 0;
  288. list.forEach(item => {
  289. price += item.pay_price * 1
  290. })
  291. return price.toFixed(2)
  292. },
  293. getFun() {
  294. // this.getOrderData();
  295. this.getUserInfo();
  296. },
  297. onLoadFun() {
  298. this.getFun();
  299. this.isShowAuth = false;
  300. },
  301. // 授权关闭
  302. authColse: function(e) {
  303. this.isShowAuth = e;
  304. },
  305. /**
  306. * 事件回调
  307. *
  308. */
  309. onChangeFun: function(e) {
  310. let opt = e;
  311. let action = opt.action || null;
  312. let value = opt.value != undefined ? opt.value : null;
  313. action && this[action] && this[action](value);
  314. },
  315. /**
  316. * 获取用户信息
  317. *
  318. */
  319. getUserInfo: function() {
  320. let that = this;
  321. getUserInfo().then(res => {
  322. that.userInfo = res.data
  323. that.getOrderList();
  324. that.payMode[2].number = res.data.now_money;
  325. that.$set(that, 'payMode', that.payMode);
  326. });
  327. },
  328. /**
  329. * 关闭支付组件
  330. *
  331. */
  332. payClose: function() {
  333. this.pay_close = false;
  334. },
  335. /**
  336. * 获取订单统计数据
  337. *
  338. */
  339. getOrderData: function() {
  340. let that = this;
  341. orderData().then(res => {
  342. that.$set(that, 'orderData', res.data);
  343. that.payMode.map(item => {
  344. if (item.value == 'weixin') {
  345. item.payStatus = res.data.pay_weixin_open ? true : false;
  346. }
  347. if (item.value == 'alipay') {
  348. item.payStatus = res.data.ali_pay_status ? true : false;
  349. }
  350. if (item.value == 'yue') {
  351. item.payStatus = res.data.yue_pay_status == 1 ? true : false;
  352. }
  353. });
  354. //#ifdef MP
  355. this.payMode[1].payStatus = false;
  356. //#endif
  357. });
  358. },
  359. /**
  360. * 取消订单
  361. *
  362. */
  363. cancelOrder: function(index, order_id) {
  364. let that = this;
  365. if (!order_id)
  366. return that.$util.Tips({
  367. title: '缺少订单号无法取消订单'
  368. });
  369. // uni.showModal({
  370. // title: '取消订单',
  371. // content: '您是否确认取消此订单',
  372. // confirmText: '确认',
  373. // cancelText: '再想想',
  374. // success: (res) => {
  375. // if (res.confirm) {
  376. // orderCancel(order_id)
  377. // .then(res => {
  378. // return that.$util.Tips({
  379. // title: res.msg,
  380. // icon: 'success'
  381. // },
  382. // function() {
  383. // that.orderList.splice(index, 1);
  384. // that.$set(that, 'orderList', that.orderList);
  385. // that.$set(that.orderData, 'unpaid_count', that.orderData.unpaid_count - 1);
  386. // that.getOrderData();
  387. // }
  388. // );
  389. // })
  390. // .catch(err => {
  391. // return that.$util.Tips({
  392. // title: err
  393. // });
  394. // });
  395. // }
  396. // }
  397. // })
  398. uni.showActionSheet({
  399. itemList: that.itemList,
  400. success(e) {
  401. console.log(e)
  402. console.log(that.itemList[e.tapIndex])
  403. SqRefund({
  404. id: order_id,
  405. refund_reason: that.itemList[e.tapIndex]
  406. }).then(res => {
  407. return that.$util.Tips({
  408. title: res.msg,
  409. icon: 'success'
  410. },
  411. function() {
  412. that.orderList.splice(index, 1);
  413. that.$set(that, 'orderList', that.orderList);
  414. that.$set(that.orderData, 'unpaid_count', that.orderData
  415. .unpaid_count - 1);
  416. that.getOrderData();
  417. }
  418. );
  419. }).catch(err => {
  420. return that.$util.Tips({
  421. title: err
  422. });
  423. });
  424. }
  425. })
  426. },
  427. /**
  428. * 打开支付组件
  429. *
  430. */
  431. goPay: function(pay_price, order_id) {
  432. this.$set(this, 'pay_close', true);
  433. this.$set(this, 'pay_order_id', order_id);
  434. this.$set(this, 'totalPrice', pay_price);
  435. },
  436. /**
  437. * 支付成功回调
  438. *
  439. */
  440. pay_complete: function() {
  441. this.loadend = false;
  442. this.page = 1;
  443. this.$set(this, 'orderList', []);
  444. this.pay_close = false;
  445. uni.navigateTo({
  446. url: '/pages/goods/order_pay_status/index?order_id=' + this.pay_order_id +
  447. '&msg=支付成功&type=3&totalPrice=' + this.totalPrice
  448. })
  449. this.pay_order_id = '';
  450. this.getOrderData();
  451. this.getOrderList();
  452. },
  453. /**
  454. * 支付失败回调
  455. *
  456. */
  457. pay_fail: function() {
  458. this.pay_close = false;
  459. this.pay_order_id = '';
  460. },
  461. /**
  462. * 去订单详情
  463. */
  464. goOrderDetails: function(order_id) {
  465. if (!order_id)
  466. return that.$util.Tips({
  467. title: '缺少订单号无法查看订单详情'
  468. });
  469. // #ifdef MP
  470. uni.showLoading({
  471. title: '正在加载'
  472. });
  473. openOrderSubscribe()
  474. .then(() => {
  475. uni.hideLoading();
  476. uni.navigateTo({
  477. url: '/pages/goods/order_details/index?order_id=' + order_id
  478. })
  479. })
  480. .catch(err => {
  481. uni.hideLoading();
  482. });
  483. // #endif
  484. // #ifndef MP
  485. uni.navigateTo({
  486. url: '/pages/goods/order_details/index?order_id=' + order_id
  487. });
  488. // #endif
  489. },
  490. /**
  491. * 切换类型
  492. */
  493. statusClick: function(status) {
  494. if (this.loading) return
  495. if (status === this.orderStatus) return;
  496. this.orderStatus = status;
  497. this.loadend = false;
  498. this.page = 1;
  499. this.$set(this, 'orderList', []);
  500. this.getOrderList();
  501. },
  502. /**
  503. * 获取订单列表
  504. */
  505. getOrderList: function() {
  506. let that = this;
  507. if (that.loadend) return;
  508. if (that.loading) return;
  509. that.loading = true;
  510. that.loadTitle = '加载更多';
  511. getServeOrder({
  512. uid: that.userInfo.uid,
  513. status: that.orderStatus,
  514. page: that.page,
  515. limit: that.limit
  516. })
  517. .then(res => {
  518. let list = res.data.list || [];
  519. console.log(list, 'list')
  520. if (that.orderStatus == 0) {
  521. that.orderData.order_count = res.data.count;
  522. } else if (that.orderStatus == 1) {
  523. that.orderData.unpaid_count = res.data.count;
  524. } else if (that.orderStatus == 2) {
  525. that.orderData.unshipped_count = res.data.count;
  526. } else if (that.orderStatus == 3) {
  527. that.orderData.received_count = res.data.count;
  528. }
  529. let loadend = list.length < that.limit;
  530. that.orderList = that.$util.SplitArray(list, that.orderList);
  531. that.$set(that, 'orderList', that.orderList);
  532. that.loadend = loadend;
  533. that.loading = false;
  534. that.loadTitle = loadend ? '没有更多内容啦~' : '加载更多';
  535. that.page = that.page + 1;
  536. })
  537. .catch(err => {
  538. that.loading = false;
  539. that.loadTitle = '加载更多';
  540. });
  541. },
  542. /**
  543. * 删除订单
  544. */
  545. delOrder: function(order_id, index) {
  546. let that = this;
  547. uni.showModal({
  548. title: '删除订单',
  549. content: '确定删除该订单',
  550. success: function(res) {
  551. if (res.confirm) {
  552. orderDel(order_id)
  553. .then(res => {
  554. that.orderList.splice(index, 1);
  555. that.$set(that, 'orderList', that.orderList);
  556. that.$set(that.orderData, 'unpaid_count', that
  557. .orderData.unpaid_count - 1);
  558. that.getOrderData();
  559. return that.$util.Tips({
  560. title: '删除成功',
  561. icon: 'success'
  562. });
  563. })
  564. .catch(err => {
  565. return that.$util.Tips({
  566. title: err
  567. });
  568. });
  569. } else if (res.cancel) {
  570. return that.$util.Tips({
  571. title: '已取消'
  572. });
  573. }
  574. }
  575. });
  576. }
  577. },
  578. onReachBottom: function() {
  579. this.getOrderList();
  580. }
  581. };
  582. </script>
  583. <style scoped lang="scss">
  584. .my-order .header {
  585. height: 260rpx;
  586. padding: 0 30rpx;
  587. }
  588. .my-order .header .picTxt {
  589. height: 190rpx;
  590. }
  591. .my-order .header .picTxt .text {
  592. color: rgba(255, 255, 255, 0.8);
  593. font-size: 26rpx;
  594. font-family: 'Guildford Pro';
  595. }
  596. .my-order .header .picTxt .text .name {
  597. font-size: 34rpx;
  598. font-weight: bold;
  599. color: #fff;
  600. margin-bottom: 20rpx;
  601. }
  602. .my-order .header .picTxt .pictrue {
  603. width: 122rpx;
  604. height: 109rpx;
  605. }
  606. .my-order .header .picTxt .pictrue image {
  607. width: 100%;
  608. height: 100%;
  609. }
  610. .my-order .nav {
  611. background-color: #fff;
  612. width: 750rpx;
  613. height: 90rpx;
  614. border-radius: 6rpx;
  615. margin: 0 auto;
  616. }
  617. .my-order .nav .item {
  618. text-align: center;
  619. font-size: 26rpx;
  620. color: #282828;
  621. padding: 27rpx 0;
  622. border-bottom: 5rpx solid transparent;
  623. }
  624. .my-order .nav .item.on {
  625. /* #ifdef H5 || MP */
  626. font-weight: bold;
  627. /* #endif */
  628. /* #ifdef APP-PLUS */
  629. color: #000;
  630. /* #endif */
  631. border-color: var(--view-theme);
  632. }
  633. .my-order .nav .item .num {
  634. margin-top: 18rpx;
  635. }
  636. .my-order .list {
  637. width: 690rpx;
  638. margin: 14rpx auto 0 auto;
  639. }
  640. .my-order .list .item {
  641. background-color: #fff;
  642. border-radius: 6rpx;
  643. margin-bottom: 14rpx;
  644. }
  645. .my-order .list .item .title {
  646. height: 84rpx;
  647. padding: 0 30rpx;
  648. border-bottom: 1rpx solid #eee;
  649. font-size: 28rpx;
  650. color: #282828;
  651. }
  652. .my-order .list .item .title .sign {
  653. font-size: 24rpx;
  654. padding: 0 7rpx;
  655. height: 36rpx;
  656. margin-right: 15rpx;
  657. }
  658. .my-order .list .item .item-info {
  659. padding: 0 30rpx;
  660. margin-top: 22rpx;
  661. }
  662. .my-order .list .item .item-info .pictrue {
  663. width: 120rpx;
  664. height: 120rpx;
  665. }
  666. .my-order .list .item .item-info .pictrue image {
  667. width: 100%;
  668. height: 100%;
  669. border-radius: 6rpx;
  670. }
  671. .my-order .list .item .item-info .text {
  672. width: 486rpx;
  673. font-size: 28rpx;
  674. color: #999;
  675. }
  676. .my-order .list .item .item-info .text .name {
  677. width: 306rpx;
  678. color: #282828;
  679. height: 74rpx;
  680. }
  681. .my-order .list .item .item-info .text .money {
  682. text-align: right;
  683. }
  684. .my-order .list .item .item-info .text .money .return {
  685. // color: var(--view-priceColor);
  686. margin-top: 10rpx;
  687. font-size: 24rpx;
  688. }
  689. .my-order .list .item .totalPrice {
  690. font-size: 26rpx;
  691. color: #282828;
  692. text-align: right;
  693. margin: 27rpx 0 0 30rpx;
  694. padding: 0 30rpx 30rpx 0;
  695. border-bottom: 1rpx solid #eee;
  696. }
  697. .my-order .list .item .totalPrice .money {
  698. font-size: 28rpx;
  699. font-weight: bold;
  700. color: var(--view-priceColor);
  701. }
  702. .my-order .list .item .bottom {
  703. height: 107rpx;
  704. padding: 0 30rpx;
  705. }
  706. .my-order .list .item .bottom .bnt {
  707. width: 176rpx;
  708. height: 60rpx;
  709. text-align: center;
  710. line-height: 60rpx;
  711. color: #fff;
  712. border-radius: 50rpx;
  713. font-size: 27rpx;
  714. }
  715. .my-order .list .item .bottom .bnt.cancelBnt {
  716. border: 1rpx solid #ddd;
  717. color: #aaa;
  718. }
  719. .my-order .list .item .bottom .bnt~.bnt {
  720. margin-left: 17rpx;
  721. }
  722. .noCart {
  723. margin-top: 171rpx;
  724. padding-top: 0.1rpx;
  725. }
  726. .noCart .pictrue {
  727. width: 414rpx;
  728. height: 336rpx;
  729. margin: 78rpx auto 56rpx auto;
  730. }
  731. .noCart .pictrue image {
  732. width: 100%;
  733. height: 100%;
  734. }
  735. .line2 {
  736. word-break: break-all;
  737. }
  738. .showstore {
  739. border-bottom: none !important;
  740. text-align: left !important;
  741. padding-bottom: 10rpx !important;
  742. }
  743. .icon {
  744. .iconfont {
  745. width: 44rpx;
  746. height: 44rpx;
  747. background: var(--view-minorColorT);
  748. font-size: 20rpx;
  749. border-radius: 50%;
  750. text-align: center;
  751. line-height: 44rpx;
  752. color: var(--view-theme);
  753. margin-left: 26rpx;
  754. }
  755. }
  756. </style>