product-details.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386
  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>
  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 secondPrice 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. secondPrice,
  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. 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. border-bottom: 20rpx solid #F7F7F7;
  460. .wrap-top{
  461. width: 702rpx;
  462. padding: 0 24rpx;
  463. height: auto;
  464. float: left;
  465. padding-bottom:20rpx;
  466. border-bottom: 1px solid #F8F8F8;
  467. &.none{
  468. .p-title{
  469. color:#999999
  470. }
  471. }
  472. .p-title{
  473. width: 100%;
  474. height: auto;
  475. float: left;
  476. .p-title-name{
  477. width:602rpx;
  478. height: 96rpx;
  479. float: left;
  480. line-height: 42rpx;
  481. font-size: $font-size-34;
  482. color: $text-color;
  483. -o-text-overflow: ellipsis;
  484. text-overflow: ellipsis;
  485. display: -webkit-box;
  486. word-break: break-all;
  487. -webkit-box-orient: vertical;
  488. -webkit-line-clamp: 2;
  489. overflow: hidden;
  490. }
  491. .p-title-share{
  492. width: 96rpx;
  493. height: 96rpx;
  494. float: right;
  495. text-align: center;
  496. color: #999999;
  497. font-size: $font-size-24;
  498. box-sizing: border-box;
  499. padding: 8rpx 0;
  500. .icon-fenxiang1{
  501. font-size: $font-size-34;
  502. }
  503. }
  504. }
  505. .wrap-main-text{
  506. line-height: 56rpx;
  507. color: #FF2A2A;
  508. font-size: $font-size-26;
  509. display: block;
  510. float: left;
  511. font-weight: normal;
  512. }
  513. .wrap-main-none{
  514. display: block;
  515. width: 256rpx;
  516. height: 44rpx;
  517. padding-left: 20rpx;
  518. border-radius: 11rpx;
  519. background: $btn-confirm;
  520. float: right;
  521. line-height: 44rpx;
  522. color: #FFFFFF;
  523. text-align: center;
  524. font-size: $font-size-24;
  525. }
  526. .p-price-none{
  527. height: 44rpx;
  528. line-height: 44rpx;
  529. float: left;
  530. font-size: $font-size-24;
  531. color: #666;
  532. text-decoration: line-through;
  533. margin-left: 8rpx;
  534. }
  535. .p-minBuy{
  536. height: 44rpx;
  537. line-height: 44rpx;
  538. float: right;
  539. padding: 0 18rpx;
  540. border-radius: 22rpx;
  541. background-color: #f7f7f7;
  542. color: #7F7F7F;
  543. font-size: 24rpx;
  544. text-align: center;
  545. .min-text{
  546. margin: 0 6rpx;
  547. }
  548. }
  549. .p-login{
  550. height: 56rpx;
  551. line-height: 56rpx;
  552. color: $color-system;
  553. font-size: $font-size-24;
  554. &.grade{
  555. .price-left{
  556. float: left;
  557. .none{
  558. display: block;
  559. font-size: $font-size-20;
  560. line-height: 48rpx;
  561. color: #4A4B54;
  562. float: left;
  563. font-weight: bold;
  564. margin-left: 5rpx;
  565. text{
  566. letter-spacing: 4rpx;
  567. font-size: $font-size-32;
  568. }
  569. }
  570. }
  571. }
  572. .p-no{
  573. float: left;
  574. margin-right: 5rpx;
  575. font-size: $font-size-28;
  576. color: $text-color;
  577. }
  578. .p-login-btn{
  579. display: block;
  580. height: 44rpx;
  581. padding: 0 10rpx 0 20rpx;
  582. border-radius: 11rpx;
  583. background: $btn-confirm;
  584. float: right;
  585. line-height: 44rpx;
  586. color: #FFFFFF;
  587. text-align: center;
  588. font-size: $font-size-24;
  589. }
  590. }
  591. }
  592. .wrap-label{
  593. float: left;
  594. width: 100%;
  595. box-sizing: border-box;
  596. .label-a{
  597. padding: 0 18rpx;
  598. line-height: 32rpx;
  599. font-size: $font-size-20;
  600. color:$color-system;
  601. text-align: center;
  602. border-radius: 6rpx;
  603. background:#ffe6dc;
  604. margin: 0 20rpx 15rpx 0;
  605. display: inline-block;
  606. }
  607. }
  608. .wrap-top-price{
  609. float: left;
  610. width: 100%;
  611. box-sizing: border-box;
  612. .wrap-main-item{
  613. width: 100%;
  614. height: 56rpx;
  615. .p-price{
  616. height: 56rpx;
  617. line-height: 56rpx;
  618. float: left;
  619. color: #FF2A2A;
  620. font-weight: bold;
  621. &.none{
  622. text-decoration: line-through;
  623. color: #999999;
  624. font-weight: normal;
  625. }
  626. .txt{
  627. margin:0 2rpx;
  628. }
  629. .txt.sm{
  630. font-size: $font-size-26;
  631. }
  632. .txt.big{
  633. font-size: $font-size-34;
  634. }
  635. }
  636. }
  637. .floor-item-act{
  638. height: 56rpx;
  639. text-align: center;
  640. box-sizing: border-box;
  641. float: left;
  642. padding:10rpx 0;
  643. margin-left: 10rpx;
  644. .floor-tags{
  645. float: right;
  646. height: 36rpx;
  647. border-radius: 4rpx;
  648. background-color: rgba(225, 86, 22, 0.1);
  649. line-height: 36rpx;
  650. color: $color-system;
  651. text-align: center;
  652. display: inline-block;
  653. padding:0 16rpx;
  654. font-size: $font-size-20;
  655. }
  656. }
  657. .floor-item-btn{
  658. float: left;
  659. height: 40rpx;
  660. margin-top: 8rpx;
  661. .btn{
  662. line-height: 40rpx;
  663. padding: 0 20rpx;
  664. height: 40rpx;
  665. background: $btn-confirm;
  666. color: #FFFFFF;
  667. font-size: $font-size-20;
  668. border-radius: 4rpx;
  669. }
  670. }
  671. }
  672. .wrap-info{
  673. float: left;
  674. width: 702rpx;
  675. padding: 24rpx 24rpx 0 24rpx;
  676. border-bottom: 1px solid #F8F8F8;
  677. .info-viewT{
  678. width: 100%;
  679. min-height: 40rpx;
  680. font-size: $font-size-28;
  681. color: $text-color;
  682. line-height: 40rpx;
  683. text-align: left;
  684. &.none{
  685. color: #999999;
  686. }
  687. .info-viewL{
  688. min-width: 350rpx;
  689. float: left;
  690. margin-bottom: 24rpx;
  691. }
  692. .info-viewR{
  693. min-width: 352rpx;
  694. float: left;
  695. margin-bottom: 24rpx;
  696. }
  697. }
  698. .info-viewB{
  699. width: 100%;
  700. height: auto;
  701. }
  702. .info-f{
  703. width: 50%;
  704. float: left;
  705. font-size: $font-size-28;
  706. color: $text-color;
  707. line-height: 40rpx;
  708. margin-bottom: 24rpx;
  709. text-align: left;
  710. }
  711. }
  712. }
  713. .product-seve{
  714. width: 702rpx;
  715. height: 90rpx;
  716. padding: 0 24rpx;
  717. background-color: #FFFFFF;
  718. position: relative;
  719. display: flex;
  720. line-height: 90rpx;
  721. border-bottom: 20rpx solid #F7F7F7;
  722. .title{
  723. line-height: 90rpx;
  724. display: inline-block;
  725. float: left;
  726. font-size: $font-size-28;
  727. color: $text-color;
  728. }
  729. .iconfont{
  730. color: #999999;
  731. margin-right: 20rpx;
  732. font-size: $font-size-26;
  733. }
  734. .text{
  735. font-size: $font-size-26;
  736. color: #999999;
  737. margin-left: 10rpx;
  738. }
  739. }
  740. .product-parameter{
  741. width: 702rpx;
  742. height: 90rpx;
  743. padding: 0 24rpx;
  744. background-color: #FFFFFF;
  745. position: relative;
  746. display: flex;
  747. border-bottom: 20rpx solid #F7F7F7;
  748. .title{
  749. line-height: 90rpx;
  750. display: inline-block;
  751. float: left;
  752. font-size: $font-size-28;
  753. color: $text-color;
  754. }
  755. .name{
  756. float: right;
  757. line-height: 90rpx;
  758. display: inline-block;
  759. float: left;
  760. font-size: $font-size-28;
  761. color: #999999;
  762. float: right;
  763. padding-right: 48rpx;
  764. overflow: hidden;
  765. text-overflow:ellipsis;
  766. white-space: nowrap;
  767. text-align: right;
  768. }
  769. .icon-xiayibu{
  770. line-height: 90rpx;
  771. display: inline-block;
  772. position: absolute;
  773. width: 48rpx;
  774. top: 0;
  775. right: 0;
  776. color: #b2b2b2;
  777. }
  778. }
  779. .product-supplier{
  780. width: 100%;
  781. height: 174rpx;
  782. padding: 30rpx 24rpx;
  783. box-sizing: border-box;
  784. background-color: #FFFFFF;
  785. position: relative;
  786. box-sizing: border-box;
  787. border-bottom: 20rpx solid #F7F7F7;
  788. .logo{
  789. width: 128rpx;
  790. height: 92rpx;
  791. float: left;
  792. border: 1px solid #efefef;
  793. border-radius: 6rpx;
  794. image{
  795. width: 100%;
  796. height: 100%;
  797. display: block;
  798. border-radius: 6rpx;
  799. }
  800. }
  801. .main{
  802. width: 470rpx;
  803. height: 92rpx;
  804. float: left;
  805. margin-left: 20rpx;
  806. .name{
  807. width: 100%;
  808. line-height: 46rpx;
  809. float: left;
  810. font-size: $font-size-28;
  811. color: $text-color;
  812. float: right;
  813. overflow: hidden;
  814. text-overflow:ellipsis;
  815. white-space: nowrap;
  816. text-align: left;
  817. }
  818. .massgs{
  819. width: 100%;
  820. line-height: 46rpx;
  821. float: left;
  822. font-size: $font-size-24;
  823. color: #999999;
  824. .label{
  825. float: left;
  826. }
  827. .p-stars{
  828. float: left;
  829. margin-left: 20rpx;
  830. }
  831. .acount{
  832. float: right;
  833. text{
  834. color: $color-system;
  835. }
  836. }
  837. }
  838. }
  839. .icon-xiayibu{
  840. line-height: 154rpx;
  841. display: inline-block;
  842. position: absolute;
  843. width: 48rpx;
  844. top: 0;
  845. right: 0;
  846. color: #b2b2b2;
  847. }
  848. }
  849. .product-details {
  850. background: #FFFFFF;
  851. border-bottom: 20rpx solid #F7F7F7;
  852. padding: 24rpx;
  853. &.service{
  854. border-bottom: none;
  855. }
  856. &.recommend{
  857. background-color: #F7F7F7;
  858. border-bottom: none;
  859. padding: 0;
  860. .title{
  861. .title-tab{
  862. background-color: #F7F7F7;
  863. color: $text-color;
  864. padding: 0 24rpx;
  865. }
  866. }
  867. }
  868. .title{
  869. width: 100%;
  870. box-sizing: border-box;
  871. // padding: 0 24rpx;
  872. .title-tab{
  873. width: 100%;
  874. height: 100rpx;
  875. background: #fff;
  876. z-index: 10;
  877. font-size: $font-size-30;
  878. text-align: left;
  879. color: $text-color;
  880. line-height: 100rpx;
  881. font-weight: 600;
  882. }
  883. .title-msg{
  884. width: 100%;
  885. height: 236rpx;
  886. padding: 18rpx;
  887. background-color: rgba(225,86,22, 0.1);
  888. color: $color-system;
  889. box-sizing: border-box;
  890. margin-bottom: 30rpx;
  891. .tit{
  892. line-height: 46rpx;
  893. font-size: $font-size-24;
  894. text-align: left;
  895. }
  896. .txt{
  897. line-height: 38rpx;
  898. font-size: $font-size-20;
  899. text-align: justify;
  900. }
  901. }
  902. }
  903. .content{
  904. width: 100%;
  905. min-height: 750rpx;
  906. background-color: #FFFFFF;
  907. }
  908. }
  909. .isLower{
  910. width: 100%;
  911. height: 116rpx;
  912. line-height: 116rpx;
  913. text-align: center;
  914. color: #000000;
  915. font-size: $font-size-32;
  916. font-weight: bold;
  917. }
  918. .bottom-btn{
  919. width: 100%;
  920. height: 110rpx;
  921. position: fixed;
  922. bottom: 0;
  923. left: 0;
  924. background: #FFFFFF;
  925. z-index: 99;
  926. .bottom-le{
  927. width: 302rpx;
  928. height: 86rpx;
  929. padding:12rpx 24rpx;
  930. float: left;
  931. .item-bt{
  932. width: 86rpx;
  933. height: 100%;
  934. margin-right:22rpx;
  935. display: flex;
  936. float: left;
  937. flex-direction: column;
  938. align-items: center;
  939. font-size: $font-size-24;
  940. color: $text-color;
  941. line-height: 34rpx;
  942. position: relative;
  943. .animation-num{
  944. font-size:$font-size-32 ;
  945. color: #FF2A2A;
  946. position: absolute;
  947. top: -12rpx;
  948. right: 4rpx;
  949. font-weight: bold;
  950. }
  951. .animation{
  952. animation: showAmnation 2.2s ease-in-out both;
  953. }
  954. .restion{
  955. animation: hideAmnation 1s ease-in-out both;
  956. }
  957. .icon-num{
  958. position: absolute;
  959. right:-12rpx;
  960. top: -9rpx;
  961. }
  962. .icon-num.goleft{
  963. right: 4rpx;
  964. }
  965. &:last-child{
  966. margin-right: 0;
  967. }
  968. image {
  969. width: 40rpx;
  970. height: 40rpx;
  971. margin-bottom: 8rpx;
  972. }
  973. button.contact-btn{
  974. width: 100%;
  975. height: 100%;
  976. margin: 0;
  977. padding: 0;
  978. display: flex;
  979. flex-direction: column;
  980. align-items: center;
  981. box-sizing: border-box;
  982. font-size: $font-size-24;
  983. text-align: center;
  984. text-decoration: none;
  985. line-height: 34rpx;
  986. border-radius: 0;
  987. -webkit-tap-highlight-color: transparent;
  988. overflow: hidden;
  989. color: $text-color;
  990. background-color:#FFFFFF;
  991. }
  992. }
  993. }
  994. .bottom-ri{
  995. width: 400rpx;
  996. height: 100%;
  997. float: right;
  998. display: flex;
  999. box-sizing: border-box;
  1000. padding: 13rpx 20rpx 13rpx 0;
  1001. .btn{
  1002. flex: 1;
  1003. width: 200rpx;
  1004. line-height: 84rpx;
  1005. text-align: center;
  1006. font-size: $font-size-28;
  1007. color: #FFFFFF;
  1008. }
  1009. .btn-cart{
  1010. background-color: #ffe6dc;
  1011. color: $color-system;
  1012. border-radius: 42rpx 0 0 42rpx;
  1013. }
  1014. .btn-cart.disabled{
  1015. background-color: #E1E1E1;
  1016. }
  1017. .btn-bay{
  1018. background:linear-gradient(to right, #f28f31 0%, #e15616 100%);
  1019. border-radius: 0 42rpx 42rpx 0;
  1020. }
  1021. .btn-bay.disabled{
  1022. background-color: linear-gradient(135deg,rgba(242,143,49,0.5) 0%,rgba(225,86,22,0.5) 100%);;
  1023. }
  1024. }
  1025. }
  1026. .uni-badge--small {
  1027. -webkit-transform: scale(.8);
  1028. -ms-transform: scale(.8);
  1029. transform: scale(.8);
  1030. -webkit-transform-origin: center center;
  1031. -ms-transform-origin: center center;
  1032. transform-origin: center center;
  1033. }
  1034. .uni-badge {
  1035. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  1036. -webkit-box-sizing: border-box;
  1037. box-sizing: border-box;
  1038. font-size: 12px;
  1039. line-height: 1;
  1040. display: inline-block;
  1041. padding: 3px 6px;
  1042. color: #333;
  1043. border-radius: 100px;
  1044. background-color: #f1f1f1;
  1045. }
  1046. .uni-badge-error {
  1047. color: #fff;
  1048. background-color: #dd524d;
  1049. }
  1050. /* 加入购物模态层*/
  1051. @keyframes showPopup {
  1052. 0% {
  1053. opacity: 0;
  1054. }
  1055. 100% {
  1056. opacity: 1;
  1057. }
  1058. }
  1059. @keyframes hidePopup {
  1060. 0% {
  1061. opacity: 1;
  1062. }
  1063. 100% {
  1064. opacity: 0;
  1065. }
  1066. }
  1067. @keyframes showLayer {
  1068. 0% {
  1069. transform: translateY(0);
  1070. }
  1071. 100% {
  1072. transform: translateY(-100%);
  1073. }
  1074. }
  1075. @keyframes hideLayer {
  1076. 0% {
  1077. transform: translateY(-100%);
  1078. }
  1079. 100% {
  1080. transform: translateY(0);
  1081. }
  1082. }
  1083. @keyframes showAmnation {
  1084. 0% {
  1085. top: -12rpx;
  1086. opacity: 0;
  1087. }
  1088. 50% {
  1089. top: -60rpx;
  1090. opacity: 1;
  1091. }
  1092. 100% {
  1093. top: -100rpx;
  1094. opacity: 0;
  1095. }
  1096. }
  1097. @keyframes hideAmnation {
  1098. 0% {
  1099. top: -100rpx;
  1100. opacity: 0;
  1101. }
  1102. 100% {
  1103. top: -12rpx;
  1104. opacity: 0;
  1105. }
  1106. }
  1107. .popup {
  1108. position: fixed;
  1109. top: 0;
  1110. width: 100%;
  1111. height: 100%;
  1112. z-index: 999;
  1113. display: none;
  1114. .mask{
  1115. position: fixed;
  1116. top: 0;
  1117. width: 100%;
  1118. height: 100%;
  1119. z-index: 21;
  1120. background-color: rgba(0, 0, 0, 0.6);
  1121. }
  1122. .layer {
  1123. position: fixed;
  1124. z-index: 22;
  1125. bottom: -294rpx;
  1126. width: 702rpx;
  1127. padding: 24rpx 24rpx 36rpx 24rpx;
  1128. height: 260rpx;
  1129. border-radius: 20rpx 20rpx 0 0;
  1130. background-color: #fff;
  1131. display: flex;
  1132. flex-wrap: wrap;
  1133. align-content: space-between;
  1134. .content {
  1135. width: 100%;
  1136. }
  1137. .btn {
  1138. width: 100%;
  1139. height: 88rpx;
  1140. margin-top: 20rpx;
  1141. .button {
  1142. width: 100%;
  1143. height: 88rpx;
  1144. color: #fff;
  1145. display: flex;
  1146. align-items: center;
  1147. justify-content: center;
  1148. background: $btn-confirm;
  1149. font-size: $font-size-28;
  1150. border-radius: 14rpx;
  1151. }
  1152. }
  1153. }
  1154. &.show {
  1155. display: block;
  1156. .mask{
  1157. animation: showPopup 0.2s linear both;
  1158. }
  1159. .layer {
  1160. animation: showLayer 0.2s linear both;
  1161. }
  1162. }
  1163. &.hide {
  1164. display: block;
  1165. .mask{
  1166. animation: hidePopup 0.2s linear both;
  1167. }
  1168. .layer {
  1169. animation: hideLayer 0.2s linear both;
  1170. }
  1171. }
  1172. &.none {
  1173. display: none;
  1174. }
  1175. &.service {
  1176. .row {
  1177. margin: 30upx 0;
  1178. .title {
  1179. font-size: 30upx;
  1180. margin: 10upx 0;
  1181. }
  1182. .description {
  1183. font-size: 28upx;
  1184. color: #999;
  1185. }
  1186. }
  1187. }
  1188. .layer-smimg{
  1189. width: 114rpx;
  1190. height: 114rpx;
  1191. float: left;
  1192. border-radius: 10rpx;
  1193. margin-right: 24rpx;
  1194. image{
  1195. width: 114rpx;
  1196. height: 114rpx;
  1197. border-radius: 10rpx;
  1198. }
  1199. }
  1200. .layer-nunbox{
  1201. justify-content: space-between;
  1202. align-items: center;
  1203. width: 536rpx;
  1204. height: auto;
  1205. float: left;
  1206. .layer-nunbox-t{
  1207. width: 100%;
  1208. height:44rpx;
  1209. position:relative;
  1210. display: flex;
  1211. margin-bottom: 10rpx;
  1212. .text{
  1213. font-size: $font-size-24;
  1214. line-height: 48rpx;
  1215. color: #999999;
  1216. }
  1217. .layer-nunbox-text{
  1218. line-height: 44rpx;
  1219. font-size: $font-size-28;
  1220. }
  1221. .number-box{
  1222. display: flex;
  1223. justify-content: center;
  1224. align-items: center;
  1225. .iconfont{
  1226. font-size: $font-size-32;
  1227. padding:0 20rpx;
  1228. font-size: $text-color;
  1229. }
  1230. .btn-input{
  1231. width: 62rpx;
  1232. height: 48rpx;
  1233. line-height: 48rpx;
  1234. background: #F8F8F8;
  1235. border-radius: 4rpx;
  1236. text-align: center;
  1237. font-size: $font-size-28;
  1238. }
  1239. }
  1240. .product-step{
  1241. position: absolute;
  1242. left: 45rpx;
  1243. bottom: 0;
  1244. height: 44rpx;
  1245. background: #FFFFFF;
  1246. }
  1247. }
  1248. .layer-nunbox-b{
  1249. width: 100%;
  1250. height:44rpx;
  1251. margin-top: 13rpx;
  1252. }
  1253. .text{
  1254. line-height: 44rpx;
  1255. font-size: $font-size-28;
  1256. .p{
  1257. color: #FF2A2A;
  1258. }
  1259. .p:first-child{
  1260. margin-left: 30rpx;
  1261. }
  1262. .p.sm{
  1263. font-size: $font-size-24;
  1264. }
  1265. }
  1266. }
  1267. }
  1268. .tui-popup-box {
  1269. position: relative;
  1270. box-sizing: border-box;
  1271. min-height: 220rpx;
  1272. padding:0rpx 24rpx 0 24rpx;
  1273. .title{
  1274. font-size: $font-size-34;
  1275. color: $text-color;
  1276. line-height: 88rpx;
  1277. text-align: center;
  1278. float: left;
  1279. width: 100%;
  1280. height: 88rpx;
  1281. }
  1282. .content{
  1283. width: 100%;
  1284. height: auto;
  1285. float: left;
  1286. .content-tr{
  1287. width: 100%;
  1288. height: 58rpx;
  1289. line-height: 58rpx;
  1290. display: flex;
  1291. .content-td{
  1292. display: flex;
  1293. flex: 3;
  1294. font-size: $font-size-26;
  1295. color: #999999;
  1296. line-height: 58rpx;
  1297. text-align: left;
  1298. }
  1299. .content-th{
  1300. display: flex;
  1301. flex: 7;
  1302. font-size: $font-size-26;
  1303. color: #333333;
  1304. line-height: 58rpx;
  1305. text-align: left;
  1306. }
  1307. }
  1308. }
  1309. }
  1310. .tui-popup-btn {
  1311. width: 100%;
  1312. height: auto;
  1313. float: left;
  1314. margin-top: 24rpx;
  1315. .tui-button{
  1316. width: 100%;
  1317. height: 88rpx;
  1318. background: $btn-confirm;
  1319. line-height: 88rpx;
  1320. text-align: center;
  1321. color: #FFFFFF;
  1322. font-size: $font-size-28;
  1323. border-radius: 44rpx;
  1324. }
  1325. }
  1326. /*富文本样式*/
  1327. rich-text.p{
  1328. width: 702rpx !important;
  1329. padding: 0 24rpx;
  1330. text-align: justify;
  1331. }
  1332. rich-text.img{
  1333. width: 100%;
  1334. height: auto;
  1335. }
  1336. .Disclaimer {
  1337. background: rgba(225,86,22,0.1);
  1338. border-radius:20rpx;
  1339. padding:0 20rpx 20rpx 20rpx;
  1340. font-size: 20rpx;
  1341. color: #e15616;
  1342. margin-bottom: 30rpx
  1343. }
  1344. .Disclaimer span {
  1345. display: block;
  1346. padding: 20rpx 0;
  1347. text-align: left;
  1348. font-size: 24rpx;
  1349. }
  1350. .Disclaimer .text {
  1351. line-height:48rpx;
  1352. }
  1353. .brandinfo{
  1354. color: #333333;
  1355. line-height: 46rpx;
  1356. font-size: 26rpx;
  1357. }
  1358. .imgList{
  1359. width: 702rpx;
  1360. margin: auto;
  1361. height: 710rpx;
  1362. margin-bottom: 20rpx;
  1363. }
  1364. .imgList img{
  1365. width: 100%;
  1366. height: 100%;
  1367. }
  1368. .detailsText{
  1369. padding: 0 30rpx 30rpx 30rpx;
  1370. color: #333333;
  1371. font-size: 24rpx;
  1372. text-align: left;
  1373. }
  1374. </style>