productDetail.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  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. onShow(){
  198. this.closePopu()
  199. },
  200. // 分享
  201. onShareAppMessage(e){
  202. return {
  203. title: this.detail ? this.detail.productName : '商品名称',
  204. path: '/pagesB/shopiing/productDetail?sn='+this.shopProductSn+'&share=1',
  205. imageUrl:this.detail ? this.detail.productMsg : '',
  206. type: '1'
  207. }
  208. },
  209. computed: {
  210. ...mapState(['hasLogin']),
  211. // 登录用户信息
  212. userInfo(){
  213. return this.$store.state.vuex_userInfo
  214. },
  215. totalNum(){
  216. return this.hasLogin&&this.userInfo.sysUserFlag == '1' ? this.$store.state.vuex_cartTotal : 0
  217. },
  218. // 赠品数量
  219. giftNum(){
  220. return this.detail && this.detail.promoType=='BUY_PROD_GIVE_PROD' ? Math.floor(this.qty / this.detail.conditionValue)*this.detail.resultValue : 0
  221. }
  222. },
  223. methods: {
  224. // 返回
  225. goBack(){
  226. if(this.isShare){
  227. uni.reLaunch({
  228. url: '/pages/index/index'
  229. })
  230. }else{
  231. uni.navigateBack()
  232. }
  233. },
  234. // 复制
  235. copy(text){
  236. uni.setClipboardData({
  237. data: text,
  238. })
  239. },
  240. viewImg(index){
  241. uni.previewImage({
  242. urls: this.imgList
  243. })
  244. },
  245. // 产品详情
  246. getDetail(){
  247. uni.showLoading({
  248. title: '加载中'
  249. })
  250. const storeShelf = this.$store.state.vuex_storeShelf
  251. const dealerSn = this.hasLogin && this.userInfo && this.userInfo.sysUserFlag == '1'&&storeShelf ? storeShelf.dealerSn : ''
  252. // 获取产品详情
  253. getShopDetail({
  254. shopProductSn: this.shopProductSn,
  255. dealerSn: dealerSn
  256. }).then(res => {
  257. if(res.status == 200){
  258. this.detail = res.data
  259. if(res.data && res.data.productPicList){
  260. res.data.productPicList.forEach(item => {
  261. this.imgList.push(item.imageUrl||'/static/def_imgs.png')
  262. })
  263. const a = res.data.shopPromoProduct
  264. if(a){
  265. res.data.promoType = a.promoType
  266. res.data.resultValue = a.resultValue
  267. res.data.conditionValue = a.conditionValue
  268. res.data.discountType = a.discountType
  269. res.data.promoProductSn = a.promoProductSn
  270. res.data.promoSn = a.promoSn
  271. // 特价
  272. if(res.data.promoType=='PROMO_PROD'){
  273. res.data.orginPrice = res.data.price
  274. // 直降
  275. if(res.data.discountType == 'STRAIGHT_DOWN'){
  276. res.data.price = res.data.price - res.data.resultValue
  277. }
  278. // 折扣
  279. if(res.data.discountType == 'DISCOUNT'){
  280. res.data.price = Number(res.data.price * res.data.resultValue).toFixed(2)
  281. }
  282. }
  283. }
  284. res.data.priceStr = Number(res.data.price).toFixed(2).toString().split('.')
  285. }else{
  286. this.imgList.push(res.data.productMsg||'/static/def_imgs.png')
  287. }
  288. }
  289. uni.hideLoading()
  290. })
  291. },
  292. animationfinish(){
  293. this.loading = false
  294. },
  295. // 加入购物车
  296. addCart(event){
  297. if(this.hasLogin){
  298. // 游客未认证
  299. if(this.userInfo.sysUserFlag == '0'){
  300. toAuthStore()
  301. }else{
  302. if(this.loading){
  303. return
  304. }
  305. this.loading = true
  306. this.$refs.cartAnimation.touchOnGoods(event,this.busPos);
  307. // 加入购物车
  308. addCart({
  309. qty: 1,
  310. price: this.detail.price,
  311. productSn: this.detail.productSn
  312. }).then(res => {
  313. if(res.status == 200){
  314. uni.$emit('refashCart')
  315. }
  316. })
  317. }
  318. }else{
  319. toLogin()
  320. }
  321. },
  322. // 打开购物车
  323. toCart(){
  324. if(this.hasLogin){
  325. // 游客未认证
  326. if(this.userInfo.sysUserFlag == '0'){
  327. toAuthStore()
  328. }else{
  329. uni.navigateTo({
  330. url: '/pagesB/cart/index'
  331. })
  332. }
  333. }else{
  334. toLogin()
  335. }
  336. },
  337. // 立即购买
  338. toBuy(){
  339. if(this.hasLogin){
  340. // 游客未认证
  341. if(this.userInfo.sysUserFlag == '0'){
  342. toAuthStore()
  343. }else{
  344. if(this.detail.status==0 || this.detail.dealerScopeFlag==0){
  345. uni.showToast({
  346. title: '此商品已'+(this.detail.status==0?'下架':'售罄'),
  347. icon: 'none'
  348. })
  349. }else{
  350. // 打开数量选择弹框
  351. if(!this.showPopu){
  352. this.showPopu = true
  353. }else{
  354. // 提交
  355. this.submitOrder()
  356. }
  357. }
  358. }
  359. }else{
  360. toLogin()
  361. }
  362. },
  363. // 去结算
  364. submitOrder(){
  365. uni.showLoading({
  366. title: '提交中...',
  367. mask: true
  368. })
  369. const _this = this
  370. purchaseCheck({detailList: [{
  371. productSn:this.detail.productSn,
  372. productCode:this.detail.productCode,
  373. qty: this.qty,
  374. price:this.detail.price,
  375. }]}).then(res => {
  376. uni.hideLoading()
  377. if(res.status == 200){
  378. const successList = res.data.successList.map(item => {
  379. return {
  380. productSn:item.productSn,
  381. productCode: item.productCode,
  382. qty: item.qty,
  383. price:item.price
  384. }
  385. })
  386. const removeList = res.data.removeList.map(item => item.productCode)
  387. const selloutList = res.data.selloutList.map(item => item.productCode)
  388. // 有已下架或已售罄产品提示
  389. if(removeList.length || selloutList.length){
  390. uni.showModal({
  391. title: '提示',
  392. content: (removeList.length ? `产品${removeList.join(',')}已下架,`:'')+(selloutList.length?`产品${selloutList.join(',')}已售罄,`:'')+`不可采购。`+(successList.length?'是否继续采购其他产品?':''),
  393. showCancel: successList.length,
  394. confirmText: successList.length?'确定':'知道了',
  395. success(ret) {
  396. if(ret.confirm && successList.length){
  397. _this.submitForm(successList)
  398. }
  399. }
  400. })
  401. }else{
  402. // 直接提交
  403. _this.submitForm(successList)
  404. }
  405. }else{
  406. uni.showToast({
  407. title: res.message,
  408. icon: 'none'
  409. })
  410. }
  411. })
  412. },
  413. submitForm(detailList){
  414. uni.showLoading({
  415. title: '提交中...',
  416. mask: true
  417. })
  418. purchaseSave({
  419. detailList: detailList
  420. }).then(res => {
  421. if(res.status == 200){
  422. res.data.detailList = []
  423. this.$store.state.vuex_tempData = res.data
  424. this.showPopu = false
  425. this.submitOk = true
  426. }else{
  427. uni.hideLoading()
  428. uni.showToast({
  429. title: res.message,
  430. icon: 'none'
  431. })
  432. }
  433. })
  434. },
  435. // 关闭后
  436. closePopu(){
  437. this.showPopu = false
  438. this.qty = 1
  439. if(this.submitOk){
  440. uni.navigateTo({
  441. url: "/pagesB/procureOrder"
  442. })
  443. }
  444. setTimeout(()=>{
  445. uni.hideLoading()
  446. },300)
  447. },
  448. }
  449. }
  450. </script>
  451. <style lang="less">
  452. .pages {
  453. height: 100vh;
  454. display: flex;
  455. flex-direction: column;
  456. .scrollPage-header{
  457. z-index: 1;
  458. width: 100%;
  459. position:fixed;
  460. left: 0;
  461. top: 0;
  462. .header-title{
  463. display: flex;
  464. align-items: center;
  465. justify-content: space-between;
  466. padding: 0 10px;
  467. height: 44px;
  468. .header-left{
  469. display: flex;
  470. align-items: center;
  471. text{
  472. font-size: 14px;
  473. color: #333333;
  474. }
  475. background-color: rgba(255,255,255,0.6);
  476. box-shadow: 0px 1px 0px 0px #E6E6E6;
  477. border-radius: 50px;
  478. padding: 3px 6px 3px;
  479. }
  480. .header-right{
  481. width: 50px;
  482. }
  483. }
  484. }
  485. .copyText{
  486. background-color: #efefef;
  487. border-radius: 100rpx;
  488. padding: 0 20rpx;
  489. color: #03A9F4;
  490. font-size: 20rpx;
  491. display: inline-block;
  492. margin-left: 20rpx;
  493. height: 44rpx;
  494. line-height: 44rpx;
  495. }
  496. .scrollPage-content{
  497. flex: 1;
  498. overflow-y: auto;
  499. .product-info{
  500. background:#fff;
  501. margin-bottom: 10px;
  502. .product-info-text{
  503. padding: 10px;
  504. .product-info-text-title{
  505. font-weight: bold;
  506. color: #333333;
  507. line-height: 22px;
  508. margin-bottom: 5px;
  509. }
  510. .product-info-text-attr{
  511. display: flex;
  512. align-items: center;
  513. justify-content: space-between;
  514. .product-info-price{
  515. color: red;
  516. display: flex;
  517. align-items: baseline;
  518. font-size: 12px;
  519. text{
  520. font-size: 38rpx;
  521. }
  522. }
  523. .product-info-nums{
  524. font-size: 12px;
  525. color: #999999;
  526. >view{
  527. display: flex;
  528. align-items: center;
  529. }
  530. .share{
  531. button{
  532. width: auto;
  533. padding: 0;
  534. border: 0;
  535. background: none;
  536. line-height: normal;
  537. margin: 0;
  538. display: inline;
  539. font-size: 12px;
  540. color: #999;
  541. &::after{
  542. border:none;
  543. }
  544. /deep/ .u-icon{
  545. margin-right: 3px;
  546. }
  547. }
  548. }
  549. }
  550. }
  551. }
  552. }
  553. .product-info-guige{
  554. display: flex;
  555. flex-wrap: wrap;
  556. justify-content: space-between;
  557. background:#fff;
  558. margin: 10px 0;
  559. padding: 10px;
  560. line-height: 28px;
  561. .row{
  562. width: 100%;
  563. }
  564. .row-ban{
  565. width: 50%;
  566. }
  567. >view{
  568. color: #999;
  569. text{
  570. color: #333333;
  571. }
  572. }
  573. }
  574. .product-info-content{
  575. background:#fff;
  576. margin-bottom: 10px;
  577. padding: 10px;
  578. line-height: 28px;
  579. }
  580. }
  581. .rebate-tag{
  582. background: #ffe7df;
  583. color: #E91E63;
  584. padding: 2px 5px;
  585. font-size: 10px;
  586. border-radius: 3px;
  587. margin-left: 6px;
  588. }
  589. .tejia-tag{
  590. color: #E91E63;
  591. margin-left: 6px;
  592. font-size: 12px;
  593. text{
  594. font-size: 12px;
  595. color: #999;
  596. margin-left: 5px;
  597. text-decoration: line-through;
  598. }
  599. }
  600. .scrollPage-footer{
  601. background-color: #FFFFFF;
  602. width: 100%;
  603. position: fixed;
  604. left: 0;
  605. bottom: 0;
  606. .scrollPage-footer-box{
  607. display: flex;
  608. align-items: center;
  609. justify-content: space-between;
  610. height: 50px;
  611. }
  612. .footer-left{
  613. display: flex;
  614. align-items: center;
  615. justify-content: space-between;
  616. width: 35%;
  617. .footer-left-item{
  618. display: flex;
  619. flex-direction: column;
  620. align-items: center;
  621. justify-content: center;
  622. padding: 0 15px;
  623. position: relative;
  624. .footer-left-item-text{
  625. font-size: 12px;
  626. color: #666666;
  627. }
  628. .badge{
  629. background: #f44336;
  630. color: #fff;
  631. position: absolute;
  632. right: 5px;
  633. top: -8px;
  634. font-size: 12px;
  635. display: flex;
  636. align-items: center;
  637. justify-content: center;
  638. border-radius: 50rpx;
  639. padding: 0 10rpx;
  640. }
  641. }
  642. }
  643. .footer-right{
  644. width: 60%;
  645. height: 100%;
  646. display: flex;
  647. align-items: center;
  648. .footer-right-item{
  649. height: 100%;
  650. display: flex;
  651. flex-direction: column;
  652. align-items: center;
  653. justify-content: center;
  654. width: 50%;
  655. font-size: 14px;
  656. color: #FFFFFF;
  657. }
  658. .footer-right-item:first-child{
  659. background-color: #FF9900;
  660. }
  661. .footer-right-item:last-child{
  662. background-color: #FF0000;
  663. }
  664. }
  665. }
  666. .popu-content{
  667. display: flex;
  668. flex-direction: column;
  669. align-items: center;
  670. padding: 10px 15px;
  671. .popu-close{
  672. padding: 10px;
  673. position: absolute;
  674. right: 0;
  675. top: 0;
  676. }
  677. .pupu-box{
  678. display: flex;
  679. align-items: center;
  680. justify-content: space-between;
  681. margin-top: 35px;
  682. width: 100%;
  683. }
  684. .popu-content-img{
  685. border-radius: 6px;
  686. border: 1px solid #eee;
  687. overflow: hidden;
  688. }
  689. .popu-content-info{
  690. padding: 0 0 0 10px;
  691. flex-grow: 1;
  692. overflow: hidden;
  693. width: 80%;
  694. .popu-content-info-title{
  695. font-size: 14px;
  696. }
  697. }
  698. .gift-box{
  699. padding-left: 8%;
  700. margin-top: 10px;
  701. border-top: 1px solid #eee;
  702. padding-top: 10px;
  703. .popu-content-info-title{
  704. font-size: 12px;
  705. color: #666;
  706. }
  707. .popu-content-box{
  708. margin-top: 6px;
  709. }
  710. .rebate-tag{
  711. margin: 0 5px 0 0;
  712. background: #ff0000;
  713. color: #fff;
  714. width: 40px;
  715. flex-grow: 1;
  716. display: flex;
  717. justify-content: center;
  718. }
  719. }
  720. .popu-content-box{
  721. display: flex;
  722. align-items: baseline;
  723. margin-top: 5px;
  724. .popu-content-price{
  725. color: red;
  726. display: flex;
  727. align-items: baseline;
  728. font-size: 12px;
  729. text{
  730. font-size: 38rpx;
  731. }
  732. }
  733. }
  734. .popu-content-num{
  735. font-size: 12px;
  736. color: #999999;
  737. padding: 0 10px;
  738. > text{
  739. margin-right: 10px;
  740. font-size: 10px;
  741. }
  742. }
  743. .popu-content-btn{
  744. width: 100%;
  745. display: flex;
  746. align-items: center;
  747. justify-content: center;
  748. margin-top: 20px;
  749. .popu-content-btn-item{
  750. width: 60%;
  751. height: 40px;
  752. background-color: #f70000;
  753. color: #FFFFFF;
  754. font-size: 14px;
  755. display: flex;
  756. align-items: center;
  757. justify-content: center;
  758. border-radius: 100px;
  759. }
  760. }
  761. }
  762. }
  763. </style>