index.vue 23 KB

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