product.vue 37 KB

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