product-details.vue 36 KB

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