product.vue 36 KB

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