collection.vue 24 KB

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