index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923
  1. <template>
  2. <view class="order-details pos-order-details">
  3. <view class="header acea-row row-middle">
  4. <view class="state">{{ title }}</view>
  5. <view class="data">
  6. <view class="order-num">订单:{{ orderInfo.order_sn }}</view>
  7. <view>
  8. <span class="time">{{ orderInfo.create_time }}</span>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="remarks acea-row" v-if="goname != 'looks'" style="align-items: center;">
  13. <span class="iconfont icon-zhinengkefu-"></span>
  14. <view class="line1" style="text-align: left; flex: 1; margin-left: 10rpx;" @click="modify('1')">
  15. {{orderInfo.remark ? orderInfo.remark : '订单未备注,点击添加备注信息'}}
  16. </view>
  17. </view>
  18. <view class="orderingUser acea-row row-middle">
  19. <span class="iconfont icon-yonghu2"></span>{{ (orderInfo.user && orderInfo.user.nickname) || '' }}
  20. </view>
  21. <view class="address">
  22. <view class="name">
  23. {{ orderInfo.real_name }}<span class="phone">{{ orderInfo.user_phone }}</span>
  24. </view>
  25. <view>{{ orderInfo.user_address }}</view>
  26. <!-- #ifdef H5 -->
  27. <button class="copy copy-data" :data-clipboard-text="'收货人姓名:'+orderInfo.real_name+'\n收货人电话:'+ orderInfo.user_phone+'\n收货人地址:'+orderInfo.user_address">复制</button>
  28. <!-- #endif -->
  29. <!-- #ifdef MP || APP-PLUS -->
  30. <button class="copy" @tap="copyText">复制</button>
  31. <!-- #endif -->
  32. </view>
  33. <view class="line">
  34. <image :src="`${domain}/static/images/line.jpg`" />
  35. </view>
  36. <view class="pos-order-goods">
  37. <navigator :url="`/pages/goods_details/index?id=${item.cart_info.product.product_id}`" hover-class="none" class="goods" v-for="(item, index) in orderInfo.orderProduct" :key="index">
  38. <view class="acea-row row-between-wrapper">
  39. <view class="picTxt acea-row row-between-wrapper">
  40. <view class="pictrue">
  41. <image :src="item.cart_info.productAttr.image || item.cart_info.product.image" />
  42. </view>
  43. <view class="text acea-row row-between row-column">
  44. <view class="info line2">
  45. {{ item.cart_info.product.store_name }}
  46. </view>
  47. <view class="attr">{{ item.cart_info.productAttr.sku || '默认' }}</view>
  48. </view>
  49. </view>
  50. <view class="money">
  51. <view class="x-money">¥{{ item.cart_info.productAttr.price }}</view>
  52. <view class="num">x{{ item.product_num }}
  53. <text class="font-color refund_num" v-if="item.product_num-item.refund_num>0">(-{{item.product_num-item.refund_num}})</text>
  54. </view>
  55. <view v-if="orderInfo.order_type == 0" class="y-money">¥{{ item.cart_info.productAttr.ot_price }}</view>
  56. </view>
  57. </view>
  58. </navigator>
  59. </view>
  60. <view class="public-total">
  61. 共{{ orderInfo.total_num }}件商品,已支付
  62. <span class="money">¥{{ orderInfo.pay_price }}</span> ( 邮费 ¥{{orderInfo.pay_postage}})
  63. </view>
  64. <view class="wrapper">
  65. <view class="item acea-row row-between">
  66. <view>订单编号:</view>
  67. <view class="conter acea-row row-middle row-right">
  68. {{ orderInfo.order_sn }}
  69. <!-- #ifdef H5 -->
  70. <button class="copy copy-data" :data-clipboard-text="orderInfo.order_sn">复制</button>
  71. <!-- #endif -->
  72. <!-- #ifdef MP || APP-PLUS -->
  73. <span class="copy copy-data" @click="copyNum(orderInfo.order_sn)">复制</span>
  74. <!-- #endif -->
  75. </view>
  76. </view>
  77. <view class="item acea-row row-between">
  78. <view>下单时间:</view>
  79. <view class="conter">{{ orderInfo.create_time }}</view>
  80. </view>
  81. <view class="item acea-row row-between">
  82. <view>支付状态:</view>
  83. <view class="conter">
  84. {{ orderInfo.paid == 1 ? "已支付" : "未支付" }}
  85. </view>
  86. </view>
  87. <view class="item acea-row row-between">
  88. <view>支付方式:</view>
  89. <view class="conter">{{ orderInfo.pay_type == 0 ? "余额支付" : (orderInfo.pay_type == 1 || orderInfo.pay_type == 2 || orderInfo.pay_type == 3) ? "微信支付" : "支付宝支付" }}</view>
  90. </view>
  91. <view class="item acea-row row-between">
  92. <view>买家留言:</view>
  93. <view class="conter">{{ orderInfo.mark }}</view>
  94. </view>
  95. </view>
  96. <view v-if="orderInfo.order_extend" class='wrapper'>
  97. <view v-for="(item,index) in orderInfo.order_extend" v-if="item && index" :key="index" class='item acea-row row-between'>
  98. <view>{{index}}:</view>
  99. <view v-if="!Array.isArray(item)" class='conter'>{{item}}</view>
  100. <view v-else class='conter virtual_image'>
  101. <image v-for="(pic,i) in item" :key="i" class="picture" :src="pic" @click="getPhotoClickIdx(item,i)"></image>
  102. </view>
  103. </view>
  104. </view>
  105. <view class="wrapper">
  106. <view class="item acea-row row-between">
  107. <view>支付金额:</view>
  108. <view class="conter">¥{{ orderInfo.total_price }}</view>
  109. </view>
  110. <view v-if="orderInfo.coupon_price > 0" class="item acea-row row-between">
  111. <view>优惠券抵扣:</view>
  112. <view class="conter">-¥{{ orderInfo.coupon_price }}</view>
  113. </view>
  114. <view v-if="orderInfo.integral_price > 0" class="item acea-row row-between">
  115. <view>积分抵扣:</view>
  116. <view class="conter">-¥{{ orderInfo.integral_price }}</view>
  117. </view>
  118. <view v-if="orderInfo.pay_postage > 0" class="item acea-row row-between">
  119. <view>运费:</view>
  120. <view class="conter">¥{{ orderInfo.pay_postage }}</view>
  121. </view>
  122. <view class="actualPay acea-row row-right">
  123. 实付款:<span class="money font-color-red">¥{{ orderInfo.pay_price }}</span>
  124. </view>
  125. </view>
  126. <view class="wrapper" v-if="orderInfo.delivery_type != '3' && orderInfo.order_type === 0 && orderInfo.delivery_type">
  127. <view v-if="orderInfo.delivery_type != '6'" class="item acea-row row-between">
  128. <view>配送方式:</view>
  129. <view class="conter" v-if="orderInfo.delivery_type === '1' || orderInfo.delivery_type === '4'">
  130. 快递
  131. </view>
  132. <view class="conter" v-if="orderInfo.delivery_type === '2'">送货</view>
  133. </view>
  134. <view class="item acea-row row-between">
  135. <view v-if="orderInfo.delivery_type === '1' || orderInfo.delivery_type === '4'">快递公司:</view>
  136. <view v-if="orderInfo.delivery_type === '2'">送货人:</view>
  137. <view v-if="orderInfo.delivery_type === '6'">发货方式:</view>
  138. <view class="conter line1">{{ orderInfo.delivery_name ? orderInfo.delivery_name : '' }}</view>
  139. </view>
  140. <view class="item acea-row row-between">
  141. <view v-if="orderInfo.delivery_type === '1' || orderInfo.delivery_type === '4'">快递单号:</view>
  142. <view v-if="orderInfo.delivery_type === '2'">送货人电话:</view>
  143. <view v-if="orderInfo.delivery_type === '6'">卡密信息:</view>
  144. <view class="conter" style="display: flex;">
  145. <text>{{ orderInfo.delivery_id ? orderInfo.delivery_id : ''}}</text>
  146. <!-- #ifndef H5 -->
  147. <text class='copy' @tap='copyKm'>复制</text>
  148. <!-- #endif -->
  149. <!-- #ifdef H5 -->
  150. <text class="copy copy-data" :data-clipboard-text="orderInfo.delivery_id">复制</text>
  151. <!-- #endif -->
  152. </view>
  153. </view>
  154. </view>
  155. <view style="height:100upx;"></view>
  156. <view class="footer acea-row row-right row-middle" v-if="goname != 'looks'">
  157. <view class="more"></view>
  158. <view class="bnt cancel" @click="modify('0')" v-if="orderInfo.paid == 0">
  159. 一键改价
  160. </view>
  161. <navigator v-if="orderInfo.status!=-1&&orderInfo.status<9&&orderInfo.paid == 1" class="bnt cancel" :url="'/pages/admin/refundList/index?mer_id='+mer_id+'&order_id='+orderInfo.order_id">
  162. 立即退款
  163. </navigator>
  164. <view class="bnt cancel" @click="modify('1')">订单备注</view>
  165. <view class="bnt cancel" v-if="orderInfo.pay_type === 'offline' && orderInfo.paid === 0" @click="offlinePay">
  166. 确认付款
  167. </view>
  168. <navigator class="bnt delivery" v-if="orderInfo.paid == 1 && orderInfo.status == 0 && orderInfo.order_type == 0" :url="'/pages/admin/delivery/index?id='+orderInfo.order_id+'&merId='+mer_id">去发货</navigator>
  169. <view class="bnt delivery" v-if="orderInfo.paid == 1 && (orderInfo.status == 0 || orderInfo.status == 9) && orderInfo.order_type == 1" @click="goCancellation">去核销</view>
  170. </view>
  171. <PriceChange :change="change" :orderInfo="orderInfo" v-on:closechange="changeclose($event)" v-on:savePrice="savePrice"
  172. :status="status"></PriceChange>
  173. </view>
  174. </template>
  175. <script>
  176. // +----------------------------------------------------------------------
  177. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  178. // +----------------------------------------------------------------------
  179. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  180. // +----------------------------------------------------------------------
  181. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  182. // +----------------------------------------------------------------------
  183. // | Author: CRMEB Team <admin@crmeb.com>
  184. // +----------------------------------------------------------------------
  185. import PriceChange from "@/components/PriceChange";
  186. // #ifdef H5
  187. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  188. // #endif
  189. import {
  190. getAdminOrderDetail,
  191. setAdminOrderPrice,
  192. setAdminOrderRemark,
  193. setOfflinePay,
  194. setOrderRefund,
  195. orderCancellation
  196. } from "@/api/admin";
  197. import { isMoney } from '@/utils/validate.js'
  198. import { HTTP_REQUEST_URL } from '@/config/app';
  199. export default {
  200. name: "AdminOrder",
  201. components: {
  202. PriceChange
  203. },
  204. props: {},
  205. data: function() {
  206. return {
  207. order: false,
  208. change: false,
  209. order_id: "",
  210. mer_id: '',
  211. orderInfo: {
  212. _status: {},
  213. user: {}
  214. },
  215. domain: HTTP_REQUEST_URL,
  216. status: "",
  217. title: "",
  218. payType: "",
  219. types: "",
  220. clickNum: 1,
  221. goname:''
  222. };
  223. },
  224. watch: {
  225. "$route.params.oid": function(newVal) {
  226. let that = this;
  227. if (newVal != undefined) {
  228. that.order_id = newVal;
  229. that.getIndex();
  230. }
  231. }
  232. },
  233. onLoad: function(option) {
  234. let self = this
  235. this.order_id = option.id
  236. this.mer_id = option.mer_id
  237. this.goname = option.goname
  238. this.getIndex();
  239. // #ifdef H5
  240. this.$nextTick(function() {
  241. var clipboard = new ClipboardJS('.copy-data');
  242. clipboard.on('success', function(e) {
  243. self.$util.Tips({
  244. title:'复制成功'
  245. })
  246. });
  247. clipboard.on('error', function(e) {
  248. self.$util.Tips({
  249. title:'复制失败'
  250. })
  251. });
  252. });
  253. // #endif
  254. },
  255. methods: {
  256. more: function() {
  257. this.order = !this.order;
  258. },
  259. modify: function(status) {
  260. this.change = true;
  261. this.status = status;
  262. },
  263. changeclose: function(msg) {
  264. this.change = msg;
  265. },
  266. // 图片预览
  267. getPhotoClickIdx(list, idx) {
  268. uni.previewImage({
  269. current: list[idx], // 传 Number H5端出现不兼容
  270. urls: list
  271. });
  272. },
  273. /**
  274. *
  275. * 剪切卡密内容
  276. */
  277. // #ifndef H5
  278. copyKm: function() {
  279. let that = this;
  280. uni.setClipboardData({
  281. data: that.orderInfo.delivery_id,
  282. success: function(res){
  283. }
  284. });
  285. },
  286. // #endif
  287. copyText: function (e) {
  288. let arr = [
  289. {
  290. name: "收货人姓名",
  291. value: this.orderInfo.real_name
  292. },
  293. {
  294. name: "收货人电话",
  295. value: this.orderInfo.user_phone
  296. },
  297. {
  298. name: "收货人地址",
  299. value: this.orderInfo.user_address
  300. }
  301. ]
  302. wx.setClipboardData({
  303. data: `${arr.map(item =>`${item.name}: ${item.value}`).join("\n")}`,
  304. success: function (res) {
  305. wx.getClipboardData({
  306. success: function (res) {
  307. wx.showToast({
  308. title: '复制成功'
  309. })
  310. }
  311. })
  312. }
  313. })
  314. },
  315. getIndex: function() {
  316. let that = this;
  317. getAdminOrderDetail(that.mer_id,that.order_id).then(
  318. res => {
  319. that.orderInfo = res.data;
  320. },
  321. err => {
  322. that.$util.Tips({
  323. title: err
  324. }, {
  325. tab: 3,
  326. url: 1
  327. });
  328. }
  329. );
  330. },
  331. /*核销订单*/
  332. goCancellation() {
  333. let that = this;
  334. uni.navigateTo({
  335. url: '/pages/admin/cancellate_result/index?mer_id='+that.mer_id+'&cal_code='+that.orderInfo.verify_code,
  336. })
  337. },
  338. async savePrice(opt) {
  339. let that = this,
  340. data = {},
  341. price = opt.price,
  342. refund_price = opt.refund_price,
  343. refund_status = that.orderInfo.refund_status,
  344. remark = opt.remark;
  345. data.order_id = that.orderInfo.order_id;
  346. if (that.status == 0) {
  347. // if (!isMoney(price)) {
  348. // return that.$util.Tips({
  349. // title: '请输入正确的金额'
  350. // });
  351. // }
  352. data.price = price;
  353. let parmas = {
  354. pay_postage: opt.orderInfo.pay_postage,
  355. coupon_price: opt.orderInfo.coupon_price,
  356. total_price: Number(opt.orderInfo.total_price)
  357. }
  358. setAdminOrderPrice(that.mer_id,data.order_id, parmas ).then(
  359. res => {
  360. that.change = false;
  361. that.$util.Tips({
  362. title: '改价成功',
  363. icon: 'success'
  364. })
  365. that.getIndex();
  366. },
  367. err => {
  368. console.log(err, 'err')
  369. that.change = false;
  370. that.$util.Tips({
  371. title: err
  372. });
  373. }
  374. );
  375. } else if (that.status == 0 && refund_status === 1) {
  376. if (!isMoney(refund_price)) {
  377. return that.$util.Tips({
  378. title: '请输入正确的金额'
  379. });
  380. }
  381. data.price = refund_price;
  382. data.type = opt.type;
  383. setOrderRefund(that.mer_id,data).then(
  384. res => {
  385. that.change = false;
  386. that.$util.Tips({
  387. title: res.message
  388. });
  389. that.getIndex();
  390. },
  391. err => {
  392. console.log(err, 'err')
  393. that.change = false;
  394. that.$util.Tips({
  395. title: err
  396. });
  397. }
  398. );
  399. } else {
  400. if (!remark) {
  401. return this.$util.Tips({
  402. title: '请输入备注'
  403. })
  404. }
  405. // data.remark = remark;
  406. console.log(data);
  407. setAdminOrderRemark(that.mer_id,data.order_id,{ remark: remark }).then(
  408. res => {
  409. that.change = false;
  410. this.$util.Tips({
  411. title: res.message,
  412. icon: 'success'
  413. })
  414. that.getIndex();
  415. },
  416. err => {
  417. that.change = false;
  418. that.$util.Tips({
  419. title: err
  420. });
  421. }
  422. );
  423. }
  424. },
  425. offlinePay: function() {
  426. setOfflinePay(this.mer_id,{
  427. order_id: this.orderInfo.order_id
  428. }).then(
  429. res => {
  430. this.$util.Tips({
  431. title: res.message,
  432. icon: 'success'
  433. });
  434. this.getIndex();
  435. },
  436. err => {
  437. this.$util.Tips({
  438. title: err
  439. });
  440. }
  441. );
  442. },
  443. copyNum(id) {
  444. uni.setClipboardData({
  445. data: id,
  446. success: function() {
  447. console.log('success');
  448. }
  449. });
  450. },
  451. copyData(id){
  452. uni.setClipboardData({
  453. data: id,
  454. success: function() {
  455. console.log('success');
  456. }
  457. });
  458. },
  459. // #ifdef H5
  460. webCopy(item, index) {
  461. console.log('yunxingle')
  462. let items = item
  463. let indexs = index
  464. let self = this
  465. if (self.clickNum == 1) {
  466. console.log('22')
  467. self.clickNum += 1
  468. self.webCopy(items, indexs)
  469. }
  470. }
  471. // #endif
  472. }
  473. };
  474. </script>
  475. <style lang="scss">
  476. /*商户管理订单详情*/
  477. .pos-order-details .header {
  478. background: linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  479. background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  480. background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  481. }
  482. .pos-order-details .header .state {
  483. font-size: 36upx;
  484. color: #fff;
  485. }
  486. .pos-order-details .header .data {
  487. margin-left: 35upx;
  488. font-size: 28upx;
  489. }
  490. .pos-order-details .header .data .order-num {
  491. font-size: 30upx;
  492. margin-bottom: 8upx;
  493. }
  494. .pos-order-details .remarks {
  495. width: 100%;
  496. height: 86upx;
  497. background-color: #fff;
  498. padding: 0 30upx;
  499. }
  500. .pos-order-details .remarks .iconfont {
  501. font-size: 40upx;
  502. color: #2a7efb;
  503. }
  504. .pos-order-details .remarks input {
  505. width: 630upx;
  506. height: 100%;
  507. font-size: 30upx;
  508. }
  509. .pos-order-details .remarks input::placeholder {
  510. color: #666;
  511. }
  512. .pos-order-details .orderingUser {
  513. font-size: 26upx;
  514. color: #282828;
  515. padding: 0 30upx;
  516. height: 67upx;
  517. background-color: #fff;
  518. margin-top: 16upx;
  519. border-bottom: 1px solid #f5f5f5;
  520. }
  521. .pos-order-details .orderingUser .iconfont {
  522. font-size: 40upx;
  523. color: #2a7efb;
  524. margin-right: 15upx;
  525. }
  526. .pos-order-details .address {
  527. margin-top: 0;
  528. }
  529. .pos-order-details .pos-order-goods {
  530. margin-top: 17upx;
  531. }
  532. .pos-order-details .footer .more {
  533. font-size: 27upx;
  534. color: #aaa;
  535. width: 100upx;
  536. height: 64upx;
  537. text-align: center;
  538. line-height: 64upx;
  539. margin-right: 25upx;
  540. position: relative;
  541. }
  542. .pos-order-details .footer .delivery {
  543. background: linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  544. background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  545. background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  546. }
  547. .pos-order-details .footer .more .order .arrow {
  548. width: 0;
  549. height: 0;
  550. border-left: 11upx solid transparent;
  551. border-right: 11upx solid transparent;
  552. border-top: 20upx solid #e5e5e5;
  553. position: absolute;
  554. left: 15upx;
  555. bottom: -18upx;
  556. }
  557. .pos-order-details .footer .more .order .arrow:before {
  558. content: '';
  559. width: 0;
  560. height: 0;
  561. border-left: 9upx solid transparent;
  562. border-right: 9upx solid transparent;
  563. border-top: 19upx solid #fff;
  564. position: absolute;
  565. left: -10upx;
  566. bottom: 0;
  567. }
  568. .pos-order-details .footer .more .order {
  569. width: 200upx;
  570. background-color: #fff;
  571. border: 1px solid #eee;
  572. border-radius: 10upx;
  573. position: absolute;
  574. top: -200upx;
  575. z-index: 9;
  576. }
  577. .pos-order-details .footer .more .order .item {
  578. height: 77upx;
  579. line-height: 77upx;
  580. }
  581. .pos-order-details .footer .more .order .item~.item {
  582. border-top: 1px solid #f5f5f5;
  583. }
  584. .pos-order-details .footer .more .moreName {
  585. width: 100%;
  586. height: 100%;
  587. }
  588. /*订单详情*/
  589. .order-details .header {
  590. padding: 0 30upx;
  591. height: 150upx;
  592. }
  593. .order-details .header.on {
  594. background-color: #666 !important;
  595. }
  596. .order-details .header .pictrue {
  597. width: 110upx;
  598. height: 110upx;
  599. }
  600. .order-details .header .pictrue image {
  601. width: 100%;
  602. height: 100%;
  603. }
  604. .order-details .header .data {
  605. color: rgba(255, 255, 255, 0.8);
  606. font-size: 24upx;
  607. margin-left: 27upx;
  608. }
  609. .order-details .header.on .data {
  610. margin-left: 0;
  611. }
  612. .order-details .header .data .state {
  613. font-size: 30upx;
  614. font-weight: bold;
  615. color: #fff;
  616. margin-bottom: 7upx;
  617. }
  618. /* .order-details .header .data .time{margin-left:20upx;} */
  619. .order-details .nav {
  620. background-color: #fff;
  621. font-size: 26upx;
  622. color: #282828;
  623. padding: 25upx 0;
  624. }
  625. .order-details .nav .navCon {
  626. padding: 0 40upx;
  627. }
  628. .order-details .nav .navCon .on {
  629. font-weight: bold;
  630. color: #e93323;
  631. }
  632. .order-details .nav .progress {
  633. padding: 0 65upx;
  634. margin-top: 10upx;
  635. }
  636. .order-details .nav .progress .line {
  637. width: 100upx;
  638. height: 2upx;
  639. background-color: #939390;
  640. }
  641. .order-details .nav .progress .iconfont {
  642. font-size: 25upx;
  643. color: #939390;
  644. margin-top: -2upx;
  645. width: 30upx;
  646. height: 30upx;
  647. line-height: 33upx;
  648. text-align: center;
  649. margin-right: 0 !important;
  650. }
  651. .order-details .address {
  652. font-size: 26upx;
  653. color: #868686;
  654. background-color: #fff;
  655. padding: 25upx 30upx 30upx 30upx;
  656. position: relative;
  657. }
  658. .order-details .address .name {
  659. font-size: 30upx;
  660. color: #282828;
  661. margin-bottom: 0.1rem;
  662. }
  663. .order-details .address .name .phone {
  664. margin-left: 40upx;
  665. }
  666. .order-details .line {
  667. width: 100%;
  668. height: 3upx;
  669. }
  670. .order-details .line image {
  671. width: 100%;
  672. height: 100%;
  673. display: block;
  674. }
  675. .order-details .wrapper {
  676. background-color: #fff;
  677. margin-top: 12upx;
  678. padding: 30upx;
  679. }
  680. .order-details .wrapper .item {
  681. font-size: 28upx;
  682. color: #282828;
  683. }
  684. .order-details .wrapper .item~.item {
  685. margin-top: 20upx;
  686. }
  687. .order-details .wrapper .item .conter {
  688. color: #868686;
  689. text-align: right;
  690. max-width: 450rpx;
  691. }
  692. .order-details .wrapper .item .virtual_image {
  693. // text-align: left;
  694. margin-left: 50rpx;
  695. }
  696. .order-details .wrapper .item .virtual_image .picture{
  697. width: 106rpx;
  698. height: 106rpx;
  699. border-radius: 8rpx;
  700. margin-right: 10rpx;
  701. &:last-child{
  702. margin-right: 0;
  703. }
  704. }
  705. .order-details .wrapper .item .conter .copy {
  706. font-size: 20rpx;
  707. color: #868686;
  708. border-radius: 3rpx;
  709. border: 1px solid #868686;
  710. padding: 0rpx 15rpx;
  711. margin-left: 24rpx;
  712. height: 40rpx;
  713. display: flex;
  714. align-items: center;
  715. justify-content: center;
  716. border-radius: 16rpx;
  717. }
  718. .address .copy{
  719. font-size: 20rpx;
  720. color: #868686;
  721. border-radius: 3rpx;
  722. border: 1px solid #868686;
  723. padding: 0rpx 15rpx;
  724. height: 40rpx;
  725. display: flex;
  726. align-items: center;
  727. justify-content: center;
  728. border-radius: 16rpx;
  729. position: absolute;
  730. right: 30rpx;
  731. top: 20rpx;
  732. }
  733. .order-details .wrapper .actualPay {
  734. border-top: 1upx solid #eee;
  735. margin-top: 30upx;
  736. padding-top: 30upx;
  737. }
  738. .order-details .wrapper .actualPay .money {
  739. font-weight: bold;
  740. font-size: 30upx;
  741. }
  742. .order-details .footer {
  743. width: 100%;
  744. height: 100upx;
  745. height: calc(100upx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  746. height: calc(100upx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  747. position: fixed;
  748. bottom: 0;
  749. left: 0;
  750. background-color: #fff;
  751. padding: 0 30upx;
  752. border-top: 1px solid #eee;
  753. }
  754. .order-details .footer .bnt {
  755. width: auto;
  756. height: 60upx;
  757. line-height: 60upx;
  758. text-align: center;
  759. line-height: upx;
  760. border-radius: 50upx;
  761. color: #fff;
  762. font-size: 27upx;
  763. padding: 0 3%;
  764. }
  765. .order-details .footer .bnt.cancel {
  766. color: #aaa;
  767. border: 1px solid #ddd;
  768. }
  769. .order-details .footer .bnt.default {
  770. color: #444;
  771. border: 1px solid #444;
  772. }
  773. .order-details .footer .bnt~.bnt {
  774. margin-left: 18upx;
  775. }
  776. .pos-order-goods {
  777. padding: 0 30upx;
  778. background-color: #fff;
  779. position: relative;
  780. }
  781. .pos-order-goods .goods {
  782. padding: 20rpx 0;
  783. overflow: hidden;
  784. }
  785. .pos-order-goods .goods~.goods {
  786. border-top: 1px dashed #e5e5e5;
  787. }
  788. .pos-order-goods .goods .picTxt {
  789. width: 515upx;
  790. }
  791. .pos-order-goods .goods .picTxt .pictrue {
  792. width: 130upx;
  793. height: 130upx;
  794. }
  795. .pos-order-goods .goods .picTxt .pictrue image {
  796. width: 100%;
  797. height: 100%;
  798. border-radius: 6upx;
  799. }
  800. .pos-order-goods .goods .picTxt .text {
  801. width: 365upx;
  802. height: 130upx;
  803. }
  804. .pos-order-goods .goods .picTxt .text .info {
  805. font-size: 28upx;
  806. color: #282828;
  807. }
  808. .pos-order-goods .goods .picTxt .text .attr {
  809. font-size: 24upx;
  810. color: #999;
  811. }
  812. .pos-order-goods .goods .money {
  813. width: 164upx;
  814. text-align: right;
  815. font-size: 28upx;
  816. }
  817. .pos-order-goods .goods .money .refund_num{
  818. display: inline-block;
  819. margin-left: 10rpx;
  820. }
  821. .pos-order-goods .goods .money .x-money {
  822. color: #282828;
  823. }
  824. .pos-order-goods .goods .money .num {
  825. color: #ff9600;
  826. margin: 5upx 0;
  827. }
  828. .pos-order-goods .goods .money .y-money {
  829. color: #999;
  830. text-decoration: line-through;
  831. }
  832. .pos-order-goods .cancellate{
  833. font-size: 24rpx;
  834. float: right;
  835. margin-top: 10rpx;
  836. text{
  837. margin-left: 26rpx;
  838. }
  839. }
  840. .pos-order-goods .cancelled{
  841. color: #FF9600;
  842. }
  843. .pos-order-goods .goods .uncancell{
  844. color: #999999;
  845. }
  846. .public-total {
  847. font-size: 28upx;
  848. color: #282828;
  849. border-top: 1px solid #eee;
  850. height: 92upx;
  851. line-height: 92upx;
  852. text-align: right;
  853. padding: 0 30upx;
  854. background-color: #fff;
  855. }
  856. .public-total .money {
  857. color: #ff4c3c;
  858. }
  859. </style>