orderDetail.vue 26 KB

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