orderDetail.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089
  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.replace(/\-/g, '/')).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. uni.navigateTo({
  390. url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
  391. });
  392. }
  393. }
  394. } else if (this.orderData.orderStatus == 3 || this.orderData.orderStatus == 4) {
  395. // 追踪物流
  396. uni.navigateTo({
  397. url: '/pagesMain/logisticsDeatil?logisticCode=' + this.orderData.logisticsNum
  398. });
  399. } else {
  400. // 回复
  401. uni.navigateTo({
  402. url: '/pagesMain/evaluateForm?orderId=' + this.orderData.orderId +'&mid='+this.orderData.mid
  403. });
  404. }
  405. },
  406. // 跳转留言列表
  407. goToMessage() {
  408. uni.navigateTo({
  409. url: '/pagesMain/messageList?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode
  410. });
  411. },
  412. // 图片预览
  413. _previewImage(image,index) {
  414. var imgArr = [];
  415. imgArr.push(image);
  416. //预览图片
  417. uni.previewImage({
  418. urls: imgArr,
  419. current: imgArr[index]
  420. });
  421. }
  422. }
  423. }
  424. </script>
  425. <style>
  426. page {
  427. background-color: #f7f7f7;
  428. }
  429. </style>
  430. <style lang="less" scoped>
  431. page {
  432. width: 100%;
  433. height: 100%;
  434. }
  435. .container {
  436. width: 100%;
  437. height: 100%;
  438. float: left;
  439. background-color: #f7f7f7;
  440. box-sizing: border-box;
  441. overflow-y: auto;
  442. position: absolute;
  443. .order-type-info {
  444. width: 100%;
  445. height: 115px;
  446. float: left;
  447. box-sizing: border-box;
  448. padding: 22px 100px 0 15px;
  449. background: #52A63A;
  450. border-radius: 0px 0px 20px 20px;
  451. background-size: 62px;
  452. background-position: calc(100% - 48px) 12px;
  453. background-repeat: no-repeat;
  454. background-image: url(@/static/images/orderDetail.png);
  455. .order-type-title {
  456. width: 100%;
  457. float: left;
  458. height: 20px;
  459. line-height: 20px;
  460. font-size: 15px;
  461. font-family: PingFang SC;
  462. color: #FFFFFF;
  463. margin-bottom: 4px;
  464. }
  465. .order-type-text {
  466. width: 100%;
  467. float: left;
  468. height: 20px;
  469. line-height: 20px;
  470. font-size: 12px;
  471. font-family: PingFang SC;
  472. color: #FFFFFF;
  473. }
  474. }
  475. .address-info-box {
  476. width: calc(100% - 30px);
  477. float: left;
  478. box-sizing: border-box;
  479. padding: 16px 18px 16px 16px;
  480. margin: -34px 15px 10px 15px;
  481. background: #FFFFFF;
  482. border-radius: 10px;
  483. .address-icon {
  484. width: 36px;
  485. height: 40px;
  486. float: left;
  487. align-items: center;
  488. display: flex;
  489. .iconfont {
  490. color: #52A63A;
  491. font-size: 36px;
  492. }
  493. }
  494. .address-content {
  495. width: calc(100% - 56px);
  496. height: 40px;
  497. float: left;
  498. margin: 0 8px 0 12px;
  499. .address-info {
  500. height: 20px;
  501. font-family: PingFang SC;
  502. line-height: 20px;
  503. overflow: hidden;
  504. text-overflow: ellipsis;
  505. white-space: nowrap;
  506. .address-name {
  507. font-size: 16px;
  508. color: #333333;
  509. margin-right: 14px;
  510. }
  511. .address-phone {
  512. font-size: 12px;
  513. color: #666666;
  514. }
  515. }
  516. .address-detail {
  517. height: 20px;
  518. font-size: 16px;
  519. font-family: PingFang SC;
  520. color: #333333;
  521. line-height: 20px;
  522. overflow: hidden;
  523. text-overflow: ellipsis;
  524. white-space: nowrap;
  525. }
  526. }
  527. }
  528. .goods-info-box {
  529. width: calc(100% - 30px);
  530. float: left;
  531. margin: 0 15px 10px 15px;
  532. background: #FFFFFF;
  533. border-radius: 10px;
  534. .shop-info {
  535. width: 100%;
  536. height: 48px;
  537. float: left;
  538. box-sizing: border-box;
  539. padding: 13px 15px 12px 15px;
  540. border-bottom: 1px solid #EEEEEE;
  541. line-height: 22px;
  542. .iconwode {
  543. font-size: 22px;
  544. color: #333333;
  545. }
  546. .shop-name {
  547. font-size: 15px;
  548. font-family: PingFang SC;
  549. color: #333333;
  550. margin: 0 8px 0 10px;
  551. }
  552. .iconshangjia {
  553. font-size: 12px;
  554. color: #999999;
  555. }
  556. }
  557. .goods-list {
  558. width: 100%;
  559. float: left;
  560. box-sizing: border-box;
  561. padding: 10px 15px 0 15px;
  562. .goods-row {
  563. width: 100%;
  564. height: 110px;
  565. float: left;
  566. display: flex;
  567. margin-bottom: 10px;
  568. .goods-img {
  569. width: 90px;
  570. height: 90px;
  571. border-radius: 5px;
  572. object-fit: cover;
  573. }
  574. .goods-info {
  575. width: calc(100% - 106px);
  576. height: 90px;
  577. margin-left: 16px;
  578. .goods-name {
  579. width: 100%;
  580. height: 36px;
  581. float: left;
  582. font-size: 14px;
  583. font-family: PingFang SC;
  584. color: #333333;
  585. line-height: 18px;
  586. overflow: hidden;
  587. text-overflow: ellipsis;
  588. display: -webkit-box;
  589. -webkit-line-clamp: 2;
  590. -webkit-box-orient: vertical;
  591. word-wrap: break-word;
  592. }
  593. .goods-type {
  594. height: 20px;
  595. float: left;
  596. background: #F0F0F0;
  597. border-radius: 4px;
  598. padding: 0 8px;
  599. margin: 6px 0;
  600. font-size: 10px;
  601. font-family: PingFang SC;
  602. color: #666666;
  603. line-height: 20px;
  604. }
  605. .plant-area {
  606. height: 20px;
  607. float: right;
  608. margin: 6px 0;
  609. font-size: 12px;
  610. font-family: PingFang SC;
  611. color: #333333;
  612. }
  613. .goods-price-number {
  614. width: 60%;
  615. height: 20px;
  616. float: left;
  617. line-height: 40px;
  618. font-family: PingFang SC;
  619. color: #333333;
  620. .goods-unit {
  621. font-size: 12px;
  622. }
  623. .goods-price {
  624. font-size: 15px;
  625. margin-right: 6px;
  626. }
  627. .goods-number {
  628. font-size: 12px;
  629. }
  630. }
  631. .goods-editnumber {
  632. float: left;
  633. width: 35%
  634. }
  635. .plant-text {
  636. float: right;
  637. font-size: 12px;
  638. font-family: PingFang SC;
  639. color: #333333;
  640. }
  641. }
  642. }
  643. }
  644. .order-info {
  645. width: 100%;
  646. float: left;
  647. /deep/.u-cell {
  648. padding: 6px 16px;
  649. }
  650. }
  651. .pay-info {
  652. width: 100%;
  653. height: 46px;
  654. float: left;
  655. box-sizing: border-box;
  656. border-top: 1px solid #EEEEEE;
  657. padding-right: 15px;
  658. line-height: 44px;
  659. font-family: PingFang SC;
  660. font-size: 14px;
  661. text-align: right;
  662. white-space: nowrap;
  663. .pay-text {
  664. float: left;
  665. color: #333333;
  666. margin-left: 15px;
  667. }
  668. .pay-price {
  669. color: #52A63A;
  670. }
  671. }
  672. }
  673. .order-info-box {
  674. width: calc(100% - 30px);
  675. float: left;
  676. margin: 0 15px 10px 15px;
  677. background: #FFFFFF;
  678. border-radius: 10px;
  679. .info-title-box {
  680. width: 100%;
  681. height: 48px;
  682. float: left;
  683. box-sizing: border-box;
  684. padding: 15px 15px 14px 15px;
  685. border-bottom: 1px solid #EEEEEE;
  686. line-height: 18px;
  687. white-space: nowrap;
  688. .info-title {
  689. height: 18px;
  690. float: left;
  691. font-size: 15px;
  692. font-family: PingFang SC;
  693. color: #333333;
  694. margin-right: 8px;
  695. padding-left: 10px;
  696. border-left: 2px solid #74BD60;
  697. }
  698. .iconfangxiang {
  699. float: right;
  700. font-size: 12px;
  701. color: #999999;
  702. }
  703. }
  704. .info-content-box {
  705. width: 100%;
  706. float: left;
  707. padding: 15px 0;
  708. .message-row {
  709. width: 100%;
  710. float: left;
  711. box-sizing: border-box;
  712. padding: 0 15px;
  713. margin-bottom: 15px;
  714. .message-head {
  715. width: 50px;
  716. height: 50px;
  717. object-fit: cover;
  718. float: left;
  719. border-radius: 50%;
  720. overflow: hidden;
  721. }
  722. .message-info-box {
  723. width: calc(100% - 75px);
  724. float: right;
  725. .message-name {
  726. width: 50%;
  727. height: 30px;
  728. float: left;
  729. font-size: 15px;
  730. font-family: PingFang SC;
  731. color: #333333;
  732. line-height: 30px;
  733. overflow: hidden;
  734. text-overflow: ellipsis;
  735. white-space: nowrap;
  736. }
  737. .message-date {
  738. width: 50%;
  739. height: 30px;
  740. float: left;
  741. font-size: 12px;
  742. font-family: PingFang SC;
  743. color: #666666;
  744. text-align: right;
  745. line-height: 30px;
  746. overflow: hidden;
  747. text-overflow: ellipsis;
  748. white-space: nowrap;
  749. }
  750. .message-text {
  751. width: 100%;
  752. height: 20px;
  753. float: left;
  754. font-size: 12px;
  755. font-family: PingFang SC;
  756. color: #666666;
  757. line-height: 20px;
  758. overflow: hidden;
  759. text-overflow: ellipsis;
  760. white-space: nowrap;
  761. }
  762. .message-img-box {
  763. width: 100%;
  764. float: left;
  765. .message-img {
  766. width: 76px;
  767. height: 76px;
  768. object-fit: cover;
  769. float: left;
  770. margin: 0 10px 10px 0;
  771. }
  772. }
  773. }
  774. }
  775. .message-row:last-child {
  776. margin-bottom: 0;
  777. }
  778. .order-info-row {
  779. width: 100%;
  780. float: left;
  781. box-sizing: border-box;
  782. padding: 0 15px;
  783. font-size: 12px;
  784. font-family: PingFang SC;
  785. color: #333333;
  786. line-height: 26px;
  787. word-break:break-all;
  788. }
  789. }
  790. .assess-row {
  791. width: calc(100% - 30px);
  792. margin: 0 15px;
  793. float: left;
  794. // border-top: 1px solid #F6F6F6;
  795. padding: 12px 0;
  796. .assess-head {
  797. width: 50px;
  798. height: 50px;
  799. float: left;
  800. object-fit: cover;
  801. border-radius: 50%;
  802. }
  803. .assess-info {
  804. width: calc(100% - 62px);
  805. margin-left: 12px;
  806. float: left;
  807. .assess-name {
  808. height: 18px;
  809. float: left;
  810. line-height: 18px;
  811. font-size: 15px;
  812. font-family: PingFang SC;
  813. font-weight: bold;
  814. color: #343434;
  815. }
  816. .assess-date {
  817. height: 18px;
  818. float: right;
  819. line-height: 18px;
  820. font-size: 12px;
  821. font-family: PingFang SC;
  822. font-weight: bold;
  823. color: #666666;
  824. }
  825. .assess-sore-box {
  826. width: 100%;
  827. height: 16px;
  828. float: left;
  829. margin: 6px 0;
  830. }
  831. .assess-text {
  832. width: 100%;
  833. float: left;
  834. font-size: 12px;
  835. font-family: PingFang SC;
  836. font-weight: bold;
  837. color: #666666;
  838. line-height: 16px;
  839. margin: 8px 0 10px 0;
  840. overflow: hidden;
  841. text-overflow: ellipsis;
  842. display: -webkit-box;
  843. -webkit-line-clamp: 2;
  844. -webkit-box-orient: vertical;
  845. word-wrap: break-word;
  846. }
  847. .assess-img-box {
  848. width: 100%;
  849. float: left;
  850. display: flex;
  851. .img-col {
  852. height: 60px;
  853. width: 60px;
  854. object-fit: cover;
  855. margin: 0 10px 10px 0;
  856. }
  857. }
  858. }
  859. .shop-reply-box {
  860. width: 100%;
  861. float: left;
  862. background: #F5F5F5;
  863. border-radius: 5px;
  864. margin-top: 10px;
  865. .shop-head {
  866. width: 100%;
  867. height: 36px;
  868. float: left;
  869. box-sizing: border-box;
  870. padding: 10px 12px;
  871. .icondianpu {
  872. width: 16px;
  873. height: 16px;
  874. float: left;
  875. color: #52A63A;
  876. font-size: 20px;
  877. margin-right: 8px;
  878. }
  879. .shop-name {
  880. height: 16px;
  881. float: left;
  882. font-size: 15px;
  883. font-family: PingFang SC;
  884. color: #52A63A;
  885. line-height: 16px;
  886. }
  887. }
  888. .shop-reply {
  889. width: 100%;
  890. float: left;
  891. box-sizing: border-box;
  892. padding: 0 12px 12px 12px;
  893. font-size: 12px;
  894. font-family: PingFang SC;
  895. color: #666666;
  896. line-height: 16px;
  897. }
  898. }
  899. }
  900. }
  901. .order-handle {
  902. width: 100%;
  903. height: 50px;
  904. float: left;
  905. border-top: 1px solid #cccccc;
  906. }
  907. }
  908. .uni-popup-dialog {
  909. width: 80vw;
  910. border-radius: 15px;
  911. background-color: #fff;
  912. position: fixed;
  913. margin-left: 10vw;
  914. top: 34vh;
  915. z-index: 11;
  916. }
  917. .uni-dialog-title {
  918. /* #ifndef APP-NVUE */
  919. display: flex;
  920. /* #endif */
  921. flex-direction: row;
  922. justify-content: center;
  923. padding-top: 15px;
  924. padding-bottom: 5px;
  925. }
  926. .uni-dialog-title-text {
  927. font-size: 16px;
  928. font-weight: 500;
  929. }
  930. .uni-dialog-content {
  931. /* #ifndef APP-NVUE */
  932. display: flex;
  933. /* #endif */
  934. flex-direction: row;
  935. justify-content: center;
  936. align-items: center;
  937. padding: 5px 15px 15px 15px;
  938. text-align: center;
  939. }
  940. .uni-dialog-content-text {
  941. font-size: 14px;
  942. color: #6e6e6e;
  943. }
  944. .uni-dialog-button-group {
  945. /* #ifndef APP-NVUE */
  946. display: flex;
  947. /* #endif */
  948. flex-direction: row;
  949. border-top-color: #f5f5f5;
  950. border-top-style: solid;
  951. border-top-width: 1px;
  952. }
  953. .uni-dialog-button {
  954. /* #ifndef APP-NVUE */
  955. display: flex;
  956. /* #endif */
  957. background: rgba(0, 0, 0, 0);
  958. border: none;
  959. flex: 1;
  960. flex-direction: row;
  961. justify-content: center;
  962. align-items: center;
  963. height: 45px;
  964. }
  965. .uni-border-left {
  966. border-left-color: #f0f0f0;
  967. border-left-style: solid;
  968. border-left-width: 0px;
  969. }
  970. .uni-dialog-button-text {
  971. font-size: 14px;
  972. }
  973. .uni-button-color {
  974. color: #007aff;
  975. }
  976. .uni-dialog-input {
  977. flex: 1;
  978. font-size: 14px;
  979. }
  980. .uni-popup__success {
  981. color: #4cd964;
  982. }
  983. .uni-popup__warn {
  984. color: #f0ad4e;
  985. }
  986. .uni-popup__error {
  987. color: #dd524d;
  988. }
  989. .uni-popup__info {
  990. color: #909399;
  991. }
  992. .qx_bg{
  993. width: 100vw;
  994. height: 100vh;
  995. background: rgba(0, 0, 0, 0.25);
  996. position: fixed;
  997. top: 0px;
  998. left: 0px;
  999. z-index: 10;
  1000. }
  1001. /deep/.uni-tab__cart-button-right{
  1002. border-right: 1px solid #ffffff;
  1003. }
  1004. /deep/.uni-tab__cart-button-right:last-child{
  1005. border-right: none;
  1006. }
  1007. </style>