product.vue 36 KB

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