goodDetails.vue 19 KB

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