product-details.vue 31 KB

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