index.vue 21 KB

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