productDetail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <template>
  2. <view class="pages">
  3. <!-- head -->
  4. <view class="scrollPage-header">
  5. <view :style="{height:statusBarHeight+'px'}"></view>
  6. <view class="header-title">
  7. <view class="header-left" @click="goBack">
  8. <uni-icons type="arrowleft" size="20"></uni-icons>
  9. <text>{{isShare?'首页':'返回'}}</text>
  10. </view>
  11. <view class="header-right"></view>
  12. </view>
  13. </view>
  14. <!-- 内容 -->
  15. <view class="scrollPage-content">
  16. <view class="product-info" v-if="detail">
  17. <view :style="{height:statusBarHeight+'px'}"></view>
  18. <u-swiper mode="number" :border-radius="0" img-mode="aspectFit" :interval="3000" :height="450" :list="imgList" @click="viewImg"></u-swiper>
  19. <view class="product-info-text">
  20. <view class="product-info-text-title">
  21. {{detail.productName}}
  22. <!-- <view class="copyText" @click="copy(detail.productName)">复制</view> -->
  23. <uni-tag style="margin-left: 10px;" size="mini" :circle="true" v-if="detail.status==0 || detail.dealerScopeFlag==0" :text="detail.status==0?'已下架':'已售罄'"></uni-tag>
  24. </view>
  25. <view class="product-info-text-attr">
  26. <view class="product-info-price flex align_center" v-if="!hasLogin">
  27. ¥***
  28. </view>
  29. <view class="flex align_center" v-else>
  30. <view class="product-info-price">
  31. ¥<text>{{detail.priceStr[0]}}</text>.{{detail.priceStr[1]}}
  32. </view>
  33. <view class="flex align_center rebate-tag" v-if="detail.promoType=='BUY_PROD_GIVE_VALID'">
  34. 返<text>{{detail.resultValue}}</text>元
  35. </view>
  36. <view class="flex align_center rebate-tag" v-if="detail.promoType=='BUY_PROD_GIVE_PROD'">
  37. 买{{detail.conditionValue}}赠{{detail.resultValue}}
  38. </view>
  39. <view class="flex align_center tejia-tag" v-if="detail.promoType=='PROMO_PROD'">
  40. 特价<text>¥{{detail.orginPrice}}</text>
  41. </view>
  42. </view>
  43. <view class="product-info-nums">
  44. <view class="share">
  45. <button open-type="share"><u-icon :size='24' name="zhuanfa"></u-icon> 分享</button>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <u-divider bg-color="">商品详情</u-divider>
  52. <view class="product-info-guige" v-if="detail&&detail.product">
  53. <view class="row">品牌:<text>{{detail.product.productBrandName||'--'}}</text></view>
  54. <view class="row">原厂编码:<text>{{detail.product.origCode||'--'}} </text> <view class="copyText" v-if="detail.product.origCode" @click="copy(detail.product.origCode)">复制</view></view>
  55. <view class="row">产品编码:<text>{{detail.product.code||'--'}}</text> <view class="copyText" v-if="detail.product.code" @click="copy(detail.product.code)">复制</view></view>
  56. <view class="row">条形码:<text>{{detail.product.qrCode||'--'}}</text> <view class="copyText" v-if="detail.product.qrCode" @click="copy(detail.product.qrCode)">复制</view></view>
  57. <view class="row-ban">商品尺寸:<text>{{detail.product.size||'--'}}</text></view>
  58. <view class="row-ban">计量单位:<text>{{detail.product.unit||'--'}}</text></view>
  59. <view class="row-ban">重量:<text>{{detail.product.weight||'--'}}</text></view>
  60. <view class="row-ban">包装数:<text>{{ (detail.product.packQty) || '--' }}{{ detail.product.packQty ? detail.product.unit : '' }}/{{ detail.product.packQtyUnit||'--' }}</text></view>
  61. </view>
  62. <view class="product-info-content">
  63. <rich-text v-if="detail && detail.product && detail.product.description" :nodes="detail.product.description"></rich-text>
  64. <view v-else style="font-size: 12px;color: #999;text-align: center;">暂无产品介绍</view>
  65. </view>
  66. </view>
  67. <!-- 底部栏 -->
  68. <view class="scrollPage-footer">
  69. <view class="scrollPage-footer-box">
  70. <view class="footer-left">
  71. <view v-if="isShare" class="footer-left-item" @click="goBack">
  72. <u-icon :size='50' color="#666" name="home"></u-icon>
  73. <text class="footer-left-item-text">首页</text>
  74. </view>
  75. <view class="footer-left-item" @click="toCart">
  76. <u-icon :size='50' color="#666" name="shopping-cart"></u-icon>
  77. <text class="footer-left-item-text">购物车</text>
  78. <text class="badge" v-if="totalNum">{{totalNum>99?'99+':totalNum}}</text>
  79. </view>
  80. </view>
  81. <view class="footer-right">
  82. <view class="footer-right-item" @click="addCart($event)">
  83. <text>加入购物车</text>
  84. </view>
  85. <view class="footer-right-item" @click="toBuy">
  86. <text>立即购买</text>
  87. </view>
  88. </view>
  89. </view>
  90. <view :style="{height:safeAreaBottom+'px'}"></view>
  91. </view>
  92. <!-- 购物车动画 -->
  93. <uni-cart-animation ref="cartAnimation" @animationfinish="animationfinish"></uni-cart-animation>
  94. <!-- 立即购买 -->
  95. <page-container
  96. :show="showPopu"
  97. :round="true"
  98. :z-index="100"
  99. position="bottom"
  100. @afterleave="closePopu">
  101. <view class="popu-content" v-if="detail">
  102. <view class="popu-close" @click="showPopu=false">
  103. <uni-icons size="26" type="closeempty"></uni-icons>
  104. </view>
  105. <view class="pupu-box">
  106. <view class="popu-content-img">
  107. <image style="width: 80px; height: 80px;" mode="aspectFit" :src="detail.productMsg||'/static/def_imgs.png'"></image>
  108. </view>
  109. <view class="popu-content-info">
  110. <view class="popu-content-info-title">
  111. <text class="ellipsis-two">{{detail.productName}}</text>
  112. </view>
  113. <view class="popu-content-box">
  114. <view class="popu-content-price" v-if="hasLogin">
  115. ¥<text>{{detail.priceStr[0]}}</text>.{{detail.priceStr[1]}}
  116. </view>
  117. <view class="popu-content-price" v-else>¥***</view>
  118. <view class="flex align_center rebate-tag" v-if="detail.promoType=='BUY_PROD_GIVE_VALID'">
  119. 返<text>{{detail.resultValue}}</text>元
  120. </view>
  121. <view class="flex align_center rebate-tag" v-if="detail.promoType=='BUY_PROD_GIVE_PROD'">
  122. 买{{detail.conditionValue}}赠{{detail.resultValue}}
  123. </view>
  124. <view class="flex align_center tejia-tag" v-if="detail.promoType=='PROMO_PROD'">
  125. 特价<text>¥{{detail.orginPrice}}</text>
  126. </view>
  127. </view>
  128. <view class="popu-content-num flex align_center justify_end">
  129. <text>数量</text>
  130. <uni-number-box v-model="qty" :min="1" :max="999999"></uni-number-box>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="pupu-box gift-box" v-if="giftNum">
  135. <view class="popu-content-img">
  136. <image style="width: 50px; height: 50px;" mode="aspectFit" :src="detail.productMsg||'/static/def_imgs.png'"></image>
  137. </view>
  138. <view class="popu-content-info">
  139. <view class="popu-content-info-title flex align_center">
  140. <view class="flex align_center rebate-tag">
  141. 赠品
  142. </view>
  143. <text class="ellipsis-two">{{detail.productName}}</text>
  144. </view>
  145. <view class="popu-content-box justify_between">
  146. <view></view>
  147. <view class="popu-content-num flex align_center">
  148. <text>X</text> {{giftNum}}
  149. </view>
  150. </view>
  151. </view>
  152. </view>
  153. <view class="popu-content-btn">
  154. <view class="popu-content-btn-item" @click="toBuy">确定采购</view>
  155. </view>
  156. <view :style="{height:safeAreaBottom+'px'}"></view>
  157. </view>
  158. </page-container>
  159. </view>
  160. </template>
  161. <script>
  162. import {
  163. mapState,
  164. mapMutations,
  165. } from 'vuex'
  166. import { addCart, getCartCount } from '@/api/cart.js'
  167. import { getShopDetail } from '@/api/shop.js'
  168. import { purchaseSave, purchaseCheck } from '@/api/purchase.js'
  169. import { toAuthStore, toLogin } from "@/utils/index.js"
  170. export default {
  171. data() {
  172. return {
  173. loading: false,
  174. showPopu: false, // 弹框
  175. statusBarHeight: 0, // 状态栏高度
  176. safeAreaBottom: 0, // 底部安全区域高度
  177. imgList: [],
  178. shopProductSn: null,
  179. detail: null,
  180. qty: 1,// 数量
  181. isShare: false ,// 是否从分享打开的
  182. busPos:{
  183. x: 10,
  184. y:uni.getSystemInfoSync().windowHeight - 30
  185. }
  186. }
  187. },
  188. onLoad(option) {
  189. this.isShare = !!option.share
  190. // 计算安全区域
  191. this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
  192. this.safeAreaBottom = uni.getSystemInfoSync().safeAreaInsets.bottom
  193. this.shopProductSn = option.sn
  194. // 获取产品详情
  195. this.getDetail()
  196. },
  197. // 分享
  198. onShareAppMessage(e){
  199. return {
  200. title: this.detail ? this.detail.productName : '商品名称',
  201. path: '/pagesB/shopiing/productDetail?sn='+this.shopProductSn+'&share=1',
  202. imageUrl:this.detail ? this.detail.productMsg : '',
  203. type: '1'
  204. }
  205. },
  206. computed: {
  207. ...mapState(['hasLogin']),
  208. // 登录用户信息
  209. userInfo(){
  210. return this.$store.state.vuex_userInfo
  211. },
  212. totalNum(){
  213. return this.hasLogin&&this.userInfo.sysUserFlag == '1' ? this.$store.state.vuex_cartTotal : 0
  214. },
  215. // 赠品数量
  216. giftNum(){
  217. return this.detail && this.detail.promoType=='BUY_PROD_GIVE_PROD' ? Math.floor(this.qty / this.detail.conditionValue)*this.detail.resultValue : 0
  218. }
  219. },
  220. methods: {
  221. // 返回
  222. goBack(){
  223. if(this.isShare){
  224. uni.reLaunch({
  225. url: '/pages/index/index'
  226. })
  227. }else{
  228. uni.navigateBack()
  229. }
  230. },
  231. // 复制
  232. copy(text){
  233. uni.setClipboardData({
  234. data: text,
  235. })
  236. },
  237. viewImg(index){
  238. uni.previewImage({
  239. urls: this.imgList
  240. })
  241. },
  242. // 产品详情
  243. getDetail(){
  244. uni.showLoading({
  245. title: '加载中'
  246. })
  247. const storeShelf = this.$store.state.vuex_storeShelf
  248. const dealerSn = this.hasLogin && this.userInfo && this.userInfo.sysUserFlag == '1'&&storeShelf ? storeShelf.dealerSn : ''
  249. // 获取产品详情
  250. getShopDetail({
  251. shopProductSn: this.shopProductSn,
  252. dealerSn: dealerSn
  253. }).then(res => {
  254. if(res.status == 200){
  255. this.detail = res.data
  256. if(res.data && res.data.productPicList){
  257. res.data.productPicList.forEach(item => {
  258. this.imgList.push(item.imageUrl||'/static/def_imgs.png')
  259. })
  260. const a = res.data.shopPromoProduct
  261. let bprice = res.data.price
  262. if(a){
  263. res.data.promoType = a.promoType
  264. res.data.resultValue = a.resultValue
  265. res.data.conditionValue = a.conditionValue
  266. res.data.discountType = a.discountType
  267. res.data.promoProductSn = a.promoProductSn
  268. res.data.promoSn = a.promoSn
  269. // 特价
  270. if(res.data.promoType=='PROMO_PROD'){
  271. res.data.orginPrice = res.data.price
  272. // 直降
  273. if(res.data.discountType == 'STRAIGHT_DOWN'){
  274. bprice = res.data.price - res.data.resultValue
  275. }
  276. // 折扣
  277. if(res.data.discountType == 'DISCOUNT'){
  278. bprice = Number(res.data.price * res.data.resultValue).toFixed(2)
  279. }
  280. }
  281. }
  282. res.data.priceStr = Number(bprice).toFixed(2).toString().split('.')
  283. }else{
  284. this.imgList.push(res.data.productMsg||'/static/def_imgs.png')
  285. }
  286. }
  287. uni.hideLoading()
  288. })
  289. },
  290. animationfinish(){
  291. this.loading = false
  292. },
  293. // 加入购物车
  294. addCart(event){
  295. if(this.hasLogin){
  296. // 游客未认证
  297. if(this.userInfo.sysUserFlag == '0'){
  298. toAuthStore()
  299. }else{
  300. if(this.loading){
  301. return
  302. }
  303. this.loading = true
  304. this.$refs.cartAnimation.touchOnGoods(event,this.busPos);
  305. // 加入购物车
  306. addCart({
  307. qty: 1,
  308. price: this.detail.price,
  309. productSn: this.detail.productSn
  310. }).then(res => {
  311. if(res.status == 200){
  312. uni.$emit('refashCart')
  313. }
  314. })
  315. }
  316. }else{
  317. toLogin()
  318. }
  319. },
  320. // 打开购物车
  321. toCart(){
  322. if(this.hasLogin){
  323. // 游客未认证
  324. if(this.userInfo.sysUserFlag == '0'){
  325. toAuthStore()
  326. }else{
  327. uni.navigateTo({
  328. url: '/pagesB/cart/index'
  329. })
  330. }
  331. }else{
  332. toLogin()
  333. }
  334. },
  335. // 立即购买
  336. toBuy(){
  337. if(this.hasLogin){
  338. // 游客未认证
  339. if(this.userInfo.sysUserFlag == '0'){
  340. toAuthStore()
  341. }else{
  342. if(this.detail.status==0 || this.detail.dealerScopeFlag==0){
  343. uni.showToast({
  344. title: '此商品已'+(this.detail.status==0?'下架':'售罄'),
  345. icon: 'none'
  346. })
  347. }else{
  348. // 打开数量选择弹框
  349. if(!this.showPopu){
  350. this.showPopu = true
  351. }else{
  352. // 提交
  353. this.submitOrder()
  354. }
  355. }
  356. }
  357. }else{
  358. toLogin()
  359. }
  360. },
  361. // 去结算
  362. submitOrder(){
  363. uni.showLoading({
  364. title: '提交中...',
  365. mask: true
  366. })
  367. const _this = this
  368. purchaseCheck({detailList: [{
  369. productSn:this.detail.productSn,
  370. productCode:this.detail.productCode,
  371. qty: this.qty,
  372. price:this.detail.price,
  373. }]}).then(res => {
  374. uni.hideLoading()
  375. if(res.status == 200){
  376. const successList = res.data.successList.map(item => {
  377. return {
  378. productSn:item.productSn,
  379. productCode: item.productCode,
  380. qty: item.qty,
  381. price:item.price
  382. }
  383. })
  384. const removeList = res.data.removeList.map(item => item.productCode)
  385. const selloutList = res.data.selloutList.map(item => item.productCode)
  386. // 有已下架或已售罄产品提示
  387. if(removeList.length || selloutList.length){
  388. uni.showModal({
  389. title: '提示',
  390. content: (removeList.length ? `产品${removeList.join(',')}已下架,`:'')+(selloutList.length?`产品${selloutList.join(',')}已售罄,`:'')+`不可采购。`+(successList.length?'是否继续采购其他产品?':''),
  391. showCancel: successList.length,
  392. confirmText: successList.length?'确定':'知道了',
  393. success(ret) {
  394. if(ret.confirm && successList.length){
  395. _this.submitForm(successList)
  396. }
  397. }
  398. })
  399. }else{
  400. // 直接提交
  401. _this.submitForm(successList)
  402. }
  403. }else{
  404. uni.showToast({
  405. title: res.message,
  406. icon: 'none'
  407. })
  408. }
  409. })
  410. },
  411. submitForm(detailList){
  412. uni.showLoading({
  413. title: '提交中...',
  414. mask: true
  415. })
  416. purchaseSave({
  417. detailList: detailList
  418. }).then(res => {
  419. if(res.status == 200){
  420. res.data.detailList = []
  421. this.$store.state.vuex_tempData = res.data
  422. this.showPopu = false
  423. this.submitOk = true
  424. }else{
  425. uni.hideLoading()
  426. uni.showToast({
  427. title: res.message,
  428. icon: 'none'
  429. })
  430. }
  431. })
  432. },
  433. // 关闭后
  434. closePopu(){
  435. this.showPopu = false
  436. this.qty = 1
  437. if(this.submitOk){
  438. uni.navigateTo({
  439. url: "/pagesB/procureOrder"
  440. })
  441. }
  442. setTimeout(()=>{
  443. uni.hideLoading()
  444. },300)
  445. },
  446. }
  447. }
  448. </script>
  449. <style lang="less">
  450. .pages {
  451. height: 100vh;
  452. display: flex;
  453. flex-direction: column;
  454. .scrollPage-header{
  455. z-index: 1;
  456. width: 100%;
  457. position:fixed;
  458. left: 0;
  459. top: 0;
  460. .header-title{
  461. display: flex;
  462. align-items: center;
  463. justify-content: space-between;
  464. padding: 0 10px;
  465. height: 44px;
  466. .header-left{
  467. display: flex;
  468. align-items: center;
  469. text{
  470. font-size: 14px;
  471. color: #333333;
  472. }
  473. background-color: rgba(255,255,255,0.6);
  474. box-shadow: 0px 1px 0px 0px #E6E6E6;
  475. border-radius: 50px;
  476. padding: 3px 6px 3px;
  477. }
  478. .header-right{
  479. width: 50px;
  480. }
  481. }
  482. }
  483. .copyText{
  484. background-color: #efefef;
  485. border-radius: 100rpx;
  486. padding: 0 20rpx;
  487. color: #03A9F4;
  488. font-size: 20rpx;
  489. display: inline-block;
  490. margin-left: 20rpx;
  491. height: 44rpx;
  492. line-height: 44rpx;
  493. }
  494. .scrollPage-content{
  495. flex: 1;
  496. overflow-y: auto;
  497. .product-info{
  498. background:#fff;
  499. margin-bottom: 10px;
  500. .product-info-text{
  501. padding: 10px;
  502. .product-info-text-title{
  503. font-weight: bold;
  504. color: #333333;
  505. line-height: 22px;
  506. margin-bottom: 5px;
  507. }
  508. .product-info-text-attr{
  509. display: flex;
  510. align-items: center;
  511. justify-content: space-between;
  512. .product-info-price{
  513. color: red;
  514. display: flex;
  515. align-items: baseline;
  516. font-size: 12px;
  517. text{
  518. font-size: 38rpx;
  519. }
  520. }
  521. .product-info-nums{
  522. font-size: 12px;
  523. color: #999999;
  524. >view{
  525. display: flex;
  526. align-items: center;
  527. }
  528. .share{
  529. button{
  530. width: auto;
  531. padding: 0;
  532. border: 0;
  533. background: none;
  534. line-height: normal;
  535. margin: 0;
  536. display: inline;
  537. font-size: 12px;
  538. color: #999;
  539. &::after{
  540. border:none;
  541. }
  542. /deep/ .u-icon{
  543. margin-right: 3px;
  544. }
  545. }
  546. }
  547. }
  548. }
  549. }
  550. }
  551. .product-info-guige{
  552. display: flex;
  553. flex-wrap: wrap;
  554. justify-content: space-between;
  555. background:#fff;
  556. margin: 10px 0;
  557. padding: 10px;
  558. line-height: 28px;
  559. .row{
  560. width: 100%;
  561. }
  562. .row-ban{
  563. width: 50%;
  564. }
  565. >view{
  566. color: #999;
  567. text{
  568. color: #333333;
  569. }
  570. }
  571. }
  572. .product-info-content{
  573. background:#fff;
  574. margin-bottom: 10px;
  575. padding: 10px;
  576. line-height: 28px;
  577. }
  578. }
  579. .rebate-tag{
  580. background: #ffe7df;
  581. color: #E91E63;
  582. padding: 2px 5px;
  583. font-size: 10px;
  584. border-radius: 3px;
  585. margin-left: 6px;
  586. }
  587. .tejia-tag{
  588. color: #E91E63;
  589. margin-left: 6px;
  590. font-size: 12px;
  591. text{
  592. font-size: 12px;
  593. color: #999;
  594. margin-left: 5px;
  595. text-decoration: line-through;
  596. }
  597. }
  598. .scrollPage-footer{
  599. background-color: #FFFFFF;
  600. width: 100%;
  601. position: fixed;
  602. left: 0;
  603. bottom: 0;
  604. .scrollPage-footer-box{
  605. display: flex;
  606. align-items: center;
  607. justify-content: space-between;
  608. height: 50px;
  609. }
  610. .footer-left{
  611. display: flex;
  612. align-items: center;
  613. justify-content: space-between;
  614. width: 35%;
  615. .footer-left-item{
  616. display: flex;
  617. flex-direction: column;
  618. align-items: center;
  619. justify-content: center;
  620. padding: 0 15px;
  621. position: relative;
  622. .footer-left-item-text{
  623. font-size: 12px;
  624. color: #666666;
  625. }
  626. .badge{
  627. background: #f44336;
  628. color: #fff;
  629. position: absolute;
  630. right: 5px;
  631. top: -8px;
  632. font-size: 12px;
  633. display: flex;
  634. align-items: center;
  635. justify-content: center;
  636. border-radius: 50rpx;
  637. padding: 0 10rpx;
  638. }
  639. }
  640. }
  641. .footer-right{
  642. width: 60%;
  643. height: 100%;
  644. display: flex;
  645. align-items: center;
  646. .footer-right-item{
  647. height: 100%;
  648. display: flex;
  649. flex-direction: column;
  650. align-items: center;
  651. justify-content: center;
  652. width: 50%;
  653. font-size: 14px;
  654. color: #FFFFFF;
  655. }
  656. .footer-right-item:first-child{
  657. background-color: #FF9900;
  658. }
  659. .footer-right-item:last-child{
  660. background-color: #FF0000;
  661. }
  662. }
  663. }
  664. .popu-content{
  665. display: flex;
  666. flex-direction: column;
  667. align-items: center;
  668. padding: 10px 15px;
  669. .popu-close{
  670. padding: 10px;
  671. position: absolute;
  672. right: 0;
  673. top: 0;
  674. }
  675. .pupu-box{
  676. display: flex;
  677. align-items: center;
  678. justify-content: space-between;
  679. margin-top: 35px;
  680. width: 100%;
  681. }
  682. .popu-content-img{
  683. border-radius: 6px;
  684. border: 1px solid #eee;
  685. overflow: hidden;
  686. }
  687. .popu-content-info{
  688. padding: 0 0 0 10px;
  689. flex-grow: 1;
  690. overflow: hidden;
  691. width: 80%;
  692. .popu-content-info-title{
  693. font-size: 14px;
  694. }
  695. }
  696. .gift-box{
  697. padding-left: 8%;
  698. margin-top: 10px;
  699. border-top: 1px solid #eee;
  700. padding-top: 10px;
  701. .popu-content-info-title{
  702. font-size: 12px;
  703. color: #666;
  704. }
  705. .popu-content-box{
  706. margin-top: 6px;
  707. }
  708. .rebate-tag{
  709. margin: 0 5px 0 0;
  710. background: #ff0000;
  711. color: #fff;
  712. width: 40px;
  713. flex-grow: 1;
  714. display: flex;
  715. justify-content: center;
  716. }
  717. }
  718. .popu-content-box{
  719. display: flex;
  720. align-items: baseline;
  721. margin-top: 5px;
  722. .popu-content-price{
  723. color: red;
  724. display: flex;
  725. align-items: baseline;
  726. font-size: 12px;
  727. text{
  728. font-size: 38rpx;
  729. }
  730. }
  731. }
  732. .popu-content-num{
  733. font-size: 12px;
  734. color: #999999;
  735. padding: 0 10px;
  736. > text{
  737. margin-right: 10px;
  738. font-size: 10px;
  739. }
  740. }
  741. .popu-content-btn{
  742. width: 100%;
  743. display: flex;
  744. align-items: center;
  745. justify-content: center;
  746. margin-top: 20px;
  747. .popu-content-btn-item{
  748. width: 60%;
  749. height: 40px;
  750. background-color: #f70000;
  751. color: #FFFFFF;
  752. font-size: 14px;
  753. display: flex;
  754. align-items: center;
  755. justify-content: center;
  756. border-radius: 100px;
  757. }
  758. }
  759. }
  760. }
  761. </style>