product.vue 36 KB

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