orderDetail.vue 28 KB

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