orderDetail.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029
  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="orderData.merchantInfoResVO.headImg" 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. data() {
  129. return {
  130. orderType: {
  131. title: '',
  132. text: '',
  133. },
  134. orderData: {
  135. orderId: '',
  136. addOrderTime: '',
  137. recName: '',
  138. recMobile: '',
  139. address: '',
  140. merchantInfoResVO: {
  141. supplierName: '',
  142. products: [],
  143. },
  144. orderSum: 0,
  145. integralAmount: 0,
  146. couponDiscountAmount: 0,
  147. notes: 'xxxxx',
  148. paySum: 0,
  149. leas: [],
  150. orderCode: '',
  151. payTime: '',
  152. sendTime: '',
  153. confirmTime: '',
  154. cancelTime: '',
  155. tenantCode: '',
  156. evaluateReplyStatus: 1,
  157. },
  158. goodType: 1,
  159. buttonGroup: [],
  160. modalShow: false,
  161. handleType: '',
  162. modalContent: '',
  163. }
  164. },
  165. onLoad(options) {
  166. this.userData = uni.getStorageSync("userData")
  167. NET.request(API.getOrderDetail, {
  168. flag: 1,
  169. orderId: options.orderId,
  170. orderStatus: options.orderStatus,
  171. }, 'GET').then(res => {
  172. this.orderData = res.data
  173. if (this.orderData.addOrderTime) {
  174. let tempTime = new Date(this.orderData.addOrderTime).getTime()
  175. let addTempTime = new Date(tempTime + 1000 * 60 * 60 * 24)
  176. let addYear = addTempTime.getFullYear()
  177. let addMonth = addTempTime.getMonth() + 1
  178. let addDay = addTempTime.getDate()
  179. let addHours = addTempTime.getHours()
  180. let addMin = addTempTime.getMinutes()
  181. let addSeconds = addTempTime.getSeconds()
  182. this.orderData.overTime = addYear + '年' + addMonth + '月' + addDay + '日' + addHours + ':' + addMin + ':' +
  183. 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>
  486. page {
  487. background-color: #f7f7f7;
  488. }
  489. </style>
  490. <style lang="less" scoped>
  491. page {
  492. width: 100%;
  493. height: 100%;
  494. }
  495. .container {
  496. width: 100%;
  497. height: 100%;
  498. float: left;
  499. background-color: #f7f7f7;
  500. // box-sizing: border-box;
  501. // padding-bottom: 50px;
  502. overflow-y: auto;
  503. .order-type-info {
  504. width: 100%;
  505. height: 115px;
  506. float: left;
  507. box-sizing: border-box;
  508. padding: 22px 100px 0 15px;
  509. background: #52A63A;
  510. border-radius: 0px 0px 20px 20px;
  511. background-size: 62px;
  512. background-position: calc(100% - 48px) 12px;
  513. background-repeat: no-repeat;
  514. background-image: url(@/static/images/orderDetail.png);
  515. .order-type-title {
  516. width: 100%;
  517. float: left;
  518. height: 20px;
  519. line-height: 20px;
  520. font-size: 15px;
  521. font-family: PingFang SC;
  522. color: #FFFFFF;
  523. margin-bottom: 4px;
  524. }
  525. .order-type-text {
  526. width: 100%;
  527. float: left;
  528. height: 20px;
  529. line-height: 20px;
  530. font-size: 12px;
  531. font-family: PingFang SC;
  532. color: #FFFFFF;
  533. }
  534. }
  535. .address-info-box {
  536. width: calc(100% - 30px);
  537. float: left;
  538. box-sizing: border-box;
  539. padding: 16px 18px 16px 16px;
  540. margin: -34px 15px 10px 15px;
  541. background: #FFFFFF;
  542. border-radius: 10px;
  543. .address-icon {
  544. width: 36px;
  545. height: 40px;
  546. float: left;
  547. align-items: center;
  548. display: flex;
  549. .iconfont {
  550. color: #52A63A;
  551. font-size: 36px;
  552. }
  553. }
  554. .address-content {
  555. width: calc(100% - 56px);
  556. height: 40px;
  557. float: left;
  558. margin: 0 8px 0 12px;
  559. .address-info {
  560. height: 20px;
  561. font-family: PingFang SC;
  562. line-height: 20px;
  563. overflow: hidden;
  564. text-overflow: ellipsis;
  565. white-space: nowrap;
  566. .address-name {
  567. font-size: 16px;
  568. color: #333333;
  569. margin-right: 14px;
  570. }
  571. .address-phone {
  572. font-size: 12px;
  573. color: #666666;
  574. }
  575. }
  576. .address-detail {
  577. height: 20px;
  578. font-size: 16px;
  579. font-family: PingFang SC;
  580. color: #333333;
  581. line-height: 20px;
  582. overflow: hidden;
  583. text-overflow: ellipsis;
  584. white-space: nowrap;
  585. }
  586. }
  587. }
  588. .goods-info-box {
  589. width: calc(100% - 30px);
  590. float: left;
  591. margin: 0 15px 10px 15px;
  592. background: #FFFFFF;
  593. border-radius: 10px;
  594. .shop-info {
  595. width: 100%;
  596. height: 48px;
  597. float: left;
  598. box-sizing: border-box;
  599. padding: 13px 15px 12px 15px;
  600. border-bottom: 1px solid #EEEEEE;
  601. line-height: 22px;
  602. .icondianpu {
  603. font-size: 22px;
  604. color: #333333;
  605. }
  606. .shop-name {
  607. font-size: 15px;
  608. font-family: PingFang SC;
  609. color: #333333;
  610. margin: 0 8px 0 10px;
  611. }
  612. .iconshangjia {
  613. font-size: 12px;
  614. color: #999999;
  615. }
  616. }
  617. .goods-list {
  618. width: 100%;
  619. float: left;
  620. box-sizing: border-box;
  621. padding: 10px 15px 0 15px;
  622. .goods-row {
  623. width: 100%;
  624. height: 90px;
  625. float: left;
  626. display: flex;
  627. margin-bottom: 10px;
  628. .goods-img {
  629. width: 90px;
  630. height: 90px;
  631. border-radius: 5px;
  632. object-fit: cover;
  633. }
  634. .goods-info {
  635. width: calc(100% - 106px);
  636. height: 90px;
  637. margin-left: 16px;
  638. .goods-name {
  639. width: 100%;
  640. height: 36px;
  641. float: left;
  642. font-size: 14px;
  643. font-family: PingFang SC;
  644. color: #333333;
  645. line-height: 18px;
  646. overflow: hidden;
  647. text-overflow: ellipsis;
  648. display: -webkit-box;
  649. -webkit-line-clamp: 2;
  650. -webkit-box-orient: vertical;
  651. word-wrap: break-word;
  652. }
  653. .goods-type {
  654. height: 20px;
  655. float: left;
  656. background: #F0F0F0;
  657. border-radius: 4px;
  658. padding: 0 8px;
  659. margin: 6px 0;
  660. font-size: 10px;
  661. font-family: PingFang SC;
  662. color: #666666;
  663. line-height: 20px;
  664. }
  665. .plant-area {
  666. height: 20px;
  667. float: right;
  668. margin: 6px 0;
  669. font-size: 12px;
  670. font-family: PingFang SC;
  671. color: #333333;
  672. }
  673. .goods-price-number {
  674. width: 100%;
  675. height: 20px;
  676. float: left;
  677. line-height: 20px;
  678. font-family: PingFang SC;
  679. color: #333333;
  680. .goods-unit {
  681. font-size: 12px;
  682. }
  683. .goods-price {
  684. font-size: 15px;
  685. margin-right: 6px;
  686. }
  687. .goods-number {
  688. font-size: 12px;
  689. }
  690. }
  691. .plant-text {
  692. float: right;
  693. font-size: 12px;
  694. font-family: PingFang SC;
  695. color: #333333;
  696. }
  697. }
  698. }
  699. }
  700. .order-info {
  701. width: 100%;
  702. float: left;
  703. /deep/.u-cell {
  704. padding: 6px 16px;
  705. }
  706. }
  707. .pay-info {
  708. width: 100%;
  709. height: 46px;
  710. float: left;
  711. box-sizing: border-box;
  712. border-top: 1px solid #EEEEEE;
  713. padding-right: 15px;
  714. line-height: 44px;
  715. font-family: PingFang SC;
  716. font-size: 14px;
  717. text-align: right;
  718. white-space: nowrap;
  719. .pay-text {
  720. float: left;
  721. color: #333333;
  722. margin-left: 15px;
  723. }
  724. .pay-price {
  725. color: #52A63A;
  726. }
  727. }
  728. }
  729. .order-info-box {
  730. width: calc(100% - 30px);
  731. float: left;
  732. margin: 0 15px 10px 15px;
  733. background: #FFFFFF;
  734. border-radius: 10px;
  735. .info-title-box {
  736. width: 100%;
  737. height: 48px;
  738. float: left;
  739. box-sizing: border-box;
  740. padding: 15px 15px 14px 15px;
  741. border-bottom: 1px solid #EEEEEE;
  742. line-height: 18px;
  743. white-space: nowrap;
  744. .info-title {
  745. height: 18px;
  746. float: left;
  747. font-size: 15px;
  748. font-family: PingFang SC;
  749. color: #333333;
  750. margin-right: 8px;
  751. padding-left: 10px;
  752. border-left: 2px solid #74BD60;
  753. }
  754. .iconfangxiang {
  755. float: right;
  756. font-size: 12px;
  757. color: #999999;
  758. }
  759. }
  760. .info-content-box {
  761. width: 100%;
  762. float: left;
  763. padding: 15px 0;
  764. .message-row {
  765. width: 100%;
  766. float: left;
  767. box-sizing: border-box;
  768. padding: 0 15px;
  769. margin-bottom: 15px;
  770. .message-head {
  771. width: 50px;
  772. height: 50px;
  773. object-fit: cover;
  774. float: left;
  775. border-radius: 50%;
  776. overflow: hidden;
  777. }
  778. .message-info-box {
  779. width: calc(100% - 75px);
  780. float: right;
  781. .message-name {
  782. width: 50%;
  783. height: 30px;
  784. float: left;
  785. font-size: 15px;
  786. font-family: PingFang SC;
  787. color: #333333;
  788. line-height: 30px;
  789. overflow: hidden;
  790. text-overflow: ellipsis;
  791. white-space: nowrap;
  792. }
  793. .message-date {
  794. width: 50%;
  795. height: 30px;
  796. float: left;
  797. font-size: 12px;
  798. font-family: PingFang SC;
  799. color: #666666;
  800. text-align: right;
  801. line-height: 30px;
  802. overflow: hidden;
  803. text-overflow: ellipsis;
  804. white-space: nowrap;
  805. }
  806. .message-text {
  807. width: 100%;
  808. height: 20px;
  809. float: left;
  810. font-size: 12px;
  811. font-family: PingFang SC;
  812. color: #666666;
  813. line-height: 20px;
  814. overflow: hidden;
  815. text-overflow: ellipsis;
  816. white-space: nowrap;
  817. }
  818. .message-img-box {
  819. width: 100%;
  820. float: left;
  821. .message-img {
  822. width: 76px;
  823. height: 76px;
  824. object-fit: cover;
  825. float: left;
  826. margin: 0 10px 10px 0;
  827. }
  828. }
  829. }
  830. }
  831. .message-row:last-child {
  832. margin-bottom: 0;
  833. }
  834. .order-info-row {
  835. width: 100%;
  836. float: left;
  837. box-sizing: border-box;
  838. padding: 0 15px;
  839. font-size: 12px;
  840. font-family: PingFang SC;
  841. color: #333333;
  842. line-height: 26px;
  843. word-break: break-all;
  844. }
  845. }
  846. .assess-row {
  847. width: calc(100% - 30px);
  848. margin: 0 15px;
  849. float: left;
  850. // border-top: 1px solid #F6F6F6;
  851. padding: 12px 0;
  852. .assess-head {
  853. width: 50px;
  854. height: 50px;
  855. float: left;
  856. object-fit: cover;
  857. border-radius: 50%;
  858. }
  859. .assess-info {
  860. width: calc(100% - 62px);
  861. margin-left: 12px;
  862. float: left;
  863. .assess-name {
  864. height: 18px;
  865. float: left;
  866. line-height: 18px;
  867. font-size: 15px;
  868. font-family: PingFang SC;
  869. font-weight: bold;
  870. color: #343434;
  871. }
  872. .assess-date {
  873. height: 18px;
  874. float: right;
  875. line-height: 18px;
  876. font-size: 12px;
  877. font-family: PingFang SC;
  878. font-weight: bold;
  879. color: #666666;
  880. }
  881. .assess-sore-box {
  882. width: 100%;
  883. height: 16px;
  884. float: left;
  885. margin: 6px 0;
  886. }
  887. .assess-text {
  888. width: 100%;
  889. float: left;
  890. font-size: 12px;
  891. font-family: PingFang SC;
  892. font-weight: bold;
  893. color: #666666;
  894. line-height: 16px;
  895. margin: 8px 0 10px 0;
  896. overflow: hidden;
  897. text-overflow: ellipsis;
  898. display: -webkit-box;
  899. -webkit-line-clamp: 2;
  900. -webkit-box-orient: vertical;
  901. word-wrap: break-word;
  902. }
  903. .assess-img-box {
  904. width: 100%;
  905. float: left;
  906. display: flex;
  907. .img-col {
  908. height: 60px;
  909. width: 60px;
  910. object-fit: cover;
  911. margin: 0 10px 10px 0;
  912. }
  913. }
  914. }
  915. .shop-reply-box {
  916. width: 100%;
  917. float: left;
  918. background: #F5F5F5;
  919. border-radius: 5px;
  920. margin-top: 10px;
  921. .shop-head {
  922. width: 100%;
  923. height: 36px;
  924. float: left;
  925. box-sizing: border-box;
  926. padding: 10px 12px;
  927. .icondianpu {
  928. width: 16px;
  929. height: 16px;
  930. float: left;
  931. color: #52A63A;
  932. font-size: 20px;
  933. margin-right: 8px;
  934. }
  935. .shop-name {
  936. height: 16px;
  937. float: left;
  938. font-size: 15px;
  939. font-family: PingFang SC;
  940. color: #52A63A;
  941. line-height: 16px;
  942. }
  943. }
  944. .shop-reply {
  945. width: 100%;
  946. float: left;
  947. box-sizing: border-box;
  948. padding: 0 12px 12px 12px;
  949. font-size: 12px;
  950. font-family: PingFang SC;
  951. color: #666666;
  952. line-height: 16px;
  953. }
  954. }
  955. }
  956. }
  957. .order-handle {
  958. width: 100%;
  959. height: 50px;
  960. float: left;
  961. border-top: 1px solid #cccccc;
  962. }
  963. }
  964. </style>