index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882
  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">{{$t(`¥`)}}{{ item.productInfo.ot_price }}</view>
  57. </view>
  58. </navigator>
  59. </view>
  60. <view class="public-total" v-if="orderInfo.total_num">
  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" v-if="orderInfo.order_id">
  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. <!-- #ifndef H5 -->
  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 || 0 }}</view>
  116. </view>
  117. <view class="item acea-row row-between">
  118. <view>{{$t(`优惠券抵扣`)}}:</view>
  119. <view class="conter">-{{$t(`¥`)}}{{ orderInfo.coupon_price || 0 }}</view>
  120. </view>
  121. <view class="item acea-row row-between">
  122. <view>{{$t(`运费`)}}:</view>
  123. <view class="conter">{{$t(`¥`)}}{{ orderInfo.pay_postage || 0 }}</view>
  124. </view>
  125. <view class="actualPay acea-row row-right">
  126. {{$t(`实付款`)}}:<span class="money">{{$t(`¥`)}}{{ orderInfo.pay_price || 0 }}</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. <!-- #ifndef H5 -->
  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. this.getIndex();
  240. },
  241. onLoad(option) {
  242. let self = this
  243. this.order_id = option.id;
  244. this.goname = option.goname
  245. this.order_type = option.types
  246. // #ifdef H5
  247. this.$nextTick(function() {
  248. var clipboard = new ClipboardJS('.copy-data');
  249. // var copybtn = document.getElementsByClassName("copy-data");
  250. // var clipboard = new Clipboard(copybtn);
  251. clipboard.on('success', function(e) {
  252. self.$util.Tips({
  253. title: self.$t(`复制成功`)
  254. })
  255. });
  256. clipboard.on('error', function(e) {
  257. self.$util.Tips({
  258. title: self.$t(`复制失败`)
  259. })
  260. });
  261. });
  262. // #endif
  263. },
  264. methods: {
  265. more: function() {
  266. this.order = !this.order;
  267. },
  268. modify(status) {
  269. this.change = true;
  270. this.status = status;
  271. },
  272. changeclose: function(msg) {
  273. this.change = msg;
  274. },
  275. getIndex: function() {
  276. let that = this;
  277. let fn = this.order_type == -3 ? getAdminRefundOrderDetail : getAdminOrderDetail
  278. fn(that.order_id).then(
  279. res => {
  280. that.orderInfo = res.data;
  281. //处理自定义留言非必填项的数据展示
  282. that.types = res.data._status._type;
  283. that.title = res.data._status._title;
  284. that.payType = res.data._status._payType;
  285. if (that.orderInfo.custom_form && that.orderInfo.custom_form.length) {
  286. let arr = []
  287. that.orderInfo.custom_form.map(i => {
  288. if (i.value != '') {
  289. arr.push(i)
  290. }
  291. })
  292. that.$set(that, 'customForm', arr);
  293. }
  294. },
  295. err => {
  296. // that.$util.Tips({
  297. // title: err
  298. // }, {
  299. // tab: 3,
  300. // url: 1
  301. // });
  302. }
  303. );
  304. },
  305. agreeExpress(id) {
  306. let that = this;
  307. agreeExpress({
  308. id
  309. }).then(res => {
  310. that.$util.Tips({
  311. title: res.msg
  312. });
  313. that.init();
  314. }).catch(err => {
  315. that.$util.Tips({
  316. title: err
  317. });
  318. })
  319. },
  320. async savePrice(opt) {
  321. let that = this,
  322. data = {},
  323. price = opt.price,
  324. refund_price = opt.refund_price,
  325. refund_status = that.orderInfo.refund_status,
  326. remark = opt.remark;
  327. data.order_id = that.orderInfo.order_id;
  328. if (that.status == 0) {
  329. if (!isMoney(price)) {
  330. return that.$util.Tips({
  331. title: that.$t(`请输入正确的金额`)
  332. });
  333. }
  334. data.price = price;
  335. setAdminOrderPrice(data).then(
  336. res => {
  337. that.change = false;
  338. that.$util.Tips({
  339. title: that.$t(`改价成功`),
  340. icon: 'success'
  341. }, '/pages/admin/orderDetail/index?id=' + res.data.order_id + '&types=0')
  342. },
  343. err => {
  344. that.change = false;
  345. that.$util.Tips({
  346. title: that.$t(`改价失败`),
  347. icon: 'none'
  348. })
  349. }
  350. );
  351. } else if (that.status == 2) {
  352. if (!isMoney(refund_price)) {
  353. return that.$util.Tips({
  354. title: that.$t(`请输入正确的金额`)
  355. });
  356. }
  357. data.price = refund_price;
  358. data.type = opt.type;
  359. setOrderRefund(data).then(
  360. res => {
  361. that.change = false;
  362. that.$util.Tips({
  363. title: res.msg
  364. });
  365. that.getIndex();
  366. },
  367. err => {
  368. that.change = false;
  369. that.$util.Tips({
  370. title: err
  371. });
  372. }
  373. );
  374. } else {
  375. if (!remark) {
  376. return that.$util.Tips({
  377. title: that.$t(`请输入备注`)
  378. })
  379. }
  380. data.remark = remark;
  381. let obj
  382. if (that.order_type == -3) {
  383. obj = setAdminRefundRemark(data);
  384. } else {
  385. obj = setAdminOrderRemark(data);
  386. }
  387. obj.then(
  388. res => {
  389. that.change = false;
  390. that.$util.Tips({
  391. title: res.msg,
  392. icon: 'success'
  393. })
  394. that.getIndex();
  395. },
  396. err => {
  397. that.change = false;
  398. that.$util.Tips({
  399. title: err
  400. });
  401. }
  402. );
  403. }
  404. },
  405. offlinePay: function() {
  406. setOfflinePay({
  407. order_id: this.orderInfo.order_id
  408. }).then(
  409. res => {
  410. this.$util.Tips({
  411. title: res.msg,
  412. icon: 'success'
  413. });
  414. this.getIndex();
  415. },
  416. err => {
  417. this.$util.Tips({
  418. title: err
  419. });
  420. }
  421. );
  422. },
  423. // #ifndef H5
  424. copyNum(id) {
  425. uni.setClipboardData({
  426. data: id,
  427. success: function() {}
  428. });
  429. },
  430. // #endif
  431. // #ifdef H5
  432. webCopy(item, index) {
  433. let items = item
  434. let indexs = index
  435. let self = this
  436. if (self.clickNum == 1) {
  437. self.clickNum += 1
  438. self.webCopy(items, indexs)
  439. }
  440. }
  441. // #endif
  442. }
  443. };
  444. </script>
  445. <style>
  446. /*商户管理订单详情*/
  447. .pos-order-details .header {
  448. background: linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  449. background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  450. background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  451. }
  452. .pos-order-details .header .state {
  453. font-size: 36upx;
  454. color: #fff;
  455. }
  456. .pos-order-details .header .data {
  457. margin-left: 35upx;
  458. font-size: 28upx;
  459. }
  460. .pos-order-details .header .data .order-num {
  461. font-size: 30upx;
  462. margin-bottom: 8upx;
  463. }
  464. .pos-order-details .remarks {
  465. width: 100%;
  466. height: 86upx;
  467. background-color: #fff;
  468. padding: 0 30upx;
  469. }
  470. .pos-order-details .remarks .iconfont {
  471. font-size: 40upx;
  472. color: #2a7efb;
  473. }
  474. .pos-order-details .remarks input {
  475. width: 630upx;
  476. height: 100%;
  477. font-size: 30upx;
  478. }
  479. .pos-order-details .remarks input::placeholder {
  480. color: #666;
  481. }
  482. .pos-order-details .orderingUser {
  483. font-size: 26upx;
  484. color: #282828;
  485. padding: 0 30upx;
  486. height: 67upx;
  487. background-color: #fff;
  488. margin-top: 16upx;
  489. border-bottom: 1px solid #f5f5f5;
  490. }
  491. .pos-order-details .orderingUser .iconfont {
  492. font-size: 40upx;
  493. color: #2a7efb;
  494. margin-right: 15upx;
  495. }
  496. .pos-order-details .address {
  497. margin-top: 0;
  498. }
  499. .pos-order-details .pos-order-goods {
  500. margin-top: 17upx;
  501. }
  502. .pos-order-details .footer .more {
  503. font-size: 27upx;
  504. color: #aaa;
  505. width: 100upx;
  506. height: 64upx;
  507. text-align: center;
  508. line-height: 64upx;
  509. margin-right: 25upx;
  510. position: relative;
  511. }
  512. .pos-order-details .footer .delivery {
  513. background: linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  514. background: -webkit-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  515. background: -moz-linear-gradient(to right, #2291f8 0%, #1cd1dc 100%);
  516. }
  517. .pos-order-details .footer .more .order .arrow {
  518. width: 0;
  519. height: 0;
  520. border-left: 11upx solid transparent;
  521. border-right: 11upx solid transparent;
  522. border-top: 20upx solid #e5e5e5;
  523. position: absolute;
  524. left: 15upx;
  525. bottom: -18upx;
  526. }
  527. .pos-order-details .footer .more .order .arrow:before {
  528. content: '';
  529. width: 0;
  530. height: 0;
  531. border-left: 9upx solid transparent;
  532. border-right: 9upx solid transparent;
  533. border-top: 19upx solid #fff;
  534. position: absolute;
  535. left: -10upx;
  536. bottom: 0;
  537. }
  538. .pos-order-details .footer .more .order {
  539. width: 200upx;
  540. background-color: #fff;
  541. border: 1px solid #eee;
  542. border-radius: 10upx;
  543. position: absolute;
  544. top: -200upx;
  545. z-index: 9;
  546. }
  547. .pos-order-details .footer .more .order .item {
  548. height: 77upx;
  549. line-height: 77upx;
  550. }
  551. .pos-order-details .footer .more .order .item~.item {
  552. border-top: 1px solid #f5f5f5;
  553. }
  554. .pos-order-details .footer .more .moreName {
  555. width: 100%;
  556. height: 100%;
  557. }
  558. /*订单详情*/
  559. .order-details .header {
  560. padding: 0 30upx;
  561. height: 150upx;
  562. }
  563. .order-details .header.on {
  564. background-color: #666 !important;
  565. }
  566. .order-details .header .pictrue {
  567. width: 110upx;
  568. height: 110upx;
  569. }
  570. .order-details .header .pictrue image {
  571. width: 100%;
  572. height: 100%;
  573. }
  574. .order-details .header .data {
  575. color: rgba(255, 255, 255, 0.8);
  576. font-size: 24upx;
  577. margin-left: 27upx;
  578. }
  579. .order-details .header.on .data {
  580. margin-left: 0;
  581. }
  582. .order-details .header .data .state {
  583. font-size: 30upx;
  584. font-weight: bold;
  585. color: #fff;
  586. margin-bottom: 7upx;
  587. }
  588. /* .order-details .header .data .time{margin-left:20upx;} */
  589. .order-details .nav {
  590. background-color: #fff;
  591. font-size: 26upx;
  592. color: #282828;
  593. padding: 25upx 0;
  594. }
  595. .order-details .nav .navCon {
  596. padding: 0 40upx;
  597. }
  598. .order-details .nav .navCon .on {
  599. font-weight: bold;
  600. color: #e93323;
  601. }
  602. .order-details .nav .progress {
  603. padding: 0 65upx;
  604. margin-top: 10upx;
  605. }
  606. .order-details .nav .progress .line {
  607. width: 100upx;
  608. height: 2upx;
  609. background-color: #939390;
  610. }
  611. .order-details .nav .progress .iconfont {
  612. font-size: 25upx;
  613. color: #939390;
  614. margin-top: -2upx;
  615. width: 30upx;
  616. height: 30upx;
  617. line-height: 33upx;
  618. text-align: center;
  619. margin-right: 0 !important;
  620. }
  621. .order-details .address {
  622. font-size: 26upx;
  623. color: #868686;
  624. background-color: #fff;
  625. padding: 25upx 30upx 30upx 30upx;
  626. }
  627. .order-details .address .name {
  628. display: flex;
  629. align-items: center;
  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: 2rpx 15rpx;
  669. margin-left: 24rpx;
  670. }
  671. .order-details .wrapper .actualPay {
  672. border-top: 1upx solid #eee;
  673. margin-top: 30upx;
  674. padding-top: 30upx;
  675. }
  676. .order-details .wrapper .actualPay .money {
  677. font-weight: bold;
  678. font-size: 30upx;
  679. color: #e93323;
  680. }
  681. .order-details .footer {
  682. width: 100%;
  683. height: 100upx;
  684. position: fixed;
  685. bottom: 0;
  686. left: 0;
  687. background-color: #fff;
  688. padding: 0 30upx;
  689. border-top: 1px solid #eee;
  690. }
  691. .order-details .footer .bnt {
  692. width: auto;
  693. height: 60upx;
  694. line-height: 60upx;
  695. text-align: center;
  696. line-height: upx;
  697. border-radius: 50upx;
  698. color: #fff;
  699. font-size: 27upx;
  700. padding: 0 3%;
  701. }
  702. .order-details .footer .bnt.cancel {
  703. color: #aaa;
  704. border: 1px solid #ddd;
  705. }
  706. .order-details .footer .bnt.default {
  707. color: #444;
  708. border: 1px solid #444;
  709. }
  710. .wait {
  711. margin-right: 30rpx;
  712. color: orangered;
  713. }
  714. .order-details .footer .bnt~.bnt {
  715. margin-left: 18upx;
  716. }
  717. .pos-order-goods {
  718. padding: 0 30upx;
  719. background-color: #fff;
  720. }
  721. .pos-order-goods .goods {
  722. height: 185upx;
  723. }
  724. .pos-order-goods .goods~.goods {
  725. border-top: 1px dashed #e5e5e5;
  726. }
  727. .pos-order-goods .goods .picTxt {
  728. width: 515upx;
  729. }
  730. .pos-order-goods .goods .picTxt .pictrue {
  731. width: 130upx;
  732. height: 130upx;
  733. }
  734. .pos-order-goods .goods .picTxt .pictrue image {
  735. width: 100%;
  736. height: 100%;
  737. border-radius: 6upx;
  738. }
  739. .pos-order-goods .goods .picTxt .text {
  740. width: 365upx;
  741. display: flex;
  742. justify-content: space-between;
  743. flex-direction: column;
  744. height: 130upx;
  745. }
  746. .pos-order-goods .goods .picTxt .text .info {
  747. font-size: 28upx;
  748. color: #282828;
  749. }
  750. .pos-order-goods .goods .picTxt .text .attr {
  751. font-size: 24upx;
  752. color: #999;
  753. width: 100%;
  754. overflow: hidden;
  755. white-space: nowrap;
  756. text-overflow: ellipsis;
  757. }
  758. .pos-order-goods .goods .money {
  759. width: 164upx;
  760. text-align: right;
  761. font-size: 28upx;
  762. }
  763. .pos-order-goods .goods .money .x-money {
  764. color: #282828;
  765. }
  766. .pos-order-goods .goods .money .num {
  767. color: #ff9600;
  768. margin: 5upx 0;
  769. }
  770. .pos-order-goods .goods .money .y-money {
  771. color: #999;
  772. text-decoration: line-through;
  773. }
  774. .public-total {
  775. font-size: 28upx;
  776. color: #282828;
  777. border-top: 1px solid #eee;
  778. height: 92upx;
  779. line-height: 92upx;
  780. text-align: right;
  781. padding: 0 30upx;
  782. background-color: #fff;
  783. }
  784. .public-total .money {
  785. color: #ff4c3c;
  786. }
  787. .copy-data {
  788. font-size: 10px;
  789. color: #333;
  790. -webkit-border-radius: 1px;
  791. border-radius: 1px;
  792. border: 1px solid #666;
  793. padding: 0px 7px;
  794. margin-left: 12px;
  795. }
  796. .upload .pictrue {
  797. display: inline-block;
  798. margin: 22rpx 17rpx 20rpx 0;
  799. width: 156rpx;
  800. height: 156rpx;
  801. color: #bbb;
  802. }
  803. .upload .pictrue image {
  804. width: 100%;
  805. height: 100%;
  806. }
  807. </style>