goodDetails.vue 20 KB

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