orderDetail.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104
  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 minNum="1" :number="item.buyNum" @numPlus="plusPrice($event, index)" @numReduce="reducePrice($event, index)"></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 && 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. console.log('订单数据',this.orderData)
  213. if (this.orderData.addOrderTime) {
  214. let tempTime = new Date(this.orderData.addOrderTime.replace(/\-/g, '/')).getTime()
  215. let addTempTime = new Date(tempTime + 1000 * 60 * 60 * 24)
  216. let addYear = addTempTime.getFullYear()
  217. let addMonth = addTempTime.getMonth() + 1
  218. let addDay = addTempTime.getDate()
  219. let addHours = addTempTime.getHours()
  220. let addMin = addTempTime.getMinutes()
  221. let addSeconds = addTempTime.getSeconds()
  222. this.orderData.overTime = addYear + '年' + addMonth + '月' + addDay + '日' + addHours + ':' + addMin + ':' +
  223. addSeconds
  224. }
  225. if (this.orderData.merchantInfoResVO.products.length && this.orderData.merchantInfoResVO.products[0].productType !=
  226. 2 && this.orderData.merchantInfoResVO.products[0].productType != 4) {
  227. // this.goodType = 1
  228. if (this.orderData.merchantInfoResVO.products.some(v => {return v.productType == 3})) {
  229. this.goodType = 3
  230. } else {
  231. this.goodType = 1
  232. }
  233. } else {
  234. this.goodType = 2
  235. }
  236. if (this.orderData.orderStatus == 1 && this.goodType == 3) {
  237. this.buttonGroup = [{
  238. text: '修改订单',
  239. backgroundColor: '#75BD60',
  240. color: '#fff'
  241. }]
  242. } else if (this.orderData.orderStatus == 2) {
  243. if (this.orderData.merchantInfoResVO.products.length) {
  244. if (this.orderData.merchantInfoResVO.products.some(v => {return v.productType == 3})) {
  245. this.noPick = false
  246. this.buttonGroup = [{
  247. text: '发货',
  248. backgroundColor: '#75BD60',
  249. color: '#fff'
  250. }, {
  251. text: '自助采摘',
  252. backgroundColor: '#52A63A',
  253. color: '#fff'
  254. }]
  255. } else {
  256. this.buttonGroup = [{
  257. text: '发货',
  258. backgroundColor: '#75BD60',
  259. color: '#fff'
  260. }]
  261. }
  262. }
  263. if (this.orderData.auctionStatus == 1) {
  264. this.buttonGroup = []
  265. }
  266. } else if (this.orderData.orderStatus == 3 || this.orderData.orderStatus == 4) {
  267. this.buttonGroup[0].text = '追踪物流'
  268. } else if (this.orderData.evaluateReplyStatus == 1) {
  269. this.buttonGroup[0].text = '回复'
  270. } else {
  271. this.buttonGroup = []
  272. }
  273. this.getOrderType()
  274. }).catch(error => {
  275. this.$refs.uTips.show({
  276. title: error.data.msg,
  277. type: 'warning',
  278. })
  279. })
  280. },
  281. // 获取子组件的库存数量/
  282. // getStockNum(num,index) {
  283. // this.isClick = true
  284. // this.orderData.merchantInfoResVO.products[index].buyNum = num
  285. // this.getEditSum()
  286. // },
  287. // 加事件
  288. plusPrice(num,index) {
  289. this.isClick = true
  290. this.orderData.merchantInfoResVO.products[index].buyNum = Number(num) + 1;
  291. this.getEditSum()
  292. },
  293. // 减事件
  294. reducePrice(num,index) {
  295. this.isClick = true
  296. if ((Number(num) - 1) >= 1) {
  297. this.orderData.merchantInfoResVO.products[index].buyNum = Number(num) - 1;
  298. }
  299. this.getEditSum()
  300. },
  301. // 计算实付额和订单总额
  302. getEditSum() {
  303. let price = this.orderData.merchantInfoResVO.products.reduce((total, site) => {
  304. return total + site.bizPrice * site.buyNum
  305. }, 0)
  306. this.orderData.orderSum = price.toFixed(2)
  307. this.orderData.paySum = (price - this.orderData.discountAmount).toFixed(2)
  308. },
  309. // 获取订单类型
  310. getOrderType() {
  311. switch (this.orderData.orderStatus) {
  312. case 1:
  313. this.orderType = {
  314. title: '等待买家付款',
  315. text: '订单将于' + this.orderData.overTime + '关闭',
  316. }
  317. break;
  318. case 2:
  319. this.orderType = {
  320. title: '待发货',
  321. text: '买家已付款,请尽快发货',
  322. }
  323. break;
  324. case 3:
  325. this.orderType = {
  326. title: '已发货',
  327. text: '商品正在运输中',
  328. }
  329. break;
  330. case 4:
  331. this.orderType = {
  332. title: '已送达',
  333. text: '商品已送达',
  334. }
  335. break;
  336. case 5:
  337. this.orderType = {
  338. title: '交易已完成',
  339. text: '',
  340. }
  341. break;
  342. default:
  343. this.orderType = {
  344. title: '交易已取消',
  345. text: '',
  346. }
  347. }
  348. },
  349. // 操作
  350. orderHandle(e) {
  351. if (this.orderData.orderStatus == 1) {
  352. this.buttonGroup = [{
  353. text: this.isEdit ? '修改订单' : '提交订单',
  354. backgroundColor: this.isEdit ? '#52A63A' : '#75BD60',
  355. color: '#fff'
  356. }]
  357. if (this.isEdit) {
  358. if (!this.isClick) {
  359. this.orderData.merchantInfoResVO.products.forEach(v => {
  360. if (v.productType == 3) {
  361. v.buyNum = 1
  362. }
  363. })
  364. this.getEditSum()
  365. }
  366. NET.request(API.editOrder, {
  367. orderId: this.orderData.orderId,
  368. orderSum: this.orderData.orderSum,
  369. paySum: this.orderData.paySum,
  370. products: this.orderData.merchantInfoResVO.products
  371. }, 'POST').then(res => {
  372. this.$refs.uTips.show({
  373. title: '修改成功',
  374. type: 'success',
  375. })
  376. this.getDetail()
  377. }).catch(error => {
  378. this.$refs.uTips.show({
  379. title: error.data.msg,
  380. type: 'warning',
  381. })
  382. })
  383. }
  384. this.isEdit = !this.isEdit
  385. } else if (this.orderData.orderStatus == 2) {
  386. if (e.index == 0) {
  387. // 发货
  388. uni.navigateTo({
  389. url: '/pagesMain/bindOrder?orderId=' + this.orderData.orderId
  390. });
  391. } else if (e.index == 1) {
  392. // 去自助采摘
  393. var that=this;
  394. if(uni.getStorageSync("firstTimeLive")==""){
  395. uni.setStorage({
  396. key: 'firstTimeLive',
  397. data: 1
  398. })
  399. uni.navigateTo({
  400. url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
  401. });
  402. }else{
  403. uni.navigateTo({
  404. url: '/pagesMedia/pickVideo?tenantCode=' + that.orderData.tenantCode + '&orderId=' + that.orderData.orderId
  405. });
  406. }
  407. }
  408. } else if (this.orderData.orderStatus == 3 || this.orderData.orderStatus == 4) {
  409. // 追踪物流
  410. uni.navigateTo({
  411. url: '/pagesMain/logisticsDeatil?logisticCode=' + this.orderData.logisticsNum
  412. });
  413. } else {
  414. // 回复
  415. uni.navigateTo({
  416. url: '/pagesMain/evaluateForm?orderId=' + this.orderData.orderId +'&mid='+this.orderData.mid
  417. });
  418. }
  419. },
  420. // 跳转留言列表
  421. goToMessage() {
  422. uni.navigateTo({
  423. url: '/pagesMain/messageList?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode
  424. });
  425. },
  426. // 图片预览
  427. _previewImage(image,index) {
  428. var imgArr = [];
  429. imgArr.push(image);
  430. //预览图片
  431. uni.previewImage({
  432. urls: imgArr,
  433. current: imgArr[index]
  434. });
  435. }
  436. }
  437. }
  438. </script>
  439. <style>
  440. page {
  441. background-color: #f7f7f7;
  442. }
  443. </style>
  444. <style lang="less" scoped>
  445. page {
  446. width: 100%;
  447. height: 100%;
  448. }
  449. .container {
  450. width: 100%;
  451. height: 100%;
  452. float: left;
  453. background-color: #f7f7f7;
  454. box-sizing: border-box;
  455. overflow-y: auto;
  456. position: absolute;
  457. .order-type-info {
  458. width: 100%;
  459. height: 115px;
  460. float: left;
  461. box-sizing: border-box;
  462. padding: 22px 100px 0 15px;
  463. background: #52A63A;
  464. border-radius: 0px 0px 20px 20px;
  465. background-size: 62px;
  466. background-position: calc(100% - 48px) 12px;
  467. background-repeat: no-repeat;
  468. background-image: url(@/static/images/orderDetail.png);
  469. .order-type-title {
  470. width: 100%;
  471. float: left;
  472. height: 20px;
  473. line-height: 20px;
  474. font-size: 15px;
  475. font-family: PingFang SC;
  476. color: #FFFFFF;
  477. margin-bottom: 4px;
  478. }
  479. .order-type-text {
  480. width: 100%;
  481. float: left;
  482. height: 20px;
  483. line-height: 20px;
  484. font-size: 12px;
  485. font-family: PingFang SC;
  486. color: #FFFFFF;
  487. }
  488. }
  489. .address-info-box {
  490. width: calc(100% - 30px);
  491. float: left;
  492. box-sizing: border-box;
  493. padding: 16px 18px 16px 16px;
  494. margin: -34px 15px 10px 15px;
  495. background: #FFFFFF;
  496. border-radius: 10px;
  497. .address-icon {
  498. width: 36px;
  499. height: 40px;
  500. float: left;
  501. align-items: center;
  502. display: flex;
  503. .iconfont {
  504. color: #52A63A;
  505. font-size: 36px;
  506. }
  507. }
  508. .address-content {
  509. width: calc(100% - 56px);
  510. height: 40px;
  511. float: left;
  512. margin: 0 8px 0 12px;
  513. .address-info {
  514. height: 20px;
  515. font-family: PingFang SC;
  516. line-height: 20px;
  517. overflow: hidden;
  518. text-overflow: ellipsis;
  519. white-space: nowrap;
  520. .address-name {
  521. font-size: 16px;
  522. color: #333333;
  523. margin-right: 14px;
  524. }
  525. .address-phone {
  526. font-size: 12px;
  527. color: #666666;
  528. }
  529. }
  530. .address-detail {
  531. height: 20px;
  532. font-size: 16px;
  533. font-family: PingFang SC;
  534. color: #333333;
  535. line-height: 20px;
  536. overflow: hidden;
  537. text-overflow: ellipsis;
  538. white-space: nowrap;
  539. }
  540. }
  541. }
  542. .goods-info-box {
  543. width: calc(100% - 30px);
  544. float: left;
  545. margin: 0 15px 10px 15px;
  546. background: #FFFFFF;
  547. border-radius: 10px;
  548. .shop-info {
  549. width: 100%;
  550. height: 48px;
  551. float: left;
  552. box-sizing: border-box;
  553. padding: 13px 15px 12px 15px;
  554. border-bottom: 1px solid #EEEEEE;
  555. line-height: 22px;
  556. .iconwode {
  557. font-size: 22px;
  558. color: #333333;
  559. }
  560. .shop-name {
  561. font-size: 15px;
  562. font-family: PingFang SC;
  563. color: #333333;
  564. margin: 0 8px 0 10px;
  565. }
  566. .iconshangjia {
  567. font-size: 12px;
  568. color: #999999;
  569. }
  570. }
  571. .goods-list {
  572. width: 100%;
  573. float: left;
  574. box-sizing: border-box;
  575. padding: 10px 15px 0 15px;
  576. .goods-row {
  577. width: 100%;
  578. height: 110px;
  579. float: left;
  580. display: flex;
  581. margin-bottom: 10px;
  582. .goods-img {
  583. width: 90px;
  584. height: 90px;
  585. border-radius: 5px;
  586. object-fit: cover;
  587. }
  588. .goods-info {
  589. width: calc(100% - 106px);
  590. height: 90px;
  591. margin-left: 16px;
  592. .goods-name {
  593. width: 100%;
  594. height: 36px;
  595. float: left;
  596. font-size: 14px;
  597. font-family: PingFang SC;
  598. color: #333333;
  599. line-height: 18px;
  600. overflow: hidden;
  601. text-overflow: ellipsis;
  602. display: -webkit-box;
  603. -webkit-line-clamp: 2;
  604. -webkit-box-orient: vertical;
  605. word-wrap: break-word;
  606. }
  607. .goods-type {
  608. height: 20px;
  609. float: left;
  610. background: #F0F0F0;
  611. border-radius: 4px;
  612. padding: 0 8px;
  613. margin: 6px 0;
  614. font-size: 10px;
  615. font-family: PingFang SC;
  616. color: #666666;
  617. line-height: 20px;
  618. }
  619. .plant-area {
  620. height: 20px;
  621. float: right;
  622. margin: 6px 0;
  623. font-size: 12px;
  624. font-family: PingFang SC;
  625. color: #333333;
  626. }
  627. .goods-price-number {
  628. width: 60%;
  629. height: 20px;
  630. float: left;
  631. line-height: 40px;
  632. font-family: PingFang SC;
  633. color: #333333;
  634. .goods-unit {
  635. font-size: 12px;
  636. }
  637. .goods-price {
  638. font-size: 15px;
  639. margin-right: 6px;
  640. }
  641. .goods-number {
  642. font-size: 12px;
  643. }
  644. }
  645. .goods-editnumber {
  646. float: left;
  647. width: 35%
  648. }
  649. .plant-text {
  650. float: right;
  651. font-size: 12px;
  652. font-family: PingFang SC;
  653. color: #333333;
  654. }
  655. }
  656. }
  657. }
  658. .order-info {
  659. width: 100%;
  660. float: left;
  661. /deep/.u-cell {
  662. padding: 6px 16px;
  663. }
  664. }
  665. .pay-info {
  666. width: 100%;
  667. height: 46px;
  668. float: left;
  669. box-sizing: border-box;
  670. border-top: 1px solid #EEEEEE;
  671. padding-right: 15px;
  672. line-height: 44px;
  673. font-family: PingFang SC;
  674. font-size: 14px;
  675. text-align: right;
  676. white-space: nowrap;
  677. .pay-text {
  678. float: left;
  679. color: #333333;
  680. margin-left: 15px;
  681. }
  682. .pay-price {
  683. color: #52A63A;
  684. }
  685. }
  686. }
  687. .order-info-box {
  688. width: calc(100% - 30px);
  689. float: left;
  690. margin: 0 15px 10px 15px;
  691. background: #FFFFFF;
  692. border-radius: 10px;
  693. .info-title-box {
  694. width: 100%;
  695. height: 48px;
  696. float: left;
  697. box-sizing: border-box;
  698. padding: 15px 15px 14px 15px;
  699. border-bottom: 1px solid #EEEEEE;
  700. line-height: 18px;
  701. white-space: nowrap;
  702. .info-title {
  703. height: 18px;
  704. float: left;
  705. font-size: 15px;
  706. font-family: PingFang SC;
  707. color: #333333;
  708. margin-right: 8px;
  709. padding-left: 10px;
  710. border-left: 2px solid #74BD60;
  711. }
  712. .iconfangxiang {
  713. float: right;
  714. font-size: 12px;
  715. color: #999999;
  716. }
  717. }
  718. .info-content-box {
  719. width: 100%;
  720. float: left;
  721. padding: 15px 0;
  722. .message-row {
  723. width: 100%;
  724. float: left;
  725. box-sizing: border-box;
  726. padding: 0 15px;
  727. margin-bottom: 15px;
  728. .message-head {
  729. width: 50px;
  730. height: 50px;
  731. object-fit: cover;
  732. float: left;
  733. border-radius: 50%;
  734. overflow: hidden;
  735. }
  736. .message-info-box {
  737. width: calc(100% - 75px);
  738. float: right;
  739. .message-name {
  740. width: 50%;
  741. height: 30px;
  742. float: left;
  743. font-size: 15px;
  744. font-family: PingFang SC;
  745. color: #333333;
  746. line-height: 30px;
  747. overflow: hidden;
  748. text-overflow: ellipsis;
  749. white-space: nowrap;
  750. }
  751. .message-date {
  752. width: 50%;
  753. height: 30px;
  754. float: left;
  755. font-size: 12px;
  756. font-family: PingFang SC;
  757. color: #666666;
  758. text-align: right;
  759. line-height: 30px;
  760. overflow: hidden;
  761. text-overflow: ellipsis;
  762. white-space: nowrap;
  763. }
  764. .message-text {
  765. width: 100%;
  766. height: 20px;
  767. float: left;
  768. font-size: 12px;
  769. font-family: PingFang SC;
  770. color: #666666;
  771. line-height: 20px;
  772. overflow: hidden;
  773. text-overflow: ellipsis;
  774. white-space: nowrap;
  775. }
  776. .message-img-box {
  777. width: 100%;
  778. float: left;
  779. .message-img {
  780. width: 76px;
  781. height: 76px;
  782. object-fit: cover;
  783. float: left;
  784. margin: 0 10px 10px 0;
  785. }
  786. }
  787. }
  788. }
  789. .message-row:last-child {
  790. margin-bottom: 0;
  791. }
  792. .order-info-row {
  793. width: 100%;
  794. float: left;
  795. box-sizing: border-box;
  796. padding: 0 15px;
  797. font-size: 12px;
  798. font-family: PingFang SC;
  799. color: #333333;
  800. line-height: 26px;
  801. word-break:break-all;
  802. }
  803. }
  804. .assess-row {
  805. width: calc(100% - 30px);
  806. margin: 0 15px;
  807. float: left;
  808. // border-top: 1px solid #F6F6F6;
  809. padding: 12px 0;
  810. .assess-head {
  811. width: 50px;
  812. height: 50px;
  813. float: left;
  814. object-fit: cover;
  815. border-radius: 50%;
  816. }
  817. .assess-info {
  818. width: calc(100% - 62px);
  819. margin-left: 12px;
  820. float: left;
  821. .assess-name {
  822. height: 18px;
  823. float: left;
  824. line-height: 18px;
  825. font-size: 15px;
  826. font-family: PingFang SC;
  827. font-weight: bold;
  828. color: #343434;
  829. }
  830. .assess-date {
  831. height: 18px;
  832. float: right;
  833. line-height: 18px;
  834. font-size: 12px;
  835. font-family: PingFang SC;
  836. font-weight: bold;
  837. color: #666666;
  838. }
  839. .assess-sore-box {
  840. width: 100%;
  841. height: 16px;
  842. float: left;
  843. margin: 6px 0;
  844. }
  845. .assess-text {
  846. width: 100%;
  847. float: left;
  848. font-size: 12px;
  849. font-family: PingFang SC;
  850. font-weight: bold;
  851. color: #666666;
  852. line-height: 16px;
  853. margin: 8px 0 10px 0;
  854. overflow: hidden;
  855. text-overflow: ellipsis;
  856. display: -webkit-box;
  857. -webkit-line-clamp: 2;
  858. -webkit-box-orient: vertical;
  859. word-wrap: break-word;
  860. }
  861. .assess-img-box {
  862. width: 100%;
  863. float: left;
  864. display: flex;
  865. .img-col {
  866. height: 60px;
  867. width: 60px;
  868. object-fit: cover;
  869. margin: 0 10px 10px 0;
  870. }
  871. }
  872. }
  873. .shop-reply-box {
  874. width: 100%;
  875. float: left;
  876. background: #F5F5F5;
  877. border-radius: 5px;
  878. margin-top: 10px;
  879. .shop-head {
  880. width: 100%;
  881. height: 36px;
  882. float: left;
  883. box-sizing: border-box;
  884. padding: 10px 12px;
  885. .icondianpu {
  886. width: 16px;
  887. height: 16px;
  888. float: left;
  889. color: #52A63A;
  890. font-size: 20px;
  891. margin-right: 8px;
  892. }
  893. .shop-name {
  894. height: 16px;
  895. float: left;
  896. font-size: 15px;
  897. font-family: PingFang SC;
  898. color: #52A63A;
  899. line-height: 16px;
  900. }
  901. }
  902. .shop-reply {
  903. width: 100%;
  904. float: left;
  905. box-sizing: border-box;
  906. padding: 0 12px 12px 12px;
  907. font-size: 12px;
  908. font-family: PingFang SC;
  909. color: #666666;
  910. line-height: 16px;
  911. }
  912. }
  913. }
  914. }
  915. .order-handle {
  916. width: 100%;
  917. height: 50px;
  918. float: left;
  919. border-top: 1px solid #cccccc;
  920. }
  921. }
  922. .uni-popup-dialog {
  923. width: 80vw;
  924. border-radius: 15px;
  925. background-color: #fff;
  926. position: fixed;
  927. margin-left: 10vw;
  928. top: 34vh;
  929. z-index: 11;
  930. }
  931. .uni-dialog-title {
  932. /* #ifndef APP-NVUE */
  933. display: flex;
  934. /* #endif */
  935. flex-direction: row;
  936. justify-content: center;
  937. padding-top: 15px;
  938. padding-bottom: 5px;
  939. }
  940. .uni-dialog-title-text {
  941. font-size: 16px;
  942. font-weight: 500;
  943. }
  944. .uni-dialog-content {
  945. /* #ifndef APP-NVUE */
  946. display: flex;
  947. /* #endif */
  948. flex-direction: row;
  949. justify-content: center;
  950. align-items: center;
  951. padding: 5px 15px 15px 15px;
  952. text-align: center;
  953. }
  954. .uni-dialog-content-text {
  955. font-size: 14px;
  956. color: #6e6e6e;
  957. }
  958. .uni-dialog-button-group {
  959. /* #ifndef APP-NVUE */
  960. display: flex;
  961. /* #endif */
  962. flex-direction: row;
  963. border-top-color: #f5f5f5;
  964. border-top-style: solid;
  965. border-top-width: 1px;
  966. }
  967. .uni-dialog-button {
  968. /* #ifndef APP-NVUE */
  969. display: flex;
  970. /* #endif */
  971. background: rgba(0, 0, 0, 0);
  972. border: none;
  973. flex: 1;
  974. flex-direction: row;
  975. justify-content: center;
  976. align-items: center;
  977. height: 45px;
  978. }
  979. .uni-border-left {
  980. border-left-color: #f0f0f0;
  981. border-left-style: solid;
  982. border-left-width: 0px;
  983. }
  984. .uni-dialog-button-text {
  985. font-size: 14px;
  986. }
  987. .uni-button-color {
  988. color: #007aff;
  989. }
  990. .uni-dialog-input {
  991. flex: 1;
  992. font-size: 14px;
  993. }
  994. .uni-popup__success {
  995. color: #4cd964;
  996. }
  997. .uni-popup__warn {
  998. color: #f0ad4e;
  999. }
  1000. .uni-popup__error {
  1001. color: #dd524d;
  1002. }
  1003. .uni-popup__info {
  1004. color: #909399;
  1005. }
  1006. .qx_bg{
  1007. width: 100vw;
  1008. height: 100vh;
  1009. background: rgba(0, 0, 0, 0.25);
  1010. position: fixed;
  1011. top: 0px;
  1012. left: 0px;
  1013. z-index: 10;
  1014. }
  1015. /deep/.uni-tab__cart-button-right{
  1016. border-right: 1px solid #ffffff;
  1017. }
  1018. /deep/.uni-tab__cart-button-right:last-child{
  1019. border-right: none;
  1020. }
  1021. </style>