orderDetail.vue 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234
  1. <template>
  2. <view class="container">
  3. <view class="order-type-info">
  4. <view class="order-type-title">{{orderType.title}}</view>
  5. <view class="order-type-text">{{orderType.text}}
  6. </view>
  7. </view>
  8. <view class="address-info-box">
  9. <view class="address-icon">
  10. <text class="iconfont icondizhi"></text>
  11. </view>
  12. <view class="address-content">
  13. <text class="address-info">
  14. <text class="address-name">{{orderData.recName}}</text>
  15. <text class="address-phone">{{orderData.recMobile}}</text>
  16. </text>
  17. <view class="address-detail">{{orderData.address}}</view>
  18. </view>
  19. </view>
  20. <view class="goods-info-box">
  21. <view class="shop-info" @click.stop="gotoShop()">
  22. <text class="iconfont icondianpu"></text>
  23. <text class="shop-name">{{orderData.merchantInfoResVO.supplierName}}</text>
  24. <text class="iconfont iconfangxiang" v-if="orderData.tenantCode != 'admin'"></text>
  25. </view>
  26. <view class="goods-list">
  27. <view class="goods-row" v-for="(item, index) in orderData.merchantInfoResVO.products" :key="index">
  28. <image class="goods-img" :src="item.imgUrl" mode="aspectFill"></image>
  29. <view class="goods-info">
  30. <view class="goods-name">{{item.productName}}</view>
  31. <view class="goods-type">
  32. 类型:{{item.productType == 1 ? '普通商品' : (item.productType == 2 ? '拍卖商品' : (item.productType == 3 ? '自助采摘' : '共享种植'))}}
  33. </view>
  34. <view class="plant-area" v-if="item.productType == 4">面积:{{item.areaSize}}㎡</view>
  35. <view class="goods-price-number">
  36. <text class="goods-unit">¥</text>
  37. <text class="goods-price">{{item.bizPrice}}</text>
  38. <text class="goods-number">x{{item.buyNum}}</text>
  39. <text class="plant-text" v-if="item.productType == 4">有效期:{{item.term}}天</text>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="order-info">
  45. <u-cell-group :border="false">
  46. <u-cell-item title="商品金额" :value="'¥' + orderData.orderSum" :arrow="false" :border-bottom="false"></u-cell-item>
  47. <u-cell-item title="积分抵扣" :value="'-¥' + orderData.integralAmount" :arrow="false" :border-bottom="false" v-if="goodType == 1"></u-cell-item>
  48. <u-cell-item title="优惠券" :value="'-¥' + orderData.couponDiscountAmount" :arrow="false" :border-bottom="false" v-if="goodType == 1"></u-cell-item>
  49. <u-cell-item title="备注" :value="orderData.notes" :arrow="false" :border-bottom="false"></u-cell-item>
  50. </u-cell-group>
  51. </view>
  52. <view class="pay-info">
  53. <text class="pay-text">实付款</text>
  54. <text class="pay-price">¥{{orderData.paySum}}</text>
  55. </view>
  56. </view>
  57. <view class="order-info-box" @click="goToMessage()">
  58. <view class="info-title-box">
  59. <view class="info-title">留言板</view>
  60. <text class="iconfont iconfangxiang"></text>
  61. </view>
  62. <view class="info-content-box">
  63. <view class="message-row" v-for="(item, index1) in orderData.leas" :key="index1">
  64. <image class="message-head" :src="item.headImg" mode="aspectFill"></image>
  65. <view class="message-info-box">
  66. <view class="message-name">{{item.name}}</view>
  67. <view class="message-date">{{item.leaMsgTime}}</view>
  68. <view class="message-text">{{item.leaMsgContent}}</view>
  69. <!-- <view class="message-img-box" v-for="(site, index2) in item.orderLeaImgResVOs" :key="index2">
  70. <image class="message-img" :src="site.imgUrl" mode="aspectFill"></image>
  71. </view> -->
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="order-info-box">
  77. <view class="info-title-box">
  78. <view class="info-title">订单信息</view>
  79. </view>
  80. <view class="info-content-box">
  81. <view class="order-info-row">订单编号:{{orderData.orderCode}}</view>
  82. <view class="order-info-row">创建时间:{{orderData.addOrderTime}}</view>
  83. <view class="order-info-row" v-if="orderData.orderStatus > 1 && orderData.orderStatus != 6">支付时间:{{orderData.payTime ? orderData.payTime : orderData.addOrderTime}}</view>
  84. <view class="order-info-row" v-if="orderData.orderStatus > 2 && orderData.orderStatus != 6 && orderData.orderStatus != 4">发货时间:{{orderData.sendTime ? orderData.sendTime : '-'}}</view>
  85. <view class="order-info-row" v-if="orderData.orderStatus > 3 && orderData.orderStatus != 6 && orderData.orderStatus != 4">收货时间:{{orderData.confirmTime ? orderData.sendTime : '-'}}</view>
  86. <view class="order-info-row" v-if="orderData.orderStatus == 6">取消时间:{{orderData.cancelTime}}</view>
  87. </view>
  88. </view>
  89. <view class="order-info-box" v-if="orderData.evaluateResVO.evaluateContent">
  90. <view class="info-title-box">
  91. <view class="info-title">评价信息</view>
  92. </view>
  93. <view class="info-content-box">
  94. <view class="assess-row">
  95. <image class="assess-head" mode="aspectFill" :src="orderData.merchantInfoResVO.headImg"></image>
  96. <view class="assess-info">
  97. <view class="assess-name">{{orderData.nickname}}</view>
  98. <view class="assess-date">{{orderData.evaluateResVO.evaluateTime ? orderData.evaluateResVO.evaluateTime : ''}}</view>
  99. <view class="assess-sore-box">
  100. <u-rate v-model="orderData.evaluateResVO.score" active-color="#FFAE21" disabled></u-rate>
  101. </view>
  102. <view class="assess-text">{{orderData.evaluateResVO.evaluateContent ? orderData.evaluateResVO.evaluateContent : '暂无评价'}}</view>
  103. <view class="assess-img-box">
  104. <image class="img-col" mode="aspectFill" :src="item.imgUrl" v-for="(item,i) in orderData.evaluateResVO.evaluateImgs" :key="i" @tap="_previewImage(item.imgUrl,i)"></image>
  105. </view>
  106. </view>
  107. <view class="shop-reply-box" v-if="orderData.evaluateResVO.replyContent">
  108. <view class="shop-head">
  109. <view class="iconfont icondianpu"></view>
  110. <view class="shop-name">店家回复</view>
  111. </view>
  112. <view class="shop-reply">{{orderData.evaluateResVO.replyContent}}</view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <!-- </view> -->
  118. <uni-goods-nav :fill="true" :options="[]" @click="" @buttonClick="orderHandle" class="order-handle" :buttonGroup="buttonGroup" />
  119. <u-modal v-model="modalShow" :content="modalContent" @confirm="submitHandle" :async-close="true" :show-cancel-button="true"></u-modal>
  120. <u-top-tips ref="uTips"></u-top-tips>
  121. <view class="uni-popup-dialog" :hidden="show_qx">
  122. <view class="uni-dialog-title">
  123. <text class="uni-dialog-title-text">提示</text>
  124. </view>
  125. <view class="uni-dialog-content">
  126. <text class="uni-dialog-content-text">请在设置中开启摄像头权限和麦克风权限</text>
  127. </view>
  128. <view class="uni-dialog-button-group">
  129. <button class="uni-dialog-button uni-border-left" open-type="openSetting" @click="closeSetting">
  130. 设置权限
  131. </button>
  132. </view>
  133. </view>
  134. <view class="qx_bg" :hidden="show_qx">
  135. </view>
  136. </view>
  137. </template>
  138. <script>
  139. const NET = require('@/utils/request')
  140. const API = require('@/config/api')
  141. export default {
  142. components: {},
  143. data() {
  144. return {
  145. show_qx:true,
  146. orderType: {
  147. title: '',
  148. text: '',
  149. },
  150. orderData: {
  151. orderId: '',
  152. addOrderTime: '',
  153. recName: '',
  154. recMobile: '',
  155. address: '',
  156. merchantInfoResVO: {
  157. supplierName: '',
  158. products: [],
  159. },
  160. orderSum: 0,
  161. integralAmount: 0,
  162. couponDiscountAmount: 0,
  163. notes: 'xxxxx',
  164. paySum: 0,
  165. leas: [],
  166. orderCode: '',
  167. payTime: '',
  168. sendTime: '',
  169. confirmTime: '',
  170. cancelTime: '',
  171. tenantCode: '',
  172. evaluateReplyStatus: 1,
  173. },
  174. goodType: 1,
  175. buttonGroup: [],
  176. modalShow: false,
  177. handleType: '',
  178. modalContent: '',
  179. }
  180. },
  181. onLoad(options) {
  182. this.userData = uni.getStorageSync("userData")
  183. NET.request(API.getOrderDetail, {
  184. flag: 1,
  185. orderId: options.orderId,
  186. orderStatus: options.orderStatus,
  187. }, 'GET').then(res => {
  188. this.orderData = res.data
  189. if (this.orderData.addOrderTime) {
  190. let tempTime = new Date(this.orderData.addOrderTime).getTime()
  191. let addTempTime = new Date(tempTime + 1000 * 60 * 60 * 24)
  192. let addYear = addTempTime.getFullYear()
  193. let addMonth = addTempTime.getMonth() + 1
  194. let addDay = addTempTime.getDate()
  195. let addHours = addTempTime.getHours()
  196. let addMin = addTempTime.getMinutes()
  197. let addSeconds = addTempTime.getSeconds()
  198. this.orderData.overTime = addYear + '年' + addMonth + '月' + addDay + '日' + addHours + ':' + addMin + ':' +
  199. addSeconds
  200. // this.orderData.tempTimeArr = this.orderData.addOrderTime.split(' ')
  201. // let tempDate = new Date(this.orderData.tempTimeArr[0].replace(/-/g, "/"))
  202. // this.orderData.overTime = new Date(tempDate.setDate(tempDate.getDate() + 1))
  203. }
  204. if (this.orderData.merchantInfoResVO.products.length && this.orderData.merchantInfoResVO.products[0].productType !=
  205. 2 && this.orderData.merchantInfoResVO.products[0].productType != 4) {
  206. this.goodType = 1
  207. } else {
  208. this.goodType = 2
  209. }
  210. switch (JSON.stringify(this.orderData.orderStatus)) {
  211. case '1':
  212. this.buttonGroup = [{
  213. text: '取消订单',
  214. backgroundColor: '#75BD60',
  215. color: '#fff'
  216. }, {
  217. text: '立即支付',
  218. backgroundColor: '#52A63A',
  219. color: '#fff'
  220. }]
  221. break;
  222. case '2':
  223. var someVaule = this.orderData.merchantInfoResVO.products.some(v => {
  224. Number(v.productType)
  225. return v.productType == 1
  226. })
  227. if (!someVaule) {
  228. if (this.orderData.merchantInfoResVO.products.every(v => {
  229. Number(v.productType)
  230. return v.productType == 3
  231. })) {
  232. this.buttonGroup = [{
  233. text: '申请售后',
  234. backgroundColor: '#75BD60',
  235. color: '#fff'
  236. }, {
  237. text: '自助采摘',
  238. backgroundColor: '#52A63A',
  239. color: '#fff'
  240. }]
  241. } else {
  242. this.buttonGroup = [{
  243. text: '申请售后',
  244. backgroundColor: '#75BD60',
  245. color: '#fff'
  246. }]
  247. }
  248. } else {
  249. this.buttonGroup = [{
  250. text: '申请售后',
  251. backgroundColor: '#75BD60',
  252. color: '#fff'
  253. }]
  254. }
  255. break;
  256. case '3':
  257. this.buttonGroup = [{
  258. text: '申请售后',
  259. backgroundColor: '#52A63A',
  260. color: '#fff'
  261. }, {
  262. text: '确认收货',
  263. backgroundColor: '#52A63A',
  264. color: '#fff'
  265. }, {
  266. text: '追踪物流',
  267. backgroundColor: '#52A63A',
  268. color: '#fff'
  269. }]
  270. break;
  271. case '4':
  272. this.buttonGroup = [{
  273. text: '申请售后',
  274. backgroundColor: '#75BD60',
  275. color: '#fff'
  276. }]
  277. break;
  278. default:
  279. this.buttonGroup = [{
  280. text: '申请售后',
  281. backgroundColor: '#52A63A',
  282. color: '#fff'
  283. }]
  284. }
  285. if (this.orderData.orderStatus == 4 && this.orderData.evaluateReplyStatus == 1) {
  286. if (this.orderData.orderType !=3 && this.orderData.orderType !=4)
  287. this.buttonGroup.push({
  288. text: '评价',
  289. backgroundColor: '#52A63A',
  290. color: '#fff'
  291. })
  292. }
  293. this.getOrderType()
  294. }).catch(error => {
  295. this.$refs.uTips.show({
  296. title: error.data.msg,
  297. type: 'warning',
  298. })
  299. })
  300. // this.getOrderType()
  301. },
  302. onShow() {},
  303. methods: {
  304. closeSetting:function(){
  305. this.show_qx=true;
  306. },
  307. // 获取订单类型
  308. getOrderType() {
  309. if (!this.orderData.auctionStatus) {
  310. switch (this.orderData.orderStatus) {
  311. case 1:
  312. this.orderType = {
  313. title: '等待买家付款',
  314. text: '订单将于' + this.orderData.overTime + '关闭',
  315. date: this.orderData.overTime
  316. }
  317. break;
  318. case 2:
  319. this.orderType = {
  320. title: '等待卖家发货',
  321. text: '您的商品正在打包等待发货',
  322. }
  323. break;
  324. case 3:
  325. this.orderType = {
  326. title: '等待商品送达',
  327. text: '您的商品已发出正在路上,请耐心等待',
  328. }
  329. break;
  330. case 4:
  331. this.orderType = {
  332. title: '商品已送达',
  333. text: '',
  334. }
  335. break;
  336. case 5:
  337. this.orderType = {
  338. title: '交易已完成',
  339. text: '',
  340. }
  341. break;
  342. default:
  343. this.orderType = {
  344. title: '交易已取消',
  345. text: '',
  346. }
  347. }
  348. } else {
  349. switch (this.orderData.auctionStatus) {
  350. case 1:
  351. this.orderType = {
  352. title: '竞拍中',
  353. text: '',
  354. }
  355. break;
  356. case 2:
  357. switch (this.orderData.orderStatus) {
  358. case 2:
  359. this.orderType = {
  360. title: '竞拍成功-等待卖家发货',
  361. text: '您的商品正在打包等待发货',
  362. }
  363. break;
  364. case 3:
  365. this.orderType = {
  366. title: '竞拍成功-等待商品送达',
  367. text: '您的商品已发出正在路上,请耐心等待',
  368. }
  369. break;
  370. case 4:
  371. this.orderType = {
  372. title: '竞拍成功-商品已送达',
  373. text: '',
  374. }
  375. break;
  376. case 5:
  377. this.orderType = {
  378. title: '竞拍成功-交易已完成',
  379. text: '',
  380. }
  381. break;
  382. }
  383. break;
  384. case 3:
  385. this.orderType = {
  386. title: '竞拍失败',
  387. text: '',
  388. }
  389. break;
  390. }
  391. }
  392. },
  393. // 操作
  394. orderHandle(e) {
  395. if (this.orderData.orderStatus == 1) {
  396. if (e.index == 0) {
  397. // 取消订单
  398. this.modalContent = '请确定是否取消订单'
  399. this.handleType = 1
  400. this.modalShow = true
  401. } else if (e.index == 1) {
  402. // 立即支付
  403. this.modalContent = '请确定是否立即支付'
  404. this.handleType = 2
  405. this.modalShow = true
  406. }
  407. } else {
  408. if (e.index == 0) {
  409. // 申请售后
  410. NET.request(API.applyService, {
  411. tenantCode: this.orderData.tenantCode
  412. }, 'GET').then(res => {
  413. uni.makePhoneCall({
  414. phoneNumber: res.data.contactTel
  415. });
  416. }).catch(error => {
  417. this.$refs.uTips.show({
  418. title: error.data.msg,
  419. type: 'warning',
  420. })
  421. })
  422. } else {
  423. if (this.orderData.orderStatus == 2) {
  424. var that=this;
  425. wx.getSetting({
  426. success(res) {
  427. if (!res.authSetting['scope.camera']){
  428. that.show_qx=false;
  429. }else if (!res.authSetting['scope.record']){
  430. that.show_qx=false;
  431. }else{
  432. uni.navigateTo({
  433. url: '/pagesGood/pickVideo?orderId=' + that.orderData.orderId + '&tenantCode=' + that.orderData.tenantCode
  434. });
  435. }
  436. }
  437. })
  438. // 自助采摘
  439. } else if (this.orderData.orderStatus == 3) {
  440. if (e.index == 1) {
  441. // 确认收货
  442. this.modalContent = '请确定是否确认收货'
  443. this.handleType = 3
  444. this.modalShow = true
  445. } else {
  446. // 追踪物流
  447. uni.navigateTo({
  448. url: '/pagesMain/logisticsDeatil?logisticCode=' + this.orderData.logisticsNum
  449. });
  450. }
  451. } else {
  452. // 评价
  453. uni.navigateTo({
  454. url: '/pagesMain/evaluateForm?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode +
  455. '&productIds=' + this.orderData.merchantInfoResVO.products.map(site => {
  456. return site.productId
  457. }).join(',')
  458. });
  459. }
  460. }
  461. }
  462. },
  463. // 状态流转
  464. submitHandle() {
  465. if (this.handleType == 1) {
  466. // 取消订单
  467. NET.request(API.cancelOrder, {
  468. orderId: this.orderData.orderId
  469. }, 'GET').then(res => {
  470. this.modalShow = false
  471. this.$refs.uTips.show({
  472. title: '取消订单成功',
  473. type: 'success',
  474. })
  475. setTimeout(() => {
  476. uni.reLaunch({
  477. url: '/pagesMain/orderList?type=' + 1
  478. });
  479. }, 1000)
  480. }).catch(error => {
  481. this.modalShow = false
  482. this.$refs.uTips.show({
  483. title: error.data.msg,
  484. type: 'warning',
  485. })
  486. })
  487. } else if (this.handleType == 2) {
  488. // 立即支付
  489. NET.request(API.payOrder, {
  490. mid: uni.getStorageSync("userData").userId,
  491. orderCode: this.orderData.orderCode,
  492. orderId: this.orderData.orderId,
  493. }, 'POST').then(res => {
  494. this.modalShow = false
  495. uni.requestPayment({
  496. provider: 'wxpay',
  497. timeStamp: res.data.timeStamp,
  498. nonceStr: res.data.nonceStr,
  499. package: res.data.packageValue,
  500. signType: res.data.signType,
  501. paySign: res.data.paySign,
  502. success: (payRes) => {
  503. console.log('success:' + JSON.stringify(payRes));
  504. uni.navigateTo({
  505. url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
  506. });
  507. },
  508. fail: (error) => {
  509. console.log('fail:' + JSON.stringify(error));
  510. this.$refs.uTips.show({
  511. title: '支付失败',
  512. type: 'warning',
  513. })
  514. }
  515. })
  516. }).catch(error => {
  517. this.modalShow = false
  518. this.$refs.uTips.show({
  519. title: error.data.msg,
  520. type: 'warning',
  521. })
  522. })
  523. // setTimeout(() => {
  524. // uni.reLaunch({
  525. // url: '/pagesMain/orderList?type=' + 3
  526. // });
  527. // }, 1000)
  528. } else if (this.handleType == 3) {
  529. // 确认收货
  530. NET.request(API.confirmOrder, {
  531. orderId: this.orderData.orderId
  532. }, 'GET').then(res => {
  533. this.modalShow = false
  534. this.$refs.uTips.show({
  535. title: '确认收货成功',
  536. type: 'success',
  537. })
  538. setTimeout(() => {
  539. uni.reLaunch({
  540. url: '/pagesMain/orderList?type=' + 5
  541. });
  542. }, 1000)
  543. }).catch(error => {
  544. this.modalShow = false
  545. this.$refs.uTips.show({
  546. title: error.data.msg,
  547. type: 'warning',
  548. })
  549. })
  550. }
  551. },
  552. // 跳转留言列表
  553. goToMessage() {
  554. uni.navigateTo({
  555. url: '/pagesMain/messageList?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode
  556. });
  557. },
  558. // 跳转商铺
  559. gotoShop() {
  560. if (this.orderData.tenantCode != 'admin') {
  561. if (this.orderData.merchantInfoResVO.products.length) {
  562. uni.navigateTo({
  563. url: '/pagesGood/shopDetails?goodId=' + this.orderData.merchantInfoResVO.products[0].productId
  564. });
  565. }
  566. }
  567. },
  568. // 图片预览
  569. _previewImage(image,index) {
  570. var imgArr = [];
  571. imgArr.push(image);
  572. //预览图片
  573. uni.previewImage({
  574. urls: imgArr,
  575. current: imgArr[index]
  576. });
  577. }
  578. }
  579. }
  580. </script>
  581. <style>
  582. page {
  583. background-color: #f7f7f7;
  584. }
  585. </style>
  586. <style lang="less" scoped>
  587. page {
  588. width: 100%;
  589. height: 100%;
  590. }
  591. .container {
  592. width: 100%;
  593. height: 100%;
  594. float: left;
  595. background-color: #f7f7f7;
  596. // box-sizing: border-box;
  597. // padding-bottom: 50px;
  598. overflow-y: auto;
  599. .order-type-info {
  600. width: 100%;
  601. height: 115px;
  602. float: left;
  603. box-sizing: border-box;
  604. padding: 22px 100px 0 15px;
  605. background: #52A63A;
  606. border-radius: 0px 0px 20px 20px;
  607. background-size: 62px;
  608. background-position: calc(100% - 48px) 12px;
  609. background-repeat: no-repeat;
  610. background-image: url(@/static/images/orderDetail.png);
  611. .order-type-title {
  612. width: 100%;
  613. float: left;
  614. height: 20px;
  615. line-height: 20px;
  616. font-size: 15px;
  617. font-family: PingFang SC;
  618. color: #FFFFFF;
  619. margin-bottom: 4px;
  620. }
  621. .order-type-text {
  622. width: 100%;
  623. float: left;
  624. height: 20px;
  625. line-height: 20px;
  626. font-size: 12px;
  627. font-family: PingFang SC;
  628. color: #FFFFFF;
  629. }
  630. }
  631. .address-info-box {
  632. width: calc(100% - 30px);
  633. float: left;
  634. box-sizing: border-box;
  635. padding: 16px 18px 16px 16px;
  636. margin: -34px 15px 10px 15px;
  637. background: #FFFFFF;
  638. border-radius: 10px;
  639. .address-icon {
  640. width: 36px;
  641. height: 40px;
  642. float: left;
  643. align-items: center;
  644. display: flex;
  645. .iconfont {
  646. color: #52A63A;
  647. font-size: 36px;
  648. }
  649. }
  650. .address-content {
  651. width: calc(100% - 56px);
  652. height: 40px;
  653. float: left;
  654. margin: 0 8px 0 12px;
  655. .address-info {
  656. height: 20px;
  657. font-family: PingFang SC;
  658. line-height: 20px;
  659. overflow: hidden;
  660. text-overflow: ellipsis;
  661. white-space: nowrap;
  662. .address-name {
  663. font-size: 16px;
  664. color: #333333;
  665. margin-right: 14px;
  666. }
  667. .address-phone {
  668. font-size: 12px;
  669. color: #666666;
  670. }
  671. }
  672. .address-detail {
  673. height: 20px;
  674. font-size: 16px;
  675. font-family: PingFang SC;
  676. color: #333333;
  677. line-height: 20px;
  678. overflow: hidden;
  679. text-overflow: ellipsis;
  680. white-space: nowrap;
  681. }
  682. }
  683. }
  684. .goods-info-box {
  685. width: calc(100% - 30px);
  686. float: left;
  687. margin: 0 15px 10px 15px;
  688. background: #FFFFFF;
  689. border-radius: 10px;
  690. .shop-info {
  691. width: 100%;
  692. height: 48px;
  693. float: left;
  694. box-sizing: border-box;
  695. padding: 13px 15px 12px 15px;
  696. border-bottom: 1px solid #EEEEEE;
  697. line-height: 22px;
  698. .icondianpu {
  699. font-size: 22px;
  700. color: #333333;
  701. }
  702. .shop-name {
  703. font-size: 15px;
  704. font-family: PingFang SC;
  705. color: #333333;
  706. margin: 0 8px 0 10px;
  707. }
  708. .iconshangjia {
  709. font-size: 12px;
  710. color: #999999;
  711. }
  712. }
  713. .goods-list {
  714. width: 100%;
  715. float: left;
  716. box-sizing: border-box;
  717. padding: 10px 15px 0 15px;
  718. .goods-row {
  719. width: 100%;
  720. height: 90px;
  721. float: left;
  722. display: flex;
  723. margin-bottom: 10px;
  724. .goods-img {
  725. width: 90px;
  726. height: 90px;
  727. border-radius: 5px;
  728. object-fit: cover;
  729. }
  730. .goods-info {
  731. width: calc(100% - 106px);
  732. height: 90px;
  733. margin-left: 16px;
  734. .goods-name {
  735. width: 100%;
  736. height: 36px;
  737. float: left;
  738. font-size: 14px;
  739. font-family: PingFang SC;
  740. color: #333333;
  741. line-height: 18px;
  742. overflow: hidden;
  743. text-overflow: ellipsis;
  744. display: -webkit-box;
  745. -webkit-line-clamp: 2;
  746. -webkit-box-orient: vertical;
  747. word-wrap: break-word;
  748. }
  749. .goods-type {
  750. height: 20px;
  751. float: left;
  752. background: #F0F0F0;
  753. border-radius: 4px;
  754. padding: 0 8px;
  755. margin: 6px 0;
  756. font-size: 10px;
  757. font-family: PingFang SC;
  758. color: #666666;
  759. line-height: 20px;
  760. }
  761. .plant-area {
  762. height: 20px;
  763. float: right;
  764. margin: 6px 0;
  765. font-size: 12px;
  766. font-family: PingFang SC;
  767. color: #333333;
  768. }
  769. .goods-price-number {
  770. width: 100%;
  771. height: 20px;
  772. float: left;
  773. line-height: 20px;
  774. font-family: PingFang SC;
  775. color: #333333;
  776. .goods-unit {
  777. font-size: 12px;
  778. }
  779. .goods-price {
  780. font-size: 15px;
  781. margin-right: 6px;
  782. }
  783. .goods-number {
  784. font-size: 12px;
  785. }
  786. }
  787. .plant-text {
  788. float: right;
  789. font-size: 12px;
  790. font-family: PingFang SC;
  791. color: #333333;
  792. }
  793. }
  794. }
  795. }
  796. .order-info {
  797. width: 100%;
  798. float: left;
  799. /deep/.u-cell {
  800. padding: 6px 16px;
  801. }
  802. }
  803. .pay-info {
  804. width: 100%;
  805. height: 46px;
  806. float: left;
  807. box-sizing: border-box;
  808. border-top: 1px solid #EEEEEE;
  809. padding-right: 15px;
  810. line-height: 44px;
  811. font-family: PingFang SC;
  812. font-size: 14px;
  813. text-align: right;
  814. white-space: nowrap;
  815. .pay-text {
  816. float: left;
  817. color: #333333;
  818. margin-left: 15px;
  819. }
  820. .pay-price {
  821. color: #52A63A;
  822. }
  823. }
  824. }
  825. .order-info-box {
  826. width: calc(100% - 30px);
  827. float: left;
  828. margin: 0 15px 10px 15px;
  829. background: #FFFFFF;
  830. border-radius: 10px;
  831. .info-title-box {
  832. width: 100%;
  833. height: 48px;
  834. float: left;
  835. box-sizing: border-box;
  836. padding: 15px 15px 14px 15px;
  837. border-bottom: 1px solid #EEEEEE;
  838. line-height: 18px;
  839. white-space: nowrap;
  840. .info-title {
  841. height: 18px;
  842. float: left;
  843. font-size: 15px;
  844. font-family: PingFang SC;
  845. color: #333333;
  846. margin-right: 8px;
  847. padding-left: 10px;
  848. border-left: 2px solid #74BD60;
  849. }
  850. .iconfangxiang {
  851. float: right;
  852. font-size: 12px;
  853. color: #999999;
  854. }
  855. }
  856. .info-content-box {
  857. width: 100%;
  858. float: left;
  859. padding: 15px 0;
  860. .message-row {
  861. width: 100%;
  862. float: left;
  863. box-sizing: border-box;
  864. padding: 0 15px;
  865. margin-bottom: 15px;
  866. .message-head {
  867. width: 50px;
  868. height: 50px;
  869. object-fit: cover;
  870. float: left;
  871. border-radius: 50%;
  872. overflow: hidden;
  873. }
  874. .message-info-box {
  875. width: calc(100% - 75px);
  876. float: right;
  877. .message-name {
  878. width: 50%;
  879. height: 30px;
  880. float: left;
  881. font-size: 15px;
  882. font-family: PingFang SC;
  883. color: #333333;
  884. line-height: 30px;
  885. overflow: hidden;
  886. text-overflow: ellipsis;
  887. white-space: nowrap;
  888. }
  889. .message-date {
  890. width: 50%;
  891. height: 30px;
  892. float: left;
  893. font-size: 12px;
  894. font-family: PingFang SC;
  895. color: #666666;
  896. text-align: right;
  897. line-height: 30px;
  898. overflow: hidden;
  899. text-overflow: ellipsis;
  900. white-space: nowrap;
  901. }
  902. .message-text {
  903. width: 100%;
  904. height: 20px;
  905. float: left;
  906. font-size: 12px;
  907. font-family: PingFang SC;
  908. color: #666666;
  909. line-height: 20px;
  910. overflow: hidden;
  911. text-overflow: ellipsis;
  912. white-space: nowrap;
  913. }
  914. .message-img-box {
  915. width: 100%;
  916. float: left;
  917. .message-img {
  918. width: 76px;
  919. height: 76px;
  920. object-fit: cover;
  921. float: left;
  922. margin: 0 10px 10px 0;
  923. }
  924. }
  925. }
  926. }
  927. .message-row:last-child {
  928. margin-bottom: 0;
  929. }
  930. .order-info-row {
  931. width: 100%;
  932. float: left;
  933. box-sizing: border-box;
  934. padding: 0 15px;
  935. font-size: 12px;
  936. font-family: PingFang SC;
  937. color: #333333;
  938. line-height: 26px;
  939. word-break: break-all;
  940. }
  941. }
  942. .assess-row {
  943. width: calc(100% - 30px);
  944. margin: 0 15px;
  945. float: left;
  946. // border-top: 1px solid #F6F6F6;
  947. padding: 12px 0;
  948. .assess-head {
  949. width: 50px;
  950. height: 50px;
  951. float: left;
  952. object-fit: cover;
  953. border-radius: 50%;
  954. }
  955. .assess-info {
  956. width: calc(100% - 62px);
  957. margin-left: 12px;
  958. float: left;
  959. .assess-name {
  960. height: 18px;
  961. float: left;
  962. line-height: 18px;
  963. font-size: 15px;
  964. font-family: PingFang SC;
  965. font-weight: bold;
  966. color: #343434;
  967. }
  968. .assess-date {
  969. height: 18px;
  970. float: right;
  971. line-height: 18px;
  972. font-size: 12px;
  973. font-family: PingFang SC;
  974. font-weight: bold;
  975. color: #666666;
  976. }
  977. .assess-sore-box {
  978. width: 100%;
  979. height: 16px;
  980. float: left;
  981. margin: 6px 0;
  982. }
  983. .assess-text {
  984. width: 100%;
  985. float: left;
  986. font-size: 12px;
  987. font-family: PingFang SC;
  988. font-weight: bold;
  989. color: #666666;
  990. line-height: 16px;
  991. margin: 8px 0 10px 0;
  992. overflow: hidden;
  993. text-overflow: ellipsis;
  994. display: -webkit-box;
  995. -webkit-line-clamp: 2;
  996. -webkit-box-orient: vertical;
  997. word-wrap: break-word;
  998. }
  999. .assess-img-box {
  1000. width: 100%;
  1001. float: left;
  1002. display: flex;
  1003. .img-col {
  1004. height: 60px;
  1005. width: 60px;
  1006. object-fit: cover;
  1007. margin: 0 10px 10px 0;
  1008. }
  1009. }
  1010. }
  1011. .shop-reply-box {
  1012. width: 100%;
  1013. float: left;
  1014. background: #F5F5F5;
  1015. border-radius: 5px;
  1016. margin-top: 10px;
  1017. .shop-head {
  1018. width: 100%;
  1019. height: 36px;
  1020. float: left;
  1021. box-sizing: border-box;
  1022. padding: 10px 12px;
  1023. .icondianpu {
  1024. width: 16px;
  1025. height: 16px;
  1026. float: left;
  1027. color: #52A63A;
  1028. font-size: 20px;
  1029. margin-right: 8px;
  1030. }
  1031. .shop-name {
  1032. height: 16px;
  1033. float: left;
  1034. font-size: 15px;
  1035. font-family: PingFang SC;
  1036. color: #52A63A;
  1037. line-height: 16px;
  1038. }
  1039. }
  1040. .shop-reply {
  1041. width: 100%;
  1042. float: left;
  1043. box-sizing: border-box;
  1044. padding: 0 12px 12px 12px;
  1045. font-size: 12px;
  1046. font-family: PingFang SC;
  1047. color: #666666;
  1048. line-height: 16px;
  1049. }
  1050. }
  1051. }
  1052. }
  1053. .order-handle {
  1054. width: 100%;
  1055. height: 50px;
  1056. float: left;
  1057. border-top: 1px solid #cccccc;
  1058. }
  1059. }
  1060. .uni-popup-dialog {
  1061. width: 80vw;
  1062. border-radius: 15px;
  1063. background-color: #fff;
  1064. position: fixed;
  1065. margin-left: 10vw;
  1066. top: 34vh;
  1067. z-index: 1001;
  1068. }
  1069. .uni-dialog-title {
  1070. /* #ifndef APP-NVUE */
  1071. display: flex;
  1072. /* #endif */
  1073. flex-direction: row;
  1074. justify-content: center;
  1075. padding-top: 15px;
  1076. padding-bottom: 5px;
  1077. }
  1078. .uni-dialog-title-text {
  1079. font-size: 16px;
  1080. font-weight: 500;
  1081. }
  1082. .uni-dialog-content {
  1083. /* #ifndef APP-NVUE */
  1084. display: flex;
  1085. /* #endif */
  1086. flex-direction: row;
  1087. justify-content: center;
  1088. align-items: center;
  1089. padding: 5px 15px 15px 15px;
  1090. text-align: center;
  1091. }
  1092. .uni-dialog-content-text {
  1093. font-size: 14px;
  1094. color: #6e6e6e;
  1095. }
  1096. .uni-dialog-button-group {
  1097. /* #ifndef APP-NVUE */
  1098. display: flex;
  1099. /* #endif */
  1100. flex-direction: row;
  1101. border-top-color: #f5f5f5;
  1102. border-top-style: solid;
  1103. border-top-width: 1px;
  1104. }
  1105. .uni-dialog-button {
  1106. /* #ifndef APP-NVUE */
  1107. display: flex;
  1108. /* #endif */
  1109. background: rgba(0, 0, 0, 0);
  1110. border: none;
  1111. flex: 1;
  1112. flex-direction: row;
  1113. justify-content: center;
  1114. align-items: center;
  1115. height: 45px;
  1116. }
  1117. .uni-border-left {
  1118. border-left-color: #f0f0f0;
  1119. border-left-style: solid;
  1120. border-left-width: 0px;
  1121. }
  1122. .uni-dialog-button-text {
  1123. font-size: 14px;
  1124. }
  1125. .uni-button-color {
  1126. color: #007aff;
  1127. }
  1128. .uni-dialog-input {
  1129. flex: 1;
  1130. font-size: 14px;
  1131. }
  1132. .uni-popup__success {
  1133. color: #4cd964;
  1134. }
  1135. .uni-popup__warn {
  1136. color: #f0ad4e;
  1137. }
  1138. .uni-popup__error {
  1139. color: #dd524d;
  1140. }
  1141. .uni-popup__info {
  1142. color: #909399;
  1143. }
  1144. .qx_bg{
  1145. width: 100vw;
  1146. height: 100vh;
  1147. background: rgba(0, 0, 0, 0.25);
  1148. position: fixed;
  1149. top: 0px;
  1150. left: 0px;
  1151. z-index: 1000;
  1152. }
  1153. </style>