goodDetails.vue 19 KB

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