product.vue 36 KB

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