stay.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  1. <template>
  2. <view :style="viewColor">
  3. <view class='order-details'>
  4. <view v-if="orderInfo.orderList && orderInfo.orderList[0].activity_type != 2">
  5. <view class='header acea-row row-middle'>
  6. <view class='pictrue'>
  7. <image :src="imgUrl+'/static/order_1.gif'"></image>
  8. </view>
  9. <view class='data'>
  10. <view class='state'>请在{{orderInfo.cancel_time}}前完成支付!</view>
  11. <view>{{orderInfo.add_time_y}}<text class='time'>{{orderInfo.create_time}}</text></view>
  12. </view>
  13. </view>
  14. <view class='nav'>
  15. <view class='navCon acea-row row-between-wrapper'>
  16. <view class="on">待付款</view>
  17. <view>待发货</view>
  18. <view>待收货</view>
  19. <view>待评价</view>
  20. <view>已完成</view>
  21. </view>
  22. <view class='progress acea-row row-between-wrapper'>
  23. <view class='iconfont icon-webicon318 t-color'></view>
  24. <view class='line'></view>
  25. <view class='iconfont icon-yuandianxiao'></view>
  26. <view class='line'></view>
  27. <view class='iconfont icon-yuandianxiao'></view>
  28. <view class='line'></view>
  29. <view class='iconfont icon-yuandianxiao'></view>
  30. <view class='line'></view>
  31. <view class='iconfont icon-yuandianxiao'></view>
  32. </view>
  33. </view>
  34. </view>
  35. <!--预售(代付款)-->
  36. <view v-else class="presell_bg_header">
  37. <view class='header presell_header' :style="{ 'background-image': `url(${domain}/static/diy/presell_header${keyColor}.png)`}">
  38. <view class="presell_payment" v-if="orderInfo.orderList"><text class="iconfont icon-shijian1"></text>{{orderInfo.orderList[0].orderProduct[0].cart_info.productPresell.presell_type==1?'待支付':'待付定金'}}</view>
  39. <view class='data'>
  40. <view class='state'>请在{{orderInfo.cancel_time}}前完成支付,超时订单将自动取消</view>
  41. </view>
  42. </view>
  43. </view>
  44. <view>
  45. <view class='address' v-if="orderInfo.orderList && orderInfo.orderList[0].order_type != 2">
  46. <view class='name'>{{orderInfo.real_name}}<text class='phone'>{{orderInfo.user_phone}}</text></view>
  47. <view>{{orderInfo.user_address}}</view>
  48. </view>
  49. <view class='line'>
  50. <image :src="`${imgUrl}/static/images/line.jpg`"></image>
  51. </view>
  52. </view>
  53. <!-- 店铺商品列表 -->
  54. <view class="order-wrapper" v-for="(item,index) in orderInfo.orderList" :key="index">
  55. <view class="title" @click="goStore(item)">{{item.merchant.mer_name}}<text class="iconfont icon-xiangyou"></text>
  56. </view>
  57. <view class="goods-box">
  58. <view v-for="(goods,j) in item.orderProduct" :key="goods.order_product_id" @click="goProduct(goods)">
  59. <view v-if="item.activity_type === 2">
  60. <view class="item">
  61. <image :src="goods.cart_info.product.image"></image>
  62. <view class="info-box">
  63. <view class="name line1"><text class="event_name event_bg">预售</text>{{goods.cart_info.product.store_name}}</view>
  64. <view class="msg">{{goods.cart_info.productAttr.sku}}</view>
  65. <view class="event_ship event_color">发货时间:
  66. <!--全款预售-->
  67. <text v-if="goods.cart_info.productPresell.presell_type === 1">{{ goods.cart_info.productPresell.delivery_type === 1 ? '支付成功后' : '预售结束后' }}{{ goods.cart_info.productPresell.delivery_day }}天内</text>
  68. <!--定金预售-->
  69. <text v-if="goods.cart_info.productPresell.presell_type === 2">{{ goods.cart_info.productPresell.delivery_type === 1 ? '支付尾款后' : '预售结束后' }}{{ goods.cart_info.productPresell.delivery_day }}天内</text>
  70. </view>
  71. </view>
  72. <view class="num"><text class="font-color">{{goods.cart_info.productPresellAttr.presell_price}}</text></br>x{{goods.product_num}}</view>
  73. </view>
  74. <view class="event_progress" v-if="goods.cart_info.productPresell.presell_type !=1">
  75. <view class="progress_list">
  76. <view class="progress_name">阶段一: 等待买家付款</view>
  77. <view class="progress_price">商品定金 <text class="align_right">{{ item.pay_price }}</text></view>
  78. <view class="progress_pay">定金需付款<text class="align_right gColor">{{ item.pay_price }}</text></view>
  79. </view>
  80. <view class="progress_list">
  81. <view class="progress_name">阶段二: 未开始</view>
  82. <view class="progress_price">商品尾款 <text class="align_right">{{ item.presellOrder.pay_price }}</text></view>
  83. <view class="progress_pay">尾款需付款<text class="align_right gColor">{{ item.presellOrder.pay_price }}</text></view>
  84. </view>
  85. </view>
  86. </view>
  87. <view v-else class="item">
  88. <image :src="goods.cart_info.product.image"></image>
  89. <view class="info-box">
  90. <view class="name line1">{{goods.cart_info.product.store_name}}</view>
  91. <view class="msg">{{goods.cart_info.productAttr.sku}}</view>
  92. <view class='price acea-row row-middle'>
  93. <text>{{goods.cart_info.productAttr.price}}</text>
  94. <image v-if="goods.cart_info.productAttr.show_svip_price" class="svip-img" :src="`${domain}/static/images/svip.png`"></image>
  95. </view>
  96. </view>
  97. <view class="num">x{{goods.product_num}}</view>
  98. </view>
  99. </view>
  100. </view>
  101. <block v-if="item.merchant">
  102. <view v-if="item.merchant.services_type == 0" class="goodCall" @click="goGoodCall(item)">
  103. <text class="iconfont icon-kefu"></text><text style="font-size: 28rpx;">联系客服</text>
  104. </view>
  105. <view v-else class="goodCall" @click="call(item)">
  106. <text class="iconfont icon-kefu"></text><text style="font-size: 28rpx;">联系客服</text>
  107. </view>
  108. </block>
  109. </view>
  110. <view class='wrapper'>
  111. <view class='item acea-row row-between'>
  112. <view>订单编号:</view>
  113. <view class='conter acea-row row-middle row-right'>{{orderInfo.group_order_sn}}
  114. <!-- #ifndef H5 -->
  115. <text class='copy' @tap='copy'>复制</text>
  116. <!-- #endif -->
  117. <!-- #ifdef H5 -->
  118. <text class='copy copy-data' :data-clipboard-text="orderInfo.group_order_sn">复制</text>
  119. <!-- #endif -->
  120. </view>
  121. </view>
  122. <view class='item acea-row row-between'>
  123. <view>下单时间:</view>
  124. <view class='conter'>{{orderInfo.create_time || 0}}</view>
  125. </view>
  126. <view class='item acea-row row-between'>
  127. <view>支付状态:</view>
  128. <view class='conter'>未支付</view>
  129. </view>
  130. <view class='item acea-row row-between'>
  131. <view>商品总额:</view>
  132. <view class='conter'>{{orderInfo.total_price}}</view>
  133. </view>
  134. </view>
  135. <view v-if="orderInfo.orderList && orderInfo.orderList[0].order_extend" class='wrapper'>
  136. <view v-for="(item,index) in orderInfo.orderList[0].order_extend" :key="index" v-if="item" class='item acea-row row-between'>
  137. <view>{{index}}:</view>
  138. <view v-if="!Array.isArray(item)" class='conter'>{{item}}</view>
  139. <view v-else class='conter virtual_image'>
  140. <image v-for="(pic,i) in item" :key="i" class="picture" :src="pic" @click="getPhotoClickIdx(item,i)"></image>
  141. </view>
  142. </view>
  143. </view>
  144. <view class='wrapper'>
  145. <view class='item acea-row row-between' v-if="orderInfo.pay_postage > 0">
  146. <view>运费:</view>
  147. <view class='conter'>+¥{{orderInfo.pay_postage}}</view>
  148. </view>
  149. <view class='item acea-row row-between' v-if='orderInfo.coupon_price>0'>
  150. <view>优惠券抵扣:</view>
  151. <view class='conter'>-¥{{orderInfo.coupon_price}}</view>
  152. </view>
  153. <view class='item acea-row row-between' v-if='orderInfo.integral'>
  154. <view>积分抵扣:</view>
  155. <view class='conter'>-¥{{orderInfo.integral_price}}</view>
  156. </view>
  157. <view class='item acea-row row-between'>
  158. <view>实付款:</view>
  159. <view class='conter'>{{orderInfo.pay_price}}</view>
  160. </view>
  161. </view>
  162. <view class="content-clip"></view>
  163. <view class='footer acea-row row-right row-middle'>
  164. <view class="bnt cancel" @click.stop="cancelOrder">取消订单</view>
  165. <view class='bnt bgColor' @tap='pay_open(orderInfo.order_id)'>立即付款</view>
  166. </view>
  167. </view>
  168. <payment :payMode='payMode' :pay_close="pay_close" @onChangeFun='onChangeFun' :order_id="pay_order_id" :totalPrice='totalPrice'></payment>
  169. </view>
  170. </template>
  171. <script>
  172. // +----------------------------------------------------------------------
  173. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  174. // +----------------------------------------------------------------------
  175. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  176. // +----------------------------------------------------------------------
  177. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  178. // +----------------------------------------------------------------------
  179. // | Author: CRMEB Team <admin@crmeb.com>
  180. // +----------------------------------------------------------------------
  181. let app = getApp();
  182. import { HTTP_REQUEST_URL } from '@/config/app';
  183. import { goShopDetail } from '@/libs/order.js'
  184. import { groupOrderDetail, orderAgain, orderTake, orderDel, unOrderCancel} from '@/api/order.js';
  185. import { openOrderRefundSubscribe } from '@/utils/SubscribeMessage.js';
  186. import { getUserInfo } from '@/api/user.js';
  187. import payment from '@/components/payment';
  188. import orderGoods from "@/components/orderGoods";
  189. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  190. import { configMap } from "@/utils";
  191. import { mapGetters } from "vuex";
  192. import { toLogin } from '@/libs/login.js';
  193. export default {
  194. components: {
  195. payment,
  196. orderGoods,
  197. },
  198. data() {
  199. return {
  200. domain: HTTP_REQUEST_URL,
  201. order_id: '',
  202. evaluate: 0,
  203. cartInfo: [], //购物车产品
  204. orderInfo: {
  205. system_store: {},
  206. _status: {}
  207. }, //订单详情
  208. system_store: {},
  209. isGoodsReturn: false, //是否为退款订单
  210. status: {}, //订单底部按钮状态
  211. isClose: false,
  212. payMode: [{
  213. name: "微信支付",
  214. icon: "icon-weixinzhifu",
  215. value: 'wechat',
  216. title: '微信快捷支付',
  217. payStatus: 1
  218. },
  219. {
  220. name: "支付宝支付",
  221. icon: "icon-zhifubao",
  222. value: 'alipay',
  223. title: '支付宝支付',
  224. payStatus: this.$store.getters.globalData.alipay_open
  225. },
  226. {
  227. name: "余额支付",
  228. icon: "icon-yuezhifu",
  229. value: 'balance',
  230. title: '可用余额:',
  231. number: 0,
  232. payStatus: this.$store.getters.globalData.yue_pay_status
  233. },
  234. ],
  235. pay_close: false,
  236. pay_order_id: '',
  237. totalPrice: '0',
  238. imgUrl:HTTP_REQUEST_URL,
  239. invoice: {
  240. invoice: false,
  241. add: false,
  242. }
  243. };
  244. },
  245. watch: {
  246. alipay_open(n){
  247. this.payMode[1].payStatus = n
  248. },
  249. yue_pay_status(n){
  250. this.payMode[2].payStatus = n
  251. }
  252. },
  253. computed: configMap({hide_mer_status:0,alipay_open:0,yue_pay_status:0},
  254. mapGetters(['isLogin','uid','viewColor','keyColor'])),
  255. onLoad: function(options) {
  256. if (options.order_id) {
  257. this.$set(this, 'order_id', options.order_id);
  258. }
  259. },
  260. onShow() {
  261. if (this.isLogin) {
  262. this.getOrderInfo();
  263. this.getUserInfo();
  264. } else {
  265. toLogin()
  266. }
  267. },
  268. onHide: function() {
  269. this.isClose = true;
  270. },
  271. onReady: function() {
  272. // #ifdef H5
  273. this.$nextTick(function() {
  274. const clipboard = new ClipboardJS(".copy-data");
  275. clipboard.on("success", () => {
  276. this.$util.Tips({
  277. title: '复制成功'
  278. });
  279. });
  280. });
  281. // #endif
  282. },
  283. mounted: function() {},
  284. methods: {
  285. // 图片预览
  286. getPhotoClickIdx(list, idx) {
  287. uni.previewImage({
  288. current: list[idx], // 传 Number H5端出现不兼容
  289. urls: list
  290. });
  291. },
  292. // 去店铺
  293. goStore(item){
  294. if(this.hide_mer_status != 1){
  295. uni.navigateTo({
  296. url:`/pages/store/home/index?id=${item.merchant.mer_id}`
  297. })
  298. }
  299. },
  300. // 商品详情
  301. goProduct(goods){
  302. goods.activity_id = goods.cart_info && goods.cart_info.activeSku && goods.cart_info.activeSku.product_group_id
  303. goShopDetail(goods, '').then(res => {
  304. uni.navigateTo({
  305. url:`/pages/goods_details/index?id=${goods.product_id}`
  306. })
  307. })
  308. },
  309. /**
  310. * 拨打电话
  311. */
  312. call: function(item) {
  313. let that = this
  314. if(item.merchant.service_phone){
  315. uni.showModal({
  316. title: '提示',
  317. content: '暂无在线客服,确定拨打客服电话:'+item.merchant.service_phone+'吗?',
  318. success: function(res) {
  319. if (res.confirm) {
  320. uni.makePhoneCall({
  321. phoneNumber: item.merchant.service_phone
  322. })
  323. }
  324. }
  325. })
  326. }else{
  327. return that.$util.Tips({
  328. title: '暂无可用客服'
  329. })
  330. }
  331. },
  332. goGoodCall(item) {
  333. let self = this
  334. uni.navigateTo({
  335. url: `/pages/chat/customer_list/chat?mer_id=${item.mer_id}&uid=${this.uid}&order_id=${this.order_id}`
  336. })
  337. },
  338. /**
  339. * 事件回调
  340. *
  341. */
  342. onChangeFun: function(e) {
  343. let opt = e;
  344. let action = opt.action || null;
  345. let value = opt.value != undefined ? opt.value : null;
  346. (action && this[action]) && this[action](value);
  347. },
  348. /**
  349. * 拨打电话
  350. */
  351. makePhone: function() {
  352. uni.makePhoneCall({
  353. phoneNumber: this.system_store.phone
  354. })
  355. },
  356. /**
  357. * 关闭支付组件
  358. *
  359. */
  360. payClose: function() {
  361. this.pay_close = false;
  362. },
  363. /**
  364. * 打开支付组件
  365. *
  366. */
  367. pay_open: function() {
  368. this.pay_close = true;
  369. this.pay_order_id = this.orderInfo.group_order_id.toString();
  370. this.totalPrice = this.orderInfo.pay_price;
  371. },
  372. /**
  373. * 支付成功回调
  374. *
  375. */
  376. pay_complete: function() {
  377. this.pay_close = false;
  378. this.pay_order_id = '';
  379. uni.redirectTo({
  380. url:'/pages/users/order_list/index?status=1'
  381. })
  382. },
  383. /**
  384. * 支付失败回调
  385. *
  386. */
  387. pay_fail: function() {
  388. this.pay_close = false;
  389. this.pay_order_id = '';
  390. },
  391. /**
  392. * 获取用户信息
  393. *
  394. */
  395. getUserInfo: function() {
  396. let that = this;
  397. getUserInfo().then(res => {
  398. that.payMode[2].number = res.data.now_money;
  399. that.$set(that, 'payMode', that.payMode);
  400. })
  401. },
  402. /**
  403. * 获取订单详细信息
  404. *
  405. */
  406. getOrderInfo: function() {
  407. let that = this;
  408. uni.showLoading({
  409. title: "正在加载中"
  410. });
  411. groupOrderDetail(this.order_id).then(res => {
  412. let _type = 0;
  413. uni.hideLoading();
  414. that.$set(that, 'orderInfo', res.data);
  415. }).catch(err => {
  416. uni.hideLoading();
  417. that.$util.Tips({
  418. title: err
  419. }, '/pages/users/order_list/index');
  420. });
  421. },
  422. /**
  423. *
  424. * 剪切订单号
  425. */
  426. // #ifndef H5
  427. copy: function() {
  428. let that = this;
  429. uni.setClipboardData({
  430. data: this.orderInfo.group_order_sn
  431. });
  432. },
  433. // #endif
  434. // 取消订单
  435. cancelOrder() {
  436. let self = this
  437. uni.showModal({
  438. title: '提示',
  439. content: '确认取消该订单?',
  440. success: function(res) {
  441. if (res.confirm) {
  442. unOrderCancel(self.order_id)
  443. .then((data) => {
  444. console.log(data)
  445. self.$util.Tips({
  446. title: data.message
  447. }, {
  448. tab: 3
  449. })
  450. })
  451. .catch(() => {
  452. self.getDetail();
  453. });
  454. } else if (res.cancel) {
  455. console.log('用户点击取消');
  456. }
  457. }
  458. });
  459. },
  460. }
  461. }
  462. </script>
  463. <style>
  464. .qs-btn {
  465. width: auto;
  466. height: 60rpx;
  467. text-align: center;
  468. line-height: 60rpx;
  469. border-radius: 50rpx;
  470. color: #fff;
  471. font-size: 27rpx;
  472. padding: 0 3%;
  473. color: #aaa;
  474. border: 1px solid #ddd;
  475. margin-right: 20rpx;
  476. }
  477. </style>
  478. <style scoped lang="scss">
  479. .event_bg{
  480. background: #FF7F00;
  481. }
  482. .event_color{
  483. color: #FF7F00;
  484. }
  485. .presell_bg_header {
  486. background: linear-gradient(90deg, var(--view-bntColor21) 0%,var(--view-bntColor22) 100%);
  487. }
  488. .goodCall {
  489. text-align: center;
  490. width: 100%;
  491. height: 86rpx;
  492. padding: 0 30rpx;
  493. border-top: 1px solid #f0f0f0;
  494. font-size: 30rpx;
  495. line-height: 86rpx;
  496. background: #fff;
  497. color: #282828;
  498. .icon-kefu {
  499. font-size: 32rpx;
  500. margin-right: 15rpx;
  501. }
  502. /* #ifdef MP */
  503. button {
  504. display: flex;
  505. align-items: center;
  506. justify-content: center;
  507. height: 86rpx;
  508. font-size: 30rpx;
  509. color: #e93323;
  510. }
  511. /* #endif */
  512. }
  513. .order-details .header {
  514. padding: 0 30rpx;
  515. height: 150rpx;
  516. background-image: linear-gradient(to right, var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
  517. &.presell_header{
  518. background-repeat: no-repeat;
  519. background-size: cover;
  520. padding: 35rpx 50rpx;
  521. .data{
  522. margin: 8rpx 0 0 26rpx;
  523. .state{
  524. font-weight: normal;
  525. font-size: 24rpx;
  526. }
  527. }
  528. }
  529. }
  530. .order-details .header.on {
  531. background-color: #666 !important;
  532. }
  533. .order-details .header .pictrue {
  534. width: 110rpx;
  535. height: 110rpx;
  536. }
  537. .order-details .header .pictrue image {
  538. width: 100%;
  539. height: 100%;
  540. }
  541. .order-details .header .data {
  542. color: rgba(255, 255, 255, 0.8);
  543. font-size: 24rpx;
  544. margin-left: 27rpx;
  545. }
  546. .order-details .header .data.on {
  547. margin-left: 0;
  548. }
  549. .order-details .header .data .state {
  550. font-size: 30rpx;
  551. font-weight: bold;
  552. color: #fff;
  553. margin-bottom: 7rpx;
  554. }
  555. .presell_header .presell_payment{
  556. color: #fff;
  557. font-size: 30rpx;
  558. font-weight: bold;
  559. margin-left: 26rpx;
  560. .iconfont{
  561. font-weight: normal;
  562. margin-right: 8rpx;
  563. }
  564. }
  565. .order-details .nav {
  566. background-color: #fff;
  567. font-size: 26rpx;
  568. color: #282828;
  569. padding: 25rpx 0;
  570. }
  571. .order-details .nav .navCon {
  572. padding: 0 40rpx;
  573. }
  574. .order-details .nav .on {
  575. color: var(--view-theme);
  576. }
  577. .order-details .nav .progress {
  578. padding: 0 65rpx;
  579. margin-top: 10rpx;
  580. }
  581. .order-details .nav .progress .line {
  582. width: 100rpx;
  583. height: 2rpx;
  584. background-color: #939390;
  585. }
  586. .order-details .nav .progress .iconfont {
  587. font-size: 25rpx;
  588. color: #939390;
  589. margin-top: -2rpx;
  590. &.t-color{
  591. color: var(--view-theme);
  592. }
  593. }
  594. .order-details .address {
  595. font-size: 26rpx;
  596. color: #868686;
  597. background-color: #fff;
  598. margin-top: 13rpx;
  599. padding: 35rpx 30rpx;
  600. }
  601. .order-details .address .name {
  602. font-size: 30rpx;
  603. color: #282828;
  604. margin-bottom: 15rpx;
  605. }
  606. .order-details .address .name .phone {
  607. margin-left: 40rpx;
  608. }
  609. .order-details .line {
  610. width: 100%;
  611. height: 3rpx;
  612. }
  613. .order-details .line image {
  614. width: 100%;
  615. height: 100%;
  616. display: block;
  617. }
  618. .order-details .wrapper {
  619. background-color: #fff;
  620. margin-top: 12rpx;
  621. padding: 30rpx;
  622. }
  623. .order-details .wrapper .item {
  624. font-size: 28rpx;
  625. color: #282828;
  626. }
  627. .order-details .wrapper .item~.item {
  628. margin-top: 20rpx;
  629. }
  630. .order-details .wrapper .item .conter {
  631. color: #868686;
  632. width: 460rpx;
  633. text-align: right;
  634. }
  635. .order-details .wrapper .item .virtual_image {
  636. margin-left: 50rpx;
  637. }
  638. .order-details .wrapper .item .virtual_image .picture{
  639. width: 106rpx;
  640. height: 106rpx;
  641. border-radius: 8rpx;
  642. margin-right: 10rpx;
  643. &:last-child{
  644. margin-right: 0;
  645. }
  646. }
  647. .order-details .wrapper .item .conter .copy {
  648. font-size: 20rpx;
  649. color: #333;
  650. border-radius: 17rpx;
  651. border: 1px solid #666;
  652. padding: 3rpx 15rpx;
  653. margin-left: 24rpx;
  654. }
  655. .order-details .wrapper .actualPay {
  656. border-top: 1px solid #eee;
  657. margin-top: 30rpx;
  658. padding-top: 30rpx;
  659. }
  660. .order-details .wrapper .actualPay .money {
  661. font-weight: bold;
  662. font-size: 30rpx;
  663. }
  664. .order-details .footer {
  665. width: 100%;
  666. position: fixed;
  667. bottom: 0;
  668. left: 0;
  669. background-color: #fff;
  670. padding: 0 30rpx;
  671. height: 100rpx;
  672. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  673. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  674. box-sizing: border-box;
  675. }
  676. .content-clip{
  677. height: 120rpx;
  678. height: calc(120rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  679. height: calc(120rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  680. }
  681. .order-details .footer .bnt {
  682. width: 176rpx;
  683. height: 60rpx;
  684. text-align: center;
  685. line-height: 60rpx;
  686. border-radius: 50rpx;
  687. color: #fff;
  688. font-size: 27rpx;
  689. }
  690. .bgColor{
  691. background-color: var(--view-theme);
  692. }
  693. .order-details .footer .bnt.cancel {
  694. color: #aaa;
  695. border: 1px solid #ddd;
  696. }
  697. .order-details .footer .bnt~.bnt {
  698. margin-left: 18rpx;
  699. }
  700. .order-details .writeOff {
  701. background-color: #fff;
  702. margin-top: 13rpx;
  703. padding-bottom: 30rpx;
  704. }
  705. .order-details .writeOff .title {
  706. font-size: 30rpx;
  707. color: #282828;
  708. height: 87rpx;
  709. border-bottom: 1px solid #f0f0f0;
  710. padding: 0 30rpx;
  711. line-height: 87rpx;
  712. }
  713. .order-details .writeOff .grayBg {
  714. background-color: #f2f5f7;
  715. width: 590rpx;
  716. height: 384rpx;
  717. border-radius: 20rpx 20rpx 0 0;
  718. margin: 50rpx auto 0 auto;
  719. padding-top: 55rpx;
  720. }
  721. .order-details .writeOff .grayBg .pictrue {
  722. width: 290rpx;
  723. height: 290rpx;
  724. margin: 0 auto;
  725. }
  726. .order-details .writeOff .grayBg .pictrue image {
  727. width: 100%;
  728. height: 100%;
  729. display: block;
  730. }
  731. .order-details .writeOff .gear {
  732. width: 590rpx;
  733. height: 30rpx;
  734. margin: 0 auto;
  735. }
  736. .order-details .writeOff .gear image {
  737. width: 100%;
  738. height: 100%;
  739. display: block;
  740. }
  741. .order-details .writeOff .num {
  742. background-color: #f0c34c;
  743. width: 590rpx;
  744. height: 84rpx;
  745. color: #282828;
  746. font-size: 48rpx;
  747. margin: 0 auto;
  748. border-radius: 0 0 20rpx 20rpx;
  749. text-align: center;
  750. padding-top: 4rpx;
  751. }
  752. .order-details .writeOff .rules {
  753. margin: 46rpx 30rpx 0 30rpx;
  754. border-top: 1px solid #f0f0f0;
  755. padding-top: 10rpx;
  756. }
  757. .order-details .writeOff .rules .item {
  758. margin-top: 20rpx;
  759. }
  760. .order-details .writeOff .rules .item .rulesTitle {
  761. font-size: 28rpx;
  762. color: #282828;
  763. }
  764. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  765. font-size: 30rpx;
  766. color: #333;
  767. margin-right: 8rpx;
  768. margin-top: 5rpx;
  769. }
  770. .order-details .writeOff .rules .item .info {
  771. font-size: 28rpx;
  772. color: #999;
  773. margin-top: 7rpx;
  774. }
  775. .order-details .writeOff .rules .item .info .time {
  776. margin-left: 20rpx;
  777. }
  778. .order-details .map {
  779. height: 86rpx;
  780. font-size: 30rpx;
  781. color: #282828;
  782. line-height: 86rpx;
  783. border-bottom: 1px solid #f0f0f0;
  784. margin-top: 13rpx;
  785. background-color: #fff;
  786. padding: 0 30rpx;
  787. }
  788. .order-details .map .place {
  789. font-size: 26rpx;
  790. width: 176rpx;
  791. height: 50rpx;
  792. border-radius: 25rpx;
  793. line-height: 50rpx;
  794. text-align: center;
  795. }
  796. .order-details .map .place .iconfont {
  797. font-size: 27rpx;
  798. height: 27rpx;
  799. line-height: 27rpx;
  800. margin: 2rpx 3rpx 0 0;
  801. }
  802. .order-details .address .name .iconfont {
  803. font-size: 34rpx;
  804. margin-left: 10rpx;
  805. }
  806. .refund {
  807. padding: 0 30rpx 30rpx;
  808. margin-top: 24rpx;
  809. background-color: #fff;
  810. .title {
  811. display: flex;
  812. align-items: center;
  813. font-size: 30rpx;
  814. color: #333;
  815. height: 86rpx;
  816. border-bottom: 1px solid #f5f5f5;
  817. image {
  818. width: 32rpx;
  819. height: 32rpx;
  820. margin-right: 10rpx;
  821. }
  822. }
  823. .con {
  824. padding-top: 25rpx;
  825. font-size: 28rpx;
  826. color: #868686;
  827. }
  828. }
  829. .order-wrapper{
  830. margin-top: 15rpx;
  831. .title{
  832. display: flex;
  833. align-items: center;
  834. height: 86rpx;
  835. padding:0 30rpx;
  836. border-bottom: 1px solid #f0f0f0;
  837. background-color: #fff;
  838. .iconfont{
  839. font-size: 24rpx;
  840. color: #666;
  841. margin-top: 6rpx;
  842. margin-left: 5rpx;
  843. }
  844. }
  845. .goods-box{
  846. .item{
  847. display: flex;
  848. padding: 25rpx 30rpx 25rpx 30rpx;
  849. background-color: #fff;
  850. image{
  851. width: 130rpx;
  852. height: 130rpx;
  853. border-radius: 16rpx;
  854. }
  855. .info-box{
  856. display: flex;
  857. flex-direction: column;
  858. justify-content: space-between;
  859. margin-left: 25rpx;
  860. width: 450rpx;
  861. .msg{
  862. color: #868686;
  863. font-size: 20rpx;
  864. }
  865. .price{
  866. font-size: 26rpx;
  867. color: var(--view-priceColor);
  868. }
  869. .svip-img{
  870. width: 65rpx;
  871. height: 28rpx;
  872. margin: 4rpx 0 0 4rpx;
  873. }
  874. }
  875. .num{
  876. flex: 1;
  877. text-align: right;
  878. font-size: 26rpx;
  879. color: #868686;
  880. }
  881. }
  882. .event_name{
  883. display: inline-block;
  884. margin-right: 9rpx;
  885. color: #fff;
  886. font-size: 20rpx;
  887. padding: 0 8rpx;
  888. line-height: 30rpx;
  889. text-align: center;
  890. border-radius: 6rpx;
  891. }
  892. .event_ship{
  893. font-size: 20rpx;
  894. margin-top: 10rpx;
  895. }
  896. }
  897. .event_progress{
  898. margin-top: 20rpx;
  899. background: #fff;
  900. .progress_name {
  901. padding-left: 30rpx;
  902. height: 60rpx;
  903. line-height: 60rpx;
  904. font-size: 24rpx;
  905. font-weight: bold;
  906. position: relative;
  907. color: var(--view-theme);
  908. &::before{
  909. content: "";
  910. display: inline-block;
  911. width: 5rpx;
  912. height: 34rpx;
  913. background: var(--view-theme);
  914. position: absolute;
  915. top: 15rpx;
  916. left: 0;
  917. }
  918. }
  919. .align_right{
  920. float: right;
  921. font-weight: bold;
  922. }
  923. .gColor{
  924. color: var(--view-theme);
  925. }
  926. .progress_price{
  927. padding: 20rpx 30rpx;
  928. color: #999999;
  929. font-size: 22rpx;
  930. }
  931. .progress_pay{
  932. padding: 25rpx 30rpx;
  933. background: var(--view-minorColor);
  934. font-size: 26rpx;
  935. color: #282828;
  936. }
  937. }
  938. }
  939. </style>