orderDetail.vue 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024
  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">
  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.imgUrl" mode="aspectFill"></image>
  65. <view class="message-info-box">
  66. <view class="message-name">{{item.leaMsgType}}</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>
  122. </template>
  123. <script>
  124. const NET = require('@/utils/request')
  125. const API = require('@/config/api')
  126. export default {
  127. components: {
  128. },
  129. data() {
  130. return {
  131. orderType: {
  132. title: '',
  133. text: '',
  134. },
  135. orderData: {
  136. orderId: '',
  137. addOrderTime: '',
  138. recName: '',
  139. recMobile: '',
  140. address: '',
  141. merchantInfoResVO: {
  142. supplierName: '',
  143. products: [],
  144. },
  145. orderSum: 0,
  146. integralAmount: 0,
  147. couponDiscountAmount: 0,
  148. notes: 'xxxxx',
  149. paySum: 0,
  150. leas: [],
  151. orderCode: '',
  152. payTime: '',
  153. sendTime: '',
  154. confirmTime: '',
  155. cancelTime: '',
  156. tenantCode: '',
  157. evaluateReplyStatus: 1,
  158. },
  159. goodType: 1,
  160. buttonGroup: [],
  161. modalShow: false,
  162. handleType: '',
  163. modalContent: '',
  164. }
  165. },
  166. onLoad(options) {
  167. this.userData = uni.getStorageSync("userData")
  168. NET.request(API.getOrderDetail, {
  169. flag: 1,
  170. orderId: options.orderId,
  171. orderStatus: options.orderStatus,
  172. }, 'GET').then(res => {
  173. this.orderData = res.data
  174. if (this.orderData.addOrderTime) {
  175. let tempTime = new Date(this.orderData.addOrderTime).getTime()
  176. let addTempTime = new Date(tempTime + 1000*60*60*24)
  177. let addYear = addTempTime.getFullYear()
  178. let addMonth = addTempTime.getMonth()+1
  179. let addDay = addTempTime.getDate()
  180. let addHours = addTempTime.getHours()
  181. let addMin = addTempTime.getMinutes()
  182. let addSeconds = addTempTime.getSeconds()
  183. this.orderData.overTime = addYear + '年' + addMonth + '月' + addDay + '日' + addHours + ':' + addMin + ':' + addSeconds
  184. // this.orderData.tempTimeArr = this.orderData.addOrderTime.split(' ')
  185. // let tempDate = new Date(this.orderData.tempTimeArr[0].replace(/-/g, "/"))
  186. // this.orderData.overTime = new Date(tempDate.setDate(tempDate.getDate() + 1))
  187. }
  188. if (this.orderData.merchantInfoResVO.products.length && this.orderData.merchantInfoResVO.products[0].productType !=
  189. 2 && this.orderData.merchantInfoResVO.products[0].productType != 4) {
  190. this.goodType = 1
  191. } else {
  192. this.goodType = 2
  193. }
  194. switch (JSON.stringify(this.orderData.orderStatus)) {
  195. case '1':
  196. this.buttonGroup = [{
  197. text: '取消订单',
  198. backgroundColor: '#75BD60',
  199. color: '#fff'
  200. }, {
  201. text: '立即支付',
  202. backgroundColor: '#52A63A',
  203. color: '#fff'
  204. }]
  205. break;
  206. case '2':
  207. var someVaule = this.orderData.merchantInfoResVO.products.some(v => {
  208. Number(v.productType)
  209. return v.productType == 1
  210. })
  211. if (!someVaule) {
  212. if (this.orderData.merchantInfoResVO.products.every(v => {
  213. Number(v.productType)
  214. return v.productType == 3
  215. })) {
  216. this.buttonGroup = [{
  217. text: '申请售后',
  218. backgroundColor: '#75BD60',
  219. color: '#fff'
  220. }, {
  221. text: '自助采摘',
  222. backgroundColor: '#52A63A',
  223. color: '#fff'
  224. }]
  225. } else {
  226. this.buttonGroup = [{
  227. text: '申请售后',
  228. backgroundColor: '#75BD60',
  229. color: '#fff'
  230. }]
  231. }
  232. } else {
  233. this.buttonGroup = [{
  234. text: '申请售后',
  235. backgroundColor: '#75BD60',
  236. color: '#fff'
  237. }]
  238. }
  239. break;
  240. case '3':
  241. this.buttonGroup = [{
  242. text: '申请售后',
  243. backgroundColor: '#52A63A',
  244. color: '#fff'
  245. }, {
  246. text: '确认收货',
  247. backgroundColor: '#52A63A',
  248. color: '#fff'
  249. }, {
  250. text: '追踪物流',
  251. backgroundColor: '#52A63A',
  252. color: '#fff'
  253. }]
  254. break;
  255. case '4':
  256. this.buttonGroup = [{
  257. text: '申请售后',
  258. backgroundColor: '#75BD60',
  259. color: '#fff'
  260. }]
  261. break;
  262. default:
  263. this.buttonGroup = [{
  264. text: '申请售后',
  265. backgroundColor: '#52A63A',
  266. color: '#fff'
  267. }]
  268. }
  269. if (this.orderData.orderStatus == 4 && this.orderData.evaluateReplyStatus == 1) {
  270. this.buttonGroup.push({
  271. text: '评价',
  272. backgroundColor: '#52A63A',
  273. color: '#fff'
  274. })
  275. }
  276. this.getOrderType()
  277. }).catch(error => {
  278. this.$refs.uTips.show({
  279. title: error.data.msg,
  280. type: 'warning',
  281. })
  282. })
  283. // this.getOrderType()
  284. },
  285. onShow() {},
  286. methods: {
  287. // 获取订单类型
  288. getOrderType() {
  289. switch (this.orderData.orderStatus) {
  290. case 1:
  291. this.orderType = {
  292. title: '等待买家付款',
  293. text: '订单将于' + this.orderData.overTime + '关闭',
  294. date: this.orderData.overTime
  295. }
  296. break;
  297. case 2:
  298. this.orderType = {
  299. title: '等待卖家发货',
  300. text: '您的商品正在打包等待发货',
  301. }
  302. break;
  303. case 3:
  304. this.orderType = {
  305. title: '等待商品送达',
  306. text: '您的商品已发出正在路上,请耐心等待',
  307. }
  308. break;
  309. case 4:
  310. this.orderType = {
  311. title: '商品已送达',
  312. text: '',
  313. }
  314. break;
  315. case 5:
  316. this.orderType = {
  317. title: '交易已完成',
  318. text: '',
  319. }
  320. break;
  321. default:
  322. this.orderType = {
  323. title: '交易已取消',
  324. text: '',
  325. }
  326. }
  327. },
  328. // 操作
  329. orderHandle(e) {
  330. if (this.orderData.orderStatus == 1) {
  331. if (e.index == 0) {
  332. // 取消订单
  333. this.modalContent = '请确定是否取消订单'
  334. this.handleType = 1
  335. this.modalShow = true
  336. } else if (e.index == 1) {
  337. // 立即支付
  338. this.modalContent = '请确定是否立即支付'
  339. this.handleType = 2
  340. this.modalShow = true
  341. }
  342. } else {
  343. if (e.index == 0) {
  344. // 申请售后
  345. NET.request(API.applyService, {
  346. tenantCode: this.orderData.tenantCode
  347. }, 'GET').then(res => {
  348. uni.makePhoneCall({
  349. phoneNumber: res.data.contactTel
  350. });
  351. }).catch(error => {
  352. this.$refs.uTips.show({
  353. title: error.data.msg,
  354. type: 'warning',
  355. })
  356. })
  357. } else {
  358. if (this.orderData.orderStatus == 2) {
  359. // 自助采摘
  360. uni.navigateTo({
  361. url: '/pagesGood/pickVideo?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode
  362. });
  363. } else if (this.orderData.orderStatus == 3) {
  364. if (e.index == 1) {
  365. // 确认收货
  366. this.modalContent = '请确定是否确认收货'
  367. this.handleType = 3
  368. this.modalShow = true
  369. } else {
  370. // 追踪物流
  371. uni.navigateTo({
  372. url: '/pagesMain/logisticsDeatil?orderId=' + this.orderData.orderId
  373. });
  374. }
  375. } else {
  376. // 评价
  377. uni.navigateTo({
  378. url: '/pagesMain/evaluateForm?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode +
  379. '&productIds=' + this.orderData.merchantInfoResVO.products.map(site => {
  380. return site.productId
  381. }).join(',')
  382. });
  383. }
  384. }
  385. }
  386. },
  387. // 状态流转
  388. submitHandle() {
  389. if (this.handleType == 1) {
  390. // 取消订单
  391. NET.request(API.cancelOrder, {
  392. orderId: this.orderData.orderId
  393. }, 'GET').then(res => {
  394. this.modalShow = false
  395. this.$refs.uTips.show({
  396. title: '取消订单成功',
  397. type: 'success',
  398. })
  399. setTimeout(() => {
  400. uni.reLaunch({
  401. url: '/pagesMain/orderList?type=' + 1
  402. });
  403. }, 1000)
  404. }).catch(error => {
  405. this.modalShow = false
  406. this.$refs.uTips.show({
  407. title: error.data.msg,
  408. type: 'warning',
  409. })
  410. })
  411. } else if (this.handleType == 2) {
  412. // 立即支付
  413. NET.request(API.payOrder, {
  414. mid: uni.getStorageSync("userData").userId,
  415. orderCode: this.orderData.orderCode,
  416. orderId: this.orderData.orderId,
  417. }, 'POST').then(res => {
  418. this.modalShow = false
  419. uni.requestPayment({
  420. provider: 'wxpay',
  421. timeStamp: res.data.timeStamp,
  422. nonceStr: res.data.nonceStr,
  423. package: res.data.packageValue,
  424. signType: res.data.signType,
  425. paySign: res.data.paySign,
  426. success: (payRes) => {
  427. console.log('success:' + JSON.stringify(payRes));
  428. uni.navigateTo({
  429. url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
  430. });
  431. },
  432. fail: (error) => {
  433. console.log('fail:' + JSON.stringify(error));
  434. this.$refs.uTips.show({
  435. title: '支付失败',
  436. type: 'warning',
  437. })
  438. }
  439. })
  440. }).catch(error => {
  441. this.modalShow = false
  442. this.$refs.uTips.show({
  443. title: error.data.msg,
  444. type: 'warning',
  445. })
  446. })
  447. // setTimeout(() => {
  448. // uni.reLaunch({
  449. // url: '/pagesMain/orderList?type=' + 3
  450. // });
  451. // }, 1000)
  452. } else if (this.handleType == 3) {
  453. // 确认收货
  454. NET.request(API.confirmOrder, {
  455. orderId: this.orderData.orderId
  456. }, 'GET').then(res => {
  457. this.modalShow = false
  458. this.$refs.uTips.show({
  459. title: '确认收货成功',
  460. type: 'success',
  461. })
  462. setTimeout(() => {
  463. uni.reLaunch({
  464. url: '/pagesMain/orderList?type=' + 5
  465. });
  466. }, 1000)
  467. }).catch(error => {
  468. this.modalShow = false
  469. this.$refs.uTips.show({
  470. title: error.data.msg,
  471. type: 'warning',
  472. })
  473. })
  474. }
  475. },
  476. // 跳转留言列表
  477. goToMessage() {
  478. uni.navigateTo({
  479. url: '/pagesMain/messageList?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode
  480. });
  481. }
  482. }
  483. }
  484. </script>
  485. <style lang="less" scoped>
  486. page {
  487. width: 100%;
  488. height: 100%;
  489. }
  490. .container {
  491. width: 100%;
  492. height: 100%;
  493. float: left;
  494. background-color: #f7f7f7;
  495. // box-sizing: border-box;
  496. // padding-bottom: 50px;
  497. overflow-y: auto;
  498. .order-type-info {
  499. width: 100%;
  500. height: 115px;
  501. float: left;
  502. box-sizing: border-box;
  503. padding: 22px 100px 0 15px;
  504. background: #52A63A;
  505. border-radius: 0px 0px 20px 20px;
  506. background-size: 62px;
  507. background-position: calc(100% - 48px) 12px;
  508. background-repeat: no-repeat;
  509. background-image: url(@/static/images/orderDetail.png);
  510. .order-type-title {
  511. width: 100%;
  512. float: left;
  513. height: 20px;
  514. line-height: 20px;
  515. font-size: 15px;
  516. font-family: PingFang SC;
  517. color: #FFFFFF;
  518. margin-bottom: 4px;
  519. }
  520. .order-type-text {
  521. width: 100%;
  522. float: left;
  523. height: 20px;
  524. line-height: 20px;
  525. font-size: 12px;
  526. font-family: PingFang SC;
  527. color: #FFFFFF;
  528. }
  529. }
  530. .address-info-box {
  531. width: calc(100% - 30px);
  532. float: left;
  533. box-sizing: border-box;
  534. padding: 16px 18px 16px 16px;
  535. margin: -34px 15px 10px 15px;
  536. background: #FFFFFF;
  537. border-radius: 10px;
  538. .address-icon {
  539. width: 36px;
  540. height: 40px;
  541. float: left;
  542. align-items: center;
  543. display: flex;
  544. .iconfont {
  545. color: #52A63A;
  546. font-size: 36px;
  547. }
  548. }
  549. .address-content {
  550. width: calc(100% - 56px);
  551. height: 40px;
  552. float: left;
  553. margin: 0 8px 0 12px;
  554. .address-info {
  555. height: 20px;
  556. font-family: PingFang SC;
  557. line-height: 20px;
  558. overflow: hidden;
  559. text-overflow: ellipsis;
  560. white-space: nowrap;
  561. .address-name {
  562. font-size: 16px;
  563. color: #333333;
  564. margin-right: 14px;
  565. }
  566. .address-phone {
  567. font-size: 12px;
  568. color: #666666;
  569. }
  570. }
  571. .address-detail {
  572. height: 20px;
  573. font-size: 16px;
  574. font-family: PingFang SC;
  575. color: #333333;
  576. line-height: 20px;
  577. overflow: hidden;
  578. text-overflow: ellipsis;
  579. white-space: nowrap;
  580. }
  581. }
  582. }
  583. .goods-info-box {
  584. width: calc(100% - 30px);
  585. float: left;
  586. margin: 0 15px 10px 15px;
  587. background: #FFFFFF;
  588. border-radius: 10px;
  589. .shop-info {
  590. width: 100%;
  591. height: 48px;
  592. float: left;
  593. box-sizing: border-box;
  594. padding: 13px 15px 12px 15px;
  595. border-bottom: 1px solid #EEEEEE;
  596. line-height: 22px;
  597. .icondianpu {
  598. font-size: 22px;
  599. color: #333333;
  600. }
  601. .shop-name {
  602. font-size: 15px;
  603. font-family: PingFang SC;
  604. color: #333333;
  605. margin: 0 8px 0 10px;
  606. }
  607. .iconshangjia {
  608. font-size: 12px;
  609. color: #999999;
  610. }
  611. }
  612. .goods-list {
  613. width: 100%;
  614. float: left;
  615. box-sizing: border-box;
  616. padding: 10px 15px 0 15px;
  617. .goods-row {
  618. width: 100%;
  619. height: 90px;
  620. float: left;
  621. display: flex;
  622. margin-bottom: 10px;
  623. .goods-img {
  624. width: 90px;
  625. height: 90px;
  626. border-radius: 5px;
  627. object-fit: cover;
  628. }
  629. .goods-info {
  630. width: calc(100% - 106px);
  631. height: 90px;
  632. margin-left: 16px;
  633. .goods-name {
  634. width: 100%;
  635. height: 36px;
  636. float: left;
  637. font-size: 14px;
  638. font-family: PingFang SC;
  639. color: #333333;
  640. line-height: 18px;
  641. overflow: hidden;
  642. text-overflow: ellipsis;
  643. display: -webkit-box;
  644. -webkit-line-clamp: 2;
  645. -webkit-box-orient: vertical;
  646. word-wrap: break-word;
  647. }
  648. .goods-type {
  649. height: 20px;
  650. float: left;
  651. background: #F0F0F0;
  652. border-radius: 4px;
  653. padding: 0 8px;
  654. margin: 6px 0;
  655. font-size: 10px;
  656. font-family: PingFang SC;
  657. color: #666666;
  658. line-height: 20px;
  659. }
  660. .plant-area {
  661. height: 20px;
  662. float: right;
  663. margin: 6px 0;
  664. font-size: 12px;
  665. font-family: PingFang SC;
  666. color: #333333;
  667. }
  668. .goods-price-number {
  669. width: 100%;
  670. height: 20px;
  671. float: left;
  672. line-height: 20px;
  673. font-family: PingFang SC;
  674. color: #333333;
  675. .goods-unit {
  676. font-size: 12px;
  677. }
  678. .goods-price {
  679. font-size: 15px;
  680. margin-right: 6px;
  681. }
  682. .goods-number {
  683. font-size: 12px;
  684. }
  685. }
  686. .plant-text {
  687. float: right;
  688. font-size: 12px;
  689. font-family: PingFang SC;
  690. color: #333333;
  691. }
  692. }
  693. }
  694. }
  695. .order-info {
  696. width: 100%;
  697. float: left;
  698. /deep/.u-cell {
  699. padding: 6px 16px;
  700. }
  701. }
  702. .pay-info {
  703. width: 100%;
  704. height: 46px;
  705. float: left;
  706. box-sizing: border-box;
  707. border-top: 1px solid #EEEEEE;
  708. padding-right: 15px;
  709. line-height: 44px;
  710. font-family: PingFang SC;
  711. font-size: 14px;
  712. text-align: right;
  713. white-space: nowrap;
  714. .pay-text {
  715. float: left;
  716. color: #333333;
  717. margin-left: 15px;
  718. }
  719. .pay-price {
  720. color: #52A63A;
  721. }
  722. }
  723. }
  724. .order-info-box {
  725. width: calc(100% - 30px);
  726. float: left;
  727. margin: 0 15px 10px 15px;
  728. background: #FFFFFF;
  729. border-radius: 10px;
  730. .info-title-box {
  731. width: 100%;
  732. height: 48px;
  733. float: left;
  734. box-sizing: border-box;
  735. padding: 15px 15px 14px 15px;
  736. border-bottom: 1px solid #EEEEEE;
  737. line-height: 18px;
  738. white-space: nowrap;
  739. .info-title {
  740. height: 18px;
  741. float: left;
  742. font-size: 15px;
  743. font-family: PingFang SC;
  744. color: #333333;
  745. margin-right: 8px;
  746. padding-left: 10px;
  747. border-left: 2px solid #74BD60;
  748. }
  749. .iconfangxiang {
  750. float: right;
  751. font-size: 12px;
  752. color: #999999;
  753. }
  754. }
  755. .info-content-box {
  756. width: 100%;
  757. float: left;
  758. padding: 15px 0;
  759. .message-row {
  760. width: 100%;
  761. float: left;
  762. box-sizing: border-box;
  763. padding: 0 15px;
  764. margin-bottom: 15px;
  765. .message-head {
  766. width: 50px;
  767. height: 50px;
  768. object-fit: cover;
  769. float: left;
  770. border-radius: 50%;
  771. overflow: hidden;
  772. }
  773. .message-info-box {
  774. width: calc(100% - 75px);
  775. float: right;
  776. .message-name {
  777. width: 50%;
  778. height: 30px;
  779. float: left;
  780. font-size: 15px;
  781. font-family: PingFang SC;
  782. color: #333333;
  783. line-height: 30px;
  784. overflow: hidden;
  785. text-overflow: ellipsis;
  786. white-space: nowrap;
  787. }
  788. .message-date {
  789. width: 50%;
  790. height: 30px;
  791. float: left;
  792. font-size: 12px;
  793. font-family: PingFang SC;
  794. color: #666666;
  795. text-align: right;
  796. line-height: 30px;
  797. overflow: hidden;
  798. text-overflow: ellipsis;
  799. white-space: nowrap;
  800. }
  801. .message-text {
  802. width: 100%;
  803. height: 20px;
  804. float: left;
  805. font-size: 12px;
  806. font-family: PingFang SC;
  807. color: #666666;
  808. line-height: 20px;
  809. overflow: hidden;
  810. text-overflow: ellipsis;
  811. white-space: nowrap;
  812. }
  813. .message-img-box {
  814. width: 100%;
  815. float: left;
  816. .message-img {
  817. width: 76px;
  818. height: 76px;
  819. object-fit: cover;
  820. float: left;
  821. margin: 0 10px 10px 0;
  822. }
  823. }
  824. }
  825. }
  826. .message-row:last-child {
  827. margin-bottom: 0;
  828. }
  829. .order-info-row {
  830. width: 100%;
  831. float: left;
  832. box-sizing: border-box;
  833. padding: 0 15px;
  834. font-size: 12px;
  835. font-family: PingFang SC;
  836. color: #333333;
  837. line-height: 26px;
  838. word-break: break-all;
  839. }
  840. }
  841. .assess-row {
  842. width: calc(100% - 30px);
  843. margin: 0 15px;
  844. float: left;
  845. // border-top: 1px solid #F6F6F6;
  846. padding: 12px 0;
  847. .assess-head {
  848. width: 50px;
  849. height: 50px;
  850. float: left;
  851. object-fit: cover;
  852. border-radius: 50%;
  853. }
  854. .assess-info {
  855. width: calc(100% - 62px);
  856. margin-left: 12px;
  857. float: left;
  858. .assess-name {
  859. height: 18px;
  860. float: left;
  861. line-height: 18px;
  862. font-size: 15px;
  863. font-family: PingFang SC;
  864. font-weight: bold;
  865. color: #343434;
  866. }
  867. .assess-date {
  868. height: 18px;
  869. float: right;
  870. line-height: 18px;
  871. font-size: 12px;
  872. font-family: PingFang SC;
  873. font-weight: bold;
  874. color: #666666;
  875. }
  876. .assess-sore-box {
  877. width: 100%;
  878. height: 16px;
  879. float: left;
  880. margin: 6px 0;
  881. }
  882. .assess-text {
  883. width: 100%;
  884. float: left;
  885. font-size: 12px;
  886. font-family: PingFang SC;
  887. font-weight: bold;
  888. color: #666666;
  889. line-height: 16px;
  890. margin: 8px 0 10px 0;
  891. overflow: hidden;
  892. text-overflow: ellipsis;
  893. display: -webkit-box;
  894. -webkit-line-clamp: 2;
  895. -webkit-box-orient: vertical;
  896. word-wrap: break-word;
  897. }
  898. .assess-img-box {
  899. width: 100%;
  900. float: left;
  901. display: flex;
  902. .img-col {
  903. height: 60px;
  904. width: 60px;
  905. object-fit: cover;
  906. margin: 0 10px 10px 0;
  907. }
  908. }
  909. }
  910. .shop-reply-box {
  911. width: 100%;
  912. float: left;
  913. background: #F5F5F5;
  914. border-radius: 5px;
  915. margin-top: 10px;
  916. .shop-head {
  917. width: 100%;
  918. height: 36px;
  919. float: left;
  920. box-sizing: border-box;
  921. padding: 10px 12px;
  922. .icondianpu {
  923. width: 16px;
  924. height: 16px;
  925. float: left;
  926. color: #52A63A;
  927. font-size: 20px;
  928. margin-right: 8px;
  929. }
  930. .shop-name {
  931. height: 16px;
  932. float: left;
  933. font-size: 15px;
  934. font-family: PingFang SC;
  935. color: #52A63A;
  936. line-height: 16px;
  937. }
  938. }
  939. .shop-reply {
  940. width: 100%;
  941. float: left;
  942. box-sizing: border-box;
  943. padding: 0 12px 12px 12px;
  944. font-size: 12px;
  945. font-family: PingFang SC;
  946. color: #666666;
  947. line-height: 16px;
  948. }
  949. }
  950. }
  951. }
  952. .order-handle {
  953. width: 100%;
  954. height: 50px;
  955. float: left;
  956. border-top: 1px solid #cccccc;
  957. }
  958. }
  959. </style>