index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  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. <!-- #ifndef H5 -->
  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" v-if='item.productInfo.attrInfo'>{{$t(`¥`)}}{{ item.productInfo.attrInfo.ot_price }}</view>
  57. <view class="y-money" v-else>{{$t(`¥`)}}{{ item.productInfo.ot_price }}</view>
  58. </view>
  59. </navigator>
  60. </view>
  61. <view class="public-total" v-if="orderInfo.total_num">
  62. {{$t(`共`)}}{{ orderInfo.total_num }}{{$t(`件商品,应支付`)}}
  63. <span class="money">{{$t(`¥`)}}{{ orderInfo.pay_price }}</span> ( {{$t(`邮费`)}} {{$t(`¥`)}}{{
  64. orderInfo.pay_postage
  65. }}
  66. )
  67. </view>
  68. <view class="wrapper" v-if="orderInfo.order_id">
  69. <view class="item acea-row row-between">
  70. <view>{{$t(`订单编号`)}}:</view>
  71. <view class="conter acea-row row-middle row-right">
  72. {{ orderInfo.order_id
  73. }}
  74. <!-- #ifdef H5 -->
  75. <span class="copy copy-data" :data-clipboard-text="orderInfo.order_id">{{$t(`复制`)}}</span>
  76. <!-- #endif -->
  77. <!-- #ifndef H5 -->
  78. <span class="copy copy-data" @click="copyNum(orderInfo.order_id)">{{$t(`复制`)}}</span>
  79. <!-- #endif -->
  80. </view>
  81. </view>
  82. <view class="item acea-row row-between">
  83. <view>{{$t(`下单时间`)}}:</view>
  84. <view class="conter">{{ orderInfo._add_time }}</view>
  85. </view>
  86. <view class="item acea-row row-between">
  87. <view>{{$t(`支付状态`)}}:</view>
  88. <view class="conter">
  89. {{ orderInfo.paid == 1 ? $t(`已支付`) : $t(`未支付`) }}
  90. </view>
  91. </view>
  92. <view class="item acea-row row-between">
  93. <view>{{$t(`支付方式`)}}:</view>
  94. <view class="conter">{{ payType }}</view>
  95. </view>
  96. <view class="item acea-row row-between">
  97. <view>{{$t(`买家留言`)}}:</view>
  98. <view class="conter">{{ orderInfo.mark }}</view>
  99. </view>
  100. </view>
  101. <view class='wrapper' v-if="customForm && customForm.length">
  102. <view class='item acea-row row-between' v-for="(item,index) in customForm" :key="index">
  103. <view class='upload' v-if="item.label == 'img'">
  104. <view>{{item.title}}:</view>
  105. <view class='pictrue' v-for="(img,index) in item.value" :key="index">
  106. <image :src='img'></image>
  107. </view>
  108. </view>
  109. <view v-if="item.label !== 'img'">{{item.title}}:</view>
  110. <view v-if="item.label !== 'img'" class='conter'>{{item.value}}</view>
  111. </view>
  112. </view>
  113. <view class="wrapper">
  114. <view class="item acea-row row-between">
  115. <view>{{$t(`支付金额`)}}:</view>
  116. <view class="conter">{{$t(`¥`)}}{{ orderInfo.total_price || 0 }}</view>
  117. </view>
  118. <view class="item acea-row row-between">
  119. <view>{{$t(`优惠券抵扣`)}}:</view>
  120. <view class="conter">-{{$t(`¥`)}}{{ orderInfo.coupon_price || 0 }}</view>
  121. </view>
  122. <view class="item acea-row row-between">
  123. <view>{{$t(`运费`)}}:</view>
  124. <view class="conter">{{$t(`¥`)}}{{ orderInfo.pay_postage || 0 }}</view>
  125. </view>
  126. <view class="actualPay acea-row row-right">
  127. {{$t(`实付款`)}}:<span class="money">{{$t(`¥`)}}{{ orderInfo.pay_price || 0 }}</span>
  128. </view>
  129. </view>
  130. <view class="wrapper" v-if="
  131. orderInfo.delivery_type != 'fictitious' && orderInfo._status._type === 2
  132. ">
  133. <view class="item acea-row row-between">
  134. <view>{{$t(`配送方式`)}}:</view>
  135. <view class="conter" v-if="orderInfo.delivery_type === 'express'">
  136. {{$t(`快递`)}}
  137. </view>
  138. <view class="conter" v-if="orderInfo.delivery_type === 'send'">{{$t(`送货`)}}</view>
  139. </view>
  140. <view class="item acea-row row-between">
  141. <view v-if="orderInfo.delivery_type === 'express'">{{$t(`快递公司`)}}:</view>
  142. <view v-if="orderInfo.delivery_type === 'send'">{{$t(`送货人`)}}:</view>
  143. <view class="conter">{{ orderInfo.delivery_name }}</view>
  144. </view>
  145. <view class="item acea-row row-between">
  146. <view v-if="orderInfo.delivery_type === 'express'">{{$t(`快递单号`)}}:</view>
  147. <view v-if="orderInfo.delivery_type === 'send'">{{$t(`送货人电话`)}}:</view>
  148. <view class="conter">
  149. {{ orderInfo.delivery_id}}
  150. <!-- #ifdef H5 -->
  151. <span class="copy copy-data" :data-clipboard-text="orderInfo.delivery_id">{{$t(`复制`)}}</span>
  152. <!-- #endif -->
  153. <!-- #ifndef H5 -->
  154. <span class="copy copy-data" @click="copyNum(orderInfo.delivery_id)">{{$t(`复制`)}}</span>
  155. <!-- #endif -->
  156. </view>
  157. </view>
  158. </view>
  159. <view style="height:120upx;"></view>
  160. <view class="footer acea-row row-right row-middle" v-if="goname != 'looks'">
  161. <view class="more"></view>
  162. <view class="bnt cancel" @click="modify('0')" v-if="types == 0">
  163. {{$t(`一键改价`)}}
  164. </view>
  165. <view class="bnt cancel" @click="modify('2')" v-if="types == -1 && orderInfo.refund_type == 1">
  166. {{$t(`立即退款`)}}
  167. </view>
  168. <view class="bnt cancel" @click="agreeExpress(orderInfo.id)"
  169. v-if="types == -1 && orderInfo.refund_type == 2">
  170. {{$t(`同意退货`)}}
  171. </view>
  172. <view class="wait" v-if="types == -1 && orderInfo.refund_type == 4">{{$t(`待用户发货`)}}</view>
  173. <view class="bnt cancel" @click="modify('1')">{{$t(`订单备注`)}}</view>
  174. <view class="bnt cancel" v-if="orderInfo.pay_type === 'offline' && orderInfo.paid === 0"
  175. @click="offlinePay">
  176. {{$t(`确认付款`)}}
  177. </view>
  178. <navigator class="bnt delivery"
  179. v-if="types == 1 && orderInfo.shipping_type === 1 && (orderInfo.pinkStatus === null || orderInfo.pinkStatus === 2)"
  180. :url="'/pages/admin/delivery/index?id='+orderInfo.order_id">{{$t(`去发货`)}}</navigator>
  181. </view>
  182. <PriceChange :change="change" :orderInfo="orderInfo" v-on:closechange="changeclose($event)"
  183. v-on:savePrice="savePrice" :status="status"></PriceChange>
  184. </view>
  185. </template>
  186. <script>
  187. import PriceChange from "../components/PriceChange/index.vue";
  188. // #ifdef H5
  189. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  190. // #endif
  191. import {
  192. getAdminOrderDetail,
  193. getAdminRefundOrderDetail,
  194. setAdminOrderPrice,
  195. setAdminOrderRemark,
  196. setAdminRefundRemark,
  197. setOfflinePay,
  198. setOrderRefund,
  199. agreeExpress
  200. } from "@/api/admin";
  201. // import { required, num } from "@utils/validate";
  202. // import { validatorDefaultCatch } from "@utils/dialog";
  203. import {
  204. isMoney
  205. } from '@/utils/validate.js'
  206. export default {
  207. name: "AdminOrder",
  208. components: {
  209. PriceChange
  210. },
  211. props: {},
  212. data: function() {
  213. return {
  214. order: false,
  215. change: false,
  216. order_id: "",
  217. orderInfo: {
  218. _status: {}
  219. },
  220. status: "",
  221. title: "",
  222. payType: "",
  223. types: "",
  224. order_type: "",
  225. clickNum: 1,
  226. goname: '',
  227. customForm: []
  228. };
  229. },
  230. watch: {
  231. "$route.params.oid": function(newVal) {
  232. let that = this;
  233. if (newVal != undefined) {
  234. that.order_id = newVal;
  235. that.getIndex();
  236. }
  237. }
  238. },
  239. onShow() {
  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. let that = this;
  308. agreeExpress({
  309. id
  310. }).then(res => {
  311. that.$util.Tips({
  312. title: res.msg
  313. });
  314. that.init();
  315. }).catch(err => {
  316. that.$util.Tips({
  317. title: err
  318. });
  319. })
  320. },
  321. async savePrice(opt) {
  322. let that = this,
  323. data = {},
  324. price = opt.price,
  325. refund_price = opt.refund_price,
  326. refund_status = that.orderInfo.refund_status,
  327. remark = opt.remark;
  328. data.order_id = that.orderInfo.order_id;
  329. if (that.status == 0) {
  330. if (!isMoney(price)) {
  331. return that.$util.Tips({
  332. title: that.$t(`请输入正确的金额`)
  333. });
  334. }
  335. data.price = price;
  336. setAdminOrderPrice(data).then(
  337. res => {
  338. that.change = false;
  339. that.$util.Tips({
  340. title: that.$t(`改价成功`),
  341. icon: 'success'
  342. }, '/pages/admin/orderDetail/index?id=' + res.data.order_id + '&types=0')
  343. },
  344. err => {
  345. that.change = false;
  346. that.$util.Tips({
  347. title: that.$t(`改价失败`),
  348. icon: 'none'
  349. })
  350. }
  351. );
  352. } else if (that.status == 2) {
  353. if (!isMoney(refund_price)) {
  354. return that.$util.Tips({
  355. title: that.$t(`请输入正确的金额`)
  356. });
  357. }
  358. data.price = refund_price;
  359. data.type = opt.type;
  360. setOrderRefund(data).then(
  361. res => {
  362. that.change = false;
  363. that.$util.Tips({
  364. title: res.msg
  365. });
  366. that.getIndex();
  367. },
  368. err => {
  369. that.change = false;
  370. that.$util.Tips({
  371. title: err
  372. });
  373. }
  374. );
  375. } else {
  376. if (!remark) {
  377. return that.$util.Tips({
  378. title: that.$t(`请输入备注`)
  379. })
  380. }
  381. data.remark = remark;
  382. let obj
  383. if (that.order_type == -3) {
  384. obj = setAdminRefundRemark(data);
  385. } else {
  386. obj = setAdminOrderRemark(data);
  387. }
  388. obj.then(
  389. res => {
  390. that.change = false;
  391. that.$util.Tips({
  392. title: res.msg,
  393. icon: 'success'
  394. })
  395. that.getIndex();
  396. },
  397. err => {
  398. that.change = false;
  399. that.$util.Tips({
  400. title: err
  401. });
  402. }
  403. );
  404. }
  405. },
  406. offlinePay: function() {
  407. setOfflinePay({
  408. order_id: this.orderInfo.order_id
  409. }).then(
  410. res => {
  411. this.$util.Tips({
  412. title: res.msg,
  413. icon: 'success'
  414. });
  415. this.getIndex();
  416. },
  417. err => {
  418. this.$util.Tips({
  419. title: err
  420. });
  421. }
  422. );
  423. },
  424. // #ifndef H5
  425. copyNum(id) {
  426. uni.setClipboardData({
  427. data: id,
  428. success: function() {}
  429. });
  430. },
  431. // #endif
  432. // #ifdef H5
  433. webCopy(item, index) {
  434. let items = item
  435. let indexs = index
  436. let self = this
  437. if (self.clickNum == 1) {
  438. self.clickNum += 1
  439. self.webCopy(items, indexs)
  440. }
  441. }
  442. // #endif
  443. }
  444. };
  445. </script>
  446. <style>
  447. /*商户管理订单详情*/
  448. .pos-order-details .header {
  449. background: linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  450. background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  451. background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  452. }
  453. .pos-order-details .header .state {
  454. font-size: 36upx;
  455. color: #fff;
  456. }
  457. .pos-order-details .header .data {
  458. margin-left: 35upx;
  459. font-size: 28upx;
  460. }
  461. .pos-order-details .header .data .order-num {
  462. font-size: 30upx;
  463. margin-bottom: 8upx;
  464. }
  465. .pos-order-details .remarks {
  466. width: 100%;
  467. height: 86upx;
  468. background-color: #fff;
  469. padding: 0 30upx;
  470. }
  471. .pos-order-details .remarks .iconfont {
  472. font-size: 40upx;
  473. color: #2a7efb;
  474. }
  475. .pos-order-details .remarks input {
  476. width: 630upx;
  477. height: 100%;
  478. font-size: 30upx;
  479. }
  480. .pos-order-details .remarks input::placeholder {
  481. color: #666;
  482. }
  483. .pos-order-details .orderingUser {
  484. font-size: 26upx;
  485. color: #282828;
  486. padding: 0 30upx;
  487. height: 67upx;
  488. background-color: #fff;
  489. margin-top: 16upx;
  490. border-bottom: 1px solid #f5f5f5;
  491. }
  492. .pos-order-details .orderingUser .iconfont {
  493. font-size: 40upx;
  494. color: #2a7efb;
  495. margin-right: 15upx;
  496. }
  497. .pos-order-details .address {
  498. margin-top: 0;
  499. }
  500. .pos-order-details .pos-order-goods {
  501. margin-top: 17upx;
  502. }
  503. .pos-order-details .footer .more {
  504. font-size: 27upx;
  505. color: #aaa;
  506. width: 100upx;
  507. height: 64upx;
  508. text-align: center;
  509. line-height: 64upx;
  510. margin-right: 25upx;
  511. position: relative;
  512. }
  513. .pos-order-details .footer .delivery {
  514. background: linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  515. background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  516. background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  517. }
  518. .pos-order-details .footer .more .order .arrow {
  519. width: 0;
  520. height: 0;
  521. border-left: 11upx solid transparent;
  522. border-right: 11upx solid transparent;
  523. border-top: 20upx solid #e5e5e5;
  524. position: absolute;
  525. left: 15upx;
  526. bottom: -18upx;
  527. }
  528. .pos-order-details .footer .more .order .arrow:before {
  529. content: '';
  530. width: 0;
  531. height: 0;
  532. border-left: 9upx solid transparent;
  533. border-right: 9upx solid transparent;
  534. border-top: 19upx solid #fff;
  535. position: absolute;
  536. left: -10upx;
  537. bottom: 0;
  538. }
  539. .pos-order-details .footer .more .order {
  540. width: 200upx;
  541. background-color: #fff;
  542. border: 1px solid #eee;
  543. border-radius: 10upx;
  544. position: absolute;
  545. top: -200upx;
  546. z-index: 9;
  547. }
  548. .pos-order-details .footer .more .order .item {
  549. height: 77upx;
  550. line-height: 77upx;
  551. }
  552. .pos-order-details .footer .more .order .item~.item {
  553. border-top: 1px solid #f5f5f5;
  554. }
  555. .pos-order-details .footer .more .moreName {
  556. width: 100%;
  557. height: 100%;
  558. }
  559. /*订单详情*/
  560. .order-details .header {
  561. padding: 0 30upx;
  562. height: 150upx;
  563. }
  564. .order-details .header.on {
  565. background-color: #666 !important;
  566. }
  567. .order-details .header .pictrue {
  568. width: 110upx;
  569. height: 110upx;
  570. }
  571. .order-details .header .pictrue image {
  572. width: 100%;
  573. height: 100%;
  574. }
  575. .order-details .header .data {
  576. color: rgba(255, 255, 255, 0.8);
  577. font-size: 24upx;
  578. margin-left: 27upx;
  579. }
  580. .order-details .header.on .data {
  581. margin-left: 0;
  582. }
  583. .order-details .header .data .state {
  584. font-size: 30upx;
  585. font-weight: bold;
  586. color: #fff;
  587. margin-bottom: 7upx;
  588. }
  589. /* .order-details .header .data .time{margin-left:20upx;} */
  590. .order-details .nav {
  591. background-color: #fff;
  592. font-size: 26upx;
  593. color: #282828;
  594. padding: 25upx 0;
  595. }
  596. .order-details .nav .navCon {
  597. padding: 0 40upx;
  598. }
  599. .order-details .nav .navCon .on {
  600. font-weight: bold;
  601. color: #e93323;
  602. }
  603. .order-details .nav .progress {
  604. padding: 0 65upx;
  605. margin-top: 10upx;
  606. }
  607. .order-details .nav .progress .line {
  608. width: 100upx;
  609. height: 2upx;
  610. background-color: #939390;
  611. }
  612. .order-details .nav .progress .iconfont {
  613. font-size: 25upx;
  614. color: #939390;
  615. margin-top: -2upx;
  616. width: 30upx;
  617. height: 30upx;
  618. line-height: 33upx;
  619. text-align: center;
  620. margin-right: 0 !important;
  621. }
  622. .order-details .address {
  623. font-size: 26upx;
  624. color: #868686;
  625. background-color: #fff;
  626. padding: 25upx 30upx 30upx 30upx;
  627. }
  628. .order-details .address .name {
  629. display: flex;
  630. align-items: center;
  631. font-size: 30upx;
  632. color: #282828;
  633. margin-bottom: 0.1rem;
  634. }
  635. .order-details .address .name .phone {
  636. margin-left: 40upx;
  637. }
  638. .order-details .line {
  639. width: 100%;
  640. height: 3upx;
  641. }
  642. .order-details .line image {
  643. width: 100%;
  644. height: 100%;
  645. display: block;
  646. }
  647. .order-details .wrapper {
  648. background-color: #fff;
  649. margin-top: 12upx;
  650. padding: 30upx;
  651. }
  652. .order-details .wrapper .item {
  653. font-size: 28upx;
  654. color: #282828;
  655. }
  656. .order-details .wrapper .item~.item {
  657. margin-top: 20upx;
  658. }
  659. .order-details .wrapper .item .conter {
  660. color: #868686;
  661. width: 500upx;
  662. text-align: right;
  663. }
  664. .order-details .wrapper .item .conter .copy {
  665. font-size: 20rpx;
  666. color: #333;
  667. border-radius: 3rpx;
  668. border: 1px solid #666;
  669. padding: 2rpx 15rpx;
  670. margin-left: 24rpx;
  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. }
  797. .upload .pictrue {
  798. display: inline-block;
  799. margin: 22rpx 17rpx 20rpx 0;
  800. width: 156rpx;
  801. height: 156rpx;
  802. color: #bbb;
  803. }
  804. .upload .pictrue image {
  805. width: 100%;
  806. height: 100%;
  807. }
  808. </style>