orderDetail.vue 26 KB

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