detail.vue 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270
  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">
  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="iconfont icon-ic_location4 acea-row row-middle name">
  40. {{orderInfo.merName}}
  41. </view>
  42. <view v-if="orderInfo.merPhone" class="">{{orderInfo.merPhone}}</view>
  43. <view v-if="info.shippingType == 1">地址:{{ orderInfo.merAddress }}</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">¥{{ orderInfo.deliveCharge}}</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. orderInfo: {}
  275. };
  276. },
  277. onShow() {
  278. let self = this
  279. // #ifdef H5
  280. this.$nextTick(function() {
  281. var clipboard = new ClipboardJS('.copy-data');
  282. // var copybtn = document.getElementsByClassName("copy-data");
  283. // var clipboard = new Clipboard(copybtn);
  284. clipboard.on('success', function(e) {
  285. self.$util.Tips({
  286. title: '复制成功'
  287. })
  288. });
  289. clipboard.on('error', function(e) {
  290. self.$util.Tips({
  291. title: '复制失败'
  292. })
  293. });
  294. });
  295. // #endif
  296. this.initOrderInfo(this.orderNo)
  297. },
  298. onLoad(options) {
  299. this.orderInfo=JSON.parse(options.orderInfo);
  300. //this.orderNo = options.orderNo
  301. //this.deliveCharge=options.deliveCharge
  302. this.initOrderInfo(this.orderInfo.orderNo)
  303. },
  304. onPageScroll(e) {
  305. // #ifdef MP || APP-PLUS
  306. if (e.scrollTop > 50) {
  307. this.iconColor = '#333333';
  308. this.isScrolling = true;
  309. } else {
  310. this.iconColor = '#FFFFFF';
  311. this.isScrolling = false;
  312. }
  313. // #endif
  314. },
  315. methods: {
  316. hsPopupClose() {
  317. this.$refs.hs_popup.close()
  318. },
  319. toRecycle() {
  320. printReceipt(this.info.orderNo).then(res => {
  321. if (res.code == 200) {
  322. this.$util.Tips({
  323. title: '操作成功'
  324. })
  325. this.$refs.hs_popup.close()
  326. }
  327. })
  328. },
  329. hsPopupClose() {
  330. this.$refs.hs_popup.close()
  331. },
  332. print() {
  333. this.$refs.hs_popup.open('center')
  334. },
  335. //更多
  336. toMore() {
  337. this.moreShow = !this.moreShow
  338. },
  339. initOrderInfo(orderNo) {
  340. employeeOrderInfo(orderNo).then(res => {
  341. this.info = res.data
  342. let refundSum = 0
  343. let detailList = this.info.orderDetailList
  344. detailList.forEach(item => {
  345. refundSum += item.refundNum
  346. })
  347. this.refundSum = refundSum
  348. })
  349. },
  350. //核销
  351. verify() {
  352. orderGetVerfication({
  353. verifyCode: this.info.verifyCode
  354. }).then(res => {
  355. if (res.code == 200) {
  356. uni.navigateTo({
  357. url: `/pages/admin/cancel/list?info=${JSON.stringify(res.data)}&verifyCode=${this.info.verifyCode}`
  358. })
  359. } else {
  360. this.$util.Tips({
  361. title: res.message
  362. });
  363. }
  364. })
  365. },
  366. //发货
  367. goDelivery(info) {
  368. if (info.refundStatus == 1) return this.$util.Tips({
  369. title: '请处理售后,再操作',
  370. });
  371. uni.navigateTo({
  372. url: `/pages/admin/order/send?orderNo=${this.info.orderNo}`
  373. })
  374. },
  375. //发货记录
  376. goLogistics(info) {
  377. if (info.secondType == 2) {
  378. uni.navigateTo({
  379. url: `/pages/admin/logistics/record?orderNo=${this.orderNo}&index=0&secodeType=2`
  380. })
  381. } else {
  382. orderInvoiceListInfo(info.orderNo).then(res => {
  383. uni.navigateTo({
  384. url: `/pages/admin/logistics/index?orderNo=${info.orderNo}`
  385. })
  386. })
  387. }
  388. },
  389. modify: function(status, type) {
  390. if (status == 2) {
  391. this.isRefund = type
  392. uni.navigateTo({
  393. url: `/pages/admin/refund/index?orderNo=${this.info.orderNo}&type=${this.info.type}`
  394. })
  395. } else {
  396. this.change = true;
  397. this.status = status;
  398. }
  399. },
  400. async savePrice(opt) {
  401. if (!opt.remark) {
  402. return this.$util.Tips({
  403. title: '请输入备注'
  404. })
  405. } else {
  406. this.toMark(this.info.orderNo, opt.remark)
  407. }
  408. },
  409. //备注
  410. toMark(orderNo, remark) {
  411. employeeOrderMark({
  412. orderNo,
  413. remark
  414. }).then(res => {
  415. res.code == 200 && (this.change = false);
  416. this.initOrderInfo(this.info.orderNo)
  417. return this.$util.Tips({
  418. title: '备注成功'
  419. })
  420. })
  421. },
  422. changeclose: function(msg) {
  423. this.change = msg;
  424. },
  425. //复制
  426. // #ifdef MP
  427. copyNum(id) {
  428. uni.setClipboardData({
  429. data: id,
  430. success: function() {}
  431. });
  432. },
  433. // #endif
  434. // #ifdef H5
  435. webCopy(item, index) {
  436. let items = item
  437. let indexs = index
  438. let self = this
  439. if (self.clickNum == 1) {
  440. self.clickNum += 1
  441. self.webCopy(items, indexs)
  442. }
  443. },
  444. // #endif
  445. }
  446. };
  447. </script>
  448. <style lang="scss" scoped>
  449. .headerBg {
  450. position: absolute;
  451. top: 0;
  452. left: 0;
  453. width: 100%;
  454. background-image: linear-gradient(360deg, #F5F5F5 0%, rgba(245, 245, 245, 0) 100%),
  455. linear-gradient(270deg, #01ABF8 0%, #2A7EFB 100%);
  456. background-position: left bottom, left top;
  457. background-repeat: no-repeat;
  458. background-size: 100% 120rpx, 100% 100%;
  459. .inner {
  460. height: 356rpx;
  461. }
  462. }
  463. .order-detail {
  464. position: absolute;
  465. width: 100%;
  466. padding: 0 20rpx;
  467. }
  468. .height-add {
  469. height: calc(120rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  470. height: calc(120rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  471. }
  472. .giveGoods {
  473. .item {
  474. padding: 14rpx 30rpx 14rpx 0;
  475. margin-left: 30rpx;
  476. border-top: 1px solid #eee;
  477. .picTxt {
  478. .pictrue {
  479. width: 76rpx;
  480. height: 76rpx;
  481. border-radius: 6rpx;
  482. background-color: #F5F5F5;
  483. color: #2a7efb;
  484. .iconfont {
  485. font-size: 34rpx;
  486. }
  487. image {
  488. width: 100%;
  489. height: 100%;
  490. border-radius: 6rpx;
  491. }
  492. margin-right: 16rpx;
  493. }
  494. .texts {
  495. width: 360rpx;
  496. color: #999999;
  497. font-size: 20rpx;
  498. .name {
  499. color: #333;
  500. }
  501. .limit {
  502. font-size: 20rpx;
  503. margin-top: 4rpx;
  504. }
  505. }
  506. }
  507. .num {
  508. color: #999999;
  509. font-size: 20rpx;
  510. }
  511. }
  512. }
  513. .splitTitle {
  514. width: 100%;
  515. height: 80rpx;
  516. background-color: #fff;
  517. margin-top: 17rpx;
  518. border-bottom: 1px solid #e5e5e5;
  519. padding: 0 30rpx;
  520. }
  521. .splitTitle .title {
  522. color: #2291f8;
  523. }
  524. /*商户管理订单详情*/
  525. .pos-order-details .header {
  526. // background: linear-gradient(270deg, #1cd1dc 0%, #2291f8 100%);
  527. }
  528. .pos-order-details .header .state {}
  529. .pos-order-details .header .data {}
  530. .pos-order-details .header .data .order-num {
  531. font-size: 26upx;
  532. margin-bottom: 8upx;
  533. }
  534. .pos-order-details .remarks {
  535. width: 710rpx;
  536. height: 100rpx;
  537. background: #FFFFFF;
  538. border-radius: 14rpx;
  539. display: flex;
  540. padding-left: 32rpx;
  541. border-radius: 24rpx;
  542. background: #FFFFFF;
  543. }
  544. .pos-order-details .remarks .iconfont {
  545. font-size: 32rpx;
  546. color: #000000;
  547. }
  548. .pos-order-details .remarks input {
  549. flex: 1;
  550. height: 100rpx;
  551. padding-left: 20rpx;
  552. font-size: 28rpx;
  553. }
  554. .pos-order-details .remarks input::placeholder {
  555. color: #CCCCCC;
  556. }
  557. .pos-order-details .orderingUser {
  558. font-size: 26upx;
  559. color: #282828;
  560. padding: 0 30upx;
  561. height: 67upx;
  562. background-color: #fff;
  563. margin-top: 16upx;
  564. border-bottom: 1px solid #f5f5f5;
  565. }
  566. .pos-order-details .orderingUser .iconfont {
  567. font-size: 40upx;
  568. color: #2a7efb;
  569. margin-right: 15upx;
  570. }
  571. .pos-order-details .address {
  572. margin-top: 0;
  573. }
  574. .pos-order-details .footer .more {
  575. font-size: 27upx;
  576. color: #aaa;
  577. width: 100upx;
  578. height: 64upx;
  579. text-align: center;
  580. line-height: 64upx;
  581. margin-right: 25upx;
  582. position: relative;
  583. }
  584. .pos-order-details .footer .delivery {
  585. border-color: #2A7EFB !important;
  586. background: #2A7EFB;
  587. color: #FFFFFF !important;
  588. }
  589. .pos-order-details .footer .more .order .arrow {
  590. width: 0;
  591. height: 0;
  592. border-left: 11upx solid transparent;
  593. border-right: 11upx solid transparent;
  594. border-top: 20upx solid #e5e5e5;
  595. position: absolute;
  596. left: 15upx;
  597. bottom: -18upx;
  598. }
  599. .pos-order-details .footer .more .order .arrow:before {
  600. content: '';
  601. width: 0;
  602. height: 0;
  603. border-left: 9upx solid transparent;
  604. border-right: 9upx solid transparent;
  605. border-top: 19upx solid #fff;
  606. position: absolute;
  607. left: -10upx;
  608. bottom: 0;
  609. }
  610. .pos-order-details .footer .more .order {
  611. width: 200upx;
  612. background-color: #fff;
  613. border: 1px solid #eee;
  614. border-radius: 10upx;
  615. position: absolute;
  616. top: -200upx;
  617. z-index: 9;
  618. }
  619. .pos-order-details .footer .more .order .item {
  620. height: 77upx;
  621. line-height: 77upx;
  622. }
  623. .pos-order-details .footer .more .order .item~.item {
  624. border-top: 1px solid #f5f5f5;
  625. }
  626. .pos-order-details .footer .more .moreName {
  627. width: 100%;
  628. height: 100%;
  629. }
  630. /*订单详情*/
  631. .order-detail .header {
  632. padding: 48rpx 0 30rpx 12rpx;
  633. }
  634. .order-detail .header.on {
  635. background-color: #666 !important;
  636. }
  637. .order-detail .header .pictrue {
  638. width: 110upx;
  639. height: 110upx;
  640. }
  641. .order-detail .header .pictrue image {
  642. width: 100%;
  643. height: 100%;
  644. }
  645. .order-detail .header .state {
  646. font-weight: 500;
  647. font-size: 36rpx;
  648. line-height: 50rpx;
  649. color: #FFFFFF;
  650. }
  651. .order-detail .header .data {
  652. margin-top: 8rpx;
  653. font-size: 26rpx;
  654. line-height: 36rpx;
  655. color: #FFFFFF;
  656. }
  657. .order-detail .header.on .data {
  658. margin-left: 0;
  659. }
  660. .order-detail .header .data .time {
  661. margin-left: 20rpx;
  662. }
  663. .order-detail .header .data .state {
  664. font-size: 30upx;
  665. font-weight: bold;
  666. color: #fff;
  667. margin-bottom: 7upx;
  668. }
  669. /* .order-details .header .data .time{margin-left:20upx;} */
  670. .order-detail .nav {
  671. background-color: #fff;
  672. font-size: 26upx;
  673. color: #282828;
  674. padding: 25upx 0;
  675. }
  676. .order-detail .nav .navCon {
  677. padding: 0 40upx;
  678. }
  679. .order-detail .nav .navCon .on {
  680. font-weight: bold;
  681. color: #e93323;
  682. }
  683. .order-detail .nav .progress {
  684. padding: 0 65upx;
  685. margin-top: 10upx;
  686. }
  687. .order-detail .nav .progress .line {
  688. width: 100upx;
  689. height: 2upx;
  690. background-color: #939390;
  691. }
  692. .order-detail .nav .progress .iconfont {
  693. font-size: 25upx;
  694. color: #939390;
  695. margin-top: -2upx;
  696. width: 30upx;
  697. height: 30upx;
  698. line-height: 33upx;
  699. text-align: center;
  700. margin-right: 0 !important;
  701. }
  702. .order-detail .address {
  703. position: relative;
  704. padding: 32rpx 32rpx 40rpx;
  705. border-radius: 24rpx;
  706. margin-top: 20rpx;
  707. background: #FFFFFF;
  708. overflow: hidden;
  709. font-size: 24rpx;
  710. line-height: 34rpx;
  711. color: #999999;
  712. }
  713. .order-detail .address .name {
  714. margin-bottom: 12rpx;
  715. font-weight: 500;
  716. font-size: 30rpx;
  717. line-height: 42rpx;
  718. color: #333333;
  719. }
  720. .order-detail .address .name .iconfont {
  721. margin-right: 8rpx;
  722. font-size: 32rpx;
  723. }
  724. .order-detail .address .name .phone {
  725. margin-left: 40upx;
  726. }
  727. .order-detail .line {
  728. position: absolute;
  729. bottom: 0;
  730. left: 0;
  731. width: 100%;
  732. height: 4rpx;
  733. }
  734. .order-detail .line image {
  735. width: 100%;
  736. height: 100%;
  737. display: block;
  738. }
  739. .order-detail .wrapper {
  740. padding: 32rpx 24rpx;
  741. border-radius: 24rpx;
  742. margin-top: 20rpx;
  743. background: #FFFFFF;
  744. }
  745. .order-detail .wrapper .item {
  746. font-size: 28rpx;
  747. line-height: 40rpx;
  748. color: #333333;
  749. }
  750. .order-detail .wrapper .item~.item {
  751. margin-top: 24rpx;
  752. }
  753. .order-detail .wrapper .item .conter {
  754. // color: #868686;
  755. // width: 468rpx;
  756. // display: flex;
  757. // flex-wrap: nowrap;
  758. // justify-content: flex-end;
  759. // text-align: right;
  760. .pictrue {
  761. width: 80rpx;
  762. height: 80rpx;
  763. margin-left: 6rpx;
  764. image {
  765. width: 100%;
  766. height: 100%;
  767. border-radius: 6rpx;
  768. }
  769. }
  770. }
  771. .order-detail .wrapper .item .conter .copy {
  772. height: 36rpx;
  773. padding: 0 12rpx;
  774. border: 0;
  775. border-radius: 18rpx;
  776. margin-left: 8rpx;
  777. background: #F5F5F5;
  778. font-size: 22rpx;
  779. line-height: 36rpx;
  780. color: #333333;
  781. }
  782. .order-detail .wrapper .actualPay {
  783. margin-top: 26rpx;
  784. align-items: center;
  785. }
  786. .order-detail .wrapper .actualPay .money {
  787. font-weight: bold;
  788. font-size: 30upx;
  789. color: #e93323;
  790. }
  791. .order-detail .footer {
  792. width: 100%;
  793. height: 100upx;
  794. position: fixed;
  795. bottom: 0;
  796. left: 0;
  797. background-color: #fff;
  798. padding: 0 30upx;
  799. border-top: 1px solid #eee;
  800. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  801. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  802. padding-bottom: calc(0rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  803. padding-bottom: calc(0rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  804. }
  805. .order-detail .footer .wait {
  806. color: #2a7efb;
  807. margin-right: 30rpx;
  808. }
  809. .order-detail .footer .bnt {
  810. width: 144rpx;
  811. height: 56rpx;
  812. border: 1rpx solid #CCCCCC;
  813. line-height: 54rpx;
  814. text-align: center;
  815. border-radius: 28rpx;
  816. font-size: 24rpx;
  817. color: #333333;
  818. transform: rotateZ(360deg);
  819. &.on {
  820. color: #c5c8ce !important;
  821. background: #f7f7f7 !important;
  822. border: 1px solid #dcdee2 !important;
  823. }
  824. }
  825. .order-detail .footer .bnt.cancel {
  826. // color: #333333;
  827. // border: 1px solid #CCCCCC;
  828. }
  829. .order-detail .footer .bnt.default {
  830. color: #444;
  831. border: 1px solid #444;
  832. }
  833. .order-detail .footer .bnt~.bnt {
  834. margin-left: 16rpx;
  835. }
  836. .pos-order-goods {
  837. padding: 32rpx 24rpx;
  838. border-radius: 24rpx;
  839. background: #FFFFFF;
  840. }
  841. .pos-order-goods.split {
  842. margin-top: 20rpx;
  843. }
  844. .pos-order-goods .title {
  845. height: 40rpx;
  846. margin-bottom: 32rpx;
  847. font-size: 28rpx;
  848. color: #333333;
  849. }
  850. .pos-order-goods .title .btn {
  851. font-size: 26rpx;
  852. color: #999999;
  853. }
  854. .pos-order-goods .title .btn .iconfont {
  855. font-size: 24rpx;
  856. }
  857. .pos-order-goods.split .goods {}
  858. .pos-order-goods .goods~.goods {
  859. margin-top: 32rpx;
  860. }
  861. .pos-order-goods .goods .picTxt {
  862. flex: 1;
  863. min-width: 0;
  864. }
  865. .pos-order-goods .goods .picTxt .pictrue {
  866. width: 136rpx;
  867. height: 136rpx;
  868. }
  869. .pos-order-goods .goods .picTxt .pictrue image {
  870. width: 100%;
  871. height: 100%;
  872. border-radius: 16rpx;
  873. }
  874. .pos-order-goods .goods .picTxt .text {
  875. flex: 1;
  876. min-width: 0;
  877. padding-left: 20rpx;
  878. }
  879. .pos-order-goods .goods .picTxt .text .info {
  880. font-size: 28rpx;
  881. line-height: 40rpx;
  882. color: #333333;
  883. }
  884. .pos-order-goods .goods .picTxt .text .info .label {
  885. color: #ff4c3c;
  886. }
  887. .pos-order-goods .goods .picTxt .text .attr {
  888. margin-top: 8rpx;
  889. font-size: 24rpx;
  890. line-height: 34rpx;
  891. color: #999999;
  892. }
  893. .pos-order-goods .goods .money {
  894. width: 144rpx;
  895. text-align: right;
  896. }
  897. .pos-order-goods .goods .money .writeOff {
  898. font-size: 24upx;
  899. margin-top: 17upx;
  900. color: #1890FF;
  901. }
  902. .pos-order-goods .goods .money .writeOff .on {
  903. color: #FF7E00;
  904. }
  905. .pos-order-goods .goods .money .x-money {
  906. color: #282828;
  907. }
  908. .pos-order-goods .goods .money .num {
  909. margin-top: 10rpx;
  910. font-size: 24rpx;
  911. line-height: 34rpx;
  912. color: #999999;
  913. }
  914. .pos-order-goods .goods .money .y-money {
  915. color: #999;
  916. text-decoration: line-through;
  917. }
  918. .public-total {
  919. font-size: 28upx;
  920. color: #282828;
  921. border-top: 1px solid #eee;
  922. height: 92upx;
  923. line-height: 92upx;
  924. text-align: right;
  925. padding: 0 30upx;
  926. background-color: #fff;
  927. }
  928. .public-total .money {
  929. color: #ff4c3c;
  930. }
  931. .copy-data {
  932. font-size: 10px;
  933. color: #333;
  934. -webkit-border-radius: 1px;
  935. border-radius: 1px;
  936. border: 1px solid #666;
  937. padding: 0px 7px;
  938. margin-left: 12px;
  939. height: 20px;
  940. }
  941. .pos-order-goods .mark {
  942. margin-top: 32rpx;
  943. font-size: 28rpx;
  944. line-height: 40rpx;
  945. color: #333333;
  946. .value {
  947. flex: 1;
  948. }
  949. }
  950. .mask {
  951. z-index: 21;
  952. }
  953. .confirm-popup {
  954. position: fixed;
  955. top: 50%;
  956. right: 75rpx;
  957. left: 75rpx;
  958. z-index: 21;
  959. transform: translateY(-50%);
  960. border-radius: 32rpx;
  961. background: #FFFFFF;
  962. text-align: center;
  963. .title {
  964. padding: 40rpx 32rpx 0;
  965. font-weight: 500;
  966. font-size: 32rpx;
  967. line-height: 52rpx;
  968. color: #333333;
  969. }
  970. .info {
  971. padding: 24rpx 40rpx 0;
  972. font-size: 30rpx;
  973. line-height: 42rpx;
  974. color: #666666;
  975. }
  976. .btn-box {
  977. padding: 40rpx;
  978. }
  979. .btn {
  980. flex: 1;
  981. height: 72rpx;
  982. border: 1rpx solid #2A7EFB;
  983. border-radius: 36rpx;
  984. margin-left: 32rpx;
  985. font-weight: 500;
  986. font-size: 26rpx;
  987. line-height: 70rpx;
  988. color: #2A7EFB;
  989. transform: rotateZ(360deg);
  990. &.primary {
  991. background: #2A7EFB;
  992. color: #FFFFFF;
  993. }
  994. }
  995. }
  996. .user-box {
  997. padding: 24rpx;
  998. border-radius: 24rpx;
  999. margin-top: 20rpx;
  1000. background: #FFFFFF;
  1001. .image {
  1002. width: 80rpx;
  1003. height: 80rpx;
  1004. border-radius: 50%;
  1005. }
  1006. .text {
  1007. flex: 1;
  1008. padding-left: 20rpx;
  1009. font-size: 24rpx;
  1010. line-height: 34rpx;
  1011. color: #999999;
  1012. }
  1013. .name {
  1014. margin-bottom: 4rpx;
  1015. font-weight: 500;
  1016. font-size: 28rpx;
  1017. line-height: 40rpx;
  1018. color: #333333;
  1019. }
  1020. .svip {
  1021. width: 56rpx;
  1022. height: 26rpx;
  1023. border-radius: 14rpx;
  1024. margin-left: 12rpx;
  1025. background: linear-gradient(90deg, #484643 0%, #1F1B17 100%);
  1026. text-align: center;
  1027. font-weight: 600;
  1028. font-size: 18rpx;
  1029. line-height: 26rpx;
  1030. color: #FDDAA4;
  1031. }
  1032. .grade {
  1033. height: 26rpx;
  1034. padding: 0 10rpx;
  1035. border: 1rpx solid #FACC7D;
  1036. border-radius: 14rpx;
  1037. margin-left: 10rpx;
  1038. background: #FEF0D9;
  1039. font-weight: 500;
  1040. font-size: 18rpx;
  1041. line-height: 24rpx;
  1042. color: #DFA541;
  1043. transform: rotateZ(360deg);
  1044. .iconfont {
  1045. margin-right: 6rpx;
  1046. font-size: 18rpx;
  1047. }
  1048. }
  1049. }
  1050. .tomore {
  1051. font-weight: 400;
  1052. font-size: 24rpx;
  1053. color: #333333;
  1054. margin-right: 20rpx;
  1055. position: relative;
  1056. }
  1057. .more-operate {
  1058. position: absolute;
  1059. top: -120rpx;
  1060. left: -50rpx;
  1061. width: 150rpx;
  1062. height: 100rpx;
  1063. background: #fff;
  1064. border: 1px solid #eee;
  1065. border-radius: 10rpx;
  1066. .sjx {
  1067. width: 16rpx;
  1068. height: 16rpx;
  1069. background: #fff;
  1070. border: 1px solid #eee;
  1071. position: absolute;
  1072. top: 92rpx;
  1073. left: 68rpx;
  1074. transform: rotateZ(45deg);
  1075. }
  1076. .more-operate-item {
  1077. font-size: 24rpx;
  1078. color: #333333;
  1079. text-align: center;
  1080. height: 50rpx;
  1081. line-height: 50rpx;
  1082. }
  1083. }
  1084. /deep/ .uni-popup__wrapper {
  1085. width: 600rpx;
  1086. height: 310rpx;
  1087. background: #FFFFFF;
  1088. border-radius: 14rpx;
  1089. }
  1090. .sh_popup-content {
  1091. // border-radius: 14rpx;
  1092. // padding-bottom: 20rpx;
  1093. .sh_popup_title {
  1094. font-weight: 500;
  1095. font-size: 32rpx;
  1096. color: #333333;
  1097. text-align: center;
  1098. margin-top: 40rpx;
  1099. }
  1100. .sh_popup_text {
  1101. font-weight: 400;
  1102. font-size: 30rpx;
  1103. color: #666666;
  1104. text-align: center;
  1105. margin-top: 30rpx;
  1106. }
  1107. .sh_popup_btn {
  1108. display: flex;
  1109. justify-content: space-between;
  1110. margin-top: 40rpx;
  1111. padding: 0 47rpx;
  1112. .btn {
  1113. width: 244rpx;
  1114. height: 72rpx;
  1115. border-radius: 50rpx;
  1116. text-align: center;
  1117. line-height: 72rpx;
  1118. }
  1119. .no_btn {
  1120. border: 1px solid #2A7EFB;
  1121. color: #2A7EFB;
  1122. }
  1123. .yes_btn {
  1124. background: #2A7EFB;
  1125. color: #FFFFFF;
  1126. }
  1127. }
  1128. }
  1129. .info-text {
  1130. display: flex;
  1131. flex-direction: column;
  1132. justify-content: space-between;
  1133. }
  1134. .line1 {
  1135. width: 90%;
  1136. }
  1137. .order-details .wrapper {
  1138. padding: 0;
  1139. }
  1140. </style>