productDetail.vue 21 KB

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