product.vue 36 KB

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