orderDetail.vue 27 KB

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