detail.vue 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267
  1. <template>
  2. <view>
  3. <!-- #ifdef MP || APP-PLUS -->
  4. <NavBar titleText="订单详情" :iconColor="iconColor" :textColor="iconColor" :isScrolling="isScrolling" showBack>
  5. </NavBar>
  6. <!-- #endif -->
  7. <view class="headerBg">
  8. <view :style="{ height: `${getHeight.barTop}px` }"></view>
  9. <view :style="{ height: `${getHeight.barHeight}px` }"></view>
  10. <view class="inner"></view>
  11. </view>
  12. <view class="order-detail pos-order-details">
  13. <view class="header">
  14. <view class="state">{{ info.refundStatus != 3?orderStatus[info.status]:'已退款' }}</view>
  15. <view v-if="[1,2].includes(info.status)&&info.refundStatus != 3" class="data">用户已下单,请及时发货哦~</view>
  16. <view v-if="info.refundStatus != 3&&info.status == 4" class="data">货物正在运输中,等待用户确认收货!</view>
  17. <view v-if="info.refundStatus != 3&&info.status == 3" class="data">用户已下单,您可以联系用户到店自提!</view>
  18. <view v-if="info.refundStatus != 3&&info.status == 5" class="data">用户已经确认收货啦,您可以联系用户索要好评呦!</view>
  19. <view v-if="info.refundStatus != 3&&info.status == 6" class="data">订单已经完成,您可以申请货款提现啦~</view>
  20. <view v-if="info.refundStatus == 3" class="data">此订单退款已原路返回!</view>
  21. </view>
  22. <view class="remarks acea-row row-middle" @click="modify('1')">
  23. <text class="iconfont icon-ic_notes"></text>
  24. <view class="line1 mark-box" style="text-align: left;">
  25. {{info.merchantRemark ? info.merchantRemark : '订单未备注,点击添加备注信息'}}
  26. </view>
  27. </view>
  28. <view class="address" v-if="info.shippingType==1&&info.secondType!=2">
  29. <view class="name">
  30. <text class="iconfont icon-ic_location4"></text>
  31. {{ info.realName}}
  32. <text class="phone">{{ info.userPhone }}</text>
  33. </view>
  34. <view v-if="info.shippingType == 1">地址:{{ info.userAddress }}</view>
  35. </view>
  36. <view class="acea-row row-middle user-box">
  37. <image :src="info.avatar" class="image"></image>
  38. <view class="text">
  39. <view class="acea-row row-middle name">
  40. {{info.nickname}}
  41. </view>
  42. <view v-if="info.phone" class="">{{info.phone}}(ID:{{info.uid}})</view>
  43. <view v-else class="">ID:{{info.uid}}</view>
  44. </view>
  45. </view>
  46. <!-- 未拆单时,正常单 -->
  47. <view class="pos-order-goods split">
  48. <navigator :url="`/pages/goods_details/index?id=${item.product_id}`" hover-class="none"
  49. class="goods acea-row" v-for="(item, index) in info.orderDetailList" :key="index">
  50. <view class="picTxt acea-row">
  51. <view class="pictrue">
  52. <image :src="item.image" />
  53. </view>
  54. <view class="text info-text">
  55. <view class="info line1">{{ item.productName }}</view>
  56. <view class="attr line1">{{ item.sku }}</view>
  57. </view>
  58. </view>
  59. <view class="money">
  60. <BaseMoney :money="item.price" symbolSize="20" integerSize="32" decimalSize="20"></BaseMoney>
  61. <view class="num">共{{ item.payNum }}件</view>
  62. <view class="acea-row row-right">
  63. <view class="writeOff" v-if="item.refundNum">
  64. {{item.refundNum}}件已退款
  65. </view>
  66. </view>
  67. </view>
  68. </navigator>
  69. <view class="mark acea-row" v-if="info.userRemark">
  70. <view class="name">买家留言:</view>
  71. <view class="value line1">{{info.userRemark}}</view>
  72. </view>
  73. </view>
  74. <!-- 结束 -->
  75. <view class="wrapper">
  76. <view class="item acea-row row-between">
  77. <view>订单编号:</view>
  78. <view class="conter acea-row row-middle row-right">
  79. {{ info.orderNo}}
  80. <!-- #ifdef H5 -->
  81. <text class="copy copy-data" :data-clipboard-text="info.orderNo">复制</text>
  82. <!-- #endif -->
  83. <!-- #ifdef MP -->
  84. <text class="copy copy-data" @click="copyNum(info.orderNo)">复制</text>
  85. <!-- #endif -->
  86. </view>
  87. </view>
  88. <view class="item acea-row row-between">
  89. <view>下单时间:</view>
  90. <view class="conter">{{ info.payTime }}</view>
  91. </view>
  92. <view class="item acea-row row-between">
  93. <view>支付方式:</view>
  94. <view class="conter">
  95. {{payType[info.payChannel]}}
  96. </view>
  97. </view>
  98. <view class="item acea-row row-between">
  99. <view>支付时间:</view>
  100. <view class="conter">
  101. {{info.payTime}}
  102. </view>
  103. </view>
  104. <view class="item acea-row row-between">
  105. <view>下单时间:</view>
  106. <view class="conter">
  107. {{info.createTime}}
  108. </view>
  109. </view>
  110. </view>
  111. <view class="wrapper" v-if="info.deliveryType != 'fictitious'">
  112. <view class="item acea-row row-between">
  113. <view>配送方式:</view>
  114. <view v-if="Number(info.secondType) > 4" class='conter'>自动发货</view>
  115. <view v-else-if="Number(info.secondType) == 2" class='conter'>虚拟发货</view>
  116. <view class="conter" v-else>
  117. {{info.shippingType==1?'商家配送':info.shippingType==2?'到店自提':'虚拟发货'}}
  118. </view>
  119. </view>
  120. </view>
  121. <view class="wrapper" v-if="info.orderExtend&&JSON.parse(info.orderExtend).length">
  122. <systemFromInfo :orderExtend="JSON.parse(info.orderExtend)"></systemFromInfo>
  123. </view>
  124. <view class="wrapper">
  125. <view class='item acea-row row-between'>
  126. <view>商品总价(共{{info.totalNum}}件)</view>
  127. <view class='conter'>¥{{info.proTotalPrice}}</view>
  128. </view>
  129. <view class="item acea-row row-between">
  130. <view>运费</view>
  131. <view class="conter">¥{{ info.totalPostage }}</view>
  132. </view>
  133. <view class='item acea-row row-between'>
  134. <view>会员优惠</view>
  135. <view class='conter'>-¥{{info.svipDiscountPrice}}</view>
  136. </view>
  137. <view class="item acea-row row-between">
  138. <view>商家优惠</view>
  139. <view class="conter">-¥{{ info.merCouponPrice }}</view>
  140. </view>
  141. <view class='item acea-row row-between'>
  142. <view>平台优惠</view>
  143. <view class='conter'>-¥{{info.platCouponPrice}}</view>
  144. </view>
  145. <view class='item acea-row row-between'>
  146. <view>积分抵扣(使用{{info.useIntegral}}积分)</view>
  147. <view class='conter'>-¥{{info.integralPrice}}</view>
  148. </view>
  149. <view class="actualPay acea-row row-right">
  150. 实付款:
  151. <BaseMoney :money="info.payPrice" symbolSize="24" integerSize="40" decimalSize="24" color="#E93323">
  152. </BaseMoney>
  153. </view>
  154. </view>
  155. <view class="height-add"></view>
  156. <view class="footer acea-row row-right row-middle">
  157. <view class="tomore" v-if="info.status==2&&!info.userRefundSign">
  158. <span @click="toMore">更多</span>
  159. <view class="more-operate" v-if="moreShow">
  160. <view class="sjx"></view>
  161. <view class="more-operate-item" @click="print">
  162. 小票打印
  163. </view>
  164. <view class="more-operate-item" @click="modify('1')">
  165. 订单备注
  166. </view>
  167. </view>
  168. </view>
  169. <view class="bnt cancel" @click="print" v-if="info.status!=2||(info.status==2&&info.userRefundSign)">
  170. 小票打印</view>
  171. <view class="bnt cancel" @click="modify('1')"
  172. v-if="info.status!=2||(info.status==2&&info.userRefundSign)">订单备注</view>
  173. <view class="bnt cancel" v-if="!info.userRefundSign&&info.totalNum!=refundSum" @click="modify('2',1)">
  174. 直接退款</view>
  175. <view class="bnt delivery" v-if="[1,2].includes(info.status)&&info.refundStatus != 3"
  176. @click="goDelivery(info)">立即发货</view>
  177. <view class="bnt delivery" v-if="[2,4,5,6].includes(info.status)&&info.shippingType=='1'"
  178. @click="goLogistics(info)">发货记录
  179. </view>
  180. <view class="bnt delivery" v-if="info.status==3&&info.refundStatus!=3" @click="verify">立即核销</view>
  181. </view>
  182. <PriceChange :change="change" :orderInfo="info" :isRefund="isRefund"
  183. v-on:statusChange="statusChange($event)" v-on:closechange="changeclose($event)"
  184. v-on:savePrice="savePrice" :status="status"></PriceChange>
  185. </view>
  186. <uni-popup ref="hs_popup" background-color="#fff" borderRadius="10px">
  187. <view class="sh_popup-content"
  188. :class="{ 'popup-height': popup_center === 'left' || popup_center === 'right' }">
  189. <view class="sh_popup_title">
  190. 打印小票
  191. </view>
  192. <view class="sh_popup_text">
  193. 你确定要打印此订单小票吗?
  194. </view>
  195. <view class="sh_popup_btn">
  196. <view class="no_btn btn" @click="hsPopupClose">取消</view>
  197. <view class="yes_btn btn" @click="toRecycle">确认</view>
  198. </view>
  199. </view>
  200. </uni-popup>
  201. </view>
  202. </template>
  203. <script>
  204. import PriceChange from "../components/PriceChange/index.vue";
  205. import countDown from '@/components/countDown/index.vue'
  206. import BaseMoney from "../components/BaseMoney.vue";
  207. import systemFromInfo from '@/components/systemFromInfo';
  208. // #ifdef MP || APP-PLUS
  209. import NavBar from "../components/NavBar.vue";
  210. // #endif
  211. // #ifdef H5
  212. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  213. // #endif
  214. import {
  215. employeeOrderInfo,
  216. employeeOrderMark,
  217. orderInvoiceListInfo,
  218. orderGetVerfication,
  219. printReceipt
  220. } from '@/api/work.js';
  221. import {
  222. isMoney
  223. } from '@/utils/validate.js'
  224. export default {
  225. name: "AdminOrder",
  226. components: {
  227. PriceChange,
  228. countDown,
  229. BaseMoney,
  230. systemFromInfo,
  231. // #ifdef MP || APP-PLUS
  232. NavBar,
  233. // #endif
  234. },
  235. props: {},
  236. data: function() {
  237. return {
  238. popup_center: 'center',
  239. moreShow: false,
  240. payType: {
  241. 'public': '公众号支付',
  242. 'mini': '小程序支付',
  243. 'h5': '网页支付支付',
  244. 'yue': '余额支付',
  245. 'wechatIos': '微信Ios支付',
  246. 'wechatAndroid': '微信Android支付',
  247. 'alipay': '支付宝支付',
  248. 'alipayApp': '支付宝App支付'
  249. },
  250. orderStatus: ['待支付', '待发货', '部分发货', '待核销', '待收货', '已收货', '已完成', '已取消'],
  251. openErp: false,
  252. giveData: {
  253. give_integral: 0,
  254. give_coupon: []
  255. },
  256. giveCartInfo: [],
  257. totalNmu: 0,
  258. order: false,
  259. change: false,
  260. order_id: "",
  261. status: "",
  262. title: "标题",
  263. types: "",
  264. statusType: '',
  265. clickNum: 1,
  266. isRefund: 0, //1是仅退款;0是同意退货退款
  267. iconColor: '#FFFFFF',
  268. isScrolling: false,
  269. getHeight: this.$util.getWXStatusHeight(),
  270. confirmShow: false,
  271. info: {},
  272. refundSum: '',
  273. orderNo: ''
  274. };
  275. },
  276. onShow() {
  277. let self = this
  278. // #ifdef H5
  279. this.$nextTick(function() {
  280. var clipboard = new ClipboardJS('.copy-data');
  281. // var copybtn = document.getElementsByClassName("copy-data");
  282. // var clipboard = new Clipboard(copybtn);
  283. clipboard.on('success', function(e) {
  284. self.$util.Tips({
  285. title: '复制成功'
  286. })
  287. });
  288. clipboard.on('error', function(e) {
  289. self.$util.Tips({
  290. title: '复制失败'
  291. })
  292. });
  293. });
  294. // #endif
  295. this.initOrderInfo(this.orderNo)
  296. },
  297. onLoad(options) {
  298. this.orderNo = options.orderNo
  299. this.initOrderInfo(options.orderNo)
  300. },
  301. onPageScroll(e) {
  302. // #ifdef MP || APP-PLUS
  303. if (e.scrollTop > 50) {
  304. this.iconColor = '#333333';
  305. this.isScrolling = true;
  306. } else {
  307. this.iconColor = '#FFFFFF';
  308. this.isScrolling = false;
  309. }
  310. // #endif
  311. },
  312. methods: {
  313. hsPopupClose() {
  314. this.$refs.hs_popup.close()
  315. },
  316. toRecycle() {
  317. printReceipt(this.info.orderNo).then(res => {
  318. if (res.code == 200) {
  319. this.$util.Tips({
  320. title: '操作成功'
  321. })
  322. this.$refs.hs_popup.close()
  323. }
  324. })
  325. },
  326. hsPopupClose() {
  327. this.$refs.hs_popup.close()
  328. },
  329. print() {
  330. this.$refs.hs_popup.open('center')
  331. },
  332. //更多
  333. toMore() {
  334. this.moreShow = !this.moreShow
  335. },
  336. initOrderInfo(orderNo) {
  337. employeeOrderInfo(orderNo).then(res => {
  338. this.info = res.data
  339. let refundSum = 0
  340. let detailList = this.info.orderDetailList
  341. detailList.forEach(item => {
  342. refundSum += item.refundNum
  343. })
  344. this.refundSum = refundSum
  345. })
  346. },
  347. //核销
  348. verify() {
  349. orderGetVerfication({
  350. verifyCode: this.info.verifyCode
  351. }).then(res => {
  352. if (res.code == 200) {
  353. uni.navigateTo({
  354. url: `/pages/admin/cancel/list?info=${JSON.stringify(res.data)}&verifyCode=${this.info.verifyCode}`
  355. })
  356. } else {
  357. this.$util.Tips({
  358. title: res.message
  359. });
  360. }
  361. })
  362. },
  363. //发货
  364. goDelivery(info) {
  365. if (info.refundStatus == 1) return this.$util.Tips({
  366. title: '请处理售后,再操作',
  367. });
  368. uni.navigateTo({
  369. url: `/pages/admin/order/send?orderNo=${this.info.orderNo}`
  370. })
  371. },
  372. //发货记录
  373. goLogistics(info) {
  374. if (info.secondType == 2) {
  375. uni.navigateTo({
  376. url: `/pages/admin/logistics/record?orderNo=${this.orderNo}&index=0&secodeType=2`
  377. })
  378. } else {
  379. orderInvoiceListInfo(info.orderNo).then(res => {
  380. uni.navigateTo({
  381. url: `/pages/admin/logistics/index?orderNo=${info.orderNo}`
  382. })
  383. })
  384. }
  385. },
  386. modify: function(status, type) {
  387. if (status == 2) {
  388. this.isRefund = type
  389. uni.navigateTo({
  390. url: `/pages/admin/refund/index?orderNo=${this.info.orderNo}&type=${this.info.type}`
  391. })
  392. } else {
  393. this.change = true;
  394. this.status = status;
  395. }
  396. },
  397. async savePrice(opt) {
  398. if (!opt.remark) {
  399. return this.$util.Tips({
  400. title: '请输入备注'
  401. })
  402. } else {
  403. this.toMark(this.info.orderNo, opt.remark)
  404. }
  405. },
  406. //备注
  407. toMark(orderNo, remark) {
  408. employeeOrderMark({
  409. orderNo,
  410. remark
  411. }).then(res => {
  412. res.code == 200 && (this.change = false);
  413. this.initOrderInfo(this.info.orderNo)
  414. return this.$util.Tips({
  415. title: '备注成功'
  416. })
  417. })
  418. },
  419. changeclose: function(msg) {
  420. this.change = msg;
  421. },
  422. //复制
  423. // #ifdef MP
  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 lang="scss" scoped>
  446. .headerBg {
  447. position: absolute;
  448. top: 0;
  449. left: 0;
  450. width: 100%;
  451. background-image: linear-gradient(360deg, #F5F5F5 0%, rgba(245, 245, 245, 0) 100%),
  452. linear-gradient(270deg, #01ABF8 0%, #2A7EFB 100%);
  453. background-position: left bottom, left top;
  454. background-repeat: no-repeat;
  455. background-size: 100% 120rpx, 100% 100%;
  456. .inner {
  457. height: 356rpx;
  458. }
  459. }
  460. .order-detail {
  461. position: absolute;
  462. width: 100%;
  463. padding: 0 20rpx;
  464. }
  465. .height-add {
  466. height: calc(120rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  467. height: calc(120rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  468. }
  469. .giveGoods {
  470. .item {
  471. padding: 14rpx 30rpx 14rpx 0;
  472. margin-left: 30rpx;
  473. border-top: 1px solid #eee;
  474. .picTxt {
  475. .pictrue {
  476. width: 76rpx;
  477. height: 76rpx;
  478. border-radius: 6rpx;
  479. background-color: #F5F5F5;
  480. color: #2a7efb;
  481. .iconfont {
  482. font-size: 34rpx;
  483. }
  484. image {
  485. width: 100%;
  486. height: 100%;
  487. border-radius: 6rpx;
  488. }
  489. margin-right: 16rpx;
  490. }
  491. .texts {
  492. width: 360rpx;
  493. color: #999999;
  494. font-size: 20rpx;
  495. .name {
  496. color: #333;
  497. }
  498. .limit {
  499. font-size: 20rpx;
  500. margin-top: 4rpx;
  501. }
  502. }
  503. }
  504. .num {
  505. color: #999999;
  506. font-size: 20rpx;
  507. }
  508. }
  509. }
  510. .splitTitle {
  511. width: 100%;
  512. height: 80rpx;
  513. background-color: #fff;
  514. margin-top: 17rpx;
  515. border-bottom: 1px solid #e5e5e5;
  516. padding: 0 30rpx;
  517. }
  518. .splitTitle .title {
  519. color: #2291f8;
  520. }
  521. /*商户管理订单详情*/
  522. .pos-order-details .header {
  523. // background: linear-gradient(270deg, #1cd1dc 0%, #2291f8 100%);
  524. }
  525. .pos-order-details .header .state {}
  526. .pos-order-details .header .data {}
  527. .pos-order-details .header .data .order-num {
  528. font-size: 26upx;
  529. margin-bottom: 8upx;
  530. }
  531. .pos-order-details .remarks {
  532. width: 710rpx;
  533. height: 100rpx;
  534. background: #FFFFFF;
  535. border-radius: 14rpx;
  536. display: flex;
  537. padding-left: 32rpx;
  538. border-radius: 24rpx;
  539. background: #FFFFFF;
  540. }
  541. .pos-order-details .remarks .iconfont {
  542. font-size: 32rpx;
  543. color: #000000;
  544. }
  545. .pos-order-details .remarks input {
  546. flex: 1;
  547. height: 100rpx;
  548. padding-left: 20rpx;
  549. font-size: 28rpx;
  550. }
  551. .pos-order-details .remarks input::placeholder {
  552. color: #CCCCCC;
  553. }
  554. .pos-order-details .orderingUser {
  555. font-size: 26upx;
  556. color: #282828;
  557. padding: 0 30upx;
  558. height: 67upx;
  559. background-color: #fff;
  560. margin-top: 16upx;
  561. border-bottom: 1px solid #f5f5f5;
  562. }
  563. .pos-order-details .orderingUser .iconfont {
  564. font-size: 40upx;
  565. color: #2a7efb;
  566. margin-right: 15upx;
  567. }
  568. .pos-order-details .address {
  569. margin-top: 0;
  570. }
  571. .pos-order-details .footer .more {
  572. font-size: 27upx;
  573. color: #aaa;
  574. width: 100upx;
  575. height: 64upx;
  576. text-align: center;
  577. line-height: 64upx;
  578. margin-right: 25upx;
  579. position: relative;
  580. }
  581. .pos-order-details .footer .delivery {
  582. border-color: #2A7EFB !important;
  583. background: #2A7EFB;
  584. color: #FFFFFF !important;
  585. }
  586. .pos-order-details .footer .more .order .arrow {
  587. width: 0;
  588. height: 0;
  589. border-left: 11upx solid transparent;
  590. border-right: 11upx solid transparent;
  591. border-top: 20upx solid #e5e5e5;
  592. position: absolute;
  593. left: 15upx;
  594. bottom: -18upx;
  595. }
  596. .pos-order-details .footer .more .order .arrow:before {
  597. content: '';
  598. width: 0;
  599. height: 0;
  600. border-left: 9upx solid transparent;
  601. border-right: 9upx solid transparent;
  602. border-top: 19upx solid #fff;
  603. position: absolute;
  604. left: -10upx;
  605. bottom: 0;
  606. }
  607. .pos-order-details .footer .more .order {
  608. width: 200upx;
  609. background-color: #fff;
  610. border: 1px solid #eee;
  611. border-radius: 10upx;
  612. position: absolute;
  613. top: -200upx;
  614. z-index: 9;
  615. }
  616. .pos-order-details .footer .more .order .item {
  617. height: 77upx;
  618. line-height: 77upx;
  619. }
  620. .pos-order-details .footer .more .order .item~.item {
  621. border-top: 1px solid #f5f5f5;
  622. }
  623. .pos-order-details .footer .more .moreName {
  624. width: 100%;
  625. height: 100%;
  626. }
  627. /*订单详情*/
  628. .order-detail .header {
  629. padding: 48rpx 0 30rpx 12rpx;
  630. }
  631. .order-detail .header.on {
  632. background-color: #666 !important;
  633. }
  634. .order-detail .header .pictrue {
  635. width: 110upx;
  636. height: 110upx;
  637. }
  638. .order-detail .header .pictrue image {
  639. width: 100%;
  640. height: 100%;
  641. }
  642. .order-detail .header .state {
  643. font-weight: 500;
  644. font-size: 36rpx;
  645. line-height: 50rpx;
  646. color: #FFFFFF;
  647. }
  648. .order-detail .header .data {
  649. margin-top: 8rpx;
  650. font-size: 26rpx;
  651. line-height: 36rpx;
  652. color: #FFFFFF;
  653. }
  654. .order-detail .header.on .data {
  655. margin-left: 0;
  656. }
  657. .order-detail .header .data .time {
  658. margin-left: 20rpx;
  659. }
  660. .order-detail .header .data .state {
  661. font-size: 30upx;
  662. font-weight: bold;
  663. color: #fff;
  664. margin-bottom: 7upx;
  665. }
  666. /* .order-details .header .data .time{margin-left:20upx;} */
  667. .order-detail .nav {
  668. background-color: #fff;
  669. font-size: 26upx;
  670. color: #282828;
  671. padding: 25upx 0;
  672. }
  673. .order-detail .nav .navCon {
  674. padding: 0 40upx;
  675. }
  676. .order-detail .nav .navCon .on {
  677. font-weight: bold;
  678. color: #e93323;
  679. }
  680. .order-detail .nav .progress {
  681. padding: 0 65upx;
  682. margin-top: 10upx;
  683. }
  684. .order-detail .nav .progress .line {
  685. width: 100upx;
  686. height: 2upx;
  687. background-color: #939390;
  688. }
  689. .order-detail .nav .progress .iconfont {
  690. font-size: 25upx;
  691. color: #939390;
  692. margin-top: -2upx;
  693. width: 30upx;
  694. height: 30upx;
  695. line-height: 33upx;
  696. text-align: center;
  697. margin-right: 0 !important;
  698. }
  699. .order-detail .address {
  700. position: relative;
  701. padding: 32rpx 32rpx 40rpx;
  702. border-radius: 24rpx;
  703. margin-top: 20rpx;
  704. background: #FFFFFF;
  705. overflow: hidden;
  706. font-size: 24rpx;
  707. line-height: 34rpx;
  708. color: #999999;
  709. }
  710. .order-detail .address .name {
  711. margin-bottom: 12rpx;
  712. font-weight: 500;
  713. font-size: 30rpx;
  714. line-height: 42rpx;
  715. color: #333333;
  716. }
  717. .order-detail .address .name .iconfont {
  718. margin-right: 8rpx;
  719. font-size: 32rpx;
  720. }
  721. .order-detail .address .name .phone {
  722. margin-left: 40upx;
  723. }
  724. .order-detail .line {
  725. position: absolute;
  726. bottom: 0;
  727. left: 0;
  728. width: 100%;
  729. height: 4rpx;
  730. }
  731. .order-detail .line image {
  732. width: 100%;
  733. height: 100%;
  734. display: block;
  735. }
  736. .order-detail .wrapper {
  737. padding: 32rpx 24rpx;
  738. border-radius: 24rpx;
  739. margin-top: 20rpx;
  740. background: #FFFFFF;
  741. }
  742. .order-detail .wrapper .item {
  743. font-size: 28rpx;
  744. line-height: 40rpx;
  745. color: #333333;
  746. }
  747. .order-detail .wrapper .item~.item {
  748. margin-top: 24rpx;
  749. }
  750. .order-detail .wrapper .item .conter {
  751. // color: #868686;
  752. // width: 468rpx;
  753. // display: flex;
  754. // flex-wrap: nowrap;
  755. // justify-content: flex-end;
  756. // text-align: right;
  757. .pictrue {
  758. width: 80rpx;
  759. height: 80rpx;
  760. margin-left: 6rpx;
  761. image {
  762. width: 100%;
  763. height: 100%;
  764. border-radius: 6rpx;
  765. }
  766. }
  767. }
  768. .order-detail .wrapper .item .conter .copy {
  769. height: 36rpx;
  770. padding: 0 12rpx;
  771. border: 0;
  772. border-radius: 18rpx;
  773. margin-left: 8rpx;
  774. background: #F5F5F5;
  775. font-size: 22rpx;
  776. line-height: 36rpx;
  777. color: #333333;
  778. }
  779. .order-detail .wrapper .actualPay {
  780. margin-top: 26rpx;
  781. align-items: center;
  782. }
  783. .order-detail .wrapper .actualPay .money {
  784. font-weight: bold;
  785. font-size: 30upx;
  786. color: #e93323;
  787. }
  788. .order-detail .footer {
  789. width: 100%;
  790. height: 100upx;
  791. position: fixed;
  792. bottom: 0;
  793. left: 0;
  794. background-color: #fff;
  795. padding: 0 30upx;
  796. border-top: 1px solid #eee;
  797. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  798. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  799. padding-bottom: calc(0rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  800. padding-bottom: calc(0rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  801. }
  802. .order-detail .footer .wait {
  803. color: #2a7efb;
  804. margin-right: 30rpx;
  805. }
  806. .order-detail .footer .bnt {
  807. width: 144rpx;
  808. height: 56rpx;
  809. border: 1rpx solid #CCCCCC;
  810. line-height: 54rpx;
  811. text-align: center;
  812. border-radius: 28rpx;
  813. font-size: 24rpx;
  814. color: #333333;
  815. transform: rotateZ(360deg);
  816. &.on {
  817. color: #c5c8ce !important;
  818. background: #f7f7f7 !important;
  819. border: 1px solid #dcdee2 !important;
  820. }
  821. }
  822. .order-detail .footer .bnt.cancel {
  823. // color: #333333;
  824. // border: 1px solid #CCCCCC;
  825. }
  826. .order-detail .footer .bnt.default {
  827. color: #444;
  828. border: 1px solid #444;
  829. }
  830. .order-detail .footer .bnt~.bnt {
  831. margin-left: 16rpx;
  832. }
  833. .pos-order-goods {
  834. padding: 32rpx 24rpx;
  835. border-radius: 24rpx;
  836. background: #FFFFFF;
  837. }
  838. .pos-order-goods.split {
  839. margin-top: 20rpx;
  840. }
  841. .pos-order-goods .title {
  842. height: 40rpx;
  843. margin-bottom: 32rpx;
  844. font-size: 28rpx;
  845. color: #333333;
  846. }
  847. .pos-order-goods .title .btn {
  848. font-size: 26rpx;
  849. color: #999999;
  850. }
  851. .pos-order-goods .title .btn .iconfont {
  852. font-size: 24rpx;
  853. }
  854. .pos-order-goods.split .goods {}
  855. .pos-order-goods .goods~.goods {
  856. margin-top: 32rpx;
  857. }
  858. .pos-order-goods .goods .picTxt {
  859. flex: 1;
  860. min-width: 0;
  861. }
  862. .pos-order-goods .goods .picTxt .pictrue {
  863. width: 136rpx;
  864. height: 136rpx;
  865. }
  866. .pos-order-goods .goods .picTxt .pictrue image {
  867. width: 100%;
  868. height: 100%;
  869. border-radius: 16rpx;
  870. }
  871. .pos-order-goods .goods .picTxt .text {
  872. flex: 1;
  873. min-width: 0;
  874. padding-left: 20rpx;
  875. }
  876. .pos-order-goods .goods .picTxt .text .info {
  877. font-size: 28rpx;
  878. line-height: 40rpx;
  879. color: #333333;
  880. }
  881. .pos-order-goods .goods .picTxt .text .info .label {
  882. color: #ff4c3c;
  883. }
  884. .pos-order-goods .goods .picTxt .text .attr {
  885. margin-top: 8rpx;
  886. font-size: 24rpx;
  887. line-height: 34rpx;
  888. color: #999999;
  889. }
  890. .pos-order-goods .goods .money {
  891. width: 144rpx;
  892. text-align: right;
  893. }
  894. .pos-order-goods .goods .money .writeOff {
  895. font-size: 24upx;
  896. margin-top: 17upx;
  897. color: #1890FF;
  898. }
  899. .pos-order-goods .goods .money .writeOff .on {
  900. color: #FF7E00;
  901. }
  902. .pos-order-goods .goods .money .x-money {
  903. color: #282828;
  904. }
  905. .pos-order-goods .goods .money .num {
  906. margin-top: 10rpx;
  907. font-size: 24rpx;
  908. line-height: 34rpx;
  909. color: #999999;
  910. }
  911. .pos-order-goods .goods .money .y-money {
  912. color: #999;
  913. text-decoration: line-through;
  914. }
  915. .public-total {
  916. font-size: 28upx;
  917. color: #282828;
  918. border-top: 1px solid #eee;
  919. height: 92upx;
  920. line-height: 92upx;
  921. text-align: right;
  922. padding: 0 30upx;
  923. background-color: #fff;
  924. }
  925. .public-total .money {
  926. color: #ff4c3c;
  927. }
  928. .copy-data {
  929. font-size: 10px;
  930. color: #333;
  931. -webkit-border-radius: 1px;
  932. border-radius: 1px;
  933. border: 1px solid #666;
  934. padding: 0px 7px;
  935. margin-left: 12px;
  936. height: 20px;
  937. }
  938. .pos-order-goods .mark {
  939. margin-top: 32rpx;
  940. font-size: 28rpx;
  941. line-height: 40rpx;
  942. color: #333333;
  943. .value {
  944. flex: 1;
  945. }
  946. }
  947. .mask {
  948. z-index: 21;
  949. }
  950. .confirm-popup {
  951. position: fixed;
  952. top: 50%;
  953. right: 75rpx;
  954. left: 75rpx;
  955. z-index: 21;
  956. transform: translateY(-50%);
  957. border-radius: 32rpx;
  958. background: #FFFFFF;
  959. text-align: center;
  960. .title {
  961. padding: 40rpx 32rpx 0;
  962. font-weight: 500;
  963. font-size: 32rpx;
  964. line-height: 52rpx;
  965. color: #333333;
  966. }
  967. .info {
  968. padding: 24rpx 40rpx 0;
  969. font-size: 30rpx;
  970. line-height: 42rpx;
  971. color: #666666;
  972. }
  973. .btn-box {
  974. padding: 40rpx;
  975. }
  976. .btn {
  977. flex: 1;
  978. height: 72rpx;
  979. border: 1rpx solid #2A7EFB;
  980. border-radius: 36rpx;
  981. margin-left: 32rpx;
  982. font-weight: 500;
  983. font-size: 26rpx;
  984. line-height: 70rpx;
  985. color: #2A7EFB;
  986. transform: rotateZ(360deg);
  987. &.primary {
  988. background: #2A7EFB;
  989. color: #FFFFFF;
  990. }
  991. }
  992. }
  993. .user-box {
  994. padding: 24rpx;
  995. border-radius: 24rpx;
  996. margin-top: 20rpx;
  997. background: #FFFFFF;
  998. .image {
  999. width: 80rpx;
  1000. height: 80rpx;
  1001. border-radius: 50%;
  1002. }
  1003. .text {
  1004. flex: 1;
  1005. padding-left: 20rpx;
  1006. font-size: 24rpx;
  1007. line-height: 34rpx;
  1008. color: #999999;
  1009. }
  1010. .name {
  1011. margin-bottom: 4rpx;
  1012. font-weight: 500;
  1013. font-size: 28rpx;
  1014. line-height: 40rpx;
  1015. color: #333333;
  1016. }
  1017. .svip {
  1018. width: 56rpx;
  1019. height: 26rpx;
  1020. border-radius: 14rpx;
  1021. margin-left: 12rpx;
  1022. background: linear-gradient(90deg, #484643 0%, #1F1B17 100%);
  1023. text-align: center;
  1024. font-weight: 600;
  1025. font-size: 18rpx;
  1026. line-height: 26rpx;
  1027. color: #FDDAA4;
  1028. }
  1029. .grade {
  1030. height: 26rpx;
  1031. padding: 0 10rpx;
  1032. border: 1rpx solid #FACC7D;
  1033. border-radius: 14rpx;
  1034. margin-left: 10rpx;
  1035. background: #FEF0D9;
  1036. font-weight: 500;
  1037. font-size: 18rpx;
  1038. line-height: 24rpx;
  1039. color: #DFA541;
  1040. transform: rotateZ(360deg);
  1041. .iconfont {
  1042. margin-right: 6rpx;
  1043. font-size: 18rpx;
  1044. }
  1045. }
  1046. }
  1047. .tomore {
  1048. font-weight: 400;
  1049. font-size: 24rpx;
  1050. color: #333333;
  1051. margin-right: 20rpx;
  1052. position: relative;
  1053. }
  1054. .more-operate {
  1055. position: absolute;
  1056. top: -120rpx;
  1057. left: -50rpx;
  1058. width: 150rpx;
  1059. height: 100rpx;
  1060. background: #fff;
  1061. border: 1px solid #eee;
  1062. border-radius: 10rpx;
  1063. .sjx {
  1064. width: 16rpx;
  1065. height: 16rpx;
  1066. background: #fff;
  1067. border: 1px solid #eee;
  1068. position: absolute;
  1069. top: 92rpx;
  1070. left: 68rpx;
  1071. transform: rotateZ(45deg);
  1072. }
  1073. .more-operate-item {
  1074. font-size: 24rpx;
  1075. color: #333333;
  1076. text-align: center;
  1077. height: 50rpx;
  1078. line-height: 50rpx;
  1079. }
  1080. }
  1081. /deep/ .uni-popup__wrapper {
  1082. width: 600rpx;
  1083. height: 310rpx;
  1084. background: #FFFFFF;
  1085. border-radius: 14rpx;
  1086. }
  1087. .sh_popup-content {
  1088. // border-radius: 14rpx;
  1089. // padding-bottom: 20rpx;
  1090. .sh_popup_title {
  1091. font-weight: 500;
  1092. font-size: 32rpx;
  1093. color: #333333;
  1094. text-align: center;
  1095. margin-top: 40rpx;
  1096. }
  1097. .sh_popup_text {
  1098. font-weight: 400;
  1099. font-size: 30rpx;
  1100. color: #666666;
  1101. text-align: center;
  1102. margin-top: 30rpx;
  1103. }
  1104. .sh_popup_btn {
  1105. display: flex;
  1106. justify-content: space-between;
  1107. margin-top: 40rpx;
  1108. padding: 0 47rpx;
  1109. .btn {
  1110. width: 244rpx;
  1111. height: 72rpx;
  1112. border-radius: 50rpx;
  1113. text-align: center;
  1114. line-height: 72rpx;
  1115. }
  1116. .no_btn {
  1117. border: 1px solid #2A7EFB;
  1118. color: #2A7EFB;
  1119. }
  1120. .yes_btn {
  1121. background: #2A7EFB;
  1122. color: #FFFFFF;
  1123. }
  1124. }
  1125. }
  1126. .info-text {
  1127. display: flex;
  1128. flex-direction: column;
  1129. justify-content: space-between;
  1130. }
  1131. .line1 {
  1132. width: 90%;
  1133. }
  1134. .order-details .wrapper {
  1135. padding: 0;
  1136. }
  1137. </style>