product.vue 36 KB

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