integral_order_details.vue 21 KB

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