orderDetail.vue 31 KB

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