product.vue 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732
  1. <template>
  2. <view
  3. class="product "
  4. :style="{
  5. paddingBottom: userIdentity == 1 && userIdentity == 3 ? '0rpx' : '188rpx',
  6. paddingTop: CustomBar + 'px'
  7. }"
  8. >
  9. <custom-p
  10. v-if="isHeaderPoduct"
  11. :systeminfo="systeminfo"
  12. :navbar-data="nvabarData"
  13. :headerBtnPosi="headerBtnPosi"
  14. :headerColor="headerColor"
  15. :type="isShareType"
  16. :page="backPage"
  17. >
  18. </custom-p>
  19. <tui-skeleton
  20. v-if="skeletonShow"
  21. backgroundColor="#fafafa"
  22. borderRadius="10rpx"
  23. :isLoading="true"
  24. :loadingType="5"
  25. ></tui-skeleton>
  26. <template v-else>
  27. <view class="container-product tui-skeleton">
  28. <view class="container-product-main">
  29. <view class="product-top">
  30. <view class="banner-section">
  31. <!-- </view> -->
  32. <uni-swiper-dot :info="productImage" :current="current" field="content" :mode="mode">
  33. <swiper
  34. class="banner tui-banner tui-skeleton-rect"
  35. @change="swiperChange"
  36. :duration="800"
  37. :autoplay="false"
  38. :circular="true"
  39. >
  40. <swiper-item v-for="(item, index) in productImage" :key="index" class="banner-item">
  41. <image :src="item" @click="previewImg(index)" class="product-img" />
  42. </swiper-item>
  43. </swiper>
  44. <view class="swiper__dots-box">
  45. <tui-tag
  46. padding="12rpx 24rpx"
  47. type="translucent"
  48. shape="circleLeft"
  49. size="32rpx"
  50. :scaleMultiple="0.82"
  51. originRight
  52. >
  53. {{ current + 1 }}/{{ productImage && productImage.length }}
  54. </tui-tag>
  55. </view>
  56. </uni-swiper-dot>
  57. </view>
  58. <view class="product-wrap clearfix">
  59. <view class="wrap-top">
  60. <view class="wrap-top-price"> <cm-price v-if="isRequest" :product="product" /> </view>
  61. <view class="p-title tui-skeleton-fillet">
  62. <view class="p-title-name">
  63. {{ product.name == undefined ? '' : product.name }}
  64. </view>
  65. <button open-type="share" class="p-title-share tui-share-position" @tap="onShare">
  66. <view class=""><text class="iconfont icon-fenxiang1"></text></view>
  67. <view class="">分享</view>
  68. </button>
  69. </view>
  70. <view class="wrap-label" v-if="product.tagsList && product.tagsList.length > 0">
  71. <view
  72. class="label-a tui-skeleton-fillet"
  73. v-for="(label, index) in product.tagsList"
  74. :key="index"
  75. >{{ label }}</view
  76. >
  77. </view>
  78. <view class="product-seve" v-if="hasLogin">
  79. <text class="label">采美承诺:</text>
  80. <text class="iconfont icon-dui tui-skeleton-rect"
  81. ><text class="text">无忧退货</text></text
  82. >
  83. <text class="iconfont icon-dui tui-skeleton-rect"
  84. ><text class="text">快速退款</text></text
  85. >
  86. <text class="iconfont icon-dui tui-skeleton-rect"
  87. ><text class="text">正品保证</text></text
  88. >
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <view class="product-item-none" v-if="goodsData.disabled">
  94. <image class="none-image" :src="staticUrl + 'icon_product_none@2x.png'" mode=""></image>
  95. </view>
  96. <!-- 选择规格 -->
  97. <view class="product-parameter" v-if="isShowButton || userIdentity === 1" @click="showPopup(3)">
  98. <text class="title">选择:</text> <text class="name">共{{ skusCount }}种规格可选</text>
  99. <text class="iconfont icon-xiangyou"></text>
  100. </view>
  101. <!-- 参数 -->
  102. <view class="product-parameter" @click="showPopup(0)">
  103. <text class="title">参数:</text> <text class="name">品牌 分类...</text>
  104. <text class="iconfont icon-xiangyou"></text>
  105. </view>
  106. </view>
  107. <!-- 商品详情 -->
  108. <view>
  109. <view class="product-details product-details0">
  110. <view class="title"> <view class="title-tab">商品详情</view> </view>
  111. <view class="content tui-banner product-rich-text tui-skeleton-rect">
  112. <template v-if="product.productDetail.detailInfo">
  113. <mp-html :content="html" :tag-style="tagStyle" />
  114. </template>
  115. <view class="product-rich-text-none" v-else>暂无商品信息</view>
  116. </view>
  117. </view>
  118. </view>
  119. <!-- 底部按钮 -->
  120. <view class="menu">
  121. <view class="bottom-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0rpx' }">
  122. <view class="bottom-le">
  123. <view class="item-bt" @click="this.$api.switchTabTo('/pages/tabBar/home/index')">
  124. <image :src="staticUrl + 'icon_product_home@2x.png'"></image> <text>首页</text>
  125. </view>
  126. <view class="item-bt" @click="handleCollection">
  127. <image
  128. :src="
  129. collectionType
  130. ? staticUrl + 'icon_collection@2x.png'
  131. : staticUrl + 'icon_collection_none@2x.png'
  132. "
  133. ></image>
  134. <text>{{ collectionType ? '已收藏' : '收藏' }}</text>
  135. </view>
  136. <view class="item-bt" @click="buyProductCart">
  137. <image :src="staticUrl + 'icon_product_cart@2x.png'"></image> <text>购物车</text>
  138. <text
  139. v-if="hasLogin && bottomCartNumber > 0"
  140. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  141. :class="[bottomCartNumber < 10 ? 'goleft' : '']"
  142. >
  143. {{ bottomCartNumber >= 100 ? '99+' : bottomCartNumber }}
  144. </text>
  145. <view class="animation-num" :class="isAnimation ? 'animation' : 'restion'">+1</view>
  146. </view>
  147. </view>
  148. <view class="bottom-ri">
  149. <button
  150. :disabled="goodsData.disabled"
  151. class="btn btn-cart"
  152. :class="[goodsData.disabled ? 'disabled' : '']"
  153. @tap.stop="btnGetConfirm('add')"
  154. >
  155. 加入购物车
  156. </button>
  157. <button
  158. :disabled="goodsData.disabled"
  159. class="btn btn-bay"
  160. :class="[goodsData.disabled ? 'disabled' : '']"
  161. @tap.stop="btnGetConfirm('buy')"
  162. >
  163. 立即购买
  164. </button>
  165. </view>
  166. </view>
  167. </view>
  168. <!-- 侧边 -->
  169. <scroll-top :isScrollTop="isScrollTop" :bottom="200"></scroll-top>
  170. </view>
  171. </template>
  172. <!-- 商品参数 -->
  173. <cm-prams-popup v-if="popupShow0" :popupShow="popupShow0" :product="product"></cm-prams-popup>
  174. <!-- 选择规格弹窗 -->
  175. <cm-unit-popup
  176. v-if="popupShow3"
  177. :popupShow="popupShow3"
  178. :skuProduct="skuProduct"
  179. :productCoupon="productCoupon"
  180. :type="unitPopupType"
  181. :btnType="btnType"
  182. :goodsData="goodsData"
  183. @buyConfirm="handleBuyConfirm"
  184. @skuClick="handleSkuClick"
  185. ></cm-unit-popup>
  186. <!-- 弹窗提示 -->
  187. <tui-modal
  188. :show="modal"
  189. @click="handleClick"
  190. @cancel="hideMobel"
  191. :content="contentModalText"
  192. :button="modalButton"
  193. color="#333"
  194. :size="32"
  195. shape="circle"
  196. :maskClosable="false"
  197. >
  198. </tui-modal>
  199. </view>
  200. </template>
  201. <script>
  202. import { mapState, mapMutations } from 'vuex'
  203. import customP from './components/cm-header.vue' //自定义导航
  204. import cmPrice from './components/cm-price.vue' //价格显示
  205. import cmPramsPopup from './components/cm-prams-popup.vue'
  206. import cmUnitPopup from './components/cm-unit-popup.vue'
  207. import authorize from '@/common/config/authorize.js'
  208. import wxLogin from '@/common/config/wxLogin.js'
  209. import proMixins from './mixins/proMixins.js'
  210. var isPreviewImg
  211. export default {
  212. mixins: [proMixins],
  213. components: {
  214. customP,
  215. cmPrice,
  216. cmPramsPopup,
  217. cmUnitPopup
  218. },
  219. data() {
  220. return {
  221. staticUrl:this.global.staticUrl,
  222. html: '',
  223. mode: 'round',
  224. iconClass: 'icon-aixin',
  225. iconColor: '#ff9100',
  226. specClass: '', // 规格弹窗css类,控制开关动画
  227. isRequest: false,
  228. isScrollTop: false,
  229. current: 0,
  230. isShareType: '',
  231. isHeaderPoduct: false,
  232. navbarFiexd: 'none',
  233. isEvaluate: false,
  234. isAnimation: false,
  235. skeletonShow: true,
  236. disabled: false,
  237. userId: 0,
  238. productId: 0,
  239. skusCount: 0, // 规格种类
  240. userIdentity: 0, // 用户类型
  241. goodsData: {}, // 自定义数据
  242. product: {}, //采美
  243. productImage: [],
  244. number: 0,
  245. headerBtnPosi: this.setHeaderBtnPosi(), // 获取设备顶部胶囊高度
  246. systeminfo: this.setSysteminfo(), // 获取设备信息
  247. windowHeight: '',
  248. headerColor: false,
  249. backPage: 1,
  250. nvabarData: {
  251. // 顶部自定义导航
  252. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示
  253. title: '商品详情' // 导航栏 中间的标题
  254. },
  255. CustomBar: this.CustomBar, // 顶部导航栏高度
  256. popupShow0: false, // 参数弹窗
  257. popupShow3: false, // 购买弹窗
  258. winHeight: '',
  259. currentTab: 0,
  260. bottomCartNumber: 0,
  261. isPreviewImage: false,
  262. opentype: '',
  263. collectionType: false,
  264. contentModalText: '', //操作文字提示语句
  265. modal: false,
  266. modalButton: [
  267. {
  268. text: '取消',
  269. type: 'gray',
  270. plain: true //是否空心
  271. },
  272. {
  273. text: '去升级',
  274. customStyle: {
  275. color: '#fff',
  276. bgColor: 'linear-gradient(90deg, #F28F31 0%, #F3B574 100%)'
  277. },
  278. plain: false
  279. }
  280. ],
  281. showModal: false,
  282. unitPopupType: 0 // 选择类型 1 点击加入购物车 立即购买 2:点击规格选择
  283. }
  284. },
  285. computed: {
  286. ...mapState(['hasLogin', 'clubType', 'identity', 'isIphoneX'])
  287. },
  288. filters: {},
  289. onLoad(option) {
  290. this.productId = this.addParams.productId = option.id //获取商品ID
  291. this.opentype = option.open
  292. this.isShareType = option.type
  293. this.isHeaderPoduct = true
  294. if (option.page == 2) {
  295. this.backPage = option.page
  296. }
  297. this.getWinHeight()
  298. },
  299. onReady() {
  300. if (this.opentype == 'caimei') {
  301. // 跳转到资料详情
  302. uni.showLoading({
  303. title: '加载中'
  304. })
  305. }
  306. console.log('是iPhoneX', this.isIphoneX)
  307. },
  308. methods: {
  309. async initGetStotage() {
  310. // 初始化
  311. const userInfo = await this.$api.getStorage()
  312. this.userId = this.addParams.userId = userInfo.userId ? userInfo.userId : 0
  313. this.userIdentity = userInfo.userIdentity ? userInfo.userIdentity : 0
  314. if (isPreviewImg) {
  315. isPreviewImg = false
  316. return
  317. } else {
  318. this.initData()
  319. }
  320. },
  321. initData() {
  322. // 初始化商品详情查询
  323. this.ProductService.QueryProductDetils({
  324. userId: this.userId,
  325. productId: this.productId,
  326. identity: this.identity,
  327. typeId: 0
  328. })
  329. .then(response => {
  330. this.productImage = []
  331. const dataStr = JSON.stringify(response.data)
  332. this.product = JSON.parse(dataStr)
  333. this.skuProduct = JSON.parse(dataStr)
  334. this.skusCount = this.product.skus.length
  335. this.addParams.skuId = this.product.skuId
  336. // 判断是否显示已收藏
  337. if (this.product.userLike && this.product.userLike == 1) {
  338. this.collectionType = true
  339. } else {
  340. this.collectionType = false
  341. }
  342. this.html = this.adaptRichTextImg(this.product)
  343. //处理商品图片列表
  344. this.product.imageList.forEach(item => {
  345. this.productImage.push(item.image)
  346. })
  347. //处理下架商品和售罄商品
  348. if (this.product.validFlag == 3) {
  349. this.goodsData.disabledText = '下架'
  350. this.goodsData.disabled = true
  351. }
  352. if ((this.hasLogin && this.userIdentity == 2) || this.userIdentity == 4) {
  353. this.ProductCartNumber()
  354. }
  355. setTimeout(() => {
  356. this.skeletonShow = false
  357. this.isRequest = true
  358. }, 1000)
  359. })
  360. .catch(error => {
  361. this.$util.msg(error.msg, 2000)
  362. })
  363. },
  364. adaptRichTextImg(product) {
  365. // 商品详情
  366. let defaulHtml = '<div style="text-align: center;color:#333333;">暂无内容</div>'
  367. let html = ''
  368. if (product.productDetailChose == 1) {
  369. // 同资质机构显示商品详情
  370. html = product.productDetail ? this.$api.adaptRichTextImg(product.productDetail.detailInfo) : defaulHtml
  371. } else {
  372. if (this.hasLogin && this.userIdentity != 4) {
  373. html = product.productDetail
  374. ? this.$api.adaptRichTextImg(product.productDetail.detailInfo)
  375. : defaulHtml
  376. } else {
  377. if (product.productDetail.commonDetailInfo) {
  378. html = product.productDetail
  379. ? this.$api.adaptRichTextImg(product.productDetail.commonDetailInfo)
  380. : defaulHtml
  381. } else {
  382. html = defaulHtml
  383. }
  384. }
  385. }
  386. return html
  387. },
  388. handleCollection() {
  389. // 收藏
  390. if (this.hasLogin) {
  391. this.ProductService.getProductUserLike({
  392. userId: this.userId,
  393. productId: this.product.productId
  394. })
  395. .then(response => {
  396. this.collectionType = !this.collectionType
  397. this.$util.msg(response.data, 1500, true, 'success')
  398. })
  399. .catch(error => {
  400. this.$util.msg(error.msg, 2000)
  401. })
  402. } else {
  403. this.$api.navigateTo('/pages/login/login')
  404. }
  405. },
  406. showPopup(index) {
  407. switch (index) {
  408. case 0:
  409. this.popupShow0 = true
  410. break
  411. case 3:
  412. this.popupShow3 = true
  413. this.unitPopupType = 2
  414. break
  415. }
  416. },
  417. hidePopup(index) {
  418. switch (index) {
  419. case 0:
  420. this.popupShow0 = false
  421. break
  422. case 3:
  423. this.popupShow3 = false
  424. break
  425. }
  426. },
  427. ProductCartNumber() {
  428. // 获取用户购物车储量
  429. this.ProductService.ProductCartNumber({ userId: this.userId })
  430. .then(response => {
  431. this.bottomCartNumber = response.data
  432. })
  433. .catch(error => {
  434. console.log('获取购物车数量失败')
  435. })
  436. },
  437. hideMobel() {
  438. this.modal = false
  439. },
  440. handleClick(e) {
  441. //个人机构跳转升级页面
  442. if (e.index == 1) {
  443. this.$api.navigateTo('/pages/login/apply')
  444. }
  445. this.modal = false
  446. },
  447. swiperChange(e) {
  448. //顶部商品图片切换
  449. const index = e.detail.current
  450. this.current = index
  451. },
  452. previewImg1(url) {
  453. let mentuzArray = []
  454. mentuzArray.push(url)
  455. uni.previewImage({
  456. urls: mentuzArray,
  457. current: 0
  458. })
  459. },
  460. previewImg(index) {
  461. //顶部商品图片预览
  462. isPreviewImg = true
  463. let previewUrls = this.productImage
  464. uni.previewImage({
  465. current: index, //图片索引
  466. urls: previewUrls, //必须是http图片,本地图片无效
  467. longPressActions: ''
  468. })
  469. },
  470. handleContact(e) {
  471. //跳转小程序客服
  472. console.log(e.detail.path)
  473. console.log(e.detail.query)
  474. },
  475. buyProductCart() {
  476. //底部购物车按钮点击
  477. if (this.hasLogin) {
  478. this.$api.navigateTo('/pages/goods/cart')
  479. } else {
  480. this.$api.navigateTo('/pages/login/login?type=1')
  481. }
  482. },
  483. btnGetConfirm(type) {
  484. //加入购物车&&立即购买点击
  485. if (this.hasLogin) {
  486. this.btnType = type
  487. this.popupShow3 = true
  488. this.unitPopupType = 1
  489. } else {
  490. this.$api.navigateTo('/pages/login/login?type=1')
  491. }
  492. },
  493. setHeaderBtnPosi() {
  494. // 获得胶囊按钮位置信息
  495. let headerBtnPosi = uni.getMenuButtonBoundingClientRect()
  496. return headerBtnPosi
  497. },
  498. setSysteminfo() {
  499. let systeminfo
  500. uni.getSystemInfo({
  501. // 获取设备信息
  502. success: res => {
  503. systeminfo = res
  504. }
  505. })
  506. return systeminfo
  507. },
  508. goIndex() {
  509. //商城首页
  510. uni.switchTab({
  511. url: '/pages/tabBar/home/index'
  512. })
  513. },
  514. discard() {
  515. //丢弃
  516. },
  517. onShare(res) {
  518. //分享转发
  519. if (res.from === 'button') {
  520. // 来自页面内转发按钮
  521. }
  522. return {
  523. title: `${this.product.name}`,
  524. path: `pages/goods/product?type=share&id=${this.productId}`,
  525. imageUrl: `${this.productImage[0]}`
  526. }
  527. },
  528. getWinHeight() {
  529. this.winHeight = wx.getSystemInfoSync().windowHeight
  530. }
  531. },
  532. onPageScroll(e) {
  533. //实时获取到滚动的值
  534. const { scrollTop } = e
  535. if (e.scrollTop > 60) {
  536. this.headerColor = true
  537. this.navbarFiexd = 'fixed'
  538. this.nvabarData = {
  539. showCapsule: 1,
  540. title: '商品详情'
  541. }
  542. } else {
  543. this.headerColor = false
  544. this.navbarFiexd = 'none'
  545. this.nvabarData = {
  546. showCapsule: 1,
  547. title: '商品详情'
  548. }
  549. }
  550. if (e.scrollTop > 700) {
  551. this.isScrollTop = true
  552. } else {
  553. this.isScrollTop = false
  554. }
  555. },
  556. onShareAppMessage(res) {
  557. //分享转发
  558. if (res.from === 'button') {
  559. // 来自页面内转发按钮
  560. }
  561. return {
  562. title: `${this.product.name}`,
  563. path: `pages/goods/product?type=share&id=${this.productId}`,
  564. imageUrl: `${this.productImage[0]}`
  565. }
  566. },
  567. onShow() {
  568. wxLogin.wxLoginAuthorize()
  569. // 是否开启图片预览 true 不刷新调用接口 false刷新调用接口
  570. if (!this.isPreviewImage) {
  571. this.initGetStotage()
  572. }
  573. this.isPreviewImage = false
  574. }
  575. }
  576. </script>
  577. <style lang="scss">
  578. page {
  579. background-color: #ffffff;
  580. }
  581. .banner-section {
  582. width: 100%;
  583. height: 750rpx;
  584. position: relative;
  585. }
  586. .banner {
  587. width: 100%;
  588. height: 750rpx;
  589. .product-img {
  590. width: 750rpx;
  591. }
  592. image {
  593. width: 100%;
  594. height: 100%;
  595. }
  596. .banner-item {
  597. position: relative;
  598. }
  599. }
  600. .swiper__dots-box {
  601. position: absolute;
  602. color: #fff;
  603. bottom: 30rpx;
  604. right: 0;
  605. }
  606. .product-wrap {
  607. width: 100%;
  608. height: auto;
  609. padding: 24rpx 0 0 0;
  610. background-color: #ffffff;
  611. border-bottom: 20rpx solid #f7f7f7;
  612. .wrap-top {
  613. width: 702rpx;
  614. padding: 0 24rpx;
  615. height: auto;
  616. float: left;
  617. padding-bottom: 20rpx;
  618. border-bottom: 1px solid #f8f8f8;
  619. &.none {
  620. .p-title {
  621. color: #999999;
  622. }
  623. }
  624. .p-title {
  625. width: 100%;
  626. height: auto;
  627. float: left;
  628. position: relative;
  629. .p-title-name {
  630. width: 602rpx;
  631. height: auto;
  632. float: left;
  633. line-height: 48rpx;
  634. font-size: $font-size-28;
  635. color: $text-color;
  636. -o-text-overflow: ellipsis;
  637. text-overflow: ellipsis;
  638. display: -webkit-box;
  639. word-break: break-all;
  640. -webkit-box-orient: vertical;
  641. -webkit-line-clamp: 2;
  642. overflow: hidden;
  643. &.indent {
  644. text-indent: 95rpx;
  645. }
  646. }
  647. .p-title-share {
  648. width: 96rpx;
  649. height: 96rpx;
  650. position: absolute;
  651. right: 0;
  652. text-align: center;
  653. color: #999999;
  654. font-size: $font-size-24;
  655. box-sizing: border-box;
  656. display: block;
  657. background: transparent;
  658. border-radius: 0;
  659. border: 0;
  660. margin: 0;
  661. padding: 8rpx 0;
  662. z-index: 20;
  663. .icon-fenxiang1 {
  664. font-size: $font-size-34;
  665. }
  666. }
  667. .tui-share-btn::after {
  668. border: 0;
  669. }
  670. }
  671. .wrap-main-text {
  672. line-height: 56rpx;
  673. color: #ff2a2a;
  674. font-size: $font-size-26;
  675. display: block;
  676. float: left;
  677. font-weight: normal;
  678. }
  679. .wrap-main-none {
  680. display: block;
  681. width: 256rpx;
  682. height: 44rpx;
  683. padding-left: 20rpx;
  684. border-radius: 11rpx;
  685. background: $btn-confirm;
  686. float: right;
  687. line-height: 44rpx;
  688. color: #ffffff;
  689. text-align: center;
  690. font-size: $font-size-24;
  691. }
  692. .p-price-none {
  693. height: 44rpx;
  694. line-height: 44rpx;
  695. float: left;
  696. font-size: $font-size-24;
  697. color: #666;
  698. text-decoration: line-through;
  699. margin-left: 8rpx;
  700. }
  701. .p-minBuy {
  702. height: 44rpx;
  703. line-height: 44rpx;
  704. float: right;
  705. padding: 0 18rpx;
  706. border-radius: 22rpx;
  707. background-color: #f7f7f7;
  708. color: #7f7f7f;
  709. font-size: 24rpx;
  710. text-align: center;
  711. .min-text {
  712. margin: 0 6rpx;
  713. }
  714. }
  715. .p-login {
  716. height: 56rpx;
  717. line-height: 56rpx;
  718. color: $color-system;
  719. font-size: $font-size-24;
  720. &.grade {
  721. .price-left {
  722. float: left;
  723. .none {
  724. display: block;
  725. font-size: $font-size-20;
  726. line-height: 48rpx;
  727. color: #4a4b54;
  728. float: left;
  729. font-weight: bold;
  730. margin-left: 5rpx;
  731. text {
  732. letter-spacing: 4rpx;
  733. font-size: $font-size-32;
  734. }
  735. }
  736. }
  737. }
  738. .p-no {
  739. float: left;
  740. margin-right: 5rpx;
  741. font-size: $font-size-28;
  742. color: $text-color;
  743. }
  744. .p-login-btn {
  745. display: block;
  746. height: 44rpx;
  747. padding: 0 10rpx 0 20rpx;
  748. border-radius: 11rpx;
  749. background: $btn-confirm;
  750. float: right;
  751. line-height: 44rpx;
  752. color: #ffffff;
  753. text-align: center;
  754. font-size: $font-size-24;
  755. }
  756. }
  757. }
  758. .wrap-label {
  759. float: left;
  760. width: 85%;
  761. box-sizing: border-box;
  762. .label-a {
  763. padding: 0 18rpx;
  764. line-height: 32rpx;
  765. font-size: $font-size-20;
  766. color: $color-system;
  767. text-align: center;
  768. border-radius: 6rpx;
  769. background: #fff8ef;
  770. margin: 0 20rpx 15rpx 0;
  771. display: inline-block;
  772. }
  773. }
  774. .wrap-top-price {
  775. float: left;
  776. width: 100%;
  777. box-sizing: border-box;
  778. .wrap-main-item {
  779. width: 100%;
  780. height: 56rpx;
  781. .p-price {
  782. height: 56rpx;
  783. line-height: 56rpx;
  784. float: left;
  785. color: #ff2a2a;
  786. font-weight: bold;
  787. &.none {
  788. text-decoration: line-through;
  789. color: #999999;
  790. font-weight: normal;
  791. }
  792. .txt {
  793. margin: 0 2rpx;
  794. }
  795. .txt.sm {
  796. font-size: $font-size-26;
  797. }
  798. .txt.big {
  799. font-size: $font-size-34;
  800. }
  801. }
  802. }
  803. .floor-item-btn {
  804. float: right;
  805. height: 40rpx;
  806. margin-top: 8rpx;
  807. margin-left: 10rpx;
  808. .btn {
  809. line-height: 40rpx;
  810. padding: 0 20rpx;
  811. height: 40rpx;
  812. background: $btn-confirm;
  813. color: #ffffff;
  814. font-size: $font-size-20;
  815. border-radius: 4rpx;
  816. }
  817. }
  818. }
  819. .wrap-info {
  820. float: left;
  821. width: 702rpx;
  822. padding: 24rpx 24rpx 0 24rpx;
  823. border-bottom: 1px solid #f8f8f8;
  824. .info-viewT {
  825. width: 100%;
  826. min-height: 40rpx;
  827. font-size: $font-size-28;
  828. color: $text-color;
  829. line-height: 40rpx;
  830. text-align: left;
  831. &.none {
  832. color: #999999;
  833. }
  834. .info-viewL {
  835. min-width: 350rpx;
  836. float: left;
  837. margin-bottom: 24rpx;
  838. }
  839. .info-viewR {
  840. min-width: 352rpx;
  841. float: left;
  842. margin-bottom: 24rpx;
  843. }
  844. }
  845. .info-viewB {
  846. width: 100%;
  847. height: auto;
  848. }
  849. .info-f {
  850. width: 50%;
  851. float: left;
  852. font-size: $font-size-28;
  853. color: $text-color;
  854. line-height: 40rpx;
  855. margin-bottom: 24rpx;
  856. text-align: left;
  857. }
  858. }
  859. }
  860. .product-seve {
  861. width: 100%;
  862. height: 60rpx;
  863. background-color: #ffffff;
  864. position: relative;
  865. display: flex;
  866. line-height: 60rpx;
  867. .label {
  868. font-size: $font-size-28;
  869. color: #333333;
  870. }
  871. .iconfont {
  872. color: #f3b574;
  873. margin-right: 20rpx;
  874. font-size: $font-size-22;
  875. }
  876. .text {
  877. font-size: $font-size-22;
  878. color: #f3b574;
  879. margin-left: 10rpx;
  880. }
  881. }
  882. .product-item-none {
  883. min-height: 348rpx;
  884. display: flex;
  885. flex-direction: column;
  886. align-items: center;
  887. border-bottom: 20rpx solid #f7f7f7;
  888. box-sizing: border-box;
  889. padding: 40rpx 0;
  890. .none-image {
  891. width: 386rpx;
  892. height: 286rpx;
  893. }
  894. }
  895. .product-supporting {
  896. width: 100%;
  897. height: 274rpx;
  898. box-sizing: border-box;
  899. padding: 30rpx 24rpx;
  900. background-color: #ffffff;
  901. border-bottom: 20rpx solid #f7f7f7;
  902. .product-supporting-title {
  903. width: 100%;
  904. height: 40rpx;
  905. text-align: left;
  906. line-height: 40rpx;
  907. font-size: $font-size-28;
  908. color: #333333;
  909. }
  910. .product-supporting-list {
  911. width: 100%;
  912. height: 154rpx;
  913. box-sizing: border-box;
  914. padding: 13rpx 0;
  915. position: relative;
  916. .icon-xiangyou {
  917. line-height: 154rpx;
  918. display: inline-block;
  919. position: absolute;
  920. width: 80rpx;
  921. top: 0;
  922. right: 0;
  923. color: #b2b2b2;
  924. text-align: right;
  925. }
  926. .list {
  927. width: 128rpx;
  928. height: 128rpx;
  929. margin-right: 24rpx;
  930. float: left;
  931. border: 1px solid #e1e1e1;
  932. border-radius: 8rpx;
  933. .list-image {
  934. width: 100%;
  935. height: 100%;
  936. display: block;
  937. border-radius: 8rpx;
  938. }
  939. }
  940. }
  941. }
  942. .product-parameter {
  943. width: 702rpx;
  944. height: 90rpx;
  945. padding: 0 24rpx;
  946. background-color: #ffffff;
  947. position: relative;
  948. border-bottom: 20rpx solid #f7f7f7;
  949. &.coupon {
  950. .title {
  951. color: #f94b4b;
  952. }
  953. .icon-xiangyou {
  954. color: #f94b4b;
  955. }
  956. .coupon {
  957. float: right;
  958. box-sizing: border-box;
  959. padding: 29rpx 0;
  960. padding-right: 35rpx;
  961. .tags {
  962. height: 32rpx;
  963. box-sizing: border-box;
  964. border-radius: 8rpx;
  965. background-color: #fff1eb;
  966. line-height: 28rpx;
  967. color: #f94b4b;
  968. text-align: center;
  969. display: inline-block;
  970. padding: 0 10rpx;
  971. font-size: $font-size-20;
  972. border: 1px solid #f94b4b;
  973. float: right;
  974. margin: 0 6rpx;
  975. }
  976. }
  977. }
  978. .title {
  979. line-height: 90rpx;
  980. display: inline-block;
  981. float: left;
  982. font-size: $font-size-28;
  983. color: #666666;
  984. }
  985. .name {
  986. line-height: 90rpx;
  987. display: inline-block;
  988. float: left;
  989. font-size: $font-size-28;
  990. color: $text-color;
  991. padding-right: 48rpx;
  992. overflow: hidden;
  993. text-overflow: ellipsis;
  994. white-space: nowrap;
  995. text-align: right;
  996. }
  997. .icon-xiangyou {
  998. line-height: 90rpx;
  999. display: inline-block;
  1000. position: absolute;
  1001. width: 48rpx;
  1002. top: 0;
  1003. right: 0;
  1004. color: #b2b2b2;
  1005. }
  1006. }
  1007. .product-details {
  1008. width: 100%;
  1009. background: #ffffff;
  1010. border-bottom: 20rpx solid #f7f7f7;
  1011. &.recommend {
  1012. background-color: #f7f7f7;
  1013. border-bottom: none;
  1014. .title {
  1015. .title-tab {
  1016. background-color: #f7f7f7;
  1017. color: $text-color;
  1018. }
  1019. }
  1020. }
  1021. .product-details-image {
  1022. width: 100%;
  1023. min-height: 856rpx;
  1024. box-sizing: border-box;
  1025. padding: 0 24rpx;
  1026. .product-details-table {
  1027. width: 100%;
  1028. min-height: 160rpx;
  1029. border: 1px solid #e1e1e1;
  1030. border-radius: 10rpx;
  1031. .ladder-tr {
  1032. display: flex;
  1033. width: 100%;
  1034. justify-content: center;
  1035. height: 80rpx;
  1036. align-items: center;
  1037. border-bottom: 1px solid #e1e1e1;
  1038. &:last-child {
  1039. border-bottom: none;
  1040. }
  1041. .ladder-item-td {
  1042. height: 80rpx;
  1043. justify-content: center;
  1044. text-align: center;
  1045. box-sizing: border-box;
  1046. padding: 10rpx;
  1047. float: left;
  1048. .te-text {
  1049. line-height: 28rpx;
  1050. font-size: $font-size-24;
  1051. text-overflow: ellipsis;
  1052. display: -webkit-box;
  1053. word-break: break-all;
  1054. -webkit-box-orient: vertical;
  1055. -webkit-line-clamp: 2;
  1056. overflow: hidden;
  1057. color: #999999;
  1058. &.last {
  1059. width: 60%;
  1060. float: left;
  1061. }
  1062. }
  1063. .te-copy {
  1064. width: 40%;
  1065. float: right;
  1066. font-size: $font-size-24;
  1067. padding-top: 10rpx;
  1068. .clipboard {
  1069. width: 84rpx;
  1070. height: 36rpx;
  1071. background: #4688fa;
  1072. text-align: center;
  1073. font-size: $font-size-24;
  1074. color: #ffffff;
  1075. border-radius: 18rpx;
  1076. line-height: 36rpx;
  1077. display: inline-block;
  1078. }
  1079. }
  1080. &.th {
  1081. display: flex;
  1082. height: 80rpx;
  1083. align-items: center;
  1084. line-height: 80rpx;
  1085. font-size: 26rpx;
  1086. color: #666;
  1087. }
  1088. &:nth-child(1) {
  1089. width: 25%;
  1090. border-right: 1px solid #e1e1e1;
  1091. }
  1092. &:nth-child(2) {
  1093. width: 35%;
  1094. border-right: 1px solid #e1e1e1;
  1095. }
  1096. &:nth-child(3) {
  1097. width: 40%;
  1098. }
  1099. }
  1100. }
  1101. }
  1102. .qualificationImg-image {
  1103. width: 100%;
  1104. height: 856rpx;
  1105. display: block;
  1106. }
  1107. }
  1108. .product-rich-text-none {
  1109. box-sizing: border-box;
  1110. padding: 0 24rpx;
  1111. text-align: left;
  1112. font-size: 24rpx;
  1113. color: #999999;
  1114. line-height: 60rpx;
  1115. &.bold {
  1116. font-weight: bold;
  1117. color: #333333;
  1118. }
  1119. }
  1120. .content-none {
  1121. width: 100%;
  1122. height: 80rpx;
  1123. line-height: 80rpx;
  1124. text-align: left;
  1125. font-size: $font-size-26;
  1126. color: #999999;
  1127. box-sizing: border-box;
  1128. padding: 0 24rpx;
  1129. }
  1130. .title {
  1131. width: 100%;
  1132. box-sizing: border-box;
  1133. padding: 0 24rpx;
  1134. .title-tab {
  1135. width: 100%;
  1136. height: 100rpx;
  1137. background: #fff;
  1138. z-index: 10;
  1139. font-size: $font-size-30;
  1140. text-align: left;
  1141. color: $text-color;
  1142. line-height: 100rpx;
  1143. font-weight: 600;
  1144. }
  1145. .title-msg {
  1146. width: 100%;
  1147. height: 236rpx;
  1148. padding: 18rpx;
  1149. background-color: rgba(225, 86, 22, 0.1);
  1150. color: $color-system;
  1151. box-sizing: border-box;
  1152. margin-bottom: 30rpx;
  1153. .tit {
  1154. line-height: 46rpx;
  1155. font-size: $font-size-24;
  1156. text-align: left;
  1157. }
  1158. .txt {
  1159. line-height: 38rpx;
  1160. font-size: $font-size-20;
  1161. text-align: justify;
  1162. }
  1163. }
  1164. }
  1165. .content {
  1166. width: 100%;
  1167. background-color: #ffffff;
  1168. }
  1169. }
  1170. .isLower {
  1171. width: 100%;
  1172. height: 116rpx;
  1173. line-height: 116rpx;
  1174. text-align: center;
  1175. color: #000000;
  1176. font-size: $font-size-32;
  1177. font-weight: bold;
  1178. }
  1179. .bottom-btn {
  1180. width: 100%;
  1181. height: 100rpx;
  1182. position: fixed;
  1183. bottom: 0;
  1184. left: 0;
  1185. background: #ffffff;
  1186. z-index: 99;
  1187. .bottom-le {
  1188. width: 300rpx;
  1189. height: 100rpx;
  1190. padding: 10rpx 20rpx 10rpx 0;
  1191. float: left;
  1192. box-sizing: border-box;
  1193. .item-bt {
  1194. width: 80rpx;
  1195. height: 100%;
  1196. margin-right: 15rpx;
  1197. display: flex;
  1198. float: left;
  1199. flex-direction: column;
  1200. align-items: center;
  1201. justify-content: center;
  1202. font-size: $font-size-22;
  1203. color: $text-color;
  1204. line-height: 34rpx;
  1205. position: relative;
  1206. .animation-num {
  1207. font-size: $font-size-32;
  1208. color: #ff2a2a;
  1209. position: absolute;
  1210. top: -12rpx;
  1211. right: 4rpx;
  1212. font-weight: bold;
  1213. }
  1214. .animation {
  1215. animation: showAmnation 2.2s ease-in-out both;
  1216. }
  1217. .restion {
  1218. animation: hideAmnation 1s ease-in-out both;
  1219. }
  1220. .icon-num {
  1221. position: absolute;
  1222. right: -12rpx;
  1223. top: -5rpx;
  1224. }
  1225. .icon-num.goleft {
  1226. right: 2rpx;
  1227. }
  1228. &:last-child {
  1229. margin-right: 0;
  1230. }
  1231. image {
  1232. width: 44rpx;
  1233. height: 44rpx;
  1234. }
  1235. button.contact-btn {
  1236. width: 100%;
  1237. height: 100%;
  1238. margin: 0;
  1239. padding: 0;
  1240. display: flex;
  1241. flex-direction: column;
  1242. align-items: center;
  1243. justify-content: center;
  1244. box-sizing: border-box;
  1245. font-size: $font-size-24;
  1246. text-align: center;
  1247. text-decoration: none;
  1248. line-height: 34rpx;
  1249. border-radius: 0;
  1250. -webkit-tap-highlight-color: transparent;
  1251. overflow: hidden;
  1252. color: $text-color;
  1253. background-color: #ffffff;
  1254. }
  1255. }
  1256. }
  1257. .bottom-ri {
  1258. width: 450rpx;
  1259. height: 100%;
  1260. float: right;
  1261. display: flex;
  1262. box-sizing: border-box;
  1263. padding: 13rpx 20rpx 13rpx 0;
  1264. .btn {
  1265. flex: 1;
  1266. width: 200rpx;
  1267. line-height: 80rpx;
  1268. text-align: center;
  1269. font-size: $font-size-24;
  1270. color: #ffffff;
  1271. }
  1272. .btn-cart {
  1273. background-color: #fff4e6;
  1274. color: $color-system;
  1275. border-radius: 42rpx 0 0 42rpx;
  1276. }
  1277. .btn-cart.disabled {
  1278. background: rgba(255, 244, 230, 0.5);
  1279. color: #ffffff;
  1280. }
  1281. .btn-bay {
  1282. background: #f3b574;
  1283. border-radius: 0 42rpx 42rpx 0;
  1284. }
  1285. .btn-bay.disabled {
  1286. background: rgba(243, 181, 116, 0.5);
  1287. }
  1288. }
  1289. }
  1290. .uni-badge--small {
  1291. -webkit-transform: scale(0.8);
  1292. -ms-transform: scale(0.8);
  1293. transform: scale(0.8);
  1294. -webkit-transform-origin: center center;
  1295. -ms-transform-origin: center center;
  1296. transform-origin: center center;
  1297. }
  1298. .uni-badge {
  1299. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  1300. -webkit-box-sizing: border-box;
  1301. box-sizing: border-box;
  1302. font-size: 12px;
  1303. line-height: 1;
  1304. display: inline-block;
  1305. padding: 3px 6px;
  1306. color: #333;
  1307. border-radius: 100px;
  1308. background-color: #f1f1f1;
  1309. }
  1310. .uni-badge-error {
  1311. color: #fff;
  1312. background-color: #dd524d;
  1313. }
  1314. @keyframes showFixedColor {
  1315. 0% {
  1316. background: rgba(255, 255, 255, 0);
  1317. }
  1318. 50% {
  1319. background: rgba(255, 255, 255, 0.5);
  1320. }
  1321. 100% {
  1322. background: rgba(255, 255, 255, 1);
  1323. }
  1324. }
  1325. @keyframes hideFixedColor {
  1326. 0% {
  1327. background: rgba(255, 255, 255, 1);
  1328. }
  1329. 50% {
  1330. background: rgba(255, 255, 255, 0.5);
  1331. }
  1332. 100% {
  1333. background: rgba(255, 255, 255, 0);
  1334. }
  1335. }
  1336. /* 加入购物模态层*/
  1337. @keyframes showPopup {
  1338. 0% {
  1339. opacity: 0;
  1340. }
  1341. 100% {
  1342. opacity: 1;
  1343. }
  1344. }
  1345. @keyframes hidePopup {
  1346. 0% {
  1347. opacity: 1;
  1348. }
  1349. 100% {
  1350. opacity: 0;
  1351. }
  1352. }
  1353. @keyframes showLayer {
  1354. 0% {
  1355. transform: translateY(0);
  1356. }
  1357. 100% {
  1358. transform: translateY(-100%);
  1359. }
  1360. }
  1361. @keyframes hideLayer {
  1362. 0% {
  1363. transform: translateY(-100%);
  1364. }
  1365. 100% {
  1366. transform: translateY(0);
  1367. }
  1368. }
  1369. @keyframes showAmnation {
  1370. 0% {
  1371. top: -12rpx;
  1372. opacity: 0;
  1373. }
  1374. 50% {
  1375. top: -60rpx;
  1376. opacity: 1;
  1377. }
  1378. 100% {
  1379. top: -100rpx;
  1380. opacity: 0;
  1381. }
  1382. }
  1383. @keyframes hideAmnation {
  1384. 0% {
  1385. top: -100rpx;
  1386. opacity: 0;
  1387. }
  1388. 100% {
  1389. top: -12rpx;
  1390. opacity: 0;
  1391. }
  1392. }
  1393. .tui-popup-box {
  1394. position: relative;
  1395. box-sizing: border-box;
  1396. min-height: 220rpx;
  1397. padding: 40rpx 24rpx 0 24rpx;
  1398. .tui-popup-close {
  1399. width: 90rpx;
  1400. height: 90rpx;
  1401. position: absolute;
  1402. right: 0;
  1403. top: 24rpx;
  1404. line-height: 90rpx;
  1405. text-align: center;
  1406. color: #b2b2b2;
  1407. .icon-iconfontguanbi {
  1408. font-size: $font-size-40;
  1409. }
  1410. }
  1411. .title {
  1412. font-size: $font-size-34;
  1413. color: $text-color;
  1414. line-height: 88rpx;
  1415. text-align: center;
  1416. float: left;
  1417. width: 100%;
  1418. height: 88rpx;
  1419. font-weight: bold;
  1420. }
  1421. .tui-popup-main {
  1422. width: 100%;
  1423. float: left;
  1424. &.coupon {
  1425. padding-bottom: 40rpx;
  1426. .coupon-empty {
  1427. width: 100%;
  1428. height: 600rpx;
  1429. display: flex;
  1430. align-items: center;
  1431. justify-content: center;
  1432. flex-direction: column;
  1433. position: fixed;
  1434. background: $bg-color;
  1435. .empty-container-image {
  1436. width: 150rpx;
  1437. height: 150rpx;
  1438. margin-bottom: 0;
  1439. margin-top: 0;
  1440. }
  1441. .error-text {
  1442. font-size: $font-size-28;
  1443. color: #999999;
  1444. line-height: 88rpx;
  1445. }
  1446. }
  1447. }
  1448. .tui-popup-scroll {
  1449. width: 100%;
  1450. height: 600rpx;
  1451. .coupon-list {
  1452. width: 100%;
  1453. height: 200rpx;
  1454. margin-top: 24rpx;
  1455. box-sizing: border-box;
  1456. background: url(https://static.caimei365.com/app/img/icon/icon-coupon-uesb@2x.png);
  1457. background-size: cover;
  1458. &:last-child {
  1459. margin-bottom: 24rpx;
  1460. }
  1461. .list-cell-le {
  1462. width: 224rpx;
  1463. height: 100%;
  1464. box-sizing: border-box;
  1465. padding: 37rpx 0;
  1466. float: left;
  1467. .coupon-maxMoney {
  1468. width: 100%;
  1469. height: 78rpx;
  1470. line-height: 78rpx;
  1471. font-size: 56rpx;
  1472. color: #ffffff;
  1473. text-align: center;
  1474. .small {
  1475. font-size: $font-size-24;
  1476. }
  1477. }
  1478. .coupon-minMoney {
  1479. width: 100%;
  1480. height: 33rpx;
  1481. line-height: 33rpx;
  1482. font-size: $font-size-24;
  1483. color: #ffffff;
  1484. text-align: center;
  1485. }
  1486. }
  1487. .list-cell-ri {
  1488. width: 478rpx;
  1489. height: 100%;
  1490. box-sizing: border-box;
  1491. padding: 20rpx 24rpx 0 24rpx;
  1492. float: right;
  1493. .list-cell-top {
  1494. width: 100%;
  1495. height: 121rpx;
  1496. float: left;
  1497. border-bottom: 1px solid #e1e1e1;
  1498. .list-cell-type {
  1499. width: 286rpx;
  1500. height: 100%;
  1501. float: left;
  1502. .list-cell-tags {
  1503. width: 100%;
  1504. height: 32rpx;
  1505. margin-bottom: 7rpx;
  1506. .tags {
  1507. display: inline-block;
  1508. padding: 0 10rpx;
  1509. height: 32rpx;
  1510. line-height: 32rpx;
  1511. background-color: #ffdcce;
  1512. color: #f94b4b;
  1513. font-size: $font-size-20;
  1514. border-radius: 8rpx;
  1515. text-align: center;
  1516. float: left;
  1517. }
  1518. }
  1519. .list-cell-texts {
  1520. width: 100%;
  1521. height: auto;
  1522. line-height: 35rpx;
  1523. text-overflow: ellipsis;
  1524. display: -webkit-box;
  1525. word-break: break-all;
  1526. -webkit-box-orient: vertical;
  1527. -webkit-line-clamp: 2;
  1528. overflow: hidden;
  1529. font-size: 26rpx;
  1530. color: #333333;
  1531. }
  1532. }
  1533. .list-cell-btn {
  1534. width: 128rpx;
  1535. height: 100%;
  1536. float: right;
  1537. .icon-used {
  1538. width: 100%;
  1539. height: 100%;
  1540. box-sizing: border-box;
  1541. padding-top: 28rpx;
  1542. .icon-used-text {
  1543. width: 100%;
  1544. text-align: center;
  1545. line-height: 26rpx;
  1546. font-size: $font-size-20;
  1547. color: #f94b4b;
  1548. }
  1549. .icon-used-btn {
  1550. width: 128rpx;
  1551. height: 48rpx;
  1552. border-radius: 28rpx;
  1553. line-height: 48rpx;
  1554. font-size: $font-size-26;
  1555. text-align: center;
  1556. &.receive {
  1557. background-image: linear-gradient(270deg, #f94b4b 0%, #feb673 100%);
  1558. color: #ffffff;
  1559. }
  1560. &.make {
  1561. border: solid 1px #f94b4b;
  1562. color: #f94b4b;
  1563. }
  1564. }
  1565. }
  1566. }
  1567. }
  1568. .list-cell-time {
  1569. width: 100%;
  1570. height: 58rpx;
  1571. line-height: 58rpx;
  1572. text-align: left;
  1573. font-size: $font-size-20;
  1574. color: #999999;
  1575. }
  1576. }
  1577. }
  1578. &.train {
  1579. height: 240rpx;
  1580. }
  1581. .content-tr {
  1582. width: 100%;
  1583. min-height: 58rpx;
  1584. line-height: 58rpx;
  1585. display: flex;
  1586. .content-td {
  1587. display: flex;
  1588. flex: 3;
  1589. font-size: $font-size-26;
  1590. color: #999999;
  1591. line-height: 58rpx;
  1592. text-align: left;
  1593. }
  1594. .content-th {
  1595. display: flex;
  1596. flex: 7;
  1597. font-size: $font-size-26;
  1598. color: #333333;
  1599. line-height: 58rpx;
  1600. text-align: left;
  1601. padding-left: 10rpx;
  1602. }
  1603. }
  1604. }
  1605. }
  1606. .tui-shopping-main {
  1607. width: 100%;
  1608. .layer-smimg {
  1609. width: 114rpx;
  1610. height: 114rpx;
  1611. float: left;
  1612. border-radius: 10rpx;
  1613. margin-right: 24rpx;
  1614. image {
  1615. width: 114rpx;
  1616. height: 114rpx;
  1617. border-radius: 10rpx;
  1618. }
  1619. }
  1620. .layer-nunbox {
  1621. justify-content: space-between;
  1622. align-items: center;
  1623. width: 536rpx;
  1624. height: auto;
  1625. float: left;
  1626. .layer-nunbox-t {
  1627. width: 100%;
  1628. height: 44rpx;
  1629. position: relative;
  1630. display: flex;
  1631. margin-bottom: 10rpx;
  1632. .text {
  1633. font-size: $font-size-24;
  1634. line-height: 48rpx;
  1635. color: #999999;
  1636. }
  1637. .layer-nunbox-text {
  1638. line-height: 44rpx;
  1639. font-size: $font-size-28;
  1640. }
  1641. .number-box {
  1642. display: flex;
  1643. justify-content: center;
  1644. align-items: center;
  1645. border: 2rpx solid #ffe6dc;
  1646. border-radius: 30rpx;
  1647. height: 48rpx;
  1648. margin-left: 20rpx;
  1649. .iconfont {
  1650. font-size: $font-size-24;
  1651. padding: 0 18rpx;
  1652. color: #999999;
  1653. text-align: center;
  1654. line-height: 48rpx;
  1655. font-weight: bold;
  1656. background: #fef6f3;
  1657. &.icon-jianhao {
  1658. border-radius: 30rpx 0 0 30rpx;
  1659. }
  1660. &.icon-jiahao {
  1661. border-radius: 0 30rpx 30rpx 0;
  1662. }
  1663. }
  1664. .btn-input {
  1665. width: 62rpx;
  1666. height: 48rpx;
  1667. line-height: 48rpx;
  1668. background: #ffffff;
  1669. border-radius: 4rpx;
  1670. text-align: center;
  1671. font-size: $font-size-28;
  1672. }
  1673. }
  1674. .product-step {
  1675. position: absolute;
  1676. left: 45rpx;
  1677. bottom: 0;
  1678. height: 44rpx;
  1679. background: #ffffff;
  1680. }
  1681. }
  1682. .layer-nunbox-b {
  1683. width: 100%;
  1684. height: 44rpx;
  1685. margin-top: 13rpx;
  1686. }
  1687. .text {
  1688. line-height: 44rpx;
  1689. font-size: $font-size-28;
  1690. .p {
  1691. color: #ff2a2a;
  1692. }
  1693. .p:first-child {
  1694. margin-left: 30rpx;
  1695. }
  1696. .p.sm {
  1697. font-size: $font-size-24;
  1698. }
  1699. }
  1700. }
  1701. }
  1702. }
  1703. .tui-popup-btn {
  1704. width: 100%;
  1705. height: auto;
  1706. float: left;
  1707. margin-top: 24rpx;
  1708. .tui-button {
  1709. width: 100%;
  1710. height: 88rpx;
  1711. background: $btn-confirm;
  1712. line-height: 88rpx;
  1713. text-align: center;
  1714. color: #ffffff;
  1715. font-size: $font-size-28;
  1716. border-radius: 44rpx;
  1717. }
  1718. }
  1719. /*富文本样式*/
  1720. rich-text.p {
  1721. width: 702rpx !important;
  1722. padding: 0 24rpx;
  1723. text-align: justify;
  1724. }
  1725. rich-text.img {
  1726. width: 100%;
  1727. height: auto;
  1728. }
  1729. </style>