product-details.vue 30 KB

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