product-details.vue 31 KB

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