collection.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978
  1. <template>
  2. <view class="container product clearfix">
  3. <view class="superv-header" v-if="!isEmpty">
  4. <view class="superv-header-click">
  5. <view class="oltext"
  6. >共<text class="red">{{ totalRecord }}</text
  7. >件商品</view
  8. >
  9. <view class="ortext" @click="showPopup(0)" v-if="!popupShow">编辑</view>
  10. <view class="ortext" @click="hidePopup(0)" v-else>完成</view>
  11. </view>
  12. </view>
  13. <view class="product-content" :style="{ paddingBottom: popupShow ? '68rpx' : '0' }">
  14. <view :class="{ 'tui-order-list': scrollTop >= 0 }" class="clearfix">
  15. <!-- 空白页 -->
  16. <view class="empty-container" v-if="isEmpty">
  17. <image
  18. class="empty-container-image"
  19. :src="StaticUrl + '/icon/icon-collection-empty@2x.png'"
  20. ></image>
  21. <text class="error-text">暂无收藏商品~</text>
  22. </view>
  23. <!-- 列表 -->
  24. <view class="tui-cart-cell tui-mtop" v-for="(pros, index) in productList" :key="index">
  25. <view class="tui-goods-item">
  26. <view class="tui-goods-main">
  27. <view class="tui-goods-checkBox" v-if="popupShow">
  28. <view
  29. class="checkbox iconfont"
  30. :class="[pros.isChecked ? 'icon-yixuanze' : 'icon-weixuanze']"
  31. @click="checkedSoperv(pros)"
  32. >
  33. </view>
  34. </view>
  35. <view class="tui-goods-image" @click.stop="navToDetailPage(pros.productId)"
  36. >
  37. <image :src="pros.image" class="tui-goods-img" />
  38. <view class="tui-goods-type" v-if="pros.productType == 2">医疗器械</view>
  39. </view>
  40. <view
  41. class="tui-goods-info"
  42. :style="{ width: popupShow ? '420rpx' : '528rpx' }"
  43. @click.stop="navToDetailPage(pros.productId)"
  44. >
  45. <text class="list-details-title">{{ pros.name }}</text>
  46. <text class="list-details-specs">规格:{{ pros.unit != null ? pros.unit : '' }}</text>
  47. <template v-if="userIdentity == 4 && vipFlag != 1">
  48. <view class="list-details-price" v-if="pros.priceFlag == 1">
  49. <view class="list-none"><view class="price-small">¥未公开价格</view></view>
  50. </view>
  51. <view class="list-details-price" v-else-if="pros.priceFlag == 2">
  52. <view class="list-none"><view class="price-small">¥价格仅会员可见</view></view>
  53. </view>
  54. <view class="list-details-price" v-else-if="pros.priceFlag == 3">
  55. <view class="list-none"><view class="price-small">¥仅医美机构可见</view></view>
  56. </view>
  57. <template v-else>
  58. <view class="list-details-price">
  59. <view class="list-price">
  60. <text
  61. class="price-larger"
  62. :class="PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1 ? 'none' : ''"
  63. >
  64. ¥{{
  65. (PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
  66. ? pros.originalPrice
  67. : pros.price) | NumFormat
  68. }}
  69. </text>
  70. </view>
  71. <view class="add-cart-btn" v-if="!popupShow" @click.stop="showPopup(1, pros)"
  72. >数量</view
  73. >
  74. </view>
  75. <view class="list-details-price none">
  76. <view class="floor-item-act">
  77. <view class="coupon-tags" v-if="item.product.couponsLogo">优惠券</view>
  78. <template v-if="pros.actStatus == 1">
  79. <view
  80. class="floor-tags"
  81. v-if="pros.actStatus == 1 && PromotionsFormat(pros.promotions)"
  82. >
  83. {{ pros.promotions.name }}
  84. <text>:¥{{ pros.price | NumFormat }}</text>
  85. </view>
  86. <view class="floor-tags" v-else>{{ pros.promotions.name }}</view>
  87. </template>
  88. <template v-if="pros.svipProductFlag == 1">
  89. <view class="svip-tags">
  90. <view class="tags" :class="{ none: vipFlag == 0 }">SVIP</view>
  91. <view class="price" v-if="isShowVipFlag(pros)">{{
  92. pros.svipPriceTag
  93. }}</view>
  94. </view>
  95. </template>
  96. </view>
  97. </view>
  98. </template>
  99. </template>
  100. <template v-else>
  101. <view class="list-details-price" v-if="pros.priceFlag == 1">
  102. <view class="list-none"><view class="price-small">¥未公开价格</view></view>
  103. </view>
  104. <view class="list-details-price" v-else-if="pros.priceFlag == 3 && (firstClubType!=1)">
  105. <view class="list-none"><view class="price-small">¥仅医美机构可见</view></view>
  106. </view>
  107. <template v-else>
  108. <view class="list-details-price">
  109. <view class="list-price">
  110. <text
  111. class="price-larger"
  112. :class="PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1 ? 'none' : ''"
  113. >
  114. ¥{{
  115. (PromotionsFormat(pros.promotions) || pros.svipProductFlag == 1
  116. ? pros.originalPrice
  117. : pros.price) | NumFormat
  118. }}
  119. </text>
  120. </view>
  121. <view class="add-cart-btn" v-if="!popupShow" @click.stop="showPopup(1, pros)"
  122. >数量</view
  123. >
  124. </view>
  125. <view class="list-details-price none">
  126. <view class="floor-item-act">
  127. <template v-if="pros.actStatus == 1">
  128. <view
  129. class="floor-tags"
  130. v-if="pros.actStatus == 1 && PromotionsFormat(pros.promotions)"
  131. >
  132. {{ pros.promotions.name }}
  133. <text v-if="hasLogin && userIdentity == 2 && pros.priceFlag != 1"
  134. >:¥{{ pros.price | NumFormat }}</text
  135. >
  136. </view>
  137. <view class="floor-tags" v-else>{{ pros.promotions.name }}</view>
  138. </template>
  139. <template v-if="pros.svipProductFlag == 1">
  140. <view class="svip-tags">
  141. <view class="tags" :class="{ none: !isShowVipFlag(pros) }">SVIP</view>
  142. <view class="price" v-if="isShowVipFlag(pros)">{{
  143. pros.svipPriceTag
  144. }}</view>
  145. </view>
  146. </template>
  147. </view>
  148. </view>
  149. </template>
  150. </template>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <!--加载loadding-->
  156. <tui-loadmore :visible="loadding" :index="3" type="black" />
  157. <tui-nomore :visible="!pullUpOn" :backgroundColor="'#ffffff'" :text="nomoreText" />
  158. <!--加载loadding-->
  159. </view>
  160. </view>
  161. <!-- 取消收藏操作 -->
  162. <tui-bottom-popup :radius="false" :mask="false" :show="popupShow">
  163. <view class="tui-popup-box clearfix">
  164. <view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0rpx' }">
  165. <view class="tui-flex-1">
  166. <view class="superv-header-checked">
  167. <view class="oltext" @click="isCheckedAll">
  168. <view
  169. class="checkbox iconfont"
  170. :class="[isAllChecked ? 'icon-yixuanze' : 'icon-weixuanze']"
  171. ></view>
  172. <view class="text">全选</view>
  173. </view>
  174. </view>
  175. <view class="tui-button" :class="isProductChecked ? 'active' : ''" @click="handleAllUnder"
  176. >取消收藏</view
  177. >
  178. </view>
  179. </view>
  180. </view>
  181. </tui-bottom-popup>
  182. <!-- 选择规格弹窗 -->
  183. <cm-unit-popup v-if="popupShow1" :popupShow="popupShow1" :skuProduct="handleData" @skuClick="handleSkuClick"></cm-unit-popup>
  184. <!-- 弹窗提示 -->
  185. <tui-modal
  186. :show="modal"
  187. @click="handleClick"
  188. @cancel="hideMobel"
  189. :content="contentModalText"
  190. :button="modalButton"
  191. color="#333"
  192. :size="32"
  193. shape="circle"
  194. :maskClosable="false"
  195. >
  196. </tui-modal>
  197. <!-- 可拖动悬浮按钮 -->
  198. <cm-drag
  199. :cartNum="cartQuantity"
  200. :isDock="true"
  201. :existTabBar="true"
  202. @btnClick="btnClick"
  203. @btnTouchstart="btnTouchstart"
  204. @btnTouchend="btnTouchend"
  205. >
  206. </cm-drag>
  207. </view>
  208. </template>
  209. <script>
  210. import cmDrag from '@/components/cm-custom/cm-drag.vue'
  211. import cmUnitPopup from '@/components/cm-module/productDetails/cm-unit-popup.vue'
  212. import { mapState, mapMutations } from 'vuex'
  213. const defaultListQuery = {
  214. userId: 0,
  215. pageNum: 1,
  216. pageSize: 10
  217. }
  218. export default {
  219. components: {
  220. cmDrag,
  221. cmUnitPopup
  222. },
  223. data() {
  224. return {
  225. StaticUrl: this.$Static,
  226. isIphoneX: this.$store.state.isIphoneX,
  227. modalButton: [
  228. {
  229. text: '取消',
  230. type: 'gray',
  231. plain: true //是否空心
  232. },
  233. {
  234. text: '确认',
  235. customStyle: {
  236. color: '#fff',
  237. bgColor: 'linear-gradient(90deg, #F28F31 0%, #FF5B00 100%)'
  238. },
  239. plain: false
  240. }
  241. ],
  242. totalRecord: 0,
  243. cartQuantity: 0,
  244. popupShow: false,
  245. popupShow1: false,
  246. isProductChecked: false,
  247. listQuery: Object.assign({}, defaultListQuery),
  248. productList: [],
  249. handleData: {},
  250. scrollTop: 0,
  251. isEmpty: false,
  252. isAllChecked: false,
  253. loadding: false,
  254. pullUpOn: true,
  255. pullFlag: true,
  256. hasNextPage: false,
  257. navbarHeight: '',
  258. nomoreText: '上拉显示更多',
  259. contentModalText: '', //操作文字提示语句
  260. modal: false,
  261. vipFlag:0,
  262. userIdentity:0,
  263. firstClubType:0
  264. }
  265. },
  266. onLoad() {
  267. this.initGetStotage()
  268. },
  269. filters: {
  270. NumFormat: function(value) {
  271. //处理金额
  272. if (!value) return '0.00'
  273. let number = Number(value).toFixed(2)
  274. return number
  275. }
  276. },
  277. computed: {
  278. ...mapState(['hasLogin', 'userInfo','clubType'])
  279. },
  280. methods: {
  281. ...mapMutations(['login', 'logout']),
  282. async initGetStotage() {
  283. const userInfo = await this.$api.getStorage()
  284. this.listQuery.userId = userInfo.userId ? userInfo.userId : 0
  285. this.vipFlag = userInfo.vipFlag ? userInfo.vipFlag : 0
  286. this.userIdentity = userInfo.userIdentity ? userInfo.userIdentity : 0
  287. this.firstClubType = this.clubType
  288. this.GetProductListInfo()
  289. this.ProductCartNumber()
  290. },
  291. GetProductListInfo() {
  292. this.productList = []
  293. this.listQuery.pageNum = 1
  294. this.ProductService.getProductUserLikeList(this.listQuery)
  295. .then(response => {
  296. let data = response.data
  297. if (data.results && data.results.length > 0) {
  298. this.isEmpty = false
  299. this.hasNextPage = data.hasNextPage
  300. this.totalRecord = data.totalRecord
  301. this.productList = data.results
  302. this.pullFlag = false
  303. setTimeout(() => {
  304. this.pullFlag = true
  305. }, 500)
  306. if (this.hasNextPage) {
  307. this.pullUpOn = false
  308. this.nomoreText = '上拉显示更多'
  309. } else {
  310. if (this.productList.length < 8) {
  311. this.pullUpOn = true
  312. } else {
  313. this.pullUpOn = false
  314. this.loadding = false
  315. this.nomoreText = '已至底部'
  316. }
  317. }
  318. } else {
  319. this.isEmpty = true
  320. }
  321. this.isRequest = true
  322. })
  323. .catch(error => {
  324. this.$util.msg(error.msg, 2000)
  325. })
  326. },
  327. GetOnReachBottomData(index) {
  328. //上拉加载
  329. this.listQuery.pageNum += 1
  330. this.ProductService.getProductUserLikeList(this.listQuery)
  331. .then(response => {
  332. let data = response.data
  333. if (data.results && data.results.length > 0) {
  334. this.hasNextPage = data.hasNextPage
  335. this.productList = this.productList.concat(data.results)
  336. this.pullFlag = false // 防上拉暴滑
  337. setTimeout(() => {
  338. this.pullFlag = true
  339. }, 500)
  340. if (this.hasNextPage) {
  341. this.pullUpOn = false
  342. this.nomoreText = '上拉显示更多'
  343. } else {
  344. this.pullUpOn = false
  345. this.loadding = false
  346. this.nomoreText = '已至底部'
  347. }
  348. }
  349. })
  350. .catch(error => {
  351. this.$util.msg(error.msg, 2000)
  352. })
  353. },
  354. handleSkuClick(sku){
  355. this.handleData.price = sku.price
  356. },
  357. ProductCartNumber() {
  358. // 获取用户购物车储量
  359. this.ProductService.ProductCartNumber({
  360. userId: this.listQuery.userId
  361. })
  362. .then(response => {
  363. this.cartQuantity = response.data
  364. })
  365. .catch(error => {
  366. console.log('获取购物车数量失败')
  367. })
  368. },
  369. handleAllUnder() {
  370. //批量下架操作
  371. let checkedArray = []
  372. this.productIds = ''
  373. if (this.isProductChecked) {
  374. this.productList.forEach(el => {
  375. if (el.isChecked) {
  376. checkedArray.push(el)
  377. }
  378. })
  379. checkedArray.forEach(el => {
  380. this.productIds += el.productId + ','
  381. })
  382. this.modal = true
  383. this.contentModalText = '确定要取消收藏吗?'
  384. }
  385. },
  386. handleClick(e) {
  387. //取消收藏
  388. if (e.index == 1) {
  389. this.handleDeleteUserLike()
  390. }
  391. this.modal = false
  392. },
  393. handleDeleteUserLike() {
  394. //操作取消收藏
  395. this.ProductService.getDeleteUserLike({
  396. productIds: this.productIds,
  397. userId: this.listQuery.userId
  398. })
  399. .then(response => {
  400. this.$util.msg('取消收藏成功', 2000, true, 'success')
  401. setTimeout(() => {
  402. this.GetProductListInfo()
  403. }, 2000)
  404. })
  405. .catch(error => {
  406. this.$util.msg(error.msg, 2000)
  407. })
  408. },
  409. hideMobel() {
  410. this.modal = false
  411. },
  412. updateCheckAllBtn() {
  413. //勾选单个判断全选
  414. let goodsCheckedLength = 0
  415. this.productList.forEach(item => {
  416. if (item.isChecked) {
  417. goodsCheckedLength++
  418. }
  419. })
  420. this.isAllChecked = goodsCheckedLength === this.productList.length
  421. if (goodsCheckedLength > 0) {
  422. this.isProductChecked = true
  423. } else {
  424. this.isProductChecked = false
  425. }
  426. },
  427. updateBothCheckBtn() {
  428. //全选勾选判断
  429. this.productList.forEach(item => {
  430. item.isChecked = this.isAllChecked
  431. })
  432. },
  433. isCheckedAll() {
  434. //全选
  435. this.isAllChecked = !this.isAllChecked
  436. if (this.isAllChecked) {
  437. this.isProductChecked = true
  438. } else {
  439. this.isProductChecked = false
  440. }
  441. this.updateBothCheckBtn()
  442. },
  443. checkedSoperv(item) {
  444. //选择
  445. item.isChecked = !item.isChecked
  446. console.log(item)
  447. this.updateCheckAllBtn()
  448. },
  449. PromotionsFormat(promo) {
  450. //促销活动类型数据处理
  451. if (promo != null) {
  452. if (promo.type == 1 && promo.mode == 1) {
  453. return true
  454. } else {
  455. return false
  456. }
  457. }
  458. return false
  459. },
  460. showPopup(index, pros) {
  461. // 弹窗显示
  462. switch (index) {
  463. case 0:
  464. this.popupShow = true
  465. break
  466. case 1:
  467. this.popupShow1 = true
  468. this.handleData = pros
  469. break
  470. }
  471. },
  472. hidePopup(index) {
  473. // 弹窗隐藏
  474. switch (index) {
  475. case 0:
  476. this.popupShow = false
  477. break
  478. case 1:
  479. this.popupShow1 = false
  480. break
  481. }
  482. },
  483. isShowVipFlag(pros) {
  484. /**
  485. *显示SVIP和超级会员价格:
  486. * 个人机构(不是超级会员,但价格所有机构可见),
  487. * 资质机构(不是超级会员,但价格所有机构可见或仅会员可见),
  488. * 超级会员(价格所有机构可见或仅会员可见),超级会员(是医美机构,价格仅医美可见)
  489. *商品价格是否可见:priceFlag 0:所有机构可见 1:未公开价格 2:仅会员可见 3:仅医美机构可见
  490. * 普通机构
  491. * 超级会员 && priceFlag === 0
  492. * 资质机构
  493. * priceFlag !== 1 ||
  494. * 超级会员
  495. * 商品priceFlag === 3 && 是否是医美机构
  496. */
  497. // 未登录 || 非会员
  498. if(!this.hasLogin || !this.vipFlag === 1) return false
  499. // 商品所有机构可见
  500. if(pros.priceFlag === 0 ) return true
  501. // 商品价格仅资质机构可见
  502. if(pros.priceFlag === 2 && this.userIdentity === 2) return true
  503. // 商品价格仅医美机构可见
  504. if(pros.priceFlag === 3 && this.userIdentity === 2 && this.firstClubType == 1) return true
  505. // 其它
  506. return false
  507. },
  508. navToDetailPage(id) {
  509. this.isModallayer = true
  510. this.$api.navigateTo(`/pages/goods/product?id=${id}`)
  511. this.isModallayer = false
  512. },
  513. btnClick() {
  514. this.$api.switchTabTo('/pages/tabBar/cart/index')
  515. },
  516. btnTouchstart() {
  517. // console.log('btnTouchstart');
  518. },
  519. btnTouchend() {
  520. // console.log('btnTouchend');
  521. }
  522. },
  523. onPageScroll(e) {
  524. //实时获取到滚动的值
  525. },
  526. onReachBottom() {
  527. if (this.hasNextPage) {
  528. this.loadding = true
  529. this.pullUpOn = true
  530. this.GetOnReachBottomData()
  531. }
  532. },
  533. onPullDownRefresh() {
  534. setTimeout(() => {
  535. this.listQuery.pageNum = 1
  536. uni.stopPullDownRefresh()
  537. }, 200)
  538. },
  539. onShow() {}
  540. }
  541. </script>
  542. <style lang="scss">
  543. @import '@/uni.scss';
  544. page {
  545. background: #fff;
  546. }
  547. .empty-container {
  548. z-index: 9999;
  549. }
  550. .superv-header {
  551. width: 100%;
  552. height: 80rpx;
  553. background-color: #f7f7f7;
  554. line-height: 80rpx;
  555. position: fixed;
  556. top: 0;
  557. left: 0;
  558. box-sizing: border-box;
  559. padding: 0 24rpx;
  560. z-index: 99;
  561. .superv-header-click {
  562. width: 100%;
  563. height: 80rpx;
  564. font-size: $font-size-30;
  565. .oltext {
  566. float: left;
  567. color: #666666;
  568. .red {
  569. color: $color-system;
  570. }
  571. }
  572. .ortext {
  573. float: right;
  574. color: #333333;
  575. text-align: right;
  576. }
  577. }
  578. }
  579. .tui-header {
  580. width: 100%;
  581. font-size: 16px;
  582. font-weight: 500;
  583. height: 32px;
  584. display: flex;
  585. align-items: center;
  586. justify-content: center;
  587. position: relative;
  588. padding: 0 40rpx;
  589. }
  590. .header-sit {
  591. width: 100%;
  592. box-sizing: border-box;
  593. height: 80rpx;
  594. line-height: 80rpx;
  595. box-sizing: border-box;
  596. padding: 0 40rpx;
  597. text-align: left;
  598. font-size: $font-size-40;
  599. color: #ffffff;
  600. font-weight: 600;
  601. font-family: '正楷';
  602. margin-top: 30rpx;
  603. .iconfont {
  604. font-size: 42rpx;
  605. margin-left: 30rpx;
  606. }
  607. }
  608. .mine {
  609. width: 100%;
  610. height: 100%;
  611. position: relative;
  612. }
  613. .product-content {
  614. width: 100%;
  615. height: auto;
  616. position: relative;
  617. padding: 0;
  618. padding-top: 80rpx;
  619. box-sizing: border-box;
  620. .empty-container-image {
  621. width: 260rpx;
  622. height: 260rpx;
  623. margin-top: -300rpx;
  624. }
  625. }
  626. .tui-goods-item {
  627. padding: 30rpx 20rpx 0 20rpx;
  628. box-sizing: border-box;
  629. position: relative;
  630. .tui-goods-main {
  631. display: flex;
  632. width: 100%;
  633. height: 100%;
  634. border-bottom: 1px solid #ebebeb;
  635. padding-bottom: 24rpx;
  636. }
  637. }
  638. .tui-goods-checkBox {
  639. display: flex;
  640. align-items: center;
  641. margin: 0 15rpx;
  642. .checkbox {
  643. display: flex;
  644. margin: 0;
  645. padding: 0;
  646. display: flex;
  647. flex-direction: column;
  648. align-items: center;
  649. box-sizing: border-box;
  650. text-align: center;
  651. text-decoration: none;
  652. border-radius: 0;
  653. -webkit-tap-highlight-color: transparent;
  654. overflow: hidden;
  655. background-color: #ffffff;
  656. font-size: 36rpx;
  657. color: $color-system;
  658. }
  659. .text {
  660. font-size: $font-size-24;
  661. margin-left: 10rpx;
  662. }
  663. }
  664. .tui-goods-image {
  665. width: 180rpx;
  666. height: 180rpx !important;
  667. border: 2rpx solid #f3f3f3;
  668. border-radius: 12rpx;
  669. position: relative;
  670. border: 2rpx solid #f3f3f3;
  671. .tui-goods-img {
  672. width: 180rpx;
  673. height: 180rpx !important;
  674. border-radius: 12rpx;
  675. flex-shrink: 0;
  676. display: block;
  677. }
  678. .tui-goods-type{
  679. width: 64rpx;
  680. height: 64rpx;
  681. text-align: justify;
  682. box-sizing: border-box;
  683. padding: 10rpx;
  684. border-radius: 0 0 8rpx 8rpx;
  685. background-color: #33CCBF;
  686. font-size: $font-size-22;
  687. color: #FFFFFF;
  688. line-height: 25rpx;
  689. position: absolute;
  690. top: 0;
  691. right: 10rpx;
  692. }
  693. }
  694. .tui-goods-info {
  695. padding-left: 20rpx;
  696. box-sizing: border-box;
  697. position: relative;
  698. .list-details-title {
  699. line-height: 38rpx;
  700. text-overflow: ellipsis;
  701. overflow: hidden;
  702. display: -webkit-box;
  703. -webkit-line-clamp: 2;
  704. line-clamp: 2;
  705. -webkit-box-orient: vertical;
  706. font-size: 26rpx;
  707. color: #333333;
  708. }
  709. .list-details-specs {
  710. width: 100%;
  711. display: inline-block;
  712. margin-top: 8rpx;
  713. color: #999999;
  714. font-size: 24rpx;
  715. }
  716. .list-details-price {
  717. width: 100%;
  718. line-height: 54rpx;
  719. float: left;
  720. &.none {
  721. height: 32rpx;
  722. line-height: 32rpx;
  723. }
  724. .floor-item-act {
  725. height: 54rpx;
  726. text-align: center;
  727. box-sizing: border-box;
  728. float: left;
  729. }
  730. .price-icon {
  731. width: 22rpx;
  732. height: 28rpx;
  733. vertical-align: middle;
  734. margin-right: 10rpx;
  735. }
  736. .price-icon + text {
  737. font-size: 25rpx;
  738. vertical-align: middle;
  739. }
  740. .list-login-now {
  741. width: 375rpx;
  742. color: #f8c499;
  743. position: absolute;
  744. bottom: 0;
  745. .p-no {
  746. float: left;
  747. font-size: $font-size-24;
  748. color: $color-system;
  749. margin-right: 10rpx;
  750. }
  751. }
  752. .login-now {
  753. padding: 10rpx 10rpx 10rpx 0;
  754. }
  755. .list-none {
  756. margin-top: 20rpx;
  757. .price-small {
  758. font-size: $font-size-26;
  759. line-height: 40rpx;
  760. color: #ff2a2a;
  761. }
  762. }
  763. .list-price {
  764. color: #ff2a2a;
  765. float: left;
  766. line-height: 54rpx;
  767. align-items: center;
  768. justify-content: center;
  769. .price-larger {
  770. font-size: $font-size-30;
  771. display: inline-block;
  772. &.none {
  773. text-decoration: line-through;
  774. color: #999999;
  775. }
  776. }
  777. }
  778. .add-cart-btn {
  779. float: right;
  780. width: 140rpx;
  781. height: 54rpx;
  782. line-height: 54rpx;
  783. border-radius: 30rpx;
  784. color: #fff;
  785. font-size: 24rpx;
  786. margin-right: 0;
  787. background: #ffffff;
  788. border: 1px solid #c9c9c9;
  789. color: $text-color;
  790. text-align: center;
  791. }
  792. }
  793. }
  794. .tui-popup-box {
  795. position: relative;
  796. box-sizing: border-box;
  797. min-height: 168rpx;
  798. padding: 6rpx 24rpx;
  799. .tui-popup-content {
  800. padding-top: 30rpx;
  801. }
  802. }
  803. .layer-smimg {
  804. width: 114rpx;
  805. height: 114rpx;
  806. float: left;
  807. border-radius: 10rpx;
  808. margin-right: 24rpx;
  809. image {
  810. width: 114rpx;
  811. height: 114rpx;
  812. border-radius: 10rpx;
  813. }
  814. }
  815. .layer-nunbox {
  816. justify-content: space-between;
  817. align-items: center;
  818. width: 536rpx;
  819. height: 88rpx;
  820. padding: 13rpx 0 0 0;
  821. float: left;
  822. .layer-nunbox-t {
  823. width: 100%;
  824. height: 44rpx;
  825. position: relative;
  826. display: flex;
  827. .layer-nunbox-text {
  828. line-height: 44rpx;
  829. font-size: $font-size-28;
  830. }
  831. .number-box {
  832. display: flex;
  833. justify-content: center;
  834. align-items: center;
  835. border: 2rpx solid #ffe6dc;
  836. border-radius: 30rpx;
  837. height: 48rpx;
  838. margin-left: 20rpx;
  839. .iconfont {
  840. font-size: $font-size-24;
  841. padding: 0 18rpx;
  842. color: #999999;
  843. text-align: center;
  844. line-height: 48rpx;
  845. font-weight: bold;
  846. background: #fef6f3;
  847. &.icon-jianhao {
  848. border-radius: 30rpx 0 0 30rpx;
  849. }
  850. &.icon-jiahao {
  851. border-radius: 0 30rpx 30rpx 0;
  852. }
  853. }
  854. .btn-input {
  855. width: 62rpx;
  856. height: 48rpx;
  857. line-height: 48rpx;
  858. background: #ffffff;
  859. border-radius: 4rpx;
  860. text-align: center;
  861. font-size: $font-size-28;
  862. }
  863. }
  864. .product-step {
  865. position: absolute;
  866. left: 45rpx;
  867. bottom: 0;
  868. height: 44rpx;
  869. background: #ffffff;
  870. }
  871. }
  872. .layer-nunbox-b {
  873. width: 100%;
  874. height: 44rpx;
  875. margin-top: 13rpx;
  876. }
  877. .text {
  878. line-height: 44rpx;
  879. font-size: $font-size-28;
  880. .p {
  881. color: #ff2a2a;
  882. }
  883. .p:first-child {
  884. margin-left: 30rpx;
  885. }
  886. .p.sm {
  887. font-size: $font-size-24;
  888. }
  889. }
  890. }
  891. .tui-popup-btn {
  892. width: 100%;
  893. height: auto;
  894. float: left;
  895. box-sizing: border-box;
  896. margin-top: 30rpx;
  897. .superv-header-checked {
  898. float: left;
  899. font-size: $font-size-30;
  900. .oltext {
  901. width: 120rpx;
  902. float: left;
  903. color: #666666;
  904. display: flex;
  905. margin-left: 10rpx;
  906. .checkbox {
  907. display: flex;
  908. margin: 0;
  909. padding: 0;
  910. display: flex;
  911. flex-direction: column;
  912. align-items: center;
  913. box-sizing: border-box;
  914. text-align: center;
  915. text-decoration: none;
  916. border-radius: 0;
  917. -webkit-tap-highlight-color: transparent;
  918. overflow: hidden;
  919. font-size: 34rpx;
  920. color: $color-system;
  921. line-height: 80rpx;
  922. }
  923. .text {
  924. float: left;
  925. line-height: 80rpx;
  926. margin-left: 15rpx;
  927. }
  928. }
  929. .ortext {
  930. width: 120rpx;
  931. float: right;
  932. color: $color-system;
  933. text-align: right;
  934. }
  935. }
  936. .tui-button {
  937. width: 210rpx;
  938. height: 88rpx;
  939. float: right;
  940. background: #e1e1e1;
  941. line-height: 88rpx;
  942. text-align: center;
  943. color: #ffffff;
  944. font-size: $font-size-28;
  945. border-radius: 44rpx;
  946. &.active {
  947. background: $btn-confirm;
  948. }
  949. }
  950. .tui-flex-btn {
  951. width: 100%;
  952. height: 88rpx;
  953. display: flex;
  954. box-sizing: border-box;
  955. padding: 0 34rpx;
  956. .button {
  957. width: 280rpx;
  958. height: 88rpx;
  959. color: #fff;
  960. display: flex;
  961. align-items: center;
  962. justify-content: center;
  963. font-size: $font-size-28;
  964. border-radius: 44rpx;
  965. &.buy {
  966. background: $btn-confirm;
  967. margin-left: 78rpx;
  968. }
  969. &.add {
  970. background: #ffe6dc;
  971. color: #FF5B00;
  972. }
  973. }
  974. }
  975. }
  976. </style>