goodDetails.vue 19 KB

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