instrument-details.vue 37 KB

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