goodDetails.vue 19 KB

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