goodDetails.vue 19 KB

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