integral_order_details.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939
  1. <template>
  2. <view :style="colorStyle">
  3. <view class='order-details'>
  4. <view v-if="cartInfo.product_type == 0">
  5. <view class='address'>
  6. <view class='name'>{{cartInfo.real_name}}<text class='phone'>{{cartInfo.user_phone}}</text></view>
  7. <view>{{cartInfo.user_address}}</view>
  8. </view>
  9. <view class='line'>
  10. <image src='@/static/images/line.jpg'></image>
  11. </view>
  12. </view>
  13. <view class="orderGoods" :class="cartInfo.product_type == 0?'':'on'">
  14. <view class='total'>共{{cartInfo.total_num}}件商品</view>
  15. <view class='goodWrapper'>
  16. <view class='item acea-row row-between-wrapper' @click="jumpCon(cartInfo.product_id)">
  17. <view class='pictrue'>
  18. <image :src='cartInfo.image'></image>
  19. </view>
  20. <view class='text'>
  21. <view class='acea-row row-between-wrapper'>
  22. <view class='name line1'>{{cartInfo.store_name}}</view>
  23. <view class='num'>x {{cartInfo.total_num}}</view>
  24. </view>
  25. <view class='attr line1' v-if="cartInfo.attrInfo">{{cartInfo.attrInfo.suk}}</view>
  26. <view class='money font-num'>
  27. <text v-if="parseFloat(cartInfo.integral)">{{cartInfo.integral}}积分</text>
  28. <text v-if="parseFloat(cartInfo.integral) && parseFloat(cartInfo.price)">+</text>
  29. <text v-if="parseFloat(cartInfo.price)">{{cartInfo.price}}元</text>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view v-if="cartInfo.status!=0">
  36. <view class='wrapper' v-if='cartInfo.delivery_type=="fictitious" && cartInfo.product_type!=1'>
  37. <view class='item acea-row row-between'>
  38. <view>虚拟发货:</view>
  39. <view class='conter'>已发货,请注意查收</view>
  40. </view>
  41. <view class='item acea-row row-between' v-if="cartInfo.fictitious_content">
  42. <view>虚拟备注:</view>
  43. <view class='conter'>{{cartInfo.fictitious_content}}</view>
  44. </view>
  45. </view>
  46. <view class='wrapper' v-if="cartInfo.virtual_info && cartInfo.product_type==1">
  47. <view class='item acea-row row-between'>
  48. <view>卡密发货:</view>
  49. <view class='conter'>{{cartInfo.virtual_info}}</view>
  50. </view>
  51. <view class="item acea-row row-right">
  52. <view class="conter">
  53. <!-- #ifndef H5 -->
  54. <text class='copy' @tap='copyKm'>复制</text>
  55. <!-- #endif -->
  56. <!-- #ifdef H5 -->
  57. <text class='copy copy-data' :data-clipboard-text="cartInfo.virtual_info">复制</text>
  58. <!-- #endif -->
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <customForm :customForm="cartInfo.custom_form"></customForm>
  64. <view class='wrapper'>
  65. <view class='item acea-row row-between'>
  66. <view>订单编号:</view>
  67. <view class='conter acea-row row-middle row-right'>{{cartInfo.order_id}}
  68. <!-- #ifndef H5 -->
  69. <text class='copy' @tap='copy'>复制</text>
  70. <!-- #endif -->
  71. <!-- #ifdef H5 -->
  72. <text class='copy copy-data' :data-clipboard-text="cartInfo.order_id">复制</text>
  73. <!-- #endif -->
  74. </view>
  75. </view>
  76. <view class='item acea-row row-between'>
  77. <view>订单状态:</view>
  78. <view class='conter'>{{cartInfo.status_name}}</view>
  79. </view>
  80. <view class='item acea-row row-between'>
  81. <view>下单时间:</view>
  82. <view class='conter'>{{cartInfo.add_time}}</view>
  83. </view>
  84. <view class='item acea-row row-between' v-if="cartInfo.total_integral>0">
  85. <view>支付积分:</view>
  86. <view class='conter'>{{cartInfo.total_integral}}</view>
  87. </view>
  88. <view class='item acea-row row-between' v-if="cartInfo.total_price>0">
  89. <view>支付金额:</view>
  90. <view class='conter'>{{cartInfo.total_price}}</view>
  91. </view>
  92. <view class='item acea-row row-between' v-if="cartInfo.mark">
  93. <view>备注信息:</view>
  94. <view class='conter'>{{cartInfo.mark}}</view>
  95. </view>
  96. <view class='item acea-row row-between' v-if="cartInfo.delivery_type === 'express'">
  97. <view>快递单号:</view>
  98. <view class='conter'>{{cartInfo.delivery_id}}</view>
  99. </view>
  100. <view class='item acea-row row-between' v-if="cartInfo.delivery_type === 'express'">
  101. <view>快递公司:</view>
  102. <view class='conter'>{{cartInfo.delivery_name}}</view>
  103. </view>
  104. <view class='item acea-row row-between' v-if="cartInfo.delivery_type === 'send'">
  105. <view>送货人电话:</view>
  106. <view class='conter'>{{cartInfo.delivery_id}}</view>
  107. </view>
  108. <view class='item acea-row row-between' v-if="cartInfo.delivery_type === 'send'">
  109. <view>配送人姓名:</view>
  110. <view class='conter'>{{cartInfo.delivery_name}}</view>
  111. </view>
  112. <!-- <view class='item acea-row row-between' v-if="cartInfo.delivery_type === 'fictitious'">
  113. <view>虚拟发货:</view>
  114. <view class='conter'>>已发货,请注意查收</view>
  115. </view> -->
  116. <view class='item acea-row row-between' v-if="cartInfo.fictitious_content">
  117. <view>虚拟备注:</view>
  118. <view class='conter'>{{cartInfo.fictitious_content}}</view>
  119. </view>
  120. <view class='item acea-row row-between' v-if="cartInfo.delivery_type === 'send'">
  121. <view>配送核销码:</view>
  122. <view class='conter'>{{cartInfo.verify_code}}</view>
  123. </view>
  124. </view>
  125. <view style='height:120rpx;'></view>
  126. <view class='footer acea-row row-right row-middle' v-if="cartInfo.status>1">
  127. <view class='bnt bg-color' v-if="cartInfo.status==3" @tap='delOrder'>删除订单</view>
  128. <navigator class='bnt cancel' hover-class='none'
  129. v-if="cartInfo.delivery_id && cartInfo.delivery_type === 'express'"
  130. :url="'/pages/points_mall/logistics_details?order_id='+ cartInfo.order_id">查看物流
  131. </navigator>
  132. <view class='bnt bg-color' v-if="cartInfo.status==2" @tap='confirmOrder'>确认收货</view>
  133. </view>
  134. </view>
  135. <home v-if="navigation"></home>
  136. <!-- #ifdef MP -->
  137. <!-- <authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize> -->
  138. <!-- #endif -->
  139. </view>
  140. </template>
  141. <script>
  142. import {
  143. integralOrderDetails,
  144. orderTake,
  145. orderDel
  146. } from '@/api/activity.js'
  147. import {
  148. openOrderRefundSubscribe
  149. } from '@/utils/SubscribeMessage.js';
  150. import {
  151. getUserInfo
  152. } from '@/api/user.js';
  153. import home from '@/components/home';
  154. import customForm from "@/components/customForm";
  155. import orderGoods from "@/components/orderGoods";
  156. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  157. import {
  158. toLogin
  159. } from '@/libs/login.js';
  160. import {
  161. mapGetters
  162. } from "vuex";
  163. import colors from "@/mixins/color";
  164. export default {
  165. components: {
  166. home,
  167. customForm,
  168. orderGoods
  169. },
  170. mixins: [colors],
  171. data() {
  172. return {
  173. order_id: '',
  174. evaluate: 0,
  175. cartInfo: [], //购物车产品
  176. orderInfo: {
  177. system_store: {},
  178. _status: {}
  179. }, //订单详情
  180. system_store: {},
  181. isGoodsReturn: false, //是否为退款订单
  182. status: {}, //订单底部按钮状态
  183. isClose: false,
  184. payMode: [{
  185. name: "微信支付",
  186. icon: "icon-weixinzhifu",
  187. value: 'weixin',
  188. title: '使用微信快捷支付',
  189. payStatus: true,
  190. },
  191. // #ifdef H5 || APP-PLUS
  192. {
  193. name: '支付宝支付',
  194. icon: 'icon-zhifubao',
  195. value: 'alipay',
  196. title: '使用线上支付宝支付',
  197. payStatus: true
  198. },
  199. // #endif
  200. {
  201. name: "余额支付",
  202. icon: "icon-yuezhifu",
  203. value: 'yue',
  204. title: '当前可用余额:',
  205. number: 0,
  206. payStatus: true
  207. },
  208. ],
  209. pay_close: false,
  210. pay_order_id: '',
  211. totalPrice: '0',
  212. isAuto: false, //没有授权的不会自动授权
  213. isShowAuth: false, //是否隐藏授权
  214. routineContact: '0'
  215. };
  216. },
  217. computed: mapGetters(['isLogin']),
  218. onLoad: function(options) {
  219. if (options.order_id) {
  220. this.$set(this, 'order_id', options.order_id);
  221. }
  222. },
  223. onShow() {
  224. uni.removeStorageSync('form_type_cart');
  225. if (this.isLogin) {
  226. this.getOrderInfo();
  227. // this.getUserInfo();
  228. } else {
  229. toLogin();
  230. }
  231. },
  232. onHide: function() {
  233. this.isClose = true;
  234. },
  235. onReady: function() {
  236. // #ifdef H5 || APP-PLUS
  237. this.$nextTick(function() {
  238. const clipboard = new ClipboardJS(".copy-data");
  239. clipboard.on("success", () => {
  240. this.$util.Tips({
  241. title: '复制成功'
  242. });
  243. });
  244. });
  245. // #endif
  246. },
  247. methods: {
  248. /**
  249. * 登录授权回调
  250. *
  251. */
  252. onLoadFun: function() {
  253. this.getOrderInfo();
  254. this.isShowAuth = false;
  255. },
  256. // 授权关闭
  257. authColse: function(e) {
  258. this.isShowAuth = e
  259. },
  260. goGoodCall() {
  261. let self = this
  262. uni.navigateTo({
  263. url: `/pages/extension/customer_list/chat?orderId=${self.order_id}`
  264. })
  265. },
  266. openSubcribe: function(e) {
  267. let page = e;
  268. uni.showLoading({
  269. title: '正在加载',
  270. })
  271. openOrderRefundSubscribe().then(res => {
  272. uni.hideLoading();
  273. uni.navigateTo({
  274. url: page,
  275. });
  276. }).catch(() => {
  277. uni.hideLoading();
  278. });
  279. },
  280. /**
  281. * 事件回调
  282. *
  283. */
  284. onChangeFun: function(e) {
  285. let opt = e;
  286. let action = opt.action || null;
  287. let value = opt.value != undefined ? opt.value : null;
  288. (action && this[action]) && this[action](value);
  289. },
  290. /**
  291. * 拨打电话
  292. */
  293. makePhone: function() {
  294. uni.makePhoneCall({
  295. phoneNumber: this.system_store.phone
  296. })
  297. },
  298. /**
  299. * 打开地图
  300. *
  301. */
  302. showMaoLocation: function() {
  303. if (!this.system_store.latitude || !this.system_store.longitude) return this.$util.Tips({
  304. title: '缺少经纬度信息无法查看地图!'
  305. });
  306. uni.openLocation({
  307. latitude: parseFloat(this.system_store.latitude),
  308. longitude: parseFloat(this.system_store.longitude),
  309. scale: 8,
  310. name: this.system_store.name,
  311. address: this.system_store.address + this.system_store.detailed_address,
  312. success: function() {
  313. },
  314. });
  315. },
  316. /**
  317. * 关闭支付组件
  318. *
  319. */
  320. payClose: function() {
  321. this.pay_close = false;
  322. },
  323. /**
  324. * 打开支付组件
  325. *
  326. */
  327. pay_open: function() {
  328. this.pay_close = true;
  329. this.pay_order_id = this.orderInfo.order_id;
  330. this.totalPrice = this.orderInfo.pay_price;
  331. },
  332. /**
  333. * 支付成功回调
  334. *
  335. */
  336. pay_complete: function() {
  337. this.pay_close = false;
  338. this.pay_order_id = '';
  339. this.getOrderInfo();
  340. },
  341. /**
  342. * 支付失败回调
  343. *
  344. */
  345. pay_fail: function() {
  346. this.pay_close = false;
  347. this.pay_order_id = '';
  348. },
  349. /**
  350. * 获取用户信息
  351. *
  352. */
  353. getUserInfo: function() {
  354. let that = this;
  355. getUserInfo().then(res => {
  356. // #ifdef H5 || APP-PLUS
  357. that.payMode[2].number = res.data.now_money;
  358. // #endif
  359. // #ifdef MP
  360. that.payMode[1].number = res.data.now_money;
  361. // #endif
  362. that.$set(that, 'payMode', that.payMode);
  363. })
  364. },
  365. /**
  366. * 获取订单详细信息
  367. *
  368. */
  369. getOrderInfo: function() {
  370. let that = this;
  371. uni.showLoading({
  372. title: "正在加载中"
  373. });
  374. integralOrderDetails(this.order_id).then(res => {
  375. uni.hideLoading();
  376. that.$set(that, 'cartInfo', res.data);
  377. }).catch(err => {
  378. uni.hideLoading();
  379. that.$util.Tips({
  380. title: err
  381. }, '/pages/points_mall/exchange_record');
  382. });
  383. },
  384. /**
  385. *
  386. * 剪切订单号
  387. */
  388. // #ifndef H5
  389. copy: function() {
  390. let that = this;
  391. uni.setClipboardData({
  392. data: this.cartInfo.order_id
  393. });
  394. },
  395. copyKm: function() {
  396. let that = this;
  397. uni.setClipboardData({
  398. data: this.cartInfo.virtual_info
  399. });
  400. },
  401. // #endif
  402. /**
  403. * 打电话
  404. */
  405. goTel: function() {
  406. uni.makePhoneCall({
  407. phoneNumber: this.orderInfo.delivery_id
  408. })
  409. },
  410. /**
  411. * 设置底部按钮
  412. *
  413. */
  414. getOrderStatus: function() {
  415. let orderInfo = this.orderInfo || {},
  416. _status = orderInfo._status || {
  417. _type: 0
  418. },
  419. status = {};
  420. let type = parseInt(_status._type),
  421. delivery_type = orderInfo.delivery_type,
  422. seckill_id = orderInfo.seckill_id ? parseInt(orderInfo.seckill_id) : 0,
  423. bargain_id = orderInfo.bargain_id ? parseInt(orderInfo.bargain_id) : 0,
  424. combination_id = orderInfo.combination_id ? parseInt(orderInfo.combination_id) : 0;
  425. status = {
  426. type: type == 9 ? -9 : type,
  427. class_status: 0
  428. };
  429. if (type == 1 && combination_id > 0) status.class_status = 1; //查看拼团
  430. if (type == 2 && delivery_type == 'express') status.class_status = 2; //查看物流
  431. if (type == 2) status.class_status = 3; //确认收货
  432. if (type == 4 || type == 0) status.class_status = 4; //删除订单
  433. if (!seckill_id && !bargain_id && !combination_id && (type == 3 || type == 4)) status.class_status =
  434. 5; //再次购买
  435. this.$set(this, 'status', status);
  436. },
  437. /**
  438. * 去拼团详情
  439. *
  440. */
  441. goJoinPink: function() {
  442. uni.navigateTo({
  443. url: '/pages/activity/goods_combination_status/index?id=' + this.orderInfo.pink_id,
  444. });
  445. },
  446. confirmOrder() {
  447. let that = this;
  448. // #ifdef MP
  449. if (wx.openBusinessView && this.cartInfo.order_shipping_open && this.cartInfo
  450. .trade_no && this.cartInfo.total_price>0) {
  451. uni.showLoading({
  452. title: '加载中'
  453. });
  454. wx.openBusinessView({
  455. businessType: 'weappOrderConfirm',
  456. extraData: {
  457. transaction_id: this.cartInfo.trade_no
  458. },
  459. success() {
  460. },
  461. fail(err) {
  462. uni.hideLoading();
  463. return that.$util.Tips({
  464. title: err.errMsg
  465. });
  466. },
  467. complete() {
  468. uni.hideLoading();
  469. }
  470. });
  471. } else {
  472. this.defaultTake()
  473. }
  474. // #endif
  475. // #ifndef MP
  476. this.defaultTake()
  477. // #endif
  478. },
  479. defaultTake: function() {
  480. let that = this;
  481. uni.showModal({
  482. title: '确认收货',
  483. content: '为保障权益,请收到货确认无误后,再确认收货',
  484. success: function(res) {
  485. if (res.confirm) {
  486. orderTake({
  487. order_id: that.order_id
  488. }).then(res => {
  489. return that.$util.Tips({
  490. title: '操作成功',
  491. icon: 'success'
  492. }, function() {
  493. that.getOrderInfo();
  494. });
  495. }).catch(err => {
  496. return that.$util.Tips({
  497. title: err
  498. });
  499. })
  500. }
  501. }
  502. })
  503. },
  504. /**
  505. *
  506. * 删除订单
  507. */
  508. delOrder: function() {
  509. let that = this;
  510. orderDel({
  511. order_id: that.order_id
  512. }).then(res => {
  513. return that.$util.Tips({
  514. title: '删除成功',
  515. icon: 'success'
  516. }, {
  517. tab: 5,
  518. url: '/pages/points_mall/exchange_record'
  519. });
  520. }).catch(err => {
  521. return that.$util.Tips({
  522. title: err
  523. });
  524. });
  525. },
  526. }
  527. }
  528. </script>
  529. <style scoped lang="scss">
  530. .qs-btn {
  531. width: auto;
  532. height: 60rpx;
  533. text-align: center;
  534. line-height: 60rpx;
  535. border-radius: 50rpx;
  536. color: #fff;
  537. font-size: 27rpx;
  538. padding: 0 3%;
  539. color: #aaa;
  540. border: 1px solid #ddd;
  541. margin-right: 20rpx;
  542. }
  543. .goodWrapper{
  544. padding: 0 30rpx;
  545. .item{
  546. padding: 20rpx 0;
  547. }
  548. }
  549. .goodCall {
  550. color: #e93323;
  551. text-align: center;
  552. width: 100%;
  553. height: 86rpx;
  554. padding: 0 30rpx;
  555. border-bottom: 1rpx solid #eee;
  556. font-size: 30rpx;
  557. line-height: 86rpx;
  558. background: #fff;
  559. .icon-kefu {
  560. font-size: 36rpx;
  561. margin-right: 15rpx;
  562. }
  563. /* #ifdef MP */
  564. button {
  565. display: flex;
  566. align-items: center;
  567. justify-content: center;
  568. height: 86rpx;
  569. font-size: 30rpx;
  570. color: #e93323;
  571. }
  572. /* #endif */
  573. }
  574. .order-details .header {
  575. padding: 0 30rpx;
  576. height: 150rpx;
  577. }
  578. .order-details .header.on {
  579. background-color: #666 !important;
  580. }
  581. .order-details .header .pictrue {
  582. width: 110rpx;
  583. height: 110rpx;
  584. }
  585. .order-details .header .pictrue image {
  586. width: 100%;
  587. height: 100%;
  588. }
  589. .order-details .header .data {
  590. color: rgba(255, 255, 255, 0.8);
  591. font-size: 24rpx;
  592. margin-left: 27rpx;
  593. }
  594. .order-details .header .data.on {
  595. margin-left: 0;
  596. }
  597. .order-details .header .data .state {
  598. font-size: 30rpx;
  599. font-weight: bold;
  600. color: #fff;
  601. margin-bottom: 7rpx;
  602. }
  603. .order-details .header .data .time {
  604. margin-left: 20rpx;
  605. }
  606. .order-details .nav {
  607. background-color: #fff;
  608. font-size: 26rpx;
  609. color: #282828;
  610. padding: 25rpx 0;
  611. }
  612. .order-details .nav .navCon {
  613. padding: 0 40rpx;
  614. }
  615. .order-details .nav .on {
  616. color: #e93323;
  617. }
  618. .order-details .nav .progress {
  619. padding: 0 65rpx;
  620. margin-top: 10rpx;
  621. }
  622. .order-details .nav .progress .line {
  623. width: 100rpx;
  624. height: 2rpx;
  625. background-color: #939390;
  626. }
  627. .order-details .nav .progress .iconfont {
  628. font-size: 25rpx;
  629. color: #939390;
  630. margin-top: -2rpx;
  631. }
  632. .order-details .address {
  633. font-size: 26rpx;
  634. color: #868686;
  635. background-color: #fff;
  636. padding: 35rpx 30rpx;
  637. }
  638. .order-details .address .name {
  639. font-size: 30rpx;
  640. color: #282828;
  641. margin-bottom: 15rpx;
  642. }
  643. .order-details .address .name .phone {
  644. margin-left: 40rpx;
  645. }
  646. .order-details .line {
  647. width: 100%;
  648. height: 3rpx;
  649. }
  650. .order-details .line image {
  651. width: 100%;
  652. height: 100%;
  653. display: block;
  654. }
  655. .order-details .wrapper {
  656. background-color: #fff;
  657. margin-top: 12rpx;
  658. padding: 30rpx;
  659. }
  660. .order-details .wrapper .item {
  661. font-size: 28rpx;
  662. color: #282828;
  663. }
  664. .order-details .wrapper .item~.item {
  665. margin-top: 20rpx;
  666. }
  667. .order-details .wrapper .item .conter {
  668. color: #868686;
  669. width: 460rpx;
  670. text-align: right;
  671. }
  672. .order-details .wrapper .item .conter .copy {
  673. font-size: 20rpx;
  674. color: #333;
  675. border-radius: 3rpx;
  676. border: 1rpx solid #666;
  677. padding: 3rpx 15rpx;
  678. margin-left: 24rpx;
  679. }
  680. .order-details .wrapper .actualPay {
  681. border-top: 1rpx solid #eee;
  682. margin-top: 30rpx;
  683. padding-top: 30rpx;
  684. }
  685. .order-details .wrapper .actualPay .money {
  686. font-weight: bold;
  687. font-size: 30rpx;
  688. }
  689. .order-details .footer {
  690. width: 100%;
  691. height: 100rpx;
  692. position: fixed;
  693. bottom: 0;
  694. left: 0;
  695. background-color: #fff;
  696. padding: 0 30rpx;
  697. box-sizing: border-box;
  698. }
  699. .order-details .footer .bnt {
  700. width: 150rpx;
  701. height: 60rpx;
  702. text-align: center;
  703. line-height: 60rpx;
  704. border-radius: 50rpx;
  705. color: #fff;
  706. font-size: 27rpx;
  707. }
  708. .order-details .footer .bnt.cancel {
  709. color: #aaa;
  710. border: 1rpx solid #ddd;
  711. }
  712. .order-details .footer .bnt~.bnt {
  713. margin-left: 18rpx;
  714. }
  715. .order-details .writeOff {
  716. background-color: #fff;
  717. margin-top: 13rpx;
  718. padding-bottom: 30rpx;
  719. }
  720. .order-details .writeOff .title {
  721. font-size: 30rpx;
  722. color: #282828;
  723. height: 87rpx;
  724. border-bottom: 1px solid #f0f0f0;
  725. padding: 0 30rpx;
  726. line-height: 87rpx;
  727. }
  728. .order-details .writeOff .grayBg {
  729. background-color: #f2f5f7;
  730. width: 590rpx;
  731. height: 384rpx;
  732. border-radius: 20rpx 20rpx 0 0;
  733. margin: 50rpx auto 0 auto;
  734. padding-top: 55rpx;
  735. position: relative;
  736. }
  737. .order-details .writeOff .grayBg .written {
  738. position: absolute;
  739. top: 0;
  740. right: 0;
  741. width: 60rpx;
  742. height: 60rpx;
  743. }
  744. .order-details .writeOff .grayBg .written image {
  745. width: 100%;
  746. height: 100%;
  747. }
  748. .order-details .writeOff .grayBg .pictrue {
  749. width: 290rpx;
  750. height: 290rpx;
  751. margin: 0 auto;
  752. }
  753. .order-details .writeOff .grayBg .pictrue image {
  754. width: 100%;
  755. height: 100%;
  756. display: block;
  757. }
  758. .order-details .writeOff .gear {
  759. width: 590rpx;
  760. height: 30rpx;
  761. margin: 0 auto;
  762. }
  763. .order-details .writeOff .gear image {
  764. width: 100%;
  765. height: 100%;
  766. display: block;
  767. }
  768. .order-details .writeOff .num {
  769. background-color: #f0c34c;
  770. width: 590rpx;
  771. height: 84rpx;
  772. color: #282828;
  773. font-size: 48rpx;
  774. margin: 0 auto;
  775. border-radius: 0 0 20rpx 20rpx;
  776. text-align: center;
  777. padding-top: 4rpx;
  778. }
  779. .order-details .writeOff .rules {
  780. margin: 46rpx 30rpx 0 30rpx;
  781. border-top: 1px solid #f0f0f0;
  782. padding-top: 10rpx;
  783. }
  784. .order-details .writeOff .rules .item {
  785. margin-top: 20rpx;
  786. }
  787. .order-details .writeOff .rules .item .rulesTitle {
  788. font-size: 28rpx;
  789. color: #282828;
  790. }
  791. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  792. font-size: 30rpx;
  793. color: #333;
  794. margin-right: 8rpx;
  795. margin-top: 5rpx;
  796. }
  797. .order-details .writeOff .rules .item .info {
  798. font-size: 28rpx;
  799. color: #999;
  800. margin-top: 7rpx;
  801. }
  802. .order-details .writeOff .rules .item .info .time {
  803. margin-left: 20rpx;
  804. }
  805. .order-details .map {
  806. height: 86rpx;
  807. font-size: 30rpx;
  808. color: #282828;
  809. line-height: 86rpx;
  810. border-bottom: 1px solid #f0f0f0;
  811. margin-top: 13rpx;
  812. background-color: #fff;
  813. padding: 0 30rpx;
  814. }
  815. .order-details .map .place {
  816. font-size: 26rpx;
  817. width: 176rpx;
  818. height: 50rpx;
  819. border-radius: 25rpx;
  820. line-height: 50rpx;
  821. text-align: center;
  822. }
  823. .order-details .map .place .iconfont {
  824. font-size: 27rpx;
  825. height: 27rpx;
  826. line-height: 27rpx;
  827. margin: 2rpx 3rpx 0 0;
  828. }
  829. .order-details .address .name .iconfont {
  830. font-size: 34rpx;
  831. margin-left: 10rpx;
  832. }
  833. .refund {
  834. padding: 0 30rpx 30rpx;
  835. margin-top: 24rpx;
  836. background-color: #fff;
  837. .title {
  838. display: flex;
  839. align-items: center;
  840. font-size: 30rpx;
  841. color: #333;
  842. height: 86rpx;
  843. border-bottom: 1px solid #f5f5f5;
  844. image {
  845. width: 32rpx;
  846. height: 32rpx;
  847. margin-right: 10rpx;
  848. }
  849. }
  850. .con {
  851. padding-top: 25rpx;
  852. font-size: 28rpx;
  853. color: #868686;
  854. }
  855. }
  856. .orderGoods {
  857. background-color: #fff;
  858. margin-top: 12rpx;
  859. &.on{
  860. margin-top: 0;
  861. }
  862. }
  863. .orderGoods .total {
  864. width: 100%;
  865. height: 86rpx;
  866. padding: 0 30rpx;
  867. border-bottom: 2rpx solid #f0f0f0;
  868. font-size: 30rpx;
  869. color: #282828;
  870. line-height: 86rpx;
  871. box-sizing: border-box;
  872. }
  873. </style>