product.vue 36 KB

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