goodDetails.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  1. <template>
  2. <view class="container">
  3. <swiper class="swiper" :style="{width: swiperHeight+'px', height: swiperHeight+'px'}" :indicator-dots="true" indicator-color="#9A9A9A" indicator-active-color="#52A63A" :autoplay="true"
  4. :interval="3000" :duration="500">
  5. <swiper-item v-for="(item,index) in goodData.imgs" :key="index">
  6. <image :src="item.imgPath" mode="aspectFill" style="width: 100%;height: 100%;"></image>
  7. </swiper-item>
  8. </swiper>
  9. <view class="good-info">
  10. <view class="auction-date" v-if="goodData.productType == 2">
  11. <text class="iconfont iconshijian"></text>
  12. {{goodData.auctionEndTime}}结束
  13. </view>
  14. <view class="good-price">
  15. <view class="auction-unit" v-if="goodData.productType == 2 || goodData.productType == 4">
  16. <view class="unit-type">RMB</view>
  17. <view class="unit-text">当前价</view>
  18. </view>
  19. <text class="sale-icon">¥</text>
  20. <text class="sale-price">{{ goodData.productType == 2 ? currentPrice : goodData.bizPrice }}</text>
  21. <text class="price" v-if="goodData.productType != 2">原价:{{goodData.originalPrice}}</text>
  22. <text class="seller-count" v-if="goodData.productType != 2 && goodData.productType != 4">{{goodData.sellCount}}人付款</text>
  23. <text class="good-stock" v-if="goodData.productType == 2">仅限{{goodData.stock}}份</text>
  24. </view>
  25. <view class="good-name">{{goodData.productName}}</view>
  26. <view class="good-plant" v-if="goodData.productType == 4">时长:{{goodData.term}}天&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;面积:{{goodData.areaSize}}平米</view>
  27. <view class="good-detail">{{goodData.productDescribe ? goodData.productDescribe : '暂无描述'}}</view>
  28. </view>
  29. <view class="good-data" v-if="goodData.productType != 2 && goodData.productType != 4">
  30. <text class="good-select">商品规格</text>
  31. <!-- <text class="good-unit">{{number}}&nbsp;{{goodData.unit ? goodData.unit : ''}}</text> -->
  32. <text class="good-unit">{{goodData.unit ? goodData.unit : ''}}</text>
  33. <!-- <text class="iconfont iconfangxiang"></text>
  34. -->
  35. </view>
  36. <view class="buy-num" v-if="goodData.productType != 2 && !minePlant">
  37. <view class="buy-text">购买数量:</view>
  38. <!-- <view style="display: flex;">
  39. <uni-icons type="minus-filled" size="20" color="#A67A54" @click="number>1?number--:''"></uni-icons>
  40. <text class="buy-select">{{number}}</text>
  41. <u-input
  42. v-model="number"
  43. type="number"
  44. height="40"
  45. placeholder=" "
  46. :clearable="false"
  47. input-align="center"
  48. :custom-style="{width:'40px'}"/>
  49. <uni-icons type="plus-filled" size="20" color="#A67A54" @click="number++"></uni-icons>
  50. </view> -->
  51. <CnumberBox @getNum="getNum" :isDisabled="true" minNum="1"></CnumberBox>
  52. </view>
  53. <view class="tab-box">
  54. <view class="tab-col" :class="tabIndex == 1 ? 'tab-col-active' :''" @click="tabIndex = 1">产品介绍</view>
  55. <view class="tab-col" :class="tabIndex == 2 ? 'tab-col-active' :''" v-if="goodData.productType != 2 && goodData.productType != 4 "
  56. @click="tabIndex = 2">用户评价</view>
  57. </view>
  58. <rich-text :nodes="goodData.sellDesc" v-if="tabIndex == 1"></rich-text>
  59. <view class="good-assess" v-else>
  60. <view class="assess-row" v-for="(item,index) in assessList" :key="index">
  61. <image class="assess-head" :src="item.headimg"></image>
  62. <view class="assess-info">
  63. <view class="assess-name">{{item.nickname}}</view>
  64. <view class="assess-date">{{item.evaluateTime}}</view>
  65. <view class="assess-sore-box">
  66. <u-rate v-model="item.score" active-color="#FFAE21" disabled></u-rate>
  67. </view>
  68. <view class="assess-text">{{item.evaluateContent}}</view>
  69. <view class="assess-img-box">
  70. <image class="img-col" v-for="site in item.evaluateImgs" :key="site" :src="site.imgUrl"></image>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="assess-more" @click="goToEvaluate()">显示全部</view>
  75. </view>
  76. <view class="good-recommend">
  77. <view class="recommend-title">为您推荐</view>
  78. <scroll-view class="recommend-box" scroll-x="true">
  79. <view class="good-col" v-for="(item, index) in goodsList" :key="index" @click="goToGoodDetails(item)">
  80. <image class="good-img" :src="item.imgPath" mode="aspectFill"></image>
  81. <view class="good-name">{{item.productName}}</view>
  82. <view class="good-price">¥{{item.bizPrice}}</view>
  83. </view>
  84. </scroll-view>
  85. </view>
  86. <uni-goods-nav :fill="true" :options="goodData.productType == 4 ? [] : options" @click="goToShop" @buttonClick="showPopup"
  87. style="width: 100%; position: fixed; bottom: 0px;" :buttonGroup="goodData.productType == 2 ? buttonGroup2 : (goodData.productType == 4 ? (minePlant ? buttonGroup4 : buttonGroup3) : buttonGroup1)" />
  88. <!-- <uni-popup ref="popup" type="bottom">
  89. <view class="popup-box">
  90. <view class="popup-good-info-box">
  91. <image mode="aspectFill" class="popup-good-img" v-if="goodData.imgs.length" :src="goodData.imgs[0].imgPath"></image>
  92. <view class="popup-good-data">
  93. <view class="popup-good-price"><text style="font-size: 14px;">¥</text>{{goodData.bizPrice}}</view>
  94. <view class="popup-good-number">库存{{goodData.stock}}件</view>
  95. <view class="popup-good-type">单位:{{goodData.unit}}</view>
  96. </view>
  97. <view class="popup-good-close"></view>
  98. </view>
  99. <view class="popup-good-info">数量</view>
  100. <view class="popup-good-number-box">
  101. <uni-icons type="minus-filled" size="20" color="#A67A54" @click="number>1?number--:''"></uni-icons>
  102. <text class="good-select">{{number}}</text>
  103. <uni-icons type="plus-filled" size="20" color="#A67A54" @click="number++"></uni-icons>
  104. </view>
  105. <uni-goods-nav :fill="true" :options="[]" :buttonGroup="buttonGroup1" @buttonClick="submitData" style="width: 100%; position: absolute; bottom: 0px;left:0px" />
  106. </view>
  107. </uni-popup> -->
  108. <u-top-tips ref="uTips"></u-top-tips>
  109. </view>
  110. </template>
  111. <script>
  112. const NET = require('@/utils/request')
  113. const API = require('@/config/api')
  114. import CnumberBox from '@/components/CnumberBox.vue'
  115. export default {
  116. components: {
  117. CnumberBox
  118. },
  119. data() {
  120. return {
  121. // 从我的种植进入minePlant为true
  122. swiperHeight: 375,
  123. minePlant: false,
  124. goodId: '',
  125. goodData: {
  126. bizPrice: '',
  127. auctionStartPrice: '',
  128. originalPrice: '',
  129. productType: '',
  130. sellCount: '',
  131. productName: '',
  132. productDescribe: '',
  133. unit: '',
  134. sellDesc: '',
  135. stock: '',
  136. auctionEndTime: '',
  137. term: '',
  138. areaSize: '',
  139. imgs: [],
  140. },
  141. orderId: '',
  142. currentPrice: '',
  143. assessList: [],
  144. goodsList: [],
  145. number: 1,
  146. tabIndex: 1,
  147. options: [{
  148. icon: 'shop',
  149. text: '店铺',
  150. },{
  151. icon: 'cart',
  152. text: '购物车',
  153. info: 0,
  154. infoBackgroundColor: '#52A63A',
  155. infoColor:""
  156. }],
  157. buttonGroup1: [{
  158. text: '加入购物车',
  159. backgroundColor: '#75BD60',
  160. color: '#fff'
  161. },
  162. {
  163. text: '立即购买',
  164. backgroundColor: '#52A63A',
  165. color: '#fff'
  166. }
  167. ],
  168. buttonGroup2: [{
  169. text: '立即参拍',
  170. backgroundColor: '#52A63A',
  171. color: '#fff'
  172. }],
  173. buttonGroup3: [{
  174. text: '立即购买',
  175. backgroundColor: '#52A63A',
  176. color: '#fff'
  177. }],
  178. buttonGroup4: [{
  179. text: '视察',
  180. backgroundColor: '#75BD60',
  181. color: '#fff'
  182. }, {
  183. text: '委托',
  184. backgroundColor: '#52A63A',
  185. color: '#fff'
  186. }],
  187. }
  188. },
  189. onLoad(options) {
  190. this.goodId = options.goodId ? options.goodId : ''
  191. this.minePlant = options.minePlant ? options.minePlant : false
  192. this.orderId = options.orderId ? options.orderId : ''
  193. uni.getSystemInfo({
  194. success: (res) => {
  195. this.swiperHeight = res.windowWidth
  196. }
  197. })
  198. if (this.minePlant) {
  199. uni.setNavigationBarTitle({
  200. title:'我的种植'
  201. })
  202. } else {
  203. uni.setNavigationBarTitle({
  204. title:'商品详情'
  205. })
  206. }
  207. },
  208. onReady() {
  209. this.getGoodsList()
  210. this.getGoodDetail()
  211. },
  212. methods: {
  213. // 获取商品详情获取商品评价
  214. getGoodDetail() {
  215. if (this.goodId) {
  216. NET.request(API.getCommonGoodDetail + '/' + this.goodId, {}, 'GET').then(res => {
  217. this.goodData = res.data
  218. if (this.goodData.cartNum > 0) {
  219. this.options[1].info = this.goodData.cartNum
  220. }
  221. if(this.goodData.sellDesc) this.goodData.sellDesc = this.goodData.sellDesc.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block;"')
  222. if (this.goodData.productType == 2) {
  223. this.getAuctionData()
  224. }
  225. }).catch(res => {
  226. this.$refs.uTips.show({
  227. title: '获取商品详情失败',
  228. type: 'warning',
  229. })
  230. })
  231. NET.request(API.getAssessList + this.goodId + '/1/3', {}, 'GET').then(res => {
  232. this.assessList = res.data.list
  233. }).catch(res => {
  234. this.$refs.uTips.show({
  235. title: '获取商品评价失败',
  236. type: 'warning',
  237. })
  238. })
  239. }
  240. },
  241. // 获取子组件的购买数量
  242. getNum(num) {
  243. this.number = num
  244. },
  245. // 获取拍卖详情
  246. getAuctionData() {
  247. NET.request(API.getAuctionDetail + this.goodId, {}, 'GET').then(res => {
  248. this.currentPrice = res.data.auctionStartPrice
  249. }).catch(error => {
  250. this.$refs.uTips.show({
  251. title: error.data.msg,
  252. type: 'warning',
  253. })
  254. })
  255. },
  256. // 跳转商铺页
  257. goToShop(e) {
  258. if (e.index == 0) {
  259. uni.navigateTo({
  260. url: '/pagesGood/shopDetails?goodId=' + this.goodId
  261. });
  262. } else {
  263. uni.switchTab({
  264. url: '/pages/cart/cart'
  265. });
  266. }
  267. },
  268. // 跳转评价页
  269. goToEvaluate() {
  270. uni.navigateTo({
  271. url: '/pagesGood/evaluateList?goodId=' + this.goodId
  272. });
  273. },
  274. // 获取为你推荐
  275. getGoodsList() {
  276. NET.request(API.getPreferGoods, {}, 'GET').then(res => {
  277. this.goodsList = res.data
  278. }).catch(error => {
  279. this.$refs.uTips.show({
  280. title: '获取为您推荐列表失败',
  281. type: 'warning',
  282. })
  283. })
  284. },
  285. // 跳转为你推荐商品详情
  286. goToGoodDetails(item) {
  287. uni.navigateTo({
  288. url: '/pagesGood/goodDetails?goodId=' + item.productId + '&goodType=' + item.productType
  289. });
  290. },
  291. // 弹出购物弹窗->需求变更,不需要购物车弹窗,直接加入购物车
  292. showPopup(e) {
  293. uni.removeStorageSync('defaultAddress');
  294. this.setGoodStorage()
  295. if (this.goodData.productType == 2) {
  296. //拍卖商品
  297. uni.navigateTo({
  298. url: '/pagesGood/auctionDetail?goodId=' + this.goodId
  299. });
  300. } else if (this.goodData.productType == 4) {
  301. //共享种植商品
  302. if (this.minePlant) {
  303. // 如果是已买到的共享种植
  304. if (e.index == 0) {
  305. // 去视察
  306. uni.navigateTo({
  307. url: '/pagesGood/plantVideo?productId=' + this.goodId
  308. });
  309. } else {
  310. // 去委托种植
  311. uni.navigateTo({
  312. url: '/pagesMain/entrustList?productId=' + this.goodData.productId + '&tenantCode=' + this.goodData.tenantCode +
  313. '&productName=' + this.goodData.productName + '&areaSize=' + this.orderId + '&orderId=' + this.orderId
  314. });
  315. }
  316. } else {
  317. // if (e.index == 0) {
  318. // this.$refs.popup.open()
  319. // } else if (e.index == 1) {
  320. uni.navigateTo({
  321. url: '/pagesGood/orderPay?flag=2&orderType=3&paySum=' + this.goodData.bizPrice
  322. });
  323. // }
  324. }
  325. } else {
  326. // 需求变更,不需要购物车弹窗,直接加入购物车
  327. // this.$refs.popup.open()
  328. if (e.index == 0) {
  329. NET.request(API.addCart, {
  330. productId: this.goodId,
  331. productName: this.goodData.productName,
  332. imgUrl: this.goodData.imgs.length ? this.goodData.imgs[0].imgPath : '',
  333. bizPrice: this.goodData.bizPrice,
  334. originalPrice: this.goodData.originalPrice,
  335. productType: this.goodData.productType,
  336. tenantCode: this.goodData.tenantCode,
  337. buyNum: this.number
  338. }, 'POST').then(res => {
  339. this.$refs.uTips.show({
  340. title: '加入购物车成功',
  341. type: 'success',
  342. })
  343. // this.$refs.popup.close()
  344. this.getGoodDetail()
  345. }).catch(error => {
  346. console.log(error)
  347. this.$refs.uTips.show({
  348. title: '加入购物车失败',
  349. type: 'warning',
  350. })
  351. })
  352. } else {
  353. // 立即购买
  354. this.setGoodStorage()
  355. uni.navigateTo({
  356. url: '/pagesGood/orderPay?flag=2&orderType=1'
  357. });
  358. }
  359. }
  360. },
  361. // 存入商品信息缓存
  362. setGoodStorage() {
  363. uni.setStorage({
  364. key: 'orderData',
  365. data: {
  366. tenantCode: this.goodData.tenantCode,
  367. supplierName: this.goodData.supplierName,
  368. areaSize: this.goodData.productType == 4 ? this.goodData.areaSize : '',
  369. term: this.goodData.productType == 4 ? this.goodData.term : '',
  370. goodsList: [{
  371. bizPrice: this.goodData.bizPrice,
  372. buyNum: this.number,
  373. imgUrl: this.goodData.imgs.length ? this.goodData.imgs[0].imgPath : '',
  374. originalPrice: this.goodData.productType == 2 ? this.goodData.auctionStartPrice : this.goodData.originalPrice,
  375. productId: this.goodId,
  376. productName: this.goodData.productName,
  377. productType: this.goodData.productType,
  378. shoppingcartId: '',
  379. }]
  380. }
  381. });
  382. },
  383. // 提交操作
  384. submitData(e) {
  385. // if (e.index) {
  386. // // 立即购买
  387. // this.setGoodStorage()
  388. // uni.navigateTo({
  389. // url: '/pagesGood/orderPay?flag=2&orderType=1'
  390. // });
  391. // } else {
  392. // // 加入购物车
  393. // NET.request(API.addCart, {
  394. // productId: this.goodId,
  395. // productName: this.goodData.productName,
  396. // imgUrl: this.goodData.imgs.length ? this.goodData.imgs[0].imgPath : '',
  397. // bizPrice: this.goodData.bizPrice,
  398. // originalPrice: this.goodData.originalPrice,
  399. // productType: this.goodData.productType,
  400. // tenantCode: this.goodData.tenantCode,
  401. // buyNum: this.number
  402. // }, 'POST').then(res => {
  403. // this.$refs.uTips.show({
  404. // title: '加入购物车成功',
  405. // type: 'success',
  406. // })
  407. // this.$refs.popup.close()
  408. // }).catch(error => {
  409. // this.$refs.uTips.show({
  410. // title: '加入购物车失败',
  411. // type: 'warning',
  412. // })
  413. // })
  414. // }
  415. },
  416. },
  417. }
  418. </script>
  419. <style lang="less">
  420. .swiper {
  421. /deep/.uni-swiper-dot-active {
  422. width: 16px !important;
  423. border-radius: 8px;
  424. }
  425. }
  426. </style>
  427. <style lang="less" scoped>
  428. .container {
  429. background-color: #f7f7f7;
  430. padding-bottom: 50px;
  431. .swiper {
  432. // height: 375px;
  433. /deep/.uni-swiper-dot-active {
  434. width: 16px !important;
  435. border-radius: 8px;
  436. }
  437. }
  438. .good-info {
  439. box-sizing: border-box;
  440. padding: 0px 16px 22px 16px;
  441. background-color: #FFFFFF;
  442. .auction-date {
  443. width: calc(100% + 32px);
  444. height: 32px;
  445. box-sizing: border-box;
  446. padding: 0 16px;
  447. margin-left: -16px;
  448. background: #999999;
  449. line-height: 32px;
  450. font-size: 12px;
  451. font-family: PingFang SC;
  452. color: #FFFFFF;
  453. .iconshijian {
  454. font-size: 16px;
  455. margin-right: 8px;
  456. }
  457. }
  458. .good-price {
  459. height: 26px;
  460. padding-top: 22px;
  461. box-sizing: content-box;
  462. line-height: 26px;
  463. font-family: PingFang SC;
  464. white-space: nowrap;
  465. .auction-unit {
  466. width: 40px;
  467. height: 26px;
  468. float: left;
  469. .unit-type {
  470. height: 12px;
  471. font-size: 9px;
  472. font-family: PingFang SC;
  473. color: #666666;
  474. line-height: 9px;
  475. }
  476. .unit-text {
  477. height: 12px;
  478. font-size: 9px;
  479. font-family: PingFang SC;
  480. color: #52A63A;
  481. line-height: 12px;
  482. }
  483. }
  484. .sale-icon {
  485. font-size: 16px;
  486. color: #52A63A;
  487. margin-left: -2px;
  488. }
  489. .sale-price {
  490. font-size: 24px;
  491. color: #52A63A;
  492. }
  493. .price {
  494. font-size: 12px;
  495. text-decoration: line-through;
  496. color: #A67A54;
  497. margin-left: 6px;
  498. }
  499. .seller-count {
  500. float: right;
  501. font-size: 12px;
  502. color: #666666;
  503. }
  504. .good-stock {
  505. float: right;
  506. font-size: 12px;
  507. color: #A67954;
  508. }
  509. }
  510. .good-name {
  511. line-height: 20px;
  512. font-size: 16px;
  513. color: #343434;
  514. font-family: PingFang SC;
  515. margin: 12px 0 8px 0;
  516. }
  517. .good-plant {
  518. line-height: 14px;
  519. font-size: 12px;
  520. color: #000000;
  521. font-family: PingFang SC;
  522. margin-bottom: 4px;
  523. }
  524. .good-detail {
  525. line-height: 16px;
  526. font-size: 12px;
  527. color: #666666;
  528. font-family: PingFang SC;
  529. }
  530. }
  531. .good-data {
  532. height: 46px;
  533. margin-top: 10px;
  534. box-sizing: border-box;
  535. background-color: #FFFFFF;
  536. padding: 14px 16px;
  537. font-family: PingFang SC;
  538. font-size: 12px;
  539. line-height: 14px;
  540. .good-select {
  541. color: #666666;
  542. margin-right: 12px;
  543. }
  544. .good-unit {
  545. color: #343434;
  546. }
  547. .iconfont {
  548. float: right;
  549. font-size: 16px;
  550. color: #999999;
  551. }
  552. }
  553. .buy-num {
  554. display: flex;
  555. justify-content: flex-end;
  556. height: 46px;
  557. margin-top: 10px;
  558. box-sizing: border-box;
  559. background-color: #FFFFFF;
  560. padding: 14px 16px;
  561. font-family: PingFang SC;
  562. // font-size: 12px;
  563. // line-height: 14px;
  564. .buy-text {
  565. margin-right: 10px;
  566. }
  567. .buy-select {
  568. font-size: 16px;
  569. font-family: PingFang SC;
  570. color: #343434;
  571. margin: 0 12px;
  572. line-height: 20px;
  573. margin-right: 10px;
  574. }
  575. }
  576. .tab-box {
  577. height: 50px;
  578. background-color: #FFFFFF;
  579. box-sizing: border-box;
  580. padding: 0 16px;
  581. display: flex;
  582. justify-content: space-around;
  583. margin-top: 10px;
  584. .tab-col {
  585. height: 49px;
  586. font-size: 13px;
  587. font-family: PingFang SC;
  588. color: #666666;
  589. line-height: 50px;
  590. }
  591. .tab-col-active {
  592. font-size: 15px;
  593. color: #343434;
  594. border-bottom: 2px solid #52A63A;
  595. }
  596. }
  597. .good-assess {
  598. width: 100%;
  599. box-sizing: border-box;
  600. background-color: #FFFFFF;
  601. padding: 12px 16px 18px 16px;
  602. .assess-row {
  603. border-top: 1px solid #F6F6F6;
  604. padding: 12px 0;
  605. display: flex;
  606. .assess-head {
  607. width: 50px;
  608. height: 50px;
  609. object-fit: cover;
  610. border-radius: 50%;
  611. }
  612. .assess-info {
  613. width: calc(100% - 62px);
  614. margin-left: 12px;
  615. .assess-name {
  616. height: 18px;
  617. float: left;
  618. line-height: 18px;
  619. font-size: 15px;
  620. font-family: PingFang SC;
  621. font-weight: bold;
  622. color: #343434;
  623. }
  624. .assess-date {
  625. height: 18px;
  626. float: right;
  627. line-height: 18px;
  628. font-size: 12px;
  629. font-family: PingFang SC;
  630. font-weight: bold;
  631. color: #666666;
  632. }
  633. .assess-sore-box {
  634. width: 100%;
  635. height: 16px;
  636. float: left;
  637. margin: 6px 0;
  638. }
  639. .assess-text {
  640. width: 100%;
  641. float: left;
  642. font-size: 12px;
  643. font-family: PingFang SC;
  644. font-weight: bold;
  645. color: #666666;
  646. line-height: 16px;
  647. margin: 8px 0 10px 0;
  648. overflow: hidden;
  649. text-overflow: ellipsis;
  650. display: -webkit-box;
  651. -webkit-line-clamp: 2;
  652. -webkit-box-orient: vertical;
  653. word-wrap: break-word;
  654. }
  655. .assess-img-box {
  656. width: 100%;
  657. float: left;
  658. display: flex;
  659. .img-col {
  660. height: 60px;
  661. width: 60px;
  662. object-fit: cover;
  663. margin: 0 10px 10px 0;
  664. }
  665. }
  666. }
  667. }
  668. .assess-row:first-child {
  669. border-top: none;
  670. padding-top: 0;
  671. }
  672. .assess-more {
  673. width: 220px;
  674. height: 32px;
  675. position: relative;
  676. left: 50%;
  677. transform: translateX(-50%);
  678. border: 1px solid #52A63A;
  679. border-radius: 16px;
  680. text-align: center;
  681. font-size: 12px;
  682. font-family: PingFang SC;
  683. color: #53A63A;
  684. line-height: 32px;
  685. }
  686. }
  687. .good-recommend {
  688. height: 192px;
  689. background-color: #FFFFFF;
  690. margin: 10px 0;
  691. .recommend-title {
  692. height: 24px;
  693. padding-left: 16px;
  694. font-size: 14px;
  695. font-family: PingFang SC;
  696. color: #343434;
  697. line-height: 32px;
  698. }
  699. .recommend-box {
  700. width: 100%;
  701. height: 168px;
  702. white-space: nowrap;
  703. .good-col {
  704. width: 108px;
  705. height: 158px;
  706. margin: 10px 12px 10px 0px;
  707. border-radius: 5px;
  708. overflow: hidden;
  709. background: #FFFFFF;
  710. box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.15);
  711. display: inline-block;
  712. .good-img {
  713. width: 108px;
  714. height: 108px;
  715. object-fit: cover;
  716. }
  717. .good-name {
  718. width: 100%;
  719. height: 14px;
  720. float: left;
  721. box-sizing: border-box;
  722. padding: 0 5px;
  723. font-size: 10px;
  724. font-family: PingFang SC;
  725. color: #343434;
  726. line-height: 14px;
  727. margin: 4px 0;
  728. white-space: nowrap;
  729. overflow: hidden;
  730. text-overflow: ellipsis;
  731. }
  732. .good-price {
  733. width: 100%;
  734. height: 16px;
  735. float: left;
  736. box-sizing: border-box;
  737. padding: 0 3px;
  738. font-size: 14px;
  739. font-family: PingFang SC;
  740. color: #56a83a;
  741. line-height: 16px;
  742. margin-bottom: 10px
  743. }
  744. }
  745. .good-col:first-child {
  746. margin-left: 16px;
  747. }
  748. .good-col:last-child {
  749. margin-right: 16px;
  750. }
  751. }
  752. }
  753. .popup-box {
  754. width: 100vw;
  755. height: 362px;
  756. background-color: #FFFFFF;
  757. border-radius: 15px 15px 0px 0px;
  758. box-sizing: border-box;
  759. padding: 16px 16px 0 16px;
  760. .popup-good-info-box {
  761. height: 90px;
  762. margin-bottom: 4px;
  763. display: flex;
  764. .popup-good-img {
  765. width: 90px;
  766. height: 90px;
  767. object-fit: cover;
  768. border-radius: 5px;
  769. overflow: hidden;
  770. }
  771. .popup-good-data {
  772. width: calc(100% - 136px);
  773. height: 90px;
  774. margin-left: 22px;
  775. .popup-good-price {
  776. margin-top: 10px;
  777. height: 20px;
  778. line-height: 20px;
  779. font-size: 20px;
  780. font-family: PingFang SC;
  781. color: #52A63A;
  782. }
  783. .popup-good-number {
  784. height: 16px;
  785. font-size: 13px;
  786. font-family: PingFang SC;
  787. color: #9A9A9A;
  788. line-height: 16px;
  789. margin: 12px 0 10px 0;
  790. }
  791. .popup-good-type {
  792. height: 16px;
  793. font-size: 13px;
  794. font-family: PingFang SC;
  795. color: #343434;
  796. line-height: 16px;
  797. }
  798. }
  799. .popup-good-close {
  800. width: 24px;
  801. height: 24px;
  802. }
  803. }
  804. .popup-good-info {
  805. height: 33px;
  806. box-sizing: border-box;
  807. padding-top: 16px;
  808. margin-top: 16px;
  809. border-top: 1px solid #ECECEC;
  810. font-size: 14px;
  811. font-family: PingFang SC;
  812. color: #9A9A9A;
  813. line-height: 16px;
  814. }
  815. .popup-good-unit {
  816. height: 28px;
  817. display: inline-block;
  818. padding: 0 22px;
  819. margin-top: 14px;
  820. background: #52A63A;
  821. border-radius: 14px;
  822. font-size: 14px;
  823. font-family: PingFang SC;
  824. color: #FFFFFF;
  825. line-height: 28px;
  826. }
  827. .popup-good-number-box {
  828. height: 20px;
  829. float: right;
  830. margin-top: -20px;
  831. .good-select {
  832. font-size: 16px;
  833. font-family: PingFang SC;
  834. color: #343434;
  835. margin: 0 12px;
  836. line-height: 20px;
  837. }
  838. }
  839. }
  840. }
  841. </style>