index.vue 22 KB

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