product.vue 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402
  1. <template>
  2. <view class="product" :style="{paddingBottom: userIdentity==1 ? '0rpx' :'188rpx'}">
  3. <custom-p v-if="isHeaderPoduct"
  4. :systeminfo='systeminfo'
  5. :navbar-data='nvabarData'
  6. :headerBtnPosi ="headerBtnPosi"
  7. :headerColor="headerColor"
  8. :type="isShareType"
  9. :page='backPage'>
  10. </custom-p>
  11. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="true" :loadingType="5"></tui-skeleton>
  12. <view class="container-product tui-skeleton">
  13. <view class="product-top">
  14. <view class="banner-section">
  15. <uni-swiper-dot :info="productImage" :current="current" field="content" :mode="mode" >
  16. <swiper class="banner tui-banner tui-skeleton-rect" circular @change="swiperChange" :duration='800' :autoplay="false" :circular="false" >
  17. <swiper-item v-for="(item, index) in productImage" :key="index" class="banner-item">
  18. <image :src="item" @click="previewImg(index)" class="product-img" />
  19. </swiper-item>
  20. </swiper>
  21. <view class="swiper__dots-box">
  22. <view v-for="(item,idx) in productImage"
  23. :key="idx"
  24. :class="[idx===current?'swiper__dots-long':'none']"
  25. :data-index="current" class="swiper__dots-item">
  26. </view>
  27. </view>
  28. </uni-swiper-dot>
  29. </view>
  30. <view class="product-wrap clearfix">
  31. <view class="wrap-top" :class="goodsData.isNoneDisabled ? 'none' : ''">
  32. <view class="p-title tui-skeleton-fillet">
  33. {{product.name == undefined ? '' : product.name}}
  34. </view>
  35. <view class="productRemarks" v-if="product.productRemarks!=''&&product.productRemarks!=null">
  36. <view class="">{{product.productRemarks}}</view>
  37. </view>
  38. <view class="wrap-top-price" v-if="!goodsData.isNoneDisabled">
  39. <view v-if="!hasLogin" class="p-login grade tui-skeleton-fillet">
  40. <text class="p-no">价格:</text>
  41. <view class="price-left" v-if="linkPath === 'activity'">
  42. <text class="none">¥<text>???</text></text>
  43. </view>
  44. <uni-stars v-else :stars="parseInt(product.price1Grade)" :font-size='36' :width-info="180"></uni-stars>
  45. <view class="p-login tui-skeleton-fillet">
  46. <text class="p-login-btn" @click.stop="navToLogin">登录查看价格<text class="iconfont icon-xiayibu" style="font-size: 22rpx;margin: 0 6rpx;"></text></text>
  47. </view>
  48. </view>
  49. <view class="cm-price" v-else>
  50. <cm-price v-if="isRequest"
  51. :product="product"
  52. :userIdentity="userIdentity"
  53. :ladderPriceList="ladderPriceList"
  54. :retailPrice="retailPrice"
  55. :smallMoney="smallMoney"
  56. :minBuyNumber="minBuyNumber"/>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="attributes">
  61. <cm-attributes v-if="isRequest" :product="product" :goodsData="goodsData" />
  62. </view>
  63. </view>
  64. </view>
  65. <view class="product-supplier" @click="goSupplier">
  66. <text class="title">供应商信息</text>
  67. <text class="name">{{shop.name}}</text>
  68. <text class="iconfont icon-xiayibu"></text>
  69. </view>
  70. <view class="product-details">
  71. <!-- 头部 -->
  72. <view v-if="goodsData.isNoneDisabled" class="navbar" :class="navbarFiexd" :style="{top:headerBtnPosi.bottom + (headerBtnPosi.bottom - headerBtnPosi.height - systeminfo.statusBarHeight) +'px'}">
  73. <view class="nav-item tui-skeleton-fillet" v-for="(item,index) in disabledTabNavList" :key="index" :class="{ current: tabCurrentIndex === index }" @click="tabClick(index+2)">
  74. <text class="line"></text>
  75. <text>{{item.name}}</text>
  76. </view>
  77. </view>
  78. <view v-else class="navbar" :class="navbarFiexd" :style="{top:headerBtnPosi.bottom + (headerBtnPosi.bottom - headerBtnPosi.height - systeminfo.statusBarHeight) +'px'}">
  79. <view class="nav-item tui-skeleton-fillet" :class="{ current: tabCurrentIndex === 0 }" @click="tabClick(0)">
  80. <text>商品详情</text>
  81. <text class="line"></text>
  82. </view>
  83. <view class="nav-item tui-skeleton-fillet"
  84. :class="{ current: tabCurrentIndex === 1 }"
  85. @click="tabClick(1)"
  86. v-if="product.parametersList != ''">
  87. <text>相关参数</text>
  88. <text class="line"></text>
  89. </view>
  90. <view class="nav-item tui-skeleton-fillet"
  91. :class="{ current: tabCurrentIndex === 2 }"
  92. @click="tabClick(2)"
  93. v-if="product.productDetail.orderInfo || product.productDetail.serviceInfo">
  94. <text>服务项目</text>
  95. <text class="line"></text>
  96. </view>
  97. <view class="nav-item tui-skeleton-fillet" :class="{ current: tabCurrentIndex === 3 }" @click="tabClick(3)">
  98. <text>相关推荐</text>
  99. <text class="line"></text>
  100. </view>
  101. </view>
  102. <!-- 商品详情,相关参数,服务项目,相关推荐-->
  103. <view class="content tui-banner tui-skeleton-rect" v-if="tabCurrentIndex === 0">
  104. <parser :html="html" :img-mode="widthFix"></parser>
  105. </view>
  106. <view class="content param" v-if="tabCurrentIndex === 1">
  107. <cm-parameter :product="product" v-if="isRarameter"></cm-parameter>
  108. </view>
  109. <view class="content service" v-if="tabCurrentIndex === 2">
  110. <cm-service :product="product.productDetail" v-if="isService"></cm-service>
  111. </view>
  112. <view class="content hot" v-if="tabCurrentIndex === 3">
  113. <recommend :query-productid="product.productID" v-if="isRecommend"></recommend>
  114. </view>
  115. </view>
  116. <!-- 底部按钮 -->
  117. <view class="menu" v-if="userIdentity!=1">
  118. <view class="bottom-btn" :style="{paddingBottom :isIphoneX ? '68rpx' : '0rpx'}">
  119. <view class="bottom-le">
  120. <view class="item-bt" @click="this.$api.switchTabTo('/pages/tabBar/home/home')">
  121. <image src="../../static/icon-home-active@3x.png"></image>
  122. <text>首页</text>
  123. </view>
  124. <view class="item-bt">
  125. <!-- #ifdef MP-WEIXIN -->
  126. <button class="contact-btn" open-type="contact" @bindcontact="handleContact">
  127. <image src="../../static/severs@3x.png"></image>
  128. <text>客服</text>
  129. </button>
  130. <!-- #endif -->
  131. </view>
  132. <view class="item-bt" @click="buyProductCart()">
  133. <image src="../../static/icon-cart-active@3x.png"></image>
  134. <text>购物车</text>
  135. <text v-if="hasLogin && goodsData.cartCount>0"
  136. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  137. :class="[goodsData.cartCount < 10 ? 'goleft':'']">
  138. {{ goodsData.cartCount >= 100 ? '99+': goodsData.cartCount}}
  139. </text>
  140. <view class="animation-num" :class="isAnimation ? 'animation' : 'restion'">+1</view>
  141. </view>
  142. </view>
  143. <view class="bottom-ri">
  144. <button
  145. :disabled="goodsData.disabled"
  146. class="btn btn-cart"
  147. :class="[goodsData.disabled ? 'disabled':'']"
  148. @tap.stop="btnGetConfirm('add')">加入购物车</button>
  149. <button
  150. :disabled="goodsData.disabled"
  151. class="btn btn-bay"
  152. :class="[goodsData.disabled ? 'disabled':'']"
  153. @tap.stop="btnGetConfirm('buy')">立即购买</button>
  154. </view>
  155. </view>
  156. </view>
  157. <!--底部选择模态层弹窗组件 -->
  158. <view class="popup spec" :class="specClass" @touchmove.stop.prevent="discard" @tap="hideSpec">
  159. <!-- 遮罩层 -->
  160. <view class="mask"></view>
  161. <view class="layer" @tap.stop="discard" :style="{paddingBottom :isIphoneX ? '68rpx' : '36rpx',bottom:isIphoneX ?'-352rpx' : '-296rpx'}">
  162. <view class="content">
  163. <view class="layer-smimg">
  164. <image :src="product.mainImage" mode=""></image>
  165. </view>
  166. <view class="layer-nunbox">
  167. <view class="layer-nunbox-t" v-if="product.step === 2">
  168. <view class="text">*该商品只能以起订量的整数倍购买</view>
  169. </view>
  170. <view class="layer-nunbox-t">
  171. <view class="layer-nunbox-text">数量:</view>
  172. <view class="number-box">
  173. <view class="iconfont icon-jianhao" :class="[isQuantity==true?'disabled':'']" @click="changeCountSub()"></view>
  174. <input class="btn-input" type="number" v-model="number" maxlength='4' @blur="changeNumber($event)">
  175. <view class="iconfont icon-jiahao" :class="[isStock==true?'disabled':'']" @click="changeCountAdd()"></view>
  176. </view>
  177. </view>
  178. <view class="layer-nunbox-b">
  179. <view class="text">单价:
  180. <text class="p sm">¥</text>
  181. <text class="p bg">{{buyRetailPrice.toFixed(2)}}</text>
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. <view class="btn"><view class="button" @click.stop="btnConfirm">确定</view></view>
  187. </view>
  188. </view>
  189. </view>
  190. </view>
  191. </template>
  192. <script>
  193. import { mapState,mapMutations } from 'vuex'
  194. import customP from '@/components/cm-module/headerNavbar/header-poduct' //自定义导航
  195. import cmPrice from "@/components/cm-module/productDetails/cm-price.vue" //价格显示
  196. import cmAttributes from "@/components/cm-module/productDetails/cm-attributes.vue" //规格信息
  197. import authorize from '@/common/config/authorize.js'
  198. import uniStars from '@/components/uni-stars/uni-stars.vue'
  199. import parser from "@/components/jyf-Parser/index" //富文本处理
  200. import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
  201. import recommend from "@/components/cm-module/productDetails/recommend" //相关推荐
  202. import cmParameter from "@/components/cm-module/productDetails/cm-parameter" //相关参数
  203. import cmService from "@/components/cm-module/productDetails/cm-service" //服务项目
  204. import wxLogin from "@/common/config/wxLogin.js"
  205. import { queryProductDetils } from "@/api/product.js"
  206. import { shoppingAddCart } from "@/api/cart.js"
  207. var isPreviewImg;
  208. export default{
  209. components:{
  210. customP,
  211. parser,
  212. tuiSkeleton,
  213. recommend,
  214. cmPrice,
  215. cmAttributes,
  216. cmParameter,
  217. cmService
  218. },
  219. data(){
  220. return{
  221. html:'<div style="text-align: center;color:#333333;">暂无内容</div>',
  222. disabledTabNavList:[{name:'相关推荐'}],
  223. mode:'round',
  224. specClass: '',//规格弹窗css类,控制开关动画
  225. isBtnType:'',
  226. isRequest:false,
  227. current:0,
  228. isShareType:'',
  229. isHeaderPoduct:false,
  230. navbarFiexd:'none',
  231. ladderPriceFlag:'',
  232. ladderPriceList:'',
  233. isRecommend:false,
  234. isRarameter:true,
  235. isService:false,
  236. isEvaluate:false,
  237. isAnimation:false,
  238. skeletonShow:true,
  239. isQuantity:false,
  240. isStock:false,
  241. disabled:false,
  242. isNoneDisabled:false,
  243. tabCurrentIndex:0,
  244. userID:'',
  245. productID:0,
  246. userIdentity:'',//用户类型
  247. goodsData:{},//自定义数据
  248. shop:{},//供应商信息
  249. product:{},//采美
  250. productImage:[],
  251. retailPrice:0,
  252. buyRetailPrice:0,
  253. buyRetailPriceStep:1,
  254. stock:0,
  255. number:0,
  256. minBuyNumber:0,
  257. productsList:[],
  258. goodListData:[],
  259. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  260. systeminfo: this.setSysteminfo(), //获取设备信息
  261. isIphoneX:this.$store.state.isIphoneX,
  262. windowHeight: '',
  263. headerColor:false,
  264. backPage:1,
  265. nvabarData: { //顶部自定义导航
  266. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示
  267. title: '' // 导航栏 中间的标题
  268. },
  269. linkPath:''
  270. }
  271. },
  272. onLoad(option) {
  273. this.productID = option.id;//获取商品ID
  274. this.isShareType = option.type
  275. this.linkPath = option.path
  276. this.isHeaderPoduct = true
  277. if(option.page == 2){
  278. this.backPage = option.page
  279. }
  280. if(this.isShareType =='share'){
  281. authorize.getSetting().then(wxResponse =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  282. console.log(wxResponse)
  283. if(wxResponse == 1){
  284. wxLogin.wxLoginAuthorize()
  285. }else{
  286. console.log(new Date +'用户未授权微信信息')
  287. }
  288. })
  289. }
  290. },
  291. computed: {
  292. ...mapState(['hasLogin','isWxAuthorize'])
  293. },
  294. methods:{
  295. initData(){// 初始化商品详情查询
  296. queryProductDetils({userId:this.userID,productID:this.productID}).then(response =>{
  297. this.skeletonShow = false
  298. this.productImage=[];
  299. this.shop = response.data.shop
  300. this.product = response.data
  301. this.ladderPriceFlag = this.product.ladderPriceFlag;
  302. this.html = this.product.productDetail == null ? this.html : this.$api.adaptRichTextImg(this.product.productDetail.detailInfo)
  303. this.stock = this.product.stock
  304. this.buyRetailPriceStep = this.product.step
  305. this.number = this.product.minBuyNumber
  306. this.minBuyNumber = this.product.minBuyNumber
  307. //处理商品图片列表
  308. this.product.imageList.forEach(item =>{
  309. this.productImage.push(item.image);
  310. })
  311. //购物车数量
  312. this.goodsData.cartCount = this.product.productCount
  313. //处理阶梯价格
  314. if(this.product.ladderPriceList!=null){
  315. this.ladderPriceList = this.product.ladderPriceList;
  316. }
  317. //拆分金额并转千分位格式显示
  318. if(this.product.retailPrice!=null){
  319. this.retailPrice = this.product.retailPrice.toFixed(2);
  320. this.buyRetailPrice = this.product.retailPrice;
  321. }
  322. //处理下架商品和售罄商品
  323. if(this.product.validFlag =='3' || this.stock == 0 ){
  324. this.disabled = true
  325. this.isNoneDisabled = true
  326. this.tabCurrentIndex = 2;// 页面显示是默认选中第一
  327. this.isRecommend = true
  328. this.goodsData.disabledText = '下架'
  329. }else{
  330. this.disabled = false
  331. this.isNoneDisabled = false
  332. this.tabCurrentIndex = 0;// 页面显示是默认选中第三
  333. this.goodsData.disabledText = ''
  334. }
  335. if(this.product.price1TextFlag == "1"){
  336. this.disabled = true
  337. }
  338. if(this.product.price1TextFlag == "2"){
  339. if(this.userIdentity == 4){
  340. this.disabled = true
  341. }else{
  342. this.disabled = false
  343. }
  344. }
  345. this.goodsData.disabled = this.disabled
  346. this.goodsData.isNoneDisabled = this.isNoneDisabled
  347. if(this.product.validFlag =='3'){
  348. this.goodsData.disabledText = '下架'
  349. }
  350. if(this.stock == 0){
  351. this.goodsData.disabledText = '售罄'
  352. }
  353. this.isRequest = true
  354. }).catch(error =>{
  355. this.$util.msg(error.msg,2000);
  356. })
  357. },
  358. swiperChange(e) {//顶部商品图片切换
  359. const index = e.detail.current;
  360. this.current = index;
  361. },
  362. previewImg (index) {//顶部商品图片预览
  363. isPreviewImg = true
  364. let previewUrls = this.productImage
  365. uni.previewImage({
  366. current: index, //图片索引
  367. urls: previewUrls, //必须是http图片,本地图片无效
  368. longPressActions:''
  369. })
  370. },
  371. tabClick(index) {//商品详情&&供应商信息tab切换
  372. this.tabCurrentIndex = index;
  373. switch(this.tabCurrentIndex){
  374. case 1:
  375. this.isRarameter = true
  376. break;
  377. case 2:
  378. this.isService = true
  379. break;
  380. case 3:
  381. this.isRecommend = true
  382. break;
  383. }
  384. },
  385. handleContact(e){//跳转小程序客服
  386. },
  387. buyProductCart(){//底部购物车按钮点击
  388. authorize.getSetting().then(wxResponse =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  389. if(wxResponse == 1){
  390. if(this.hasLogin){
  391. this.$api.navigateTo('/pages/goods/cart')
  392. }else{
  393. this.$api.navigateTo('/pages/login/login?type=1')
  394. }
  395. }else{
  396. this.$api.navigateTo('/pages/authorization/authorization?type=1')
  397. }
  398. })
  399. },
  400. btnGetConfirm(type){//加入购物车&&立即购买点击
  401. authorize.getSetting().then(wxResponse =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  402. if(wxResponse == 1){
  403. if(this.hasLogin){
  404. this.showSpec(type);
  405. }else{
  406. this.$api.navigateTo('/pages/login/login?type=1')
  407. }
  408. }else{
  409. this.$api.navigateTo('/pages/authorization/authorization?type=1')
  410. }
  411. })
  412. },
  413. changeCountAdd(){//popup弹窗数量增加按钮
  414. if(this.buyRetailPriceStep == 2){
  415. this.number+=this.minBuyNumber
  416. }else{
  417. this.number++
  418. }
  419. this.processActivityPrice()
  420. },
  421. changeCountSub(){//popup弹窗数量减按钮
  422. if(this.number<=this.minBuyNumber){
  423. this.number= this.minBuyNumber
  424. this.isQuantity =true
  425. this.$util.msg(`该商品最小起订量为${this.minBuyNumber}`,2000);
  426. return
  427. }else{
  428. if(this.buyRetailPriceStep == 2){
  429. this.number-=this.minBuyNumber
  430. }else{
  431. this.number--
  432. }
  433. this.processActivityPrice()
  434. this.isQuantity =false
  435. }
  436. },
  437. changeNumber(e){
  438. let _value = e.detail.value;
  439. if(!this.$api.isNumber(_value)){
  440. this.number = this.minBuyNumber
  441. }else if(_value < this.minBuyNumber){
  442. this.$util.msg(`该商品最小起订量为${this.minBuyNumber}`,2000);
  443. this.number = this.minBuyNumber
  444. }else if( _value % this.minBuyNumber !=0 ){
  445. this.$util.msg(`购买量必须为起订量的整数倍`,2000);
  446. this.number = this.minBuyNumber
  447. }else{
  448. this.number = e.detail.value
  449. }
  450. this.processActivityPrice()
  451. },
  452. processActivityPrice(){//单独处理活动价格和阶梯价格
  453. if(this.ladderPriceFlag == '0' && this.product.actStatus == 0){
  454. this.buyRetailPrice = this.product.retailPrice
  455. }else{
  456. this.ladderPriceList.forEach((item,index)=>{
  457. if(this.number>=item.buyNum){
  458. this.buyRetailPrice = item.buyPrice
  459. }
  460. })
  461. }
  462. },
  463. showSpec(type) {//显示选择数量确认弹窗
  464. this.isBtnType = type
  465. this.specClass = 'show';
  466. },
  467. hideSpec() {//关闭选择数量确认弹窗
  468. this.specClass = 'hide';
  469. setTimeout(() => {
  470. this.specClass = 'none';
  471. }, 200);
  472. },
  473. btnConfirm() {//加入购物车&&立即购买跳转订单页并关闭弹窗
  474. if(this.isBtnType == 'add'){
  475. this.getAddProductCart()
  476. }else{
  477. this.toConfirmation()
  478. }
  479. },
  480. toConfirmation(){//跳转确认订单页面
  481. this.specClass = 'hide';
  482. let productStp ={
  483. allPrice:this.number*this.buyRetailPrice,
  484. allCount:this.number,
  485. productID:this.product.productID,
  486. productCount:this.number
  487. }
  488. this.$api.navigateTo(`/pages/user/order/create-order?type=prodcut&data=${JSON.stringify({data:productStp})}`)
  489. setTimeout(() => {
  490. this.specClass = 'none';
  491. }, 200);
  492. },
  493. getAddProductCart(){//增加购物车成功和toast弹窗提示成功
  494. shoppingAddCart({productID:this.productID,userID:this.userID,productCount:this.number}).then(response => {
  495. this.specClass = 'hide';
  496. this.$util.msg('加入购物车成功',1500,true,'success')
  497. this.isAnimation = true
  498. setTimeout(() => {this.specClass = 'none'}, 200)
  499. setTimeout(() => {this.isAnimation = false},2000)
  500. this.goodsData.cartCount = response.data;
  501. }).catch(error =>{
  502. this.$util.msg(error.msg,2000);
  503. })
  504. },
  505. navToLogin(){
  506. authorize.getSetting().then(wxResponse =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  507. if(wxResponse == 1){
  508. this.$store.commit('setLoginType',8)
  509. this.$store.commit('setLoginProductId',this.productID)
  510. this.$api.navigateTo(`/pages/login/login?id=${this.productID}`)
  511. }else{
  512. this.$api.navigateTo('/pages/authorization/authorization?type=1')
  513. }
  514. })
  515. },
  516. setHeaderBtnPosi(){
  517. // 获得胶囊按钮位置信息
  518. let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
  519. return headerBtnPosi
  520. },
  521. setSysteminfo(){
  522. let systeminfo;
  523. uni.getSystemInfo({ // 获取设备信息
  524. success: (res) => {
  525. systeminfo = res
  526. },
  527. })
  528. return systeminfo
  529. },
  530. getOptionFn(e){
  531. this.isShareType = e.type
  532. },
  533. goSupplier(){
  534. this.$api.setStorage('supplierInfo',this.shop)
  535. this.$api.navigateTo('/pages/goods/supplier')
  536. },
  537. discard(){
  538. //丢弃
  539. }
  540. },
  541. onPageScroll(e){//实时获取到滚动的值
  542. if(e.scrollTop>50){
  543. this.headerColor = true
  544. this.nvabarData={
  545. showCapsule: 1,
  546. title: '商品详情',
  547. }
  548. }else{
  549. this.headerColor = false
  550. this.nvabarData={
  551. showCapsule: 1,
  552. title: '',
  553. }
  554. }
  555. if(e.scrollTop>700){
  556. this.navbarFiexd = 'fixed'
  557. }else{
  558. this.navbarFiexd = 'none'
  559. }
  560. },
  561. onShareAppMessage(res){//分享转发
  562. if (res.from === 'button') {
  563. // 来自页面内转发按钮
  564. }
  565. return {
  566. title: `${this.product.name}`,
  567. path: `pages/goods/product?type=share&id=${this.productID}`,
  568. imageUrl:`${this.productImage[0]}`
  569. }
  570. },
  571. onShow() {
  572. this.$api.getStorage().then((resolve) => {
  573. this.userID = resolve.userID ? resolve.userID : '';
  574. this.userIdentity = resolve.userIdentity ? resolve.userIdentity : 3
  575. if (isPreviewImg) {
  576. isPreviewImg = false;
  577. return;
  578. } else {
  579. this.initData();
  580. }
  581. }).catch(error =>{
  582. this.initData();
  583. })
  584. }
  585. }
  586. </script>
  587. <style lang="scss">
  588. page{
  589. background-color: #F7F7F7;
  590. }
  591. .productRemarks{
  592. color: #FF2A2A;
  593. font-size: 24rpx;
  594. margin-bottom: 16rp
  595. }
  596. .banner-section{
  597. width: 100%;
  598. height: 750rpx;
  599. position: relative;
  600. border-bottom: 1px solid #EBEBEB;
  601. }
  602. .banner{
  603. width: 100%;
  604. height: 750rpx;
  605. .product-img{
  606. width: 750rpx;
  607. }
  608. image {
  609. width: 100%;
  610. height: 100%;
  611. }
  612. }
  613. .swiper__dots-box{
  614. position: absolute;
  615. bottom: 24px;
  616. right: 24rpx;
  617. /* #ifndef APP-NVUE */
  618. display: flex;
  619. /* #endif */
  620. flex: 1;
  621. flex-direction: row;
  622. justify-content: center;
  623. align-items: center;
  624. height: 12rpx;
  625. padding: 10rpx;
  626. background: rgba(174,174,174,0.6);
  627. border-radius:16rpx;
  628. .swiper__dots-item{
  629. width: 12rpx;
  630. height: 12rpx;
  631. border-radius: 100%;
  632. margin: 6rpx;
  633. background: rgba(62,62,62,1);
  634. }
  635. .none{
  636. background:#FFFFFF;
  637. }
  638. .swiper__dots-long{
  639. background: rgba(62,62,62,1);
  640. transition: all 0.1s;
  641. }
  642. }
  643. .product-wrap{
  644. width: 100%;
  645. height: auto;
  646. padding: 24rpx 0 0 0;
  647. background-color: #FFFFFF;
  648. border-bottom: 20rpx solid #F7F7F7;
  649. .wrap-top{
  650. width: 702rpx;
  651. padding: 0 24rpx;
  652. height: auto;
  653. float: left;
  654. padding-bottom: 24rpx;
  655. border-bottom: 1px solid #F8F8F8;
  656. &.none{
  657. .p-title{
  658. color:#999999
  659. }
  660. }
  661. .p-title{
  662. line-height: 40rpx;
  663. font-size: $font-size-28;
  664. color: $text-color;
  665. font-weight: Bold;
  666. -o-text-overflow: ellipsis;
  667. text-overflow: ellipsis;
  668. display: -webkit-box;
  669. word-break: break-all;
  670. -webkit-box-orient: vertical;
  671. -webkit-line-clamp: 2;
  672. overflow: hidden;
  673. margin-bottom: 16rpx;
  674. }
  675. .wrap-main-pricenone{
  676. line-height: 44rpx;
  677. color: #FF2A2A;
  678. font-size: $font-size-28;
  679. font-weight: 600;
  680. }
  681. .wrap-main-text{
  682. display: block;
  683. float: left;
  684. font-weight: normal;
  685. }
  686. .wrap-main-none{
  687. display: block;
  688. width: 256rpx;
  689. height: 44rpx;
  690. padding-left: 20rpx;
  691. border-radius: 11rpx;
  692. background: $btn-confirm;
  693. float: right;
  694. line-height: 44rpx;
  695. color: #FFFFFF;
  696. text-align: center;
  697. font-size: $font-size-24;
  698. }
  699. .p-active{
  700. width: 130rpx;
  701. height: 44rpx;
  702. display: flex;
  703. align-items: center;
  704. flex-direction: row;
  705. float: left;
  706. .icon-active{
  707. width: 124rpx;
  708. height: 30rpx;
  709. display: block;
  710. }
  711. }
  712. .p-price{
  713. height: 44rpx;
  714. line-height: 44rpx;
  715. float: left;
  716. .txt{
  717. color: #FF2A2A;
  718. margin:0 2rpx;
  719. }
  720. .txt.sm{
  721. font-size: $font-size-24;
  722. }
  723. .txt.big{
  724. font-size: $font-size-32;
  725. }
  726. }
  727. .p-price-none{
  728. height: 44rpx;
  729. line-height: 44rpx;
  730. float: left;
  731. font-size: $font-size-24;
  732. color: #666;
  733. text-decoration: line-through;
  734. margin-left: 8rpx;
  735. }
  736. .p-minBuy{
  737. height: 44rpx;
  738. line-height: 44rpx;
  739. float: right;
  740. padding: 0 18rpx;
  741. border-radius: 22rpx;
  742. background-color: #EBEBEB;
  743. color: #7F7F7F;
  744. font-size: 24rpx;
  745. text-align: center;
  746. .min-text{
  747. margin: 0 6rpx;
  748. }
  749. }
  750. .p-login{
  751. height: 44rpx;
  752. line-height: 44rpx;
  753. color: $color-system;
  754. font-size: $font-size-24;
  755. &.grade{
  756. margin-bottom: 20rpx;
  757. .price-left{
  758. float: left;
  759. .none{
  760. display: block;
  761. font-size: $font-size-20;
  762. line-height: 48rpx;
  763. color: #4A4B54;
  764. float: left;
  765. font-weight: bold;
  766. margin-left: 5rpx;
  767. text{
  768. letter-spacing: 4rpx;
  769. font-size: $font-size-32;
  770. }
  771. }
  772. }
  773. }
  774. .p-no{
  775. float: left;
  776. margin-right: 5rpx;
  777. font-size: $font-size-28;
  778. }
  779. .p-login-btn{
  780. display: block;
  781. height: 44rpx;
  782. padding: 0 10rpx 0 20rpx;
  783. border-radius: 11rpx;
  784. background: $btn-confirm;
  785. float: right;
  786. line-height: 44rpx;
  787. color: #FFFFFF;
  788. text-align: center;
  789. font-size: $font-size-24;
  790. }
  791. }
  792. }
  793. .wrap-active{
  794. width: 100%;
  795. float: left;
  796. height: 80rpx;
  797. background: linear-gradient(225deg,rgba(255,143,101,1) 0%,rgba(248,79,57,1) 100%);
  798. line-height: 80rpx;
  799. font-size: $font-size-26;
  800. color: #FFFFFF;
  801. text-align: center;
  802. }
  803. .wrap-ladder{
  804. float: left;
  805. width: 702rpx;
  806. border-bottom: 1px solid #F8F8F8;
  807. .ladder-text{
  808. height: 34rpx;
  809. line-height: 34rpx;
  810. margin-bottom: 24rpx;
  811. font-size: 24rpx;
  812. color: #999999;
  813. .ladder-p{
  814. font-size: 20rpx;
  815. }
  816. }
  817. .ladder-main{
  818. width: 654rpx;
  819. height: 102rpx;
  820. padding: 24rpx;
  821. background: url(https://img.caimei365.com/group1/M00/03/95/Cmis216Sk_WASybTAAI2gyWbunM918.png);
  822. background-size: cover;
  823. border-radius: 20rpx;
  824. display: flex;
  825. .ladder-left{
  826. flex: 1.5;
  827. line-height: 51rpx;
  828. font-size: 24rpx;
  829. .ladder-b{
  830. text-align-last: justify;
  831. }
  832. }
  833. .ladder-right{
  834. height: 100%;
  835. display: flex;
  836. align-items: center;
  837. flex: 8.5;
  838. .ladder-li{
  839. height: 100%;
  840. flex: 1;
  841. display:flex;
  842. flex-flow: column;
  843. align-items: center;
  844. .ladder-a{
  845. flex: 1;
  846. height: 51rpx;
  847. line-height: 51rpx;
  848. font-size: 26rpx;
  849. text-align: justify;
  850. color: #FA6400;
  851. font-weight: bold;
  852. }
  853. }
  854. }
  855. }
  856. }
  857. .wrap-label{
  858. float: left;
  859. width: 702rpx;
  860. padding: 24rpx 24rpx 0 24rpx;
  861. border-bottom: 1px solid #F8F8F8;
  862. .label-a{
  863. padding: 0 18rpx;
  864. line-height: 40rpx;
  865. font-size: $font-size-24;
  866. color: #FFFFFF;
  867. text-align: center;
  868. border-radius: 20rpx;
  869. background:#A69DFE;
  870. margin: 0 22rpx 22rpx 0;
  871. display: inline-block;
  872. }
  873. }
  874. .wrap-info{
  875. float: left;
  876. width: 702rpx;
  877. padding: 24rpx 24rpx 0 24rpx;
  878. border-bottom: 1px solid #F8F8F8;
  879. .info-viewT{
  880. width: 100%;
  881. min-height: 40rpx;
  882. font-size: $font-size-28;
  883. color: $text-color;
  884. line-height: 40rpx;
  885. text-align: left;
  886. &.none{
  887. color: #999999;
  888. }
  889. .info-viewL{
  890. min-width: 350rpx;
  891. float: left;
  892. margin-bottom: 24rpx;
  893. }
  894. .info-viewR{
  895. min-width: 352rpx;
  896. float: left;
  897. margin-bottom: 24rpx;
  898. }
  899. }
  900. .info-viewB{
  901. width: 100%;
  902. height: auto;
  903. }
  904. .info-f{
  905. width: 50%;
  906. float: left;
  907. font-size: $font-size-28;
  908. color: $text-color;
  909. line-height: 40rpx;
  910. margin-bottom: 24rpx;
  911. text-align: left;
  912. }
  913. }
  914. .wrap-seve{
  915. float: left;
  916. width: 702rpx;
  917. padding: 0 24rpx;
  918. height: 72rpx;
  919. line-height: 72rpx;
  920. font-size: $font-size-28;
  921. color: $text-color;
  922. border-bottom: 1px solid #F8F8F8;
  923. &.none{
  924. color: #999999;
  925. .text{
  926. color: #999999;
  927. }
  928. }
  929. .iconfont{
  930. color: $color-system;
  931. margin-left: 20rpx;
  932. font-size: $font-size-24;
  933. }
  934. .text{
  935. font-size: $font-size-24;
  936. color: $text-color;
  937. margin-left: 10rpx;
  938. }
  939. }
  940. }
  941. .product-supplier{
  942. width: 702rpx;
  943. height: 88rpx;
  944. padding: 0 24rpx;
  945. background-color: #FFFFFF;
  946. margin-bottom: 24rpx;
  947. position: relative;
  948. display: flex;
  949. .title{
  950. display: flex;
  951. flex: 2;
  952. line-height: 88rpx;
  953. display: inline-block;
  954. float: left;
  955. font-size: $font-size-28;
  956. color: $text-color;
  957. }
  958. .name{
  959. display: flex;
  960. flex: 2;
  961. line-height: 88rpx;
  962. display: inline-block;
  963. float: left;
  964. font-size: $font-size-24;
  965. color: #D0D0D0;
  966. float: right;
  967. padding-right: 48rpx;
  968. overflow: hidden;
  969. text-overflow:ellipsis;
  970. white-space: nowrap;
  971. text-align: right;
  972. }
  973. .icon-xiayibu{
  974. line-height: 88rpx;
  975. display: inline-block;
  976. position: absolute;
  977. width: 48rpx;
  978. top: 0;
  979. right: 0;
  980. }
  981. }
  982. .product-details {
  983. height: 100%;
  984. background: #FFFFFF;
  985. .navbar {
  986. width: 702rpx;
  987. height: 96rpx;
  988. padding: 0 24rpx;
  989. background: #fff;
  990. z-index: 10;
  991. display: flex;
  992. border-bottom: 1px solid #F8F8F8;
  993. &.fixed{
  994. position: fixed;
  995. left: 0;
  996. }
  997. .nav-item {
  998. display: flex;
  999. flex: 1;
  1000. justify-content: center;
  1001. align-items: center;
  1002. height: 96rpx;
  1003. font-size: $font-size-28;
  1004. color: $text-color;
  1005. position: relative;
  1006. float: left;
  1007. position: relative;
  1008. .line{
  1009. width: 60%;
  1010. height: 2px;
  1011. border-radius: 1px;
  1012. background: #FFFFFF;
  1013. position: absolute;
  1014. bottom: 0;
  1015. left: 50%;
  1016. margin-left: -30%;
  1017. }
  1018. &.current{
  1019. color:$color-system;
  1020. .line{
  1021. background: $color-system;
  1022. }
  1023. }
  1024. }
  1025. }
  1026. .content{
  1027. width: 100%;
  1028. min-height: 750rpx;
  1029. }
  1030. }
  1031. .isLower{
  1032. width: 100%;
  1033. height: 116rpx;
  1034. line-height: 116rpx;
  1035. text-align: center;
  1036. color: #000000;
  1037. font-size: $font-size-32;
  1038. font-weight: bold;
  1039. }
  1040. .bottom-btn{
  1041. width: 100%;
  1042. height: 110rpx;
  1043. position: fixed;
  1044. bottom: 0;
  1045. left: 0;
  1046. background: #FFFFFF;
  1047. z-index: 99;
  1048. .bottom-le{
  1049. width: 302rpx;
  1050. height: 86rpx;
  1051. padding:12rpx 24rpx;
  1052. float: left;
  1053. .item-bt{
  1054. width: 86rpx;
  1055. height: 100%;
  1056. margin-right:22rpx;
  1057. display: flex;
  1058. float: left;
  1059. flex-direction: column;
  1060. align-items: center;
  1061. font-size: $font-size-24;
  1062. color: $text-color;
  1063. line-height: 34rpx;
  1064. position: relative;
  1065. .animation-num{
  1066. font-size:$font-size-32 ;
  1067. color: #FF2A2A;
  1068. position: absolute;
  1069. top: -12rpx;
  1070. right: 4rpx;
  1071. font-weight: bold;
  1072. }
  1073. .animation{
  1074. animation: showAmnation 2.2s ease-in-out both;
  1075. }
  1076. .restion{
  1077. animation: hideAmnation 1s ease-in-out both;
  1078. }
  1079. .icon-num{
  1080. position: absolute;
  1081. right:-12rpx;
  1082. top: -9rpx;
  1083. }
  1084. .icon-num.goleft{
  1085. right: 4rpx;
  1086. }
  1087. &:last-child{
  1088. margin-right: 0;
  1089. }
  1090. image {
  1091. width: 40rpx;
  1092. height: 40rpx;
  1093. margin-bottom: 8rpx;
  1094. }
  1095. button.contact-btn{
  1096. width: 100%;
  1097. height: 100%;
  1098. margin: 0;
  1099. padding: 0;
  1100. display: flex;
  1101. flex-direction: column;
  1102. align-items: center;
  1103. box-sizing: border-box;
  1104. font-size: $font-size-24;
  1105. text-align: center;
  1106. text-decoration: none;
  1107. line-height: 34rpx;
  1108. border-radius: 0;
  1109. -webkit-tap-highlight-color: transparent;
  1110. overflow: hidden;
  1111. color: $text-color;
  1112. background-color:#FFFFFF;
  1113. }
  1114. }
  1115. }
  1116. .bottom-ri{
  1117. width: 400rpx;
  1118. height: 100%;
  1119. float: right;
  1120. display: flex;
  1121. .btn{
  1122. flex: 1;
  1123. width: 200rpx;
  1124. line-height: 110rpx;
  1125. text-align: center;
  1126. font-size: $font-size-28;
  1127. color: #FFFFFF;
  1128. }
  1129. .btn-cart{
  1130. background-color: #EFAF00;
  1131. }
  1132. .btn-cart.disabled{
  1133. background-color: rgba(239, 175, 0, 0.5);
  1134. }
  1135. .btn-bay{
  1136. background:linear-gradient(135deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  1137. }
  1138. .btn-bay.disabled{
  1139. background-color: linear-gradient(135deg,rgba(242,143,49,0.5) 0%,rgba(225,86,22,0.5) 100%);;
  1140. }
  1141. }
  1142. }
  1143. .uni-badge--small {
  1144. -webkit-transform: scale(.8);
  1145. -ms-transform: scale(.8);
  1146. transform: scale(.8);
  1147. -webkit-transform-origin: center center;
  1148. -ms-transform-origin: center center;
  1149. transform-origin: center center;
  1150. }
  1151. .uni-badge {
  1152. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  1153. -webkit-box-sizing: border-box;
  1154. box-sizing: border-box;
  1155. font-size: 12px;
  1156. line-height: 1;
  1157. display: inline-block;
  1158. padding: 3px 6px;
  1159. color: #333;
  1160. border-radius: 100px;
  1161. background-color: #f1f1f1;
  1162. }
  1163. .uni-badge-error {
  1164. color: #fff;
  1165. background-color: #dd524d;
  1166. }
  1167. /* 加入购物模态层*/
  1168. @keyframes showPopup {
  1169. 0% {
  1170. opacity: 0;
  1171. }
  1172. 100% {
  1173. opacity: 1;
  1174. }
  1175. }
  1176. @keyframes hidePopup {
  1177. 0% {
  1178. opacity: 1;
  1179. }
  1180. 100% {
  1181. opacity: 0;
  1182. }
  1183. }
  1184. @keyframes showLayer {
  1185. 0% {
  1186. transform: translateY(0);
  1187. }
  1188. 100% {
  1189. transform: translateY(-100%);
  1190. }
  1191. }
  1192. @keyframes hideLayer {
  1193. 0% {
  1194. transform: translateY(-100%);
  1195. }
  1196. 100% {
  1197. transform: translateY(0);
  1198. }
  1199. }
  1200. @keyframes showAmnation {
  1201. 0% {
  1202. top: -12rpx;
  1203. opacity: 0;
  1204. }
  1205. 50% {
  1206. top: -60rpx;
  1207. opacity: 1;
  1208. }
  1209. 100% {
  1210. top: -100rpx;
  1211. opacity: 0;
  1212. }
  1213. }
  1214. @keyframes hideAmnation {
  1215. 0% {
  1216. top: -100rpx;
  1217. opacity: 0;
  1218. }
  1219. 100% {
  1220. top: -12rpx;
  1221. opacity: 0;
  1222. }
  1223. }
  1224. .popup {
  1225. position: fixed;
  1226. top: 0;
  1227. width: 100%;
  1228. height: 100%;
  1229. z-index: 999;
  1230. display: none;
  1231. .mask{
  1232. position: fixed;
  1233. top: 0;
  1234. width: 100%;
  1235. height: 100%;
  1236. z-index: 21;
  1237. background-color: rgba(0, 0, 0, 0.6);
  1238. }
  1239. .layer {
  1240. position: fixed;
  1241. z-index: 22;
  1242. bottom: -294rpx;
  1243. width: 702rpx;
  1244. padding: 24rpx 24rpx 36rpx 24rpx;
  1245. height: 260rpx;
  1246. border-radius: 20rpx 20rpx 0 0;
  1247. background-color: #fff;
  1248. display: flex;
  1249. flex-wrap: wrap;
  1250. align-content: space-between;
  1251. .content {
  1252. width: 100%;
  1253. }
  1254. .btn {
  1255. width: 100%;
  1256. height: 88rpx;
  1257. margin-top: 20rpx;
  1258. .button {
  1259. width: 100%;
  1260. height: 88rpx;
  1261. color: #fff;
  1262. display: flex;
  1263. align-items: center;
  1264. justify-content: center;
  1265. background: $btn-confirm;
  1266. font-size: $font-size-28;
  1267. border-radius: 14rpx;
  1268. }
  1269. }
  1270. }
  1271. &.show {
  1272. display: block;
  1273. .mask{
  1274. animation: showPopup 0.2s linear both;
  1275. }
  1276. .layer {
  1277. animation: showLayer 0.2s linear both;
  1278. }
  1279. }
  1280. &.hide {
  1281. display: block;
  1282. .mask{
  1283. animation: hidePopup 0.2s linear both;
  1284. }
  1285. .layer {
  1286. animation: hideLayer 0.2s linear both;
  1287. }
  1288. }
  1289. &.none {
  1290. display: none;
  1291. }
  1292. &.service {
  1293. .row {
  1294. margin: 30upx 0;
  1295. .title {
  1296. font-size: 30upx;
  1297. margin: 10upx 0;
  1298. }
  1299. .description {
  1300. font-size: 28upx;
  1301. color: #999;
  1302. }
  1303. }
  1304. }
  1305. .layer-smimg{
  1306. width: 114rpx;
  1307. height: 114rpx;
  1308. float: left;
  1309. border-radius: 10rpx;
  1310. margin-right: 24rpx;
  1311. image{
  1312. width: 114rpx;
  1313. height: 114rpx;
  1314. border-radius: 10rpx;
  1315. }
  1316. }
  1317. .layer-nunbox{
  1318. justify-content: space-between;
  1319. align-items: center;
  1320. width: 536rpx;
  1321. height: auto;
  1322. float: left;
  1323. .layer-nunbox-t{
  1324. width: 100%;
  1325. height:44rpx;
  1326. position:relative;
  1327. display: flex;
  1328. margin-bottom: 10rpx;
  1329. .text{
  1330. font-size: $font-size-24;
  1331. line-height: 48rpx;
  1332. color: #999999;
  1333. }
  1334. .layer-nunbox-text{
  1335. line-height: 44rpx;
  1336. font-size: $font-size-28;
  1337. }
  1338. .number-box{
  1339. display: flex;
  1340. justify-content: center;
  1341. align-items: center;
  1342. .iconfont{
  1343. font-size: $font-size-32;
  1344. padding:0 20rpx;
  1345. font-size: $text-color;
  1346. }
  1347. .btn-input{
  1348. width: 62rpx;
  1349. height: 48rpx;
  1350. line-height: 48rpx;
  1351. background: #F8F8F8;
  1352. border-radius: 4rpx;
  1353. text-align: center;
  1354. font-size: $font-size-28;
  1355. }
  1356. }
  1357. .product-step{
  1358. position: absolute;
  1359. left: 45rpx;
  1360. bottom: 0;
  1361. height: 44rpx;
  1362. background: #FFFFFF;
  1363. }
  1364. }
  1365. .layer-nunbox-b{
  1366. width: 100%;
  1367. height:44rpx;
  1368. margin-top: 13rpx;
  1369. }
  1370. .text{
  1371. line-height: 44rpx;
  1372. font-size: $font-size-28;
  1373. .p{
  1374. color: #FF2A2A;
  1375. }
  1376. .p:first-child{
  1377. margin-left: 30rpx;
  1378. }
  1379. .p.sm{
  1380. font-size: $font-size-24;
  1381. }
  1382. }
  1383. }
  1384. }
  1385. /*富文本样式*/
  1386. rich-text.p{
  1387. width: 702rpx !important;
  1388. padding: 0 24rpx;
  1389. text-align: justify;
  1390. }
  1391. rich-text.img{
  1392. width: 100%;
  1393. height: auto;
  1394. }
  1395. </style>