orderDetail.vue 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249
  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. if (this.orderData.merchantInfoResVO.products.every(v => {
  273. Number(v.productType)
  274. return v.productType == 4
  275. })) {
  276. this.buttonGroup = [{
  277. text: '申请售后',
  278. backgroundColor: '#75BD60',
  279. color: '#fff'
  280. }, {
  281. text: '我的种植',
  282. backgroundColor: '#52A63A',
  283. color: '#fff'
  284. }]
  285. } else {
  286. this.buttonGroup = [{
  287. text: '申请售后',
  288. backgroundColor: '#75BD60',
  289. color: '#fff'
  290. }]
  291. }
  292. break;
  293. default:
  294. this.buttonGroup = [{
  295. text: '申请售后',
  296. backgroundColor: '#52A63A',
  297. color: '#fff'
  298. }]
  299. }
  300. if (this.orderData.orderStatus == 4 && this.orderData.evaluateReplyStatus == 1) {
  301. if (this.orderData.orderType !=3 && this.orderData.orderType !=4)
  302. this.buttonGroup.push({
  303. text: '评价',
  304. backgroundColor: '#52A63A',
  305. color: '#fff'
  306. })
  307. }
  308. this.getOrderType()
  309. }).catch(error => {
  310. this.$refs.uTips.show({
  311. title: error.data.msg,
  312. type: 'warning',
  313. })
  314. })
  315. // this.getOrderType()
  316. },
  317. onShow() {},
  318. methods: {
  319. closeSetting:function(){
  320. this.show_qx=true;
  321. },
  322. // 获取订单类型
  323. getOrderType() {
  324. if (!this.orderData.auctionStatus) {
  325. switch (this.orderData.orderStatus) {
  326. case 1:
  327. this.orderType = {
  328. title: '等待买家付款',
  329. text: '订单将于' + this.orderData.overTime + '关闭',
  330. date: this.orderData.overTime
  331. }
  332. break;
  333. case 2:
  334. this.orderType = {
  335. title: '等待卖家发货',
  336. text: '您的商品正在打包等待发货',
  337. }
  338. break;
  339. case 3:
  340. this.orderType = {
  341. title: '等待商品送达',
  342. text: '您的商品已发出正在路上,请耐心等待',
  343. }
  344. break;
  345. case 4:
  346. this.orderType = {
  347. title: '商品已送达',
  348. text: '',
  349. }
  350. break;
  351. case 5:
  352. this.orderType = {
  353. title: '交易已完成',
  354. text: '',
  355. }
  356. break;
  357. default:
  358. this.orderType = {
  359. title: '交易已取消',
  360. text: '',
  361. }
  362. }
  363. } else {
  364. switch (this.orderData.auctionStatus) {
  365. case 1:
  366. this.orderType = {
  367. title: '竞拍中',
  368. text: '',
  369. }
  370. break;
  371. case 2:
  372. switch (this.orderData.orderStatus) {
  373. case 2:
  374. this.orderType = {
  375. title: '竞拍成功-等待卖家发货',
  376. text: '您的商品正在打包等待发货',
  377. }
  378. break;
  379. case 3:
  380. this.orderType = {
  381. title: '竞拍成功-等待商品送达',
  382. text: '您的商品已发出正在路上,请耐心等待',
  383. }
  384. break;
  385. case 4:
  386. this.orderType = {
  387. title: '竞拍成功-商品已送达',
  388. text: '',
  389. }
  390. break;
  391. case 5:
  392. this.orderType = {
  393. title: '竞拍成功-交易已完成',
  394. text: '',
  395. }
  396. break;
  397. }
  398. break;
  399. case 3:
  400. this.orderType = {
  401. title: '竞拍失败',
  402. text: '',
  403. }
  404. break;
  405. }
  406. }
  407. },
  408. // 操作
  409. orderHandle(e) {
  410. if (this.orderData.orderStatus == 1) {
  411. if (e.index == 0) {
  412. // 取消订单
  413. this.modalContent = '请确定是否取消订单'
  414. this.handleType = 1
  415. this.modalShow = true
  416. } else if (e.index == 1) {
  417. // 立即支付
  418. this.modalContent = '请确定是否立即支付'
  419. this.handleType = 2
  420. this.modalShow = true
  421. }
  422. } else {
  423. if (e.index == 0) {
  424. // 申请售后
  425. NET.request(API.applyService, {
  426. tenantCode: this.orderData.tenantCode
  427. }, 'GET').then(res => {
  428. uni.makePhoneCall({
  429. phoneNumber: res.data.contactTel
  430. });
  431. }).catch(error => {
  432. this.$refs.uTips.show({
  433. title: error.data.msg,
  434. type: 'warning',
  435. })
  436. })
  437. } else {
  438. if (this.orderData.orderStatus == 2) {
  439. var that=this;
  440. wx.getSetting({
  441. success(res) {
  442. if (!res.authSetting['scope.camera']){
  443. that.show_qx=false;
  444. }else if (!res.authSetting['scope.record']){
  445. that.show_qx=false;
  446. }else{
  447. uni.navigateTo({
  448. url: '/pagesGood/pickVideo?orderId=' + that.orderData.orderId + '&tenantCode=' + that.orderData.tenantCode
  449. });
  450. }
  451. }
  452. })
  453. // 自助采摘
  454. } else if (this.orderData.orderStatus == 3) {
  455. if (e.index == 1) {
  456. // 确认收货
  457. this.modalContent = '请确定是否确认收货'
  458. this.handleType = 3
  459. this.modalShow = true
  460. } else {
  461. // 追踪物流
  462. uni.navigateTo({
  463. url: '/pagesMain/logisticsDeatil?logisticCode=' + this.orderData.logisticsNum
  464. });
  465. }
  466. } else {
  467. // 评价
  468. uni.navigateTo({
  469. url: '/pagesMain/evaluateForm?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode +
  470. '&productIds=' + this.orderData.merchantInfoResVO.products.map(site => {
  471. return site.productId
  472. }).join(',')
  473. });
  474. }
  475. }
  476. }
  477. },
  478. // 状态流转
  479. submitHandle() {
  480. if (this.handleType == 1) {
  481. // 取消订单
  482. NET.request(API.cancelOrder, {
  483. orderId: this.orderData.orderId
  484. }, 'GET').then(res => {
  485. this.modalShow = false
  486. this.$refs.uTips.show({
  487. title: '取消订单成功',
  488. type: 'success',
  489. })
  490. setTimeout(() => {
  491. uni.reLaunch({
  492. url: '/pagesMain/orderList?type=' + 1
  493. });
  494. }, 1000)
  495. }).catch(error => {
  496. this.modalShow = false
  497. this.$refs.uTips.show({
  498. title: error.data.msg,
  499. type: 'warning',
  500. })
  501. })
  502. } else if (this.handleType == 2) {
  503. // 立即支付
  504. NET.request(API.payOrder, {
  505. mid: uni.getStorageSync("userData").userId,
  506. orderCode: this.orderData.orderCode,
  507. orderId: this.orderData.orderId,
  508. }, 'POST').then(res => {
  509. this.modalShow = false
  510. uni.requestPayment({
  511. provider: 'wxpay',
  512. timeStamp: res.data.timeStamp,
  513. nonceStr: res.data.nonceStr,
  514. package: res.data.packageValue,
  515. signType: res.data.signType,
  516. paySign: res.data.paySign,
  517. success: (payRes) => {
  518. console.log('success:' + JSON.stringify(payRes));
  519. uni.navigateTo({
  520. url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
  521. });
  522. },
  523. fail: (error) => {
  524. console.log('fail:' + JSON.stringify(error));
  525. this.$refs.uTips.show({
  526. title: '支付失败',
  527. type: 'warning',
  528. })
  529. }
  530. })
  531. }).catch(error => {
  532. this.modalShow = false
  533. this.$refs.uTips.show({
  534. title: error.data.msg,
  535. type: 'warning',
  536. })
  537. })
  538. // setTimeout(() => {
  539. // uni.reLaunch({
  540. // url: '/pagesMain/orderList?type=' + 3
  541. // });
  542. // }, 1000)
  543. } else if (this.handleType == 3) {
  544. // 确认收货
  545. NET.request(API.confirmOrder, {
  546. orderId: this.orderData.orderId
  547. }, 'GET').then(res => {
  548. this.modalShow = false
  549. this.$refs.uTips.show({
  550. title: '确认收货成功',
  551. type: 'success',
  552. })
  553. setTimeout(() => {
  554. uni.reLaunch({
  555. url: '/pagesMain/orderList?type=' + 5
  556. });
  557. }, 1000)
  558. }).catch(error => {
  559. this.modalShow = false
  560. this.$refs.uTips.show({
  561. title: error.data.msg,
  562. type: 'warning',
  563. })
  564. })
  565. }
  566. },
  567. // 跳转留言列表
  568. goToMessage() {
  569. uni.navigateTo({
  570. url: '/pagesMain/messageList?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode
  571. });
  572. },
  573. // 跳转商铺
  574. gotoShop() {
  575. if (this.orderData.tenantCode != 'admin') {
  576. if (this.orderData.merchantInfoResVO.products.length) {
  577. uni.navigateTo({
  578. url: '/pagesGood/shopDetails?goodId=' + this.orderData.merchantInfoResVO.products[0].productId
  579. });
  580. }
  581. }
  582. },
  583. // 图片预览
  584. _previewImage(image,index) {
  585. var imgArr = [];
  586. imgArr.push(image);
  587. //预览图片
  588. uni.previewImage({
  589. urls: imgArr,
  590. current: imgArr[index]
  591. });
  592. }
  593. }
  594. }
  595. </script>
  596. <style>
  597. page {
  598. background-color: #f7f7f7;
  599. }
  600. </style>
  601. <style lang="less" scoped>
  602. page {
  603. width: 100%;
  604. height: 100%;
  605. }
  606. .container {
  607. width: 100%;
  608. height: 100%;
  609. float: left;
  610. background-color: #f7f7f7;
  611. // box-sizing: border-box;
  612. // padding-bottom: 50px;
  613. overflow-y: auto;
  614. .order-type-info {
  615. width: 100%;
  616. height: 115px;
  617. float: left;
  618. box-sizing: border-box;
  619. padding: 22px 100px 0 15px;
  620. background: #52A63A;
  621. border-radius: 0px 0px 20px 20px;
  622. background-size: 62px;
  623. background-position: calc(100% - 48px) 12px;
  624. background-repeat: no-repeat;
  625. background-image: url(@/static/images/orderDetail.png);
  626. .order-type-title {
  627. width: 100%;
  628. float: left;
  629. height: 20px;
  630. line-height: 20px;
  631. font-size: 15px;
  632. font-family: PingFang SC;
  633. color: #FFFFFF;
  634. margin-bottom: 4px;
  635. }
  636. .order-type-text {
  637. width: 100%;
  638. float: left;
  639. height: 20px;
  640. line-height: 20px;
  641. font-size: 12px;
  642. font-family: PingFang SC;
  643. color: #FFFFFF;
  644. }
  645. }
  646. .address-info-box {
  647. width: calc(100% - 30px);
  648. float: left;
  649. box-sizing: border-box;
  650. padding: 16px 18px 16px 16px;
  651. margin: -34px 15px 10px 15px;
  652. background: #FFFFFF;
  653. border-radius: 10px;
  654. .address-icon {
  655. width: 36px;
  656. height: 40px;
  657. float: left;
  658. align-items: center;
  659. display: flex;
  660. .iconfont {
  661. color: #52A63A;
  662. font-size: 36px;
  663. }
  664. }
  665. .address-content {
  666. width: calc(100% - 56px);
  667. height: 40px;
  668. float: left;
  669. margin: 0 8px 0 12px;
  670. .address-info {
  671. height: 20px;
  672. font-family: PingFang SC;
  673. line-height: 20px;
  674. overflow: hidden;
  675. text-overflow: ellipsis;
  676. white-space: nowrap;
  677. .address-name {
  678. font-size: 16px;
  679. color: #333333;
  680. margin-right: 14px;
  681. }
  682. .address-phone {
  683. font-size: 12px;
  684. color: #666666;
  685. }
  686. }
  687. .address-detail {
  688. height: 20px;
  689. font-size: 16px;
  690. font-family: PingFang SC;
  691. color: #333333;
  692. line-height: 20px;
  693. overflow: hidden;
  694. text-overflow: ellipsis;
  695. white-space: nowrap;
  696. }
  697. }
  698. }
  699. .goods-info-box {
  700. width: calc(100% - 30px);
  701. float: left;
  702. margin: 0 15px 10px 15px;
  703. background: #FFFFFF;
  704. border-radius: 10px;
  705. .shop-info {
  706. width: 100%;
  707. height: 48px;
  708. float: left;
  709. box-sizing: border-box;
  710. padding: 13px 15px 12px 15px;
  711. border-bottom: 1px solid #EEEEEE;
  712. line-height: 22px;
  713. .icondianpu {
  714. font-size: 22px;
  715. color: #333333;
  716. }
  717. .shop-name {
  718. font-size: 15px;
  719. font-family: PingFang SC;
  720. color: #333333;
  721. margin: 0 8px 0 10px;
  722. }
  723. .iconshangjia {
  724. font-size: 12px;
  725. color: #999999;
  726. }
  727. }
  728. .goods-list {
  729. width: 100%;
  730. float: left;
  731. box-sizing: border-box;
  732. padding: 10px 15px 0 15px;
  733. .goods-row {
  734. width: 100%;
  735. height: 90px;
  736. float: left;
  737. display: flex;
  738. margin-bottom: 10px;
  739. .goods-img {
  740. width: 90px;
  741. height: 90px;
  742. border-radius: 5px;
  743. object-fit: cover;
  744. }
  745. .goods-info {
  746. width: calc(100% - 106px);
  747. height: 90px;
  748. margin-left: 16px;
  749. .goods-name {
  750. width: 100%;
  751. height: 36px;
  752. float: left;
  753. font-size: 14px;
  754. font-family: PingFang SC;
  755. color: #333333;
  756. line-height: 18px;
  757. overflow: hidden;
  758. text-overflow: ellipsis;
  759. display: -webkit-box;
  760. -webkit-line-clamp: 2;
  761. -webkit-box-orient: vertical;
  762. word-wrap: break-word;
  763. }
  764. .goods-type {
  765. height: 20px;
  766. float: left;
  767. background: #F0F0F0;
  768. border-radius: 4px;
  769. padding: 0 8px;
  770. margin: 6px 0;
  771. font-size: 10px;
  772. font-family: PingFang SC;
  773. color: #666666;
  774. line-height: 20px;
  775. }
  776. .plant-area {
  777. height: 20px;
  778. float: right;
  779. margin: 6px 0;
  780. font-size: 12px;
  781. font-family: PingFang SC;
  782. color: #333333;
  783. }
  784. .goods-price-number {
  785. width: 100%;
  786. height: 20px;
  787. float: left;
  788. line-height: 20px;
  789. font-family: PingFang SC;
  790. color: #333333;
  791. .goods-unit {
  792. font-size: 12px;
  793. }
  794. .goods-price {
  795. font-size: 15px;
  796. margin-right: 6px;
  797. }
  798. .goods-number {
  799. font-size: 12px;
  800. }
  801. }
  802. .plant-text {
  803. float: right;
  804. font-size: 12px;
  805. font-family: PingFang SC;
  806. color: #333333;
  807. }
  808. }
  809. }
  810. }
  811. .order-info {
  812. width: 100%;
  813. float: left;
  814. /deep/.u-cell {
  815. padding: 6px 16px;
  816. }
  817. }
  818. .pay-info {
  819. width: 100%;
  820. height: 46px;
  821. float: left;
  822. box-sizing: border-box;
  823. border-top: 1px solid #EEEEEE;
  824. padding-right: 15px;
  825. line-height: 44px;
  826. font-family: PingFang SC;
  827. font-size: 14px;
  828. text-align: right;
  829. white-space: nowrap;
  830. .pay-text {
  831. float: left;
  832. color: #333333;
  833. margin-left: 15px;
  834. }
  835. .pay-price {
  836. color: #52A63A;
  837. }
  838. }
  839. }
  840. .order-info-box {
  841. width: calc(100% - 30px);
  842. float: left;
  843. margin: 0 15px 10px 15px;
  844. background: #FFFFFF;
  845. border-radius: 10px;
  846. .info-title-box {
  847. width: 100%;
  848. height: 48px;
  849. float: left;
  850. box-sizing: border-box;
  851. padding: 15px 15px 14px 15px;
  852. border-bottom: 1px solid #EEEEEE;
  853. line-height: 18px;
  854. white-space: nowrap;
  855. .info-title {
  856. height: 18px;
  857. float: left;
  858. font-size: 15px;
  859. font-family: PingFang SC;
  860. color: #333333;
  861. margin-right: 8px;
  862. padding-left: 10px;
  863. border-left: 2px solid #74BD60;
  864. }
  865. .iconfangxiang {
  866. float: right;
  867. font-size: 12px;
  868. color: #999999;
  869. }
  870. }
  871. .info-content-box {
  872. width: 100%;
  873. float: left;
  874. padding: 15px 0;
  875. .message-row {
  876. width: 100%;
  877. float: left;
  878. box-sizing: border-box;
  879. padding: 0 15px;
  880. margin-bottom: 15px;
  881. .message-head {
  882. width: 50px;
  883. height: 50px;
  884. object-fit: cover;
  885. float: left;
  886. border-radius: 50%;
  887. overflow: hidden;
  888. }
  889. .message-info-box {
  890. width: calc(100% - 75px);
  891. float: right;
  892. .message-name {
  893. width: 50%;
  894. height: 30px;
  895. float: left;
  896. font-size: 15px;
  897. font-family: PingFang SC;
  898. color: #333333;
  899. line-height: 30px;
  900. overflow: hidden;
  901. text-overflow: ellipsis;
  902. white-space: nowrap;
  903. }
  904. .message-date {
  905. width: 50%;
  906. height: 30px;
  907. float: left;
  908. font-size: 12px;
  909. font-family: PingFang SC;
  910. color: #666666;
  911. text-align: right;
  912. line-height: 30px;
  913. overflow: hidden;
  914. text-overflow: ellipsis;
  915. white-space: nowrap;
  916. }
  917. .message-text {
  918. width: 100%;
  919. height: 20px;
  920. float: left;
  921. font-size: 12px;
  922. font-family: PingFang SC;
  923. color: #666666;
  924. line-height: 20px;
  925. overflow: hidden;
  926. text-overflow: ellipsis;
  927. white-space: nowrap;
  928. }
  929. .message-img-box {
  930. width: 100%;
  931. float: left;
  932. .message-img {
  933. width: 76px;
  934. height: 76px;
  935. object-fit: cover;
  936. float: left;
  937. margin: 0 10px 10px 0;
  938. }
  939. }
  940. }
  941. }
  942. .message-row:last-child {
  943. margin-bottom: 0;
  944. }
  945. .order-info-row {
  946. width: 100%;
  947. float: left;
  948. box-sizing: border-box;
  949. padding: 0 15px;
  950. font-size: 12px;
  951. font-family: PingFang SC;
  952. color: #333333;
  953. line-height: 26px;
  954. word-break: break-all;
  955. }
  956. }
  957. .assess-row {
  958. width: calc(100% - 30px);
  959. margin: 0 15px;
  960. float: left;
  961. // border-top: 1px solid #F6F6F6;
  962. padding: 12px 0;
  963. .assess-head {
  964. width: 50px;
  965. height: 50px;
  966. float: left;
  967. object-fit: cover;
  968. border-radius: 50%;
  969. }
  970. .assess-info {
  971. width: calc(100% - 62px);
  972. margin-left: 12px;
  973. float: left;
  974. .assess-name {
  975. height: 18px;
  976. float: left;
  977. line-height: 18px;
  978. font-size: 15px;
  979. font-family: PingFang SC;
  980. font-weight: bold;
  981. color: #343434;
  982. }
  983. .assess-date {
  984. height: 18px;
  985. float: right;
  986. line-height: 18px;
  987. font-size: 12px;
  988. font-family: PingFang SC;
  989. font-weight: bold;
  990. color: #666666;
  991. }
  992. .assess-sore-box {
  993. width: 100%;
  994. height: 16px;
  995. float: left;
  996. margin: 6px 0;
  997. }
  998. .assess-text {
  999. width: 100%;
  1000. float: left;
  1001. font-size: 12px;
  1002. font-family: PingFang SC;
  1003. font-weight: bold;
  1004. color: #666666;
  1005. line-height: 16px;
  1006. margin: 8px 0 10px 0;
  1007. overflow: hidden;
  1008. text-overflow: ellipsis;
  1009. display: -webkit-box;
  1010. -webkit-line-clamp: 2;
  1011. -webkit-box-orient: vertical;
  1012. word-wrap: break-word;
  1013. }
  1014. .assess-img-box {
  1015. width: 100%;
  1016. float: left;
  1017. display: flex;
  1018. .img-col {
  1019. height: 60px;
  1020. width: 60px;
  1021. object-fit: cover;
  1022. margin: 0 10px 10px 0;
  1023. }
  1024. }
  1025. }
  1026. .shop-reply-box {
  1027. width: 100%;
  1028. float: left;
  1029. background: #F5F5F5;
  1030. border-radius: 5px;
  1031. margin-top: 10px;
  1032. .shop-head {
  1033. width: 100%;
  1034. height: 36px;
  1035. float: left;
  1036. box-sizing: border-box;
  1037. padding: 10px 12px;
  1038. .icondianpu {
  1039. width: 16px;
  1040. height: 16px;
  1041. float: left;
  1042. color: #52A63A;
  1043. font-size: 20px;
  1044. margin-right: 8px;
  1045. }
  1046. .shop-name {
  1047. height: 16px;
  1048. float: left;
  1049. font-size: 15px;
  1050. font-family: PingFang SC;
  1051. color: #52A63A;
  1052. line-height: 16px;
  1053. }
  1054. }
  1055. .shop-reply {
  1056. width: 100%;
  1057. float: left;
  1058. box-sizing: border-box;
  1059. padding: 0 12px 12px 12px;
  1060. font-size: 12px;
  1061. font-family: PingFang SC;
  1062. color: #666666;
  1063. line-height: 16px;
  1064. }
  1065. }
  1066. }
  1067. }
  1068. .order-handle {
  1069. width: 100%;
  1070. height: 50px;
  1071. float: left;
  1072. border-top: 1px solid #cccccc;
  1073. }
  1074. }
  1075. .uni-popup-dialog {
  1076. width: 80vw;
  1077. border-radius: 15px;
  1078. background-color: #fff;
  1079. position: fixed;
  1080. margin-left: 10vw;
  1081. top: 34vh;
  1082. z-index: 1001;
  1083. }
  1084. .uni-dialog-title {
  1085. /* #ifndef APP-NVUE */
  1086. display: flex;
  1087. /* #endif */
  1088. flex-direction: row;
  1089. justify-content: center;
  1090. padding-top: 15px;
  1091. padding-bottom: 5px;
  1092. }
  1093. .uni-dialog-title-text {
  1094. font-size: 16px;
  1095. font-weight: 500;
  1096. }
  1097. .uni-dialog-content {
  1098. /* #ifndef APP-NVUE */
  1099. display: flex;
  1100. /* #endif */
  1101. flex-direction: row;
  1102. justify-content: center;
  1103. align-items: center;
  1104. padding: 5px 15px 15px 15px;
  1105. text-align: center;
  1106. }
  1107. .uni-dialog-content-text {
  1108. font-size: 14px;
  1109. color: #6e6e6e;
  1110. }
  1111. .uni-dialog-button-group {
  1112. /* #ifndef APP-NVUE */
  1113. display: flex;
  1114. /* #endif */
  1115. flex-direction: row;
  1116. border-top-color: #f5f5f5;
  1117. border-top-style: solid;
  1118. border-top-width: 1px;
  1119. }
  1120. .uni-dialog-button {
  1121. /* #ifndef APP-NVUE */
  1122. display: flex;
  1123. /* #endif */
  1124. background: rgba(0, 0, 0, 0);
  1125. border: none;
  1126. flex: 1;
  1127. flex-direction: row;
  1128. justify-content: center;
  1129. align-items: center;
  1130. height: 45px;
  1131. }
  1132. .uni-border-left {
  1133. border-left-color: #f0f0f0;
  1134. border-left-style: solid;
  1135. border-left-width: 0px;
  1136. }
  1137. .uni-dialog-button-text {
  1138. font-size: 14px;
  1139. }
  1140. .uni-button-color {
  1141. color: #007aff;
  1142. }
  1143. .uni-dialog-input {
  1144. flex: 1;
  1145. font-size: 14px;
  1146. }
  1147. .uni-popup__success {
  1148. color: #4cd964;
  1149. }
  1150. .uni-popup__warn {
  1151. color: #f0ad4e;
  1152. }
  1153. .uni-popup__error {
  1154. color: #dd524d;
  1155. }
  1156. .uni-popup__info {
  1157. color: #909399;
  1158. }
  1159. .qx_bg{
  1160. width: 100vw;
  1161. height: 100vh;
  1162. background: rgba(0, 0, 0, 0.25);
  1163. position: fixed;
  1164. top: 0px;
  1165. left: 0px;
  1166. z-index: 1000;
  1167. }
  1168. </style>