index.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939
  1. <template>
  2. <view>
  3. <view class='order-details'>
  4. <!-- 当前状态 -->
  5. <view class='header bg-color'>
  6. <view class='picTxt acea-row row-middle'>
  7. <!-- 状态图 -->
  8. <view class='pictrue'>
  9. <image v-if="orderInfo.status === 0" src="http://test.yudao.iocoder.cn/order/status_0.gif" />
  10. <image v-if="orderInfo.status === 10" src="http://test.yudao.iocoder.cn/order/status_10.gif" />
  11. <image v-if="orderInfo.status === 20" src="http://test.yudao.iocoder.cn/order/status_20.gif" />
  12. <image v-if="orderInfo.status === 30 && !orderInfo.commentStatus" src="http://test.yudao.iocoder.cn/order/status_30a.gif" />
  13. <image v-if="orderInfo.status === 30 && orderInfo.commentStatus" src="http://test.yudao.iocoder.cn/order/status_30b.gif" />
  14. <image v-if="orderInfo.status === 40" src="http://test.yudao.iocoder.cn/order/status_40.gif" />
  15. </view>
  16. <view class='data'>
  17. <!-- 状态提示 -->
  18. <view class='state' v-if="orderInfo.status === 0">请在 {{ formatDate(orderInfo.payExpireTime)}} 前完成支付</view>
  19. <view class='state' v-if="orderInfo.status === 10">商家未发货,请耐心等待</view>
  20. <view class='state' v-if="orderInfo.status === 20">商家已发货,请耐心等待</view>
  21. <view class='state' v-if="orderInfo.status === 30 && !orderInfo.commentStatus">已收货,快去评价一下吧</view>
  22. <view class='state' v-if="orderInfo.status === 30 && orderInfo.commentStatus">交易完成,感谢您的支持</view>
  23. <!-- TODO 芋艿:未来可以优化下,关闭的原因补充。例如说:订单超时/订单取消;参考淘宝 -->
  24. <view class='state' v-if="orderInfo.status === 40">交易关闭</view>
  25. <!-- 下单时间 -->
  26. <view>{{ formatDate(orderInfo.createTime) }}</view>
  27. </view>
  28. </view>
  29. </view>
  30. <!-- 状态的过程 -->
  31. <view v-if="orderInfo.status !== 40">
  32. <view class='nav'>
  33. <view class='navCon acea-row row-between-wrapper'>
  34. <view :class="orderInfo.status === 0 ? 'on':''">待付款</view>
  35. <view :class="orderInfo.status === 10 ? 'on':''">
  36. {{ orderInfo.deliveryType === 1 ? '待发货' : '待核销' }}
  37. </view>
  38. <view :class="orderInfo.status === 20 ? 'on':''" v-if="orderInfo.deliveryType === 1">待收货</view>
  39. <view :class="orderInfo.status === 30 && !orderInfo.commentStatus ? 'on':''">待评价</view>
  40. <view :class="orderInfo.status === 30 && orderInfo.commentStatus ? 'on':''">已完成</view>
  41. </view>
  42. <view class='progress acea-row row-between-wrapper'>
  43. <!-- 状态:待付款 -->
  44. <view class='iconfont'
  45. :class='(orderInfo.status === 0 ? "icon-webicon318":"icon-yuandianxiao") + " " + (orderInfo.status >= 0 ? "font-num":"")' />
  46. <view class='line' :class='orderInfo.status > 0 ? "bg-color":""' />
  47. <!-- 状态:待核销 / 待发货 -->
  48. <view class='iconfont'
  49. :class='(orderInfo.status === 10 ? "icon-webicon318":"icon-yuandianxiao") + " " + (orderInfo.status >= 10 ? "font-num":"")' />
  50. <view class='line' :class='orderInfo.status > 10 ? "bg-color":""' />
  51. <!-- 状态:待收货 -->
  52. <view class='iconfont'
  53. :class='(orderInfo.status === 20 ? "icon-webicon318":"icon-yuandianxiao") + " " + (orderInfo.status >= 20 ? "font-num":"")'
  54. v-if="orderInfo.deliveryType === 1" />
  55. <view class='line' :class='orderInfo.status > 20 ? "bg-color":""' v-if="orderInfo.deliveryType === 1" />
  56. <!-- 状态:待评价 -->
  57. <view class='iconfont'
  58. :class='(orderInfo.status === 30 && !orderInfo.commentStatus ? "icon-webicon318":"icon-yuandianxiao")
  59. + " " + (orderInfo.status === 30 ? "font-num":"")' />
  60. <view class='line' :class='orderInfo.status >= 30 && orderInfo.commentStatus ? "bg-color":""' />
  61. <!-- 状态:已完成 -->
  62. <view class='iconfont'
  63. :class='(orderInfo.status === 30 && orderInfo.commentStatus ? "icon-webicon318":"icon-yuandianxiao")
  64. + " " + (orderInfo.status === 30 && orderInfo.commentStatus ? "font-num":"")' />
  65. </view>
  66. </view>
  67. <view v-if="orderInfo.deliveryType === 2 && orderInfo.payStatus" class="writeOff borRadius14">
  68. <view class="title">核销信息</view>
  69. <view class="grayBg">
  70. <view class="pictrue">
  71. <div class="qrcode" ref="qrcode"></div>
  72. <canvas canvas-id="qrcode" :style="{width: `${qrcodeSize}px`, height: `${qrcodeSize}px`}"/>
  73. </view>
  74. </view>
  75. <view class="gear">
  76. <image src="../../static/images/writeOff.jpg"></image>
  77. </view>
  78. <view class="num">{{ orderInfo.pickUpVerifyCode }}</view>
  79. <view class="rules" v-if='system_store.id'>
  80. <view class="item">
  81. <view class="rulesTitle acea-row row-middle">
  82. <text class="iconfont icon-shijian" />核销时间
  83. </view>
  84. <view class="info">
  85. 每日:<text class="time">{{orderInfo.systemStore.dayTime.replace(',','-')}}</text>
  86. </view>
  87. </view>
  88. <view class="item">
  89. <view class="rulesTitle acea-row row-middle">
  90. <text class="iconfont icon-shuoming1"></text>使用说明
  91. </view>
  92. <view class="info">可将二维码出示给店员扫描或提供数字核销码</view>
  93. </view>
  94. </view>
  95. </view>
  96. <view v-if="orderInfo.deliveryType === 2" class="map acea-row row-between-wrapper borRadius14">
  97. <view>自提地址信息</view>
  98. <view class="place cart-color acea-row row-center-wrapper" @tap="showMaoLocation">
  99. <text class="iconfont icon-weizhi" />查看位置
  100. </view>
  101. </view>
  102. <!-- 收货人信息 -->
  103. <view v-if="orderInfo.pickUpStoreId > 0" class='address' style="margin-top:15rpx;">
  104. <view class='name' @tap="makePhone">{{ system_store.name }}
  105. <text class='phone'>{{ system_store.phone }}</text>
  106. <text class="iconfont icon-tonghua font-color" />
  107. </view>
  108. <view>{{ system_store.areaName }} {{ system_store.detailAddress }}</view>
  109. </view>
  110. <view v-else class='address borRadius14'>
  111. <view class='name'>{{ orderInfo.receiverName }}
  112. <text class='phone'>{{ orderInfo.receiverMobile }}</text>
  113. </view>
  114. <view>{{ orderInfo.receiverAreaName }} {{ orderInfo.receiverDetailAddress}}</view>
  115. </view>
  116. <!-- 商品列表 -->
  117. <orderGoods
  118. :evaluate='evaluate'
  119. :afterSale="afterSale"
  120. :productType="orderInfo.type"
  121. :orderId="order_id"
  122. :cartInfo="cartInfo"
  123. :jump="true"
  124. />
  125. <!-- 客服 -->
  126. <!-- #ifndef MP -->
  127. <div class="goodCall borRadius14" @click="kefuClick">
  128. <span class="iconfont icon-kefu" />
  129. <span>联系客服</span>
  130. </div>
  131. <!-- #endif -->
  132. <!-- #ifdef MP -->
  133. <div class="goodCall borRadius14">
  134. <button open-type='contact' hover-class='none'>
  135. <span class="iconfont icon-kefu" />
  136. <span>联系客服</span>
  137. </button>
  138. </div>
  139. <!-- #endif -->
  140. </view>
  141. <view>
  142. <view class='wrapper borRadius14'>
  143. <view class='item acea-row row-between'>
  144. <view>订单编号:</view>
  145. <view class='conter acea-row row-middle row-right'>{{orderInfo.no}}
  146. <!-- #ifndef H5 -->
  147. <text class='copy' @tap='copy'>复制</text>
  148. <!-- #endif -->
  149. <!-- #ifdef H5 -->
  150. <text class='copy copy-data' :data-clipboard-text="orderInfo.no">复制</text>
  151. <!-- #endif -->
  152. </view>
  153. </view>
  154. <view class='item acea-row row-between'>
  155. <view>下单时间:</view>
  156. <view class='conter'>{{( formatDate(orderInfo.createTime) )}}</view>
  157. </view>
  158. <view class='item acea-row row-between'>
  159. <view>支付状态:</view>
  160. <view class='conter' v-if="orderInfo.payStatus">已支付</view>
  161. <view class='conter' v-else>未支付</view>
  162. </view>
  163. <view class='item acea-row row-between'>
  164. <view>支付方式:</view>
  165. <view class='conter'>{{ orderInfo.payChannelName }}</view>
  166. </view>
  167. <view class='item acea-row row-between' v-if="orderInfo.userRemark">
  168. <view>买家留言:</view>
  169. <view class='conter'>{{ orderInfo.userRemark }}</view>
  170. </view>
  171. </view>
  172. <!-- 配送信息 -->
  173. <view v-if="orderInfo.logisticsId !== undefined">
  174. <view class='wrapper borRadius14' v-if='orderInfo.logisticsId > 0'>
  175. <view class='item acea-row row-between'>
  176. <view>配送方式:</view>
  177. <view class='conter'>发货</view>
  178. </view>
  179. <view class='item acea-row row-between'>
  180. <view>快递公司:</view>
  181. <view class='conter'>{{ orderInfo.logisticsName || ''}}</view>
  182. </view>
  183. <view class='item acea-row row-between'>
  184. <view>快递号:</view>
  185. <view class='conter'>{{ orderInfo.logisticsNo || ''}}</view>
  186. </view>
  187. </view>
  188. <view class='wrapper borRadius14' v-else-if='orderInfo.deliveryType === 0'>
  189. <view class='item acea-row row-between'>
  190. <view>虚拟发货:</view>
  191. <view class='conter'>已发货,请注意查收</view>
  192. </view>
  193. </view>
  194. </view>
  195. <!-- 价格相关 -->
  196. <view class='wrapper borRadius14'>
  197. <view class='item acea-row row-between'>
  198. <view>商品总价:</view>
  199. <view class='conter'>¥{{ fen2yuan(orderInfo.totalPrice) }}</view>
  200. </view>
  201. <view class='item acea-row row-between' v-if="orderInfo.deliveryPrice > 0">
  202. <view>运费:</view>
  203. <view class='conter'>¥{{ fen2yuan(orderInfo.deliveryPrice) }}</view>
  204. </view>
  205. <view class='item acea-row row-between' v-if='orderInfo.couponId'>
  206. <view>优惠券抵扣:</view>
  207. <view class='conter'>-¥{{ fen2yuan(orderInfo.couponPrice) }}</view>
  208. </view>
  209. <!-- TODO 芋艿:vip 价格减免 from php -->
  210. <!-- TODO 芋艿:vip 价格减免 from php -->
  211. <view class='item acea-row row-between' v-if="orderInfo.pointPrice > 0">
  212. <view>积分抵扣:</view>
  213. <view class='conter'>-¥{{ fen2yuan(orderInfo.deductionPrice) }}</view>
  214. </view>
  215. <view class='actualPay acea-row row-right'>
  216. 实付款:<text class='money font-color'>¥{{ fen2yuan(orderInfo.payPrice) }}</text>
  217. </view>
  218. </view>
  219. <view style='height:120rpx;'></view>
  220. <!-- 操作区域 -->
  221. <view class='footer acea-row row-right row-middle'>
  222. <view class="qs-btn" v-if="orderInfo.status === 0" @click.stop="cancelOrder">
  223. 取消订单
  224. </view>
  225. <view class='bnt bg-color' v-if="orderInfo.status === 0" @tap='goPay'>
  226. 立即付款
  227. </view>
  228. <!-- TODO 芋艿:拼团 -->
  229. <view class='bnt bg-color' v-if="orderInfo.combinationId > 0" @tap='goJoinPink'>查看拼团</view>
  230. <navigator class='bnt cancel' v-if="orderInfo.logisticsId > 0"
  231. hover-class='none' :url="'/pages/users/goods_logistics/index?orderId='+ orderInfo.orderId">
  232. 查看物流
  233. </navigator>
  234. <view class='bnt bg-color' v-if="orderInfo.status === 20" @tap='confirmOrder'>
  235. 确认收货
  236. </view>
  237. <view class='bnt cancel' v-if="orderInfo.status === 40" @tap='delOrder'>
  238. 删除订单
  239. </view>
  240. <!-- TODO 芋艿:再次购买 -->
  241. <view class='bnt bg-color' v-if="orderInfo.status==3 && orderInfo.type!==1" @tap='goOrderConfirm'>
  242. 再次购买
  243. </view>
  244. </view>
  245. </view>
  246. </view>
  247. <home></home>
  248. </view>
  249. </template>
  250. <script>
  251. import * as OrderApi from '@/api/trade/order.js';
  252. import * as DeliveryApi from '@/api/trade/delivery.js';
  253. import { openOrderRefundSubscribe } from '@/utils/SubscribeMessage.js';
  254. import home from '@/components/home';
  255. import payment from '@/components/payment';
  256. import orderGoods from "@/components/orderGoods";
  257. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  258. import { toLogin } from '@/libs/login.js';
  259. import { mapGetters } from "vuex";
  260. import dayjs from '@/plugin/dayjs/dayjs.min.js';
  261. import * as Util from '@/utils/util.js';
  262. import uQRCode from '@/js_sdk/Sansnn-uQRCode/uqrcode.js';
  263. export default {
  264. components: {
  265. payment,
  266. home,
  267. orderGoods
  268. },
  269. data() {
  270. return {
  271. order_id: '', // 订单编号
  272. type: 'normal',
  273. orderInfo: { // 订单详情
  274. systemStore: {},
  275. },
  276. cartInfo: [], // 购物车产品
  277. evaluate: 0, // 是否开启评论,和订单状态有关
  278. afterSale: false, // 是否开启售后
  279. // ========== 门店自提(核销) ==========
  280. system_store: {}, // 门店信息
  281. qrcodeSize: 145
  282. };
  283. },
  284. computed: mapGetters(['isLogin', 'chatUrl', 'userInfo']),
  285. onLoad: function(options) {
  286. this.type = options.type ? options.type : 'normal';
  287. if (!options.order_id) {
  288. return this.$util.Tips({
  289. title: '缺少参数'
  290. }, {
  291. tab: 3,
  292. url: 1
  293. });
  294. }
  295. this.$set(this, 'order_id', options.order_id);
  296. },
  297. onShow() {
  298. if (!this.isLogin) {
  299. toLogin();
  300. return
  301. }
  302. this.getOrderInfo();
  303. },
  304. onReady: function() {
  305. // #ifdef H5
  306. this.$nextTick(() => {
  307. const clipboard = new ClipboardJS(".copy-data");
  308. clipboard.on("success", () => {
  309. this.$util.Tips({
  310. title: '复制成功'
  311. });
  312. });
  313. });
  314. // #endif
  315. },
  316. methods: {
  317. /**
  318. * 获取订单详细信息
  319. */
  320. getOrderInfo: function() {
  321. uni.showLoading({
  322. title: "正在加载中"
  323. });
  324. OrderApi.getOrderDetail(this.order_id).then(res => {
  325. if (!res.data) {
  326. this.$util.Tips({
  327. title: '订单信息不存在'
  328. }, '/pages/users/order_list/index');
  329. return
  330. }
  331. uni.hideLoading();
  332. this.$set(this, 'orderInfo', res.data);
  333. this.$set(this, 'cartInfo', res.data.items);
  334. // 如果已完成,且未评论,则设置 evaluate 为 2,开启评论功能
  335. this.$set(this, 'evaluate', res.data.status === 30 && !res.data.commentStatus ? 2 : 0);
  336. // 如果满足指定状态,则开启售后按钮
  337. if ([10, 20, 30].includes(res.data.status)) {
  338. this.$set(this, 'afterSale', true);
  339. }
  340. // 配送方式:门店自提
  341. if (res.data.pickUpStoreId) {
  342. DeliveryApi.getDeliveryPickUpStore(res.data.pickUpStoreId).then(res => {
  343. this.system_store = res.data || {};
  344. });
  345. }
  346. if (this.orderInfo.deliveryType === 2 && this.orderInfo.payStatus) {
  347. this.markCode(res.data.pickUpVerifyCode);
  348. }
  349. }).catch(err => {
  350. uni.hideLoading();
  351. this.$util.Tips({
  352. title: err
  353. }, '/pages/users/order_list/index');
  354. });
  355. },
  356. /**
  357. * 打开支付组件
  358. */
  359. goPay() {
  360. const returnUrl = encodeURIComponent('/pages/order_pay_status/index?order_id=' + this.orderInfo.id);
  361. uni.navigateTo({
  362. url: `/pages/goods/cashier/index?order_id=${this.orderInfo.payOrderId}&returnUrl=${returnUrl}`
  363. })
  364. },
  365. /**
  366. * 确认收货
  367. */
  368. confirmOrder: function() {
  369. uni.showModal({
  370. title: '确认收货',
  371. content: '为保障权益,请收到货确认无误后,再确认收货',
  372. success: (res) => {
  373. if (!res.confirm) {
  374. return
  375. }
  376. OrderApi.receiveOrder(this.orderInfo.id).then(res => {
  377. return this.$util.Tips({
  378. title: '收货成功',
  379. icon: 'success'
  380. }, () => {
  381. this.getOrderInfo();
  382. });
  383. }).catch(err => {
  384. return this.$util.Tips({
  385. title: err
  386. });
  387. })
  388. }
  389. })
  390. },
  391. /**
  392. * 取消订单
  393. */
  394. cancelOrder() {
  395. uni.showModal({
  396. title: '提示',
  397. content: '确认取消该订单?',
  398. success: res => {
  399. if (res.confirm) {
  400. OrderApi.cancelOrder(this.orderInfo.id).then(() => {
  401. this.$util.Tips({
  402. title: '取消成功'
  403. })
  404. this.getOrderInfo();
  405. }).catch((err) => {
  406. this.$util.Tips({
  407. title: err
  408. })
  409. this.getOrderInfo();
  410. });
  411. }
  412. }
  413. });
  414. },
  415. /**
  416. * 删除订单
  417. */
  418. delOrder: function() {
  419. uni.showModal({
  420. title: '提示',
  421. content: '确认删除该订单?',
  422. success: res => {
  423. if (res.confirm) {
  424. OrderApi.deleteOrder(this.orderInfo.id).then(() => {
  425. this.$util.Tips({
  426. title: '删除成功'
  427. }, {
  428. tab: 3,
  429. url: '/pages/users/order_list/index'
  430. })
  431. }).catch((err) => {
  432. this.$util.Tips({
  433. title: err
  434. })
  435. this.getOrderInfo();
  436. });
  437. }
  438. }
  439. });
  440. },
  441. /**
  442. * 生成核销二维码
  443. */
  444. markCode(text) {
  445. uQRCode.make({
  446. canvasId: 'qrcode',
  447. text: text,
  448. size: this.qrcodeSize,
  449. margin: 10,
  450. fail: res => {
  451. this.$util.Tips({
  452. title: '核销二维码生成失败!'
  453. });
  454. }
  455. })
  456. },
  457. /**
  458. * 去拼团详情
  459. */
  460. goJoinPink: function() {
  461. uni.navigateTo({
  462. url: '/pages/activity/goods_combination_status/index?id=' + this.orderInfo.pinkId,
  463. });
  464. },
  465. /**
  466. * 再此购买
  467. */
  468. goOrderConfirm: function() {
  469. this.$Order.getPreOrder("again",[{
  470. orderNo: this.order_id
  471. }]);
  472. },
  473. // ========== 非关键逻辑 ==========
  474. /**
  475. * 跳转客服
  476. */
  477. kefuClick() {
  478. location.href = this.chatUrl;
  479. },
  480. /**
  481. * 订阅,并前往链接
  482. */
  483. openSubcribe: function(page) {
  484. uni.showLoading({
  485. title: '正在加载',
  486. })
  487. openOrderRefundSubscribe().then(res => {
  488. uni.hideLoading();
  489. uni.navigateTo({
  490. url: page,
  491. });
  492. }).catch(() => {
  493. uni.hideLoading();
  494. });
  495. },
  496. /**
  497. *
  498. * 剪切订单号
  499. */
  500. // #ifndef H5
  501. copy: function() {
  502. uni.setClipboardData({
  503. data: this.orderInfo.no
  504. });
  505. },
  506. // #endif
  507. /**
  508. * 拨打电话
  509. */
  510. makePhone: function() {
  511. uni.makePhoneCall({
  512. phoneNumber: this.system_store.phone
  513. })
  514. },
  515. /**
  516. * 打开地图
  517. */
  518. showMaoLocation: function() {
  519. if (!this.system_store.latitude || !this.system_store.longitude) {
  520. return this.$util.Tips({
  521. title: '缺少经纬度信息无法查看地图!'
  522. });
  523. }
  524. uni.openLocation({
  525. latitude: this.system_store.latitude,
  526. longitude: this.system_store.longitude,
  527. scale: 8,
  528. name: this.system_store.name,
  529. address: this.system_store.areaName + this.system_store.detailAddress,
  530. });
  531. },
  532. fen2yuan(price) {
  533. return Util.fen2yuan(price)
  534. },
  535. formatDate: function(date) {
  536. return dayjs(date).format("YYYY-MM-DD HH:mm:ss");
  537. }
  538. }
  539. }
  540. </script>
  541. <style scoped lang="scss">
  542. .shuoming{
  543. width: 32rpx;
  544. height: 32rpx;
  545. }
  546. .goodCall {
  547. color: $theme-color;
  548. text-align: center;
  549. width: 100%;
  550. height: 86rpx;
  551. padding: 0 30rpx;
  552. border-bottom: 1rpx solid #eee;
  553. font-size: 30rpx;
  554. line-height: 86rpx;
  555. background: #fff;
  556. .icon-kefu {
  557. font-size: 36rpx;
  558. margin-right: 15rpx;
  559. }
  560. /* #ifdef MP */
  561. button {
  562. display: flex;
  563. align-items: center;
  564. justify-content: center;
  565. height: 86rpx;
  566. font-size: 30rpx;
  567. color: $theme-color;
  568. }
  569. /* #endif */
  570. }
  571. .order-details .header {
  572. height: 250rpx;
  573. padding: 0 30rpx;
  574. }
  575. .order-details .header.on {
  576. background-color: #666 !important;
  577. }
  578. .order-details .header .pictrue {
  579. width: 110rpx;
  580. height: 110rpx;
  581. }
  582. .order-details .header .pictrue image {
  583. width: 100%;
  584. height: 100%;
  585. }
  586. .order-details .header .data {
  587. color: rgba(255, 255, 255, 0.8);
  588. font-size: 24rpx;
  589. margin-left: 27rpx;
  590. }
  591. .order-details .header .data.on {
  592. margin-left: 0;
  593. }
  594. .order-details .header .data .state {
  595. font-size: 30rpx;
  596. font-weight: bold;
  597. color: #fff;
  598. margin-bottom: 7rpx;
  599. }
  600. .order-details .header .data .time {
  601. margin-left: 20rpx;
  602. }
  603. .picTxt {
  604. height: 150rpx;
  605. }
  606. .order-details .nav {
  607. background-color: #fff;
  608. font-size: 26rpx;
  609. color: #282828;
  610. padding: 27rpx 0;
  611. width: 100%;
  612. border-radius: 14rpx;
  613. margin: -100rpx auto 0 auto;
  614. }
  615. .order-details .nav .navCon {
  616. padding: 0 40rpx;
  617. }
  618. .order-details .nav .on {
  619. color: $theme-color;
  620. }
  621. .order-details .nav .progress {
  622. padding: 0 65rpx;
  623. margin-top: 10rpx;
  624. }
  625. .order-details .nav .progress .line {
  626. width: 100rpx;
  627. height: 2rpx;
  628. background-color: #939390;
  629. }
  630. .order-details .nav .progress .iconfont {
  631. font-size: 25rpx;
  632. color: #939390;
  633. margin-top: -2rpx;
  634. }
  635. .order-details .address {
  636. font-size: 26rpx;
  637. color: #868686;
  638. background-color: #fff;
  639. margin-top: 15rpx;
  640. padding: 30rpx 24rpx;
  641. }
  642. .order-details .address .name {
  643. font-size: 30rpx;
  644. color: #282828;
  645. margin-bottom: 15rpx;
  646. }
  647. .order-details .address .name .phone {
  648. margin-left: 40rpx;
  649. }
  650. .order-details .line {
  651. width: 100%;
  652. height: 3rpx;
  653. }
  654. .order-details .line image {
  655. width: 100%;
  656. height: 100%;
  657. display: block;
  658. }
  659. .order-details .wrapper {
  660. background-color: #fff;
  661. margin-top: 12rpx;
  662. padding: 30rpx 24rpx;
  663. }
  664. .order-details .wrapper .item {
  665. font-size: 28rpx;
  666. color: #282828;
  667. }
  668. .order-details .wrapper .item~.item {
  669. margin-top: 20rpx;
  670. }
  671. .order-details .wrapper .item .conter {
  672. color: #868686;
  673. // width: 490rpx;
  674. text-align: right;
  675. }
  676. .order-details .wrapper .item .conter .copy {
  677. font-size: 20rpx;
  678. color: #333;
  679. border-radius: 20rpx;
  680. border: 1rpx solid #666;
  681. padding: 3rpx 15rpx;
  682. margin-left: 24rpx;
  683. }
  684. .order-details .wrapper .actualPay {
  685. border-top: 1rpx solid #eee;
  686. margin-top: 30rpx;
  687. padding-top: 30rpx;
  688. }
  689. .order-details .wrapper .actualPay .money {
  690. font-weight: bold;
  691. font-size: 30rpx;
  692. }
  693. .order-details .footer {
  694. width: 100%;
  695. height: 100rpx;
  696. position: fixed;
  697. bottom: 0;
  698. left: 0;
  699. background-color: #fff;
  700. padding: 0 30rpx;
  701. box-sizing: border-box;
  702. }
  703. .order-details .footer .bnt {
  704. width: 158rpx;
  705. height: 54rpx;
  706. text-align: center;
  707. line-height: 54rpx;
  708. border-radius: 50rpx;
  709. color: #fff;
  710. font-size: 27rpx;
  711. }
  712. .order-details .footer .bnt.cancel {
  713. color: #aaa;
  714. border: 1rpx solid #ddd;
  715. }
  716. .order-details .footer .bnt~.bnt {
  717. margin-left: 18rpx;
  718. }
  719. .order-details .writeOff {
  720. background-color: #fff;
  721. margin-top: 15rpx;
  722. padding-bottom: 50rpx;
  723. }
  724. .order-details .writeOff .title {
  725. font-size: 30rpx;
  726. color: #282828;
  727. height: 87rpx;
  728. border-bottom: 1px solid #f0f0f0;
  729. padding: 0 24rpx;
  730. line-height: 87rpx;
  731. }
  732. .order-details .writeOff .grayBg {
  733. background-color: #f2f5f7;
  734. width: 590rpx;
  735. height: 384rpx;
  736. border-radius: 20rpx 20rpx 0 0;
  737. margin: 50rpx auto 0 auto;
  738. padding-top: 55rpx;
  739. }
  740. .order-details .writeOff .grayBg .pictrue {
  741. width: 290rpx;
  742. height: 290rpx;
  743. margin: 0 auto;
  744. }
  745. .order-details .writeOff .grayBg .pictrue image {
  746. width: 100%;
  747. height: 100%;
  748. display: block;
  749. }
  750. .order-details .writeOff .gear {
  751. width: 590rpx;
  752. height: 30rpx;
  753. margin: 0 auto;
  754. }
  755. .order-details .writeOff .gear image {
  756. width: 100%;
  757. height: 100%;
  758. display: block;
  759. }
  760. .order-details .writeOff .num {
  761. background-color: #f0c34c;
  762. width: 590rpx;
  763. height: 84rpx;
  764. color: #282828;
  765. font-size: 48rpx;
  766. margin: 0 auto;
  767. border-radius: 0 0 20rpx 20rpx;
  768. text-align: center;
  769. padding-top: 4rpx;
  770. }
  771. .order-details .writeOff .rules {
  772. margin: 46rpx 30rpx 0 30rpx;
  773. border-top: 1px solid #f0f0f0;
  774. padding-top: 10rpx;
  775. }
  776. .order-details .writeOff .rules .item {
  777. margin-top: 20rpx;
  778. }
  779. .order-details .writeOff .rules .item .rulesTitle {
  780. font-size: 28rpx;
  781. color: #282828;
  782. }
  783. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  784. font-size: 30rpx;
  785. color: #333;
  786. margin-right: 8rpx;
  787. margin-top: 5rpx;
  788. }
  789. .order-details .writeOff .rules .item .info {
  790. font-size: 28rpx;
  791. color: #999;
  792. margin-top: 7rpx;
  793. }
  794. .order-details .writeOff .rules .item .info .time {
  795. margin-left: 20rpx;
  796. }
  797. .order-details .map {
  798. height: 86rpx;
  799. font-size: 30rpx;
  800. color: #282828;
  801. line-height: 86rpx;
  802. border-bottom: 1px solid #f0f0f0;
  803. margin-top: 15rpx;
  804. background-color: #fff;
  805. padding: 0 24rpx;
  806. }
  807. .order-details .map .place {
  808. font-size: 26rpx;
  809. width: 176rpx;
  810. height: 50rpx;
  811. border-radius: 25rpx;
  812. line-height: 50rpx;
  813. text-align: center;
  814. }
  815. .order-details .map .place .iconfont {
  816. font-size: 27rpx;
  817. height: 27rpx;
  818. line-height: 27rpx;
  819. margin: 2rpx 3rpx 0 0;
  820. }
  821. .order-details .address .name .iconfont {
  822. font-size: 34rpx;
  823. margin-left: 10rpx;
  824. }
  825. .refund {
  826. padding: 0 !important;
  827. margin-top: 15rpx;
  828. background-color: #fff;
  829. .title {
  830. display: flex;
  831. align-items: center;
  832. font-size: 30rpx;
  833. color: #333;
  834. height: 86rpx;
  835. border-bottom: 1px solid #f5f5f5;
  836. font-weight: 400;
  837. padding: 0 24rpx;
  838. image {
  839. width: 32rpx;
  840. height: 32rpx;
  841. margin-right: 10rpx;
  842. }
  843. }
  844. .con {
  845. font-size: 25rpx;
  846. color: #666666;
  847. padding: 30rpx 24rpx;
  848. }
  849. }
  850. </style>
  851. <style>
  852. .qs-btn {
  853. width: auto;
  854. height: 60rpx;
  855. text-align: center;
  856. line-height: 60rpx;
  857. border-radius: 50rpx;
  858. color: #fff;
  859. font-size: 27rpx;
  860. padding: 0 3%;
  861. color: #aaa;
  862. border: 1px solid #ddd;
  863. margin-right: 20rpx;
  864. }
  865. </style>