orderDetail.vue 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099
  1. <template>
  2. <view class="container" :style="{paddingBottom: ((orderData.orderStatus >= 2 && orderData.orderStatus <= 4) || (orderData.orderStatus == 5 && orderData.evaluateReplyStatus == 1)) ? '' :'10px'}">
  3. <view class="order-type-info">
  4. <view class="order-type-title">{{orderType.title}}</view>
  5. <view class="order-type-text">{{orderType.text}}</view>
  6. </view>
  7. <view class="address-info-box">
  8. <view class="address-icon">
  9. <text class="iconfont icondizhi"></text>
  10. </view>
  11. <view class="address-content">
  12. <text class="address-info">
  13. <text class="address-name">{{orderData.recName}}</text>
  14. <text class="address-phone">{{orderData.recMobile}}</text>
  15. </text>
  16. <view class="address-detail">{{orderData.address}}</view>
  17. </view>
  18. </view>
  19. <view class="goods-info-box">
  20. <view class="shop-info">
  21. <text class="iconfont iconwode"></text>
  22. <text class="shop-name">{{orderData.nickname}}</text>
  23. </view>
  24. <view class="goods-list">
  25. <view class="goods-row" v-for="(item, index) in orderData.merchantInfoResVO.products" :key="index">
  26. <image class="goods-img" :src="item.imgUrl" mode="aspectFill"></image>
  27. <view class="goods-info">
  28. <view class="goods-name">{{item.productName}}</view>
  29. <view class="goods-type">
  30. 类型:{{item.productType == 1 ? '普通商品' : (item.productType == 2 ? '拍卖商品' : (item.productType == 3 ? '自助采摘' : '共享种植'))}}
  31. </view>
  32. <view class="plant-area" v-if="item.productType == 4">面积:{{item.areaSize}}㎡</view>
  33. <view class="goods-price-number">
  34. <text class="goods-unit">¥</text>
  35. <text class="goods-price">{{item.bizPrice}}</text>
  36. <text class="goods-number">x{{item.buyNum}}</text>
  37. <text class="plant-text" v-if="item.productType == 4">有效期:{{item.term}}天</text>
  38. </view>
  39. <view class="goods-editnumber">
  40. <CnumberBox v-if="item.productType == 3 && isEdit" isDisabled @getNum="getStockNum($event,index)" minNum="1"></CnumberBox>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="order-info">
  46. <u-cell-group :border="false">
  47. <u-cell-item title="商品金额" :value="'¥' + orderData.orderSum" :arrow="false" :border-bottom="false"></u-cell-item>
  48. <u-cell-item title="积分抵扣" :value="'-¥' + orderData.integralAmount" :arrow="false" :border-bottom="false" v-if="goodType == 1 || goodType == 3"></u-cell-item>
  49. <u-cell-item title="优惠券" :value="'-¥' + orderData.couponDiscountAmount" :arrow="false" :border-bottom="false" v-if="goodType == 1 || goodType == 3"></u-cell-item>
  50. <u-cell-item title="备注" :value="orderData.notes" :arrow="false" :border-bottom="false"></u-cell-item>
  51. </u-cell-group>
  52. </view>
  53. <view class="pay-info">
  54. <text class="pay-text">实付款</text>
  55. <text class="pay-price">¥{{orderData.paySum}}</text>
  56. </view>
  57. </view>
  58. <view class="order-info-box" @click="goToMessage()">
  59. <view class="info-title-box">
  60. <view class="info-title">留言板</view>
  61. <text class="iconfont iconfangxiang"></text>
  62. </view>
  63. <view class="info-content-box">
  64. <view class="message-row" v-for="(item, index1) in orderData.leas" :key="index1">
  65. <image class="message-head" :src="item.headImg" mode="aspectFill"></image>
  66. <view class="message-info-box">
  67. <view class="message-name">{{item.name}}</view>
  68. <view class="message-date">{{item.leaMsgTime}}</view>
  69. <view class="message-text">{{item.leaMsgContent}}</view>
  70. <!-- <view class="message-img-box" v-for="(site, index2) in item.orderLeaImgResVOs" :key="index2">
  71. <image class="message-img" :src="site.imgUrl" mode="aspectFill"></image>
  72. </view -->
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="order-info-box">
  78. <view class="info-title-box">
  79. <view class="info-title">订单信息</view>
  80. </view>
  81. <view class="info-content-box">
  82. <view class="order-info-row">订单编号:{{orderData.orderCode}}</view>
  83. <view class="order-info-row">创建时间:{{orderData.addOrderTime}}</view>
  84. <view class="order-info-row" v-if="orderData.orderStatus > 1 && orderData.orderStatus != 6">支付时间:{{orderData.payTime}}</view>
  85. <view class="order-info-row" v-if="orderData.orderStatus > 2 && orderData.orderStatus != 6">发货时间:{{orderData.sendTime}}</view>
  86. <view class="order-info-row" v-if="orderData.orderStatus > 3 && orderData.orderStatus != 6">收货时间:{{orderData.confirmTime}}</view>
  87. <view class="order-info-row" v-if="orderData.orderStatus == 6">取消时间:{{orderData.cancelTime}}</view>
  88. </view>
  89. </view>
  90. <view class="order-info-box" v-if="orderData.evaluateResVO.evaluateContent">
  91. <view class="info-title-box">
  92. <view class="info-title">评价信息</view>
  93. </view>
  94. <view class="info-content-box">
  95. <view class="assess-row">
  96. <image class="assess-head" mode="aspectFill" :src="orderData.merchantInfoResVO.headImg"></image>
  97. <view class="assess-info">
  98. <view class="assess-name">{{orderData.nickname}}</view>
  99. <view class="assess-date">{{orderData.evaluateResVO.evaluateTime ? orderData.evaluateResVO.evaluateTime : ''}}</view>
  100. <view class="assess-sore-box">
  101. <u-rate v-model="orderData.evaluateResVO.score" active-color="#FFAE21" disabled></u-rate>
  102. </view>
  103. <view class="assess-text">{{orderData.evaluateResVO.evaluateContent ? orderData.evaluateResVO.evaluateContent : '暂无评价'}}</view>
  104. <view class="assess-img-box">
  105. <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>
  106. </view>
  107. </view>
  108. <view class="shop-reply-box" v-if="orderData.evaluateResVO.replyContent">
  109. <view class="shop-head">
  110. <view class="iconfont icondianpu"></view>
  111. <view class="shop-name">我的回复</view>
  112. </view>
  113. <view class="shop-reply">{{orderData.evaluateResVO.replyContent}}</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. v-if="(orderData.orderStatus >= 1 && orderData.orderStatus <= 4) || (orderData.orderStatus == 5 && orderData.evaluateReplyStatus == 1)" />
  120. <u-top-tips ref="uTips"></u-top-tips>
  121. <view class="uni-popup-dialog" :hidden="show_qx">
  122. <view class="uni-dialog-title">
  123. <text class="uni-dialog-title-text">提示</text>
  124. </view>
  125. <view class="uni-dialog-content">
  126. <text class="uni-dialog-content-text">请在设置中开启摄像头权限和麦克风权限</text>
  127. </view>
  128. <view class="uni-dialog-button-group">
  129. <button class="uni-dialog-button uni-border-left" open-type="openSetting" @click="closeSetting">
  130. 设置权限
  131. </button>
  132. </view>
  133. </view>
  134. <view class="qx_bg" :hidden="show_qx">
  135. </view>
  136. </view>
  137. </template>
  138. <script>
  139. const NET = require('@/utils/request')
  140. const API = require('@/config/api')
  141. import CnumberBox from '@/components/CnumberBox.vue'
  142. export default {
  143. components: {
  144. CnumberBox
  145. },
  146. data() {
  147. return {
  148. show_qx:true,
  149. orderType: {
  150. title: '',
  151. text: '',
  152. },
  153. orderData: {
  154. orderId: '',
  155. orderStatus: 1,
  156. addOrderTime: '',
  157. recName: '',
  158. recMobile: '',
  159. address: '',
  160. merchantInfoResVO: {
  161. supplierName: '',
  162. products: [],
  163. },
  164. orderSum: 0,
  165. integralAmount: 0,
  166. couponDiscountAmount: 0,
  167. notes: 'xxxxx',
  168. paySum: 0,
  169. leas: [],
  170. orderCode: '',
  171. payTime: '',
  172. sendTime: '',
  173. confirmTime: '',
  174. cancelTime: '',
  175. tenantCode: '',
  176. evaluateReplyStatus: 1,
  177. },
  178. goodType: 1, // 1是普通商品类型;2是包含自助采摘+普通商品的类型;3是拍卖、共享种植
  179. buttonGroup: [
  180. {
  181. text: '',
  182. backgroundColor: '#52A63A',
  183. color: '#fff'
  184. }
  185. ],
  186. noPick: true, // 没有自助采摘的商品
  187. isEdit: false,
  188. orderId: '',
  189. orderStatus: 1,
  190. isClick: false
  191. }
  192. },
  193. onLoad(options) {
  194. this.userData = uni.getStorageSync("userData")
  195. this.orderId = options.orderId
  196. this.orderStatus = options.orderStatus
  197. this.getDetail()
  198. },
  199. onShow() {},
  200. methods: {
  201. closeSetting:function(){
  202. this.show_qx=true;
  203. },
  204. // 获取订单详情
  205. getDetail() {
  206. NET.request(API.getOrderDetail, {
  207. flag: 2,
  208. orderId: this.orderId,
  209. orderStatus: this.orderStatus,
  210. }, 'GET').then(res => {
  211. this.orderData = res.data
  212. if (this.orderData.addOrderTime) {
  213. let tempTime = new Date(this.orderData.addOrderTime).getTime()
  214. let addTempTime = new Date(tempTime + 1000 * 60 * 60 * 24)
  215. let addYear = addTempTime.getFullYear()
  216. let addMonth = addTempTime.getMonth() + 1
  217. let addDay = addTempTime.getDate()
  218. let addHours = addTempTime.getHours()
  219. let addMin = addTempTime.getMinutes()
  220. let addSeconds = addTempTime.getSeconds()
  221. this.orderData.overTime = addYear + '年' + addMonth + '月' + addDay + '日' + addHours + ':' + addMin + ':' +
  222. addSeconds
  223. }
  224. if (this.orderData.merchantInfoResVO.products.length && this.orderData.merchantInfoResVO.products[0].productType !=
  225. 2 && this.orderData.merchantInfoResVO.products[0].productType != 4) {
  226. // this.goodType = 1
  227. if (this.orderData.merchantInfoResVO.products.some(v => {return v.productType == 3})) {
  228. this.goodType = 3
  229. } else {
  230. this.goodType = 1
  231. }
  232. } else {
  233. this.goodType = 2
  234. }
  235. if (this.orderData.orderStatus == 1 && this.goodType == 3) {
  236. this.buttonGroup = [{
  237. text: '修改订单',
  238. backgroundColor: '#75BD60',
  239. color: '#fff'
  240. }]
  241. } else if (this.orderData.orderStatus == 2) {
  242. if (this.orderData.merchantInfoResVO.products.length) {
  243. if (this.orderData.merchantInfoResVO.products.some(v => {return v.productType == 3})) {
  244. this.noPick = false
  245. this.buttonGroup = [{
  246. text: '发货',
  247. backgroundColor: '#75BD60',
  248. color: '#fff'
  249. }, {
  250. text: '自助采摘',
  251. backgroundColor: '#52A63A',
  252. color: '#fff'
  253. }]
  254. } else {
  255. this.buttonGroup = [{
  256. text: '发货',
  257. backgroundColor: '#75BD60',
  258. color: '#fff'
  259. }]
  260. }
  261. }
  262. if (this.orderData.auctionStatus == 1) {
  263. this.buttonGroup = []
  264. }
  265. } else if (this.orderData.orderStatus == 3 || this.orderData.orderStatus == 4) {
  266. this.buttonGroup[0].text = '追踪物流'
  267. } else if (this.orderData.evaluateReplyStatus == 1) {
  268. this.buttonGroup[0].text = '回复'
  269. } else {
  270. this.buttonGroup = []
  271. }
  272. this.getOrderType()
  273. }).catch(error => {
  274. this.$refs.uTips.show({
  275. title: error.data.msg,
  276. type: 'warning',
  277. })
  278. })
  279. },
  280. // 获取子组件的库存数量/
  281. getStockNum(num,index) {
  282. this.isClick = true
  283. debugger
  284. this.orderData.merchantInfoResVO.products[index].buyNum = num
  285. this.getEditSum()
  286. },
  287. // 计算实付额和订单总额
  288. getEditSum() {
  289. let price = this.orderData.merchantInfoResVO.products.reduce((total, site) => {
  290. return total + site.bizPrice * site.buyNum
  291. }, 0)
  292. this.orderData.orderSum = price.toFixed(2)
  293. this.orderData.paySum = (price - this.orderData.discountAmount).toFixed(2)
  294. },
  295. // 获取订单类型
  296. getOrderType() {
  297. switch (this.orderData.orderStatus) {
  298. case 1:
  299. this.orderType = {
  300. title: '等待买家付款',
  301. text: '订单将于' + this.orderData.overTime + '关闭',
  302. }
  303. break;
  304. case 2:
  305. this.orderType = {
  306. title: '待发货',
  307. text: '买家已付款,请尽快发货',
  308. }
  309. break;
  310. case 3:
  311. this.orderType = {
  312. title: '已发货',
  313. text: '商品正在运输中',
  314. }
  315. break;
  316. case 4:
  317. this.orderType = {
  318. title: '已送达',
  319. text: '商品已送达',
  320. }
  321. break;
  322. case 5:
  323. this.orderType = {
  324. title: '交易已完成',
  325. text: '',
  326. }
  327. break;
  328. default:
  329. this.orderType = {
  330. title: '交易已取消',
  331. text: '',
  332. }
  333. }
  334. },
  335. // 操作
  336. orderHandle(e) {
  337. if (this.orderData.orderStatus == 1) {
  338. this.buttonGroup = [{
  339. text: this.isEdit ? '修改订单' : '提交订单',
  340. backgroundColor: this.isEdit ? '#52A63A' : '#75BD60',
  341. color: '#fff'
  342. }]
  343. if (this.isEdit) {
  344. if (!this.isClick) {
  345. this.orderData.merchantInfoResVO.products.forEach(v => {
  346. if (v.productType == 3) {
  347. v.buyNum = 1
  348. }
  349. })
  350. this.getEditSum()
  351. }
  352. NET.request(API.editOrder, {
  353. orderId: this.orderData.orderId,
  354. orderSum: this.orderData.orderSum,
  355. paySum: this.orderData.paySum,
  356. products: this.orderData.merchantInfoResVO.products
  357. }, 'POST').then(res => {
  358. this.$refs.uTips.show({
  359. title: '修改成功',
  360. type: 'success',
  361. })
  362. this.getDetail()
  363. }).catch(error => {
  364. this.$refs.uTips.show({
  365. title: error.data.msg,
  366. type: 'warning',
  367. })
  368. })
  369. }
  370. this.isEdit = !this.isEdit
  371. } else if (this.orderData.orderStatus == 2) {
  372. if (e.index == 0) {
  373. // 发货
  374. uni.navigateTo({
  375. url: '/pagesMain/bindOrder?orderId=' + this.orderData.orderId
  376. });
  377. } else if (e.index == 1) {
  378. // 去自助采摘
  379. var that=this;
  380. if(uni.getStorageSync("firstTimeLive")==""){
  381. uni.setStorage({
  382. key: 'firstTimeLive',
  383. data: 1
  384. })
  385. uni.navigateTo({
  386. url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
  387. });
  388. }else{
  389. wx.getSetting({
  390. success(res) {
  391. if (!res.authSetting['scope.camera']){
  392. that.show_qx=false;
  393. }else if (!res.authSetting['scope.record']){
  394. that.show_qx=false;
  395. }else{
  396. uni.navigateTo({
  397. url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
  398. });
  399. }
  400. }
  401. })
  402. }
  403. }
  404. } else if (this.orderData.orderStatus == 3 || this.orderData.orderStatus == 4) {
  405. // 追踪物流
  406. uni.navigateTo({
  407. url: '/pagesMain/logisticsDeatil?logisticCode=' + this.orderData.logisticsNum
  408. });
  409. } else {
  410. // 回复
  411. uni.navigateTo({
  412. url: '/pagesMain/evaluateForm?orderId=' + this.orderData.orderId +'&mid='+this.orderData.mid
  413. });
  414. }
  415. },
  416. // 跳转留言列表
  417. goToMessage() {
  418. uni.navigateTo({
  419. url: '/pagesMain/messageList?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode
  420. });
  421. },
  422. // 图片预览
  423. _previewImage(image,index) {
  424. var imgArr = [];
  425. imgArr.push(image);
  426. //预览图片
  427. uni.previewImage({
  428. urls: imgArr,
  429. current: imgArr[index]
  430. });
  431. }
  432. }
  433. }
  434. </script>
  435. <style>
  436. page {
  437. background-color: #f7f7f7;
  438. }
  439. </style>
  440. <style lang="less" scoped>
  441. page {
  442. width: 100%;
  443. height: 100%;
  444. }
  445. .container {
  446. width: 100%;
  447. height: 100%;
  448. float: left;
  449. background-color: #f7f7f7;
  450. box-sizing: border-box;
  451. overflow-y: auto;
  452. position: absolute;
  453. .order-type-info {
  454. width: 100%;
  455. height: 115px;
  456. float: left;
  457. box-sizing: border-box;
  458. padding: 22px 100px 0 15px;
  459. background: #52A63A;
  460. border-radius: 0px 0px 20px 20px;
  461. background-size: 62px;
  462. background-position: calc(100% - 48px) 12px;
  463. background-repeat: no-repeat;
  464. background-image: url(@/static/images/orderDetail.png);
  465. .order-type-title {
  466. width: 100%;
  467. float: left;
  468. height: 20px;
  469. line-height: 20px;
  470. font-size: 15px;
  471. font-family: PingFang SC;
  472. color: #FFFFFF;
  473. margin-bottom: 4px;
  474. }
  475. .order-type-text {
  476. width: 100%;
  477. float: left;
  478. height: 20px;
  479. line-height: 20px;
  480. font-size: 12px;
  481. font-family: PingFang SC;
  482. color: #FFFFFF;
  483. }
  484. }
  485. .address-info-box {
  486. width: calc(100% - 30px);
  487. float: left;
  488. box-sizing: border-box;
  489. padding: 16px 18px 16px 16px;
  490. margin: -34px 15px 10px 15px;
  491. background: #FFFFFF;
  492. border-radius: 10px;
  493. .address-icon {
  494. width: 36px;
  495. height: 40px;
  496. float: left;
  497. align-items: center;
  498. display: flex;
  499. .iconfont {
  500. color: #52A63A;
  501. font-size: 36px;
  502. }
  503. }
  504. .address-content {
  505. width: calc(100% - 56px);
  506. height: 40px;
  507. float: left;
  508. margin: 0 8px 0 12px;
  509. .address-info {
  510. height: 20px;
  511. font-family: PingFang SC;
  512. line-height: 20px;
  513. overflow: hidden;
  514. text-overflow: ellipsis;
  515. white-space: nowrap;
  516. .address-name {
  517. font-size: 16px;
  518. color: #333333;
  519. margin-right: 14px;
  520. }
  521. .address-phone {
  522. font-size: 12px;
  523. color: #666666;
  524. }
  525. }
  526. .address-detail {
  527. height: 20px;
  528. font-size: 16px;
  529. font-family: PingFang SC;
  530. color: #333333;
  531. line-height: 20px;
  532. overflow: hidden;
  533. text-overflow: ellipsis;
  534. white-space: nowrap;
  535. }
  536. }
  537. }
  538. .goods-info-box {
  539. width: calc(100% - 30px);
  540. float: left;
  541. margin: 0 15px 10px 15px;
  542. background: #FFFFFF;
  543. border-radius: 10px;
  544. .shop-info {
  545. width: 100%;
  546. height: 48px;
  547. float: left;
  548. box-sizing: border-box;
  549. padding: 13px 15px 12px 15px;
  550. border-bottom: 1px solid #EEEEEE;
  551. line-height: 22px;
  552. .iconwode {
  553. font-size: 22px;
  554. color: #333333;
  555. }
  556. .shop-name {
  557. font-size: 15px;
  558. font-family: PingFang SC;
  559. color: #333333;
  560. margin: 0 8px 0 10px;
  561. }
  562. .iconshangjia {
  563. font-size: 12px;
  564. color: #999999;
  565. }
  566. }
  567. .goods-list {
  568. width: 100%;
  569. float: left;
  570. box-sizing: border-box;
  571. padding: 10px 15px 0 15px;
  572. .goods-row {
  573. width: 100%;
  574. height: 110px;
  575. float: left;
  576. display: flex;
  577. margin-bottom: 10px;
  578. .goods-img {
  579. width: 90px;
  580. height: 90px;
  581. border-radius: 5px;
  582. object-fit: cover;
  583. }
  584. .goods-info {
  585. width: calc(100% - 106px);
  586. height: 90px;
  587. margin-left: 16px;
  588. .goods-name {
  589. width: 100%;
  590. height: 36px;
  591. float: left;
  592. font-size: 14px;
  593. font-family: PingFang SC;
  594. color: #333333;
  595. line-height: 18px;
  596. overflow: hidden;
  597. text-overflow: ellipsis;
  598. display: -webkit-box;
  599. -webkit-line-clamp: 2;
  600. -webkit-box-orient: vertical;
  601. word-wrap: break-word;
  602. }
  603. .goods-type {
  604. height: 20px;
  605. float: left;
  606. background: #F0F0F0;
  607. border-radius: 4px;
  608. padding: 0 8px;
  609. margin: 6px 0;
  610. font-size: 10px;
  611. font-family: PingFang SC;
  612. color: #666666;
  613. line-height: 20px;
  614. }
  615. .plant-area {
  616. height: 20px;
  617. float: right;
  618. margin: 6px 0;
  619. font-size: 12px;
  620. font-family: PingFang SC;
  621. color: #333333;
  622. }
  623. .goods-price-number {
  624. width: 60%;
  625. height: 20px;
  626. float: left;
  627. line-height: 40px;
  628. font-family: PingFang SC;
  629. color: #333333;
  630. .goods-unit {
  631. font-size: 12px;
  632. }
  633. .goods-price {
  634. font-size: 15px;
  635. margin-right: 6px;
  636. }
  637. .goods-number {
  638. font-size: 12px;
  639. }
  640. }
  641. .goods-editnumber {
  642. float: left;
  643. width: 35%
  644. }
  645. .plant-text {
  646. float: right;
  647. font-size: 12px;
  648. font-family: PingFang SC;
  649. color: #333333;
  650. }
  651. }
  652. }
  653. }
  654. .order-info {
  655. width: 100%;
  656. float: left;
  657. /deep/.u-cell {
  658. padding: 6px 16px;
  659. }
  660. }
  661. .pay-info {
  662. width: 100%;
  663. height: 46px;
  664. float: left;
  665. box-sizing: border-box;
  666. border-top: 1px solid #EEEEEE;
  667. padding-right: 15px;
  668. line-height: 44px;
  669. font-family: PingFang SC;
  670. font-size: 14px;
  671. text-align: right;
  672. white-space: nowrap;
  673. .pay-text {
  674. float: left;
  675. color: #333333;
  676. margin-left: 15px;
  677. }
  678. .pay-price {
  679. color: #52A63A;
  680. }
  681. }
  682. }
  683. .order-info-box {
  684. width: calc(100% - 30px);
  685. float: left;
  686. margin: 0 15px 10px 15px;
  687. background: #FFFFFF;
  688. border-radius: 10px;
  689. .info-title-box {
  690. width: 100%;
  691. height: 48px;
  692. float: left;
  693. box-sizing: border-box;
  694. padding: 15px 15px 14px 15px;
  695. border-bottom: 1px solid #EEEEEE;
  696. line-height: 18px;
  697. white-space: nowrap;
  698. .info-title {
  699. height: 18px;
  700. float: left;
  701. font-size: 15px;
  702. font-family: PingFang SC;
  703. color: #333333;
  704. margin-right: 8px;
  705. padding-left: 10px;
  706. border-left: 2px solid #74BD60;
  707. }
  708. .iconfangxiang {
  709. float: right;
  710. font-size: 12px;
  711. color: #999999;
  712. }
  713. }
  714. .info-content-box {
  715. width: 100%;
  716. float: left;
  717. padding: 15px 0;
  718. .message-row {
  719. width: 100%;
  720. float: left;
  721. box-sizing: border-box;
  722. padding: 0 15px;
  723. margin-bottom: 15px;
  724. .message-head {
  725. width: 50px;
  726. height: 50px;
  727. object-fit: cover;
  728. float: left;
  729. border-radius: 50%;
  730. overflow: hidden;
  731. }
  732. .message-info-box {
  733. width: calc(100% - 75px);
  734. float: right;
  735. .message-name {
  736. width: 50%;
  737. height: 30px;
  738. float: left;
  739. font-size: 15px;
  740. font-family: PingFang SC;
  741. color: #333333;
  742. line-height: 30px;
  743. overflow: hidden;
  744. text-overflow: ellipsis;
  745. white-space: nowrap;
  746. }
  747. .message-date {
  748. width: 50%;
  749. height: 30px;
  750. float: left;
  751. font-size: 12px;
  752. font-family: PingFang SC;
  753. color: #666666;
  754. text-align: right;
  755. line-height: 30px;
  756. overflow: hidden;
  757. text-overflow: ellipsis;
  758. white-space: nowrap;
  759. }
  760. .message-text {
  761. width: 100%;
  762. height: 20px;
  763. float: left;
  764. font-size: 12px;
  765. font-family: PingFang SC;
  766. color: #666666;
  767. line-height: 20px;
  768. overflow: hidden;
  769. text-overflow: ellipsis;
  770. white-space: nowrap;
  771. }
  772. .message-img-box {
  773. width: 100%;
  774. float: left;
  775. .message-img {
  776. width: 76px;
  777. height: 76px;
  778. object-fit: cover;
  779. float: left;
  780. margin: 0 10px 10px 0;
  781. }
  782. }
  783. }
  784. }
  785. .message-row:last-child {
  786. margin-bottom: 0;
  787. }
  788. .order-info-row {
  789. width: 100%;
  790. float: left;
  791. box-sizing: border-box;
  792. padding: 0 15px;
  793. font-size: 12px;
  794. font-family: PingFang SC;
  795. color: #333333;
  796. line-height: 26px;
  797. word-break:break-all;
  798. }
  799. }
  800. .assess-row {
  801. width: calc(100% - 30px);
  802. margin: 0 15px;
  803. float: left;
  804. // border-top: 1px solid #F6F6F6;
  805. padding: 12px 0;
  806. .assess-head {
  807. width: 50px;
  808. height: 50px;
  809. float: left;
  810. object-fit: cover;
  811. border-radius: 50%;
  812. }
  813. .assess-info {
  814. width: calc(100% - 62px);
  815. margin-left: 12px;
  816. float: left;
  817. .assess-name {
  818. height: 18px;
  819. float: left;
  820. line-height: 18px;
  821. font-size: 15px;
  822. font-family: PingFang SC;
  823. font-weight: bold;
  824. color: #343434;
  825. }
  826. .assess-date {
  827. height: 18px;
  828. float: right;
  829. line-height: 18px;
  830. font-size: 12px;
  831. font-family: PingFang SC;
  832. font-weight: bold;
  833. color: #666666;
  834. }
  835. .assess-sore-box {
  836. width: 100%;
  837. height: 16px;
  838. float: left;
  839. margin: 6px 0;
  840. }
  841. .assess-text {
  842. width: 100%;
  843. float: left;
  844. font-size: 12px;
  845. font-family: PingFang SC;
  846. font-weight: bold;
  847. color: #666666;
  848. line-height: 16px;
  849. margin: 8px 0 10px 0;
  850. overflow: hidden;
  851. text-overflow: ellipsis;
  852. display: -webkit-box;
  853. -webkit-line-clamp: 2;
  854. -webkit-box-orient: vertical;
  855. word-wrap: break-word;
  856. }
  857. .assess-img-box {
  858. width: 100%;
  859. float: left;
  860. display: flex;
  861. .img-col {
  862. height: 60px;
  863. width: 60px;
  864. object-fit: cover;
  865. margin: 0 10px 10px 0;
  866. }
  867. }
  868. }
  869. .shop-reply-box {
  870. width: 100%;
  871. float: left;
  872. background: #F5F5F5;
  873. border-radius: 5px;
  874. margin-top: 10px;
  875. .shop-head {
  876. width: 100%;
  877. height: 36px;
  878. float: left;
  879. box-sizing: border-box;
  880. padding: 10px 12px;
  881. .icondianpu {
  882. width: 16px;
  883. height: 16px;
  884. float: left;
  885. color: #52A63A;
  886. font-size: 20px;
  887. margin-right: 8px;
  888. }
  889. .shop-name {
  890. height: 16px;
  891. float: left;
  892. font-size: 15px;
  893. font-family: PingFang SC;
  894. color: #52A63A;
  895. line-height: 16px;
  896. }
  897. }
  898. .shop-reply {
  899. width: 100%;
  900. float: left;
  901. box-sizing: border-box;
  902. padding: 0 12px 12px 12px;
  903. font-size: 12px;
  904. font-family: PingFang SC;
  905. color: #666666;
  906. line-height: 16px;
  907. }
  908. }
  909. }
  910. }
  911. .order-handle {
  912. width: 100%;
  913. height: 50px;
  914. float: left;
  915. border-top: 1px solid #cccccc;
  916. }
  917. }
  918. .uni-popup-dialog {
  919. width: 80vw;
  920. border-radius: 15px;
  921. background-color: #fff;
  922. position: fixed;
  923. margin-left: 10vw;
  924. top: 34vh;
  925. z-index: 11;
  926. }
  927. .uni-dialog-title {
  928. /* #ifndef APP-NVUE */
  929. display: flex;
  930. /* #endif */
  931. flex-direction: row;
  932. justify-content: center;
  933. padding-top: 15px;
  934. padding-bottom: 5px;
  935. }
  936. .uni-dialog-title-text {
  937. font-size: 16px;
  938. font-weight: 500;
  939. }
  940. .uni-dialog-content {
  941. /* #ifndef APP-NVUE */
  942. display: flex;
  943. /* #endif */
  944. flex-direction: row;
  945. justify-content: center;
  946. align-items: center;
  947. padding: 5px 15px 15px 15px;
  948. text-align: center;
  949. }
  950. .uni-dialog-content-text {
  951. font-size: 14px;
  952. color: #6e6e6e;
  953. }
  954. .uni-dialog-button-group {
  955. /* #ifndef APP-NVUE */
  956. display: flex;
  957. /* #endif */
  958. flex-direction: row;
  959. border-top-color: #f5f5f5;
  960. border-top-style: solid;
  961. border-top-width: 1px;
  962. }
  963. .uni-dialog-button {
  964. /* #ifndef APP-NVUE */
  965. display: flex;
  966. /* #endif */
  967. background: rgba(0, 0, 0, 0);
  968. border: none;
  969. flex: 1;
  970. flex-direction: row;
  971. justify-content: center;
  972. align-items: center;
  973. height: 45px;
  974. }
  975. .uni-border-left {
  976. border-left-color: #f0f0f0;
  977. border-left-style: solid;
  978. border-left-width: 0px;
  979. }
  980. .uni-dialog-button-text {
  981. font-size: 14px;
  982. }
  983. .uni-button-color {
  984. color: #007aff;
  985. }
  986. .uni-dialog-input {
  987. flex: 1;
  988. font-size: 14px;
  989. }
  990. .uni-popup__success {
  991. color: #4cd964;
  992. }
  993. .uni-popup__warn {
  994. color: #f0ad4e;
  995. }
  996. .uni-popup__error {
  997. color: #dd524d;
  998. }
  999. .uni-popup__info {
  1000. color: #909399;
  1001. }
  1002. .qx_bg{
  1003. width: 100vw;
  1004. height: 100vh;
  1005. background: rgba(0, 0, 0, 0.25);
  1006. position: fixed;
  1007. top: 0px;
  1008. left: 0px;
  1009. z-index: 10;
  1010. }
  1011. /deep/.uni-tab__cart-button-right{
  1012. border-right: 1px solid #ffffff;
  1013. }
  1014. /deep/.uni-tab__cart-button-right:last-child{
  1015. border-right: none;
  1016. }
  1017. </style>