collection.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981
  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" :product="handleData"></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. ProductCartNumber() {
  361. // 获取用户购物车储量
  362. this.ProductService.ProductCartNumber({
  363. userId: this.listQuery.userId
  364. })
  365. .then(response => {
  366. this.cartQuantity = response.data
  367. })
  368. .catch(error => {
  369. console.log('获取购物车数量失败')
  370. })
  371. },
  372. handleAllUnder() {
  373. //批量下架操作
  374. let checkedArray = []
  375. this.productIds = ''
  376. if (this.isProductChecked) {
  377. this.productList.forEach(el => {
  378. if (el.isChecked) {
  379. checkedArray.push(el)
  380. }
  381. })
  382. checkedArray.forEach(el => {
  383. this.productIds += el.productId + ','
  384. })
  385. this.modal = true
  386. this.contentModalText = '确定要取消收藏吗?'
  387. }
  388. },
  389. handleClick(e) {
  390. //取消收藏
  391. if (e.index == 1) {
  392. this.handleDeleteUserLike()
  393. }
  394. this.modal = false
  395. },
  396. handleDeleteUserLike() {
  397. //操作取消收藏
  398. this.ProductService.getDeleteUserLike({
  399. productIds: this.productIds,
  400. userId: this.listQuery.userId
  401. })
  402. .then(response => {
  403. this.$util.msg('取消收藏成功', 2000, true, 'success')
  404. setTimeout(() => {
  405. this.GetProductListInfo()
  406. }, 2000)
  407. })
  408. .catch(error => {
  409. this.$util.msg(error.msg, 2000)
  410. })
  411. },
  412. hideMobel() {
  413. this.modal = false
  414. },
  415. updateCheckAllBtn() {
  416. //勾选单个判断全选
  417. let goodsCheckedLength = 0
  418. this.productList.forEach(item => {
  419. if (item.isChecked) {
  420. goodsCheckedLength++
  421. }
  422. })
  423. this.isAllChecked = goodsCheckedLength === this.productList.length
  424. if (goodsCheckedLength > 0) {
  425. this.isProductChecked = true
  426. } else {
  427. this.isProductChecked = false
  428. }
  429. },
  430. updateBothCheckBtn() {
  431. //全选勾选判断
  432. this.productList.forEach(item => {
  433. item.isChecked = this.isAllChecked
  434. })
  435. },
  436. isCheckedAll() {
  437. //全选
  438. this.isAllChecked = !this.isAllChecked
  439. if (this.isAllChecked) {
  440. this.isProductChecked = true
  441. } else {
  442. this.isProductChecked = false
  443. }
  444. this.updateBothCheckBtn()
  445. },
  446. checkedSoperv(item) {
  447. //选择
  448. item.isChecked = !item.isChecked
  449. console.log(item)
  450. this.updateCheckAllBtn()
  451. },
  452. PromotionsFormat(promo) {
  453. //促销活动类型数据处理
  454. if (promo != null) {
  455. if (promo.type == 1 && promo.mode == 1) {
  456. return true
  457. } else {
  458. return false
  459. }
  460. }
  461. return false
  462. },
  463. showPopup(index, pros) {
  464. // 弹窗显示
  465. switch (index) {
  466. case 0:
  467. this.popupShow = true
  468. break
  469. case 1:
  470. this.popupShow1 = true
  471. this.handleData = pros
  472. break
  473. }
  474. },
  475. hidePopup(index) {
  476. // 弹窗隐藏
  477. switch (index) {
  478. case 0:
  479. this.popupShow = false
  480. break
  481. case 1:
  482. this.popupShow1 = false
  483. break
  484. }
  485. },
  486. isShowVipFlag(pros) {
  487. /**
  488. *显示SVIP和超级会员价格:
  489. * 个人机构(不是超级会员,但价格所有机构可见),
  490. * 资质机构(不是超级会员,但价格所有机构可见或仅会员可见),
  491. * 超级会员(价格所有机构可见或仅会员可见),超级会员(是医美机构,价格仅医美可见)
  492. *商品价格是否可见:priceFlag 0:所有机构可见 1:未公开价格 2:仅会员可见 3:仅医美机构可见
  493. * 普通机构
  494. * 超级会员 && priceFlag === 0
  495. * 资质机构
  496. * priceFlag !== 1 ||
  497. * 超级会员
  498. * 商品priceFlag === 3 && 是否是医美机构
  499. */
  500. // 未登录 || 非会员
  501. if(!this.hasLogin || !this.vipFlag === 1) return false
  502. // 商品所有机构可见
  503. if(pros.priceFlag === 0 ) return true
  504. // 商品价格仅资质机构可见
  505. if(pros.priceFlag === 2 && this.userIdentity === 2) return true
  506. // 商品价格仅医美机构可见
  507. if(pros.priceFlag === 3 && this.userIdentity === 2 && this.firstClubType == 1) return true
  508. // 其它
  509. return false
  510. },
  511. navToDetailPage(id) {
  512. this.isModallayer = true
  513. this.$api.navigateTo(`/pages/goods/product?id=${id}`)
  514. this.isModallayer = false
  515. },
  516. btnClick() {
  517. this.$api.switchTabTo('/pages/tabBar/cart/index')
  518. },
  519. btnTouchstart() {
  520. // console.log('btnTouchstart');
  521. },
  522. btnTouchend() {
  523. // console.log('btnTouchend');
  524. }
  525. },
  526. onPageScroll(e) {
  527. //实时获取到滚动的值
  528. },
  529. onReachBottom() {
  530. if (this.hasNextPage) {
  531. this.loadding = true
  532. this.pullUpOn = true
  533. this.GetOnReachBottomData()
  534. }
  535. },
  536. onPullDownRefresh() {
  537. setTimeout(() => {
  538. this.listQuery.pageNum = 1
  539. uni.stopPullDownRefresh()
  540. }, 200)
  541. },
  542. onShow() {}
  543. }
  544. </script>
  545. <style lang="scss">
  546. @import '@/uni.scss';
  547. page {
  548. background: #fff;
  549. }
  550. .empty-container {
  551. z-index: 9999;
  552. }
  553. .superv-header {
  554. width: 100%;
  555. height: 80rpx;
  556. background-color: #f7f7f7;
  557. line-height: 80rpx;
  558. position: fixed;
  559. top: 0;
  560. left: 0;
  561. box-sizing: border-box;
  562. padding: 0 24rpx;
  563. z-index: 99;
  564. .superv-header-click {
  565. width: 100%;
  566. height: 80rpx;
  567. font-size: $font-size-30;
  568. .oltext {
  569. float: left;
  570. color: #666666;
  571. .red {
  572. color: $color-system;
  573. }
  574. }
  575. .ortext {
  576. float: right;
  577. color: #333333;
  578. text-align: right;
  579. }
  580. }
  581. }
  582. .tui-header {
  583. width: 100%;
  584. font-size: 16px;
  585. font-weight: 500;
  586. height: 32px;
  587. display: flex;
  588. align-items: center;
  589. justify-content: center;
  590. position: relative;
  591. padding: 0 40rpx;
  592. }
  593. .header-sit {
  594. width: 100%;
  595. box-sizing: border-box;
  596. height: 80rpx;
  597. line-height: 80rpx;
  598. box-sizing: border-box;
  599. padding: 0 40rpx;
  600. text-align: left;
  601. font-size: $font-size-40;
  602. color: #ffffff;
  603. font-weight: 600;
  604. font-family: '正楷';
  605. margin-top: 30rpx;
  606. .iconfont {
  607. font-size: 42rpx;
  608. margin-left: 30rpx;
  609. }
  610. }
  611. .mine {
  612. width: 100%;
  613. height: 100%;
  614. position: relative;
  615. }
  616. .product-content {
  617. width: 100%;
  618. height: auto;
  619. position: relative;
  620. padding: 0;
  621. padding-top: 80rpx;
  622. box-sizing: border-box;
  623. .empty-container-image {
  624. width: 260rpx;
  625. height: 260rpx;
  626. margin-top: -300rpx;
  627. }
  628. }
  629. .tui-goods-item {
  630. padding: 30rpx 20rpx 0 20rpx;
  631. box-sizing: border-box;
  632. position: relative;
  633. .tui-goods-main {
  634. display: flex;
  635. width: 100%;
  636. height: 100%;
  637. border-bottom: 1px solid #ebebeb;
  638. padding-bottom: 24rpx;
  639. }
  640. }
  641. .tui-goods-checkBox {
  642. display: flex;
  643. align-items: center;
  644. margin: 0 15rpx;
  645. .checkbox {
  646. display: flex;
  647. margin: 0;
  648. padding: 0;
  649. display: flex;
  650. flex-direction: column;
  651. align-items: center;
  652. box-sizing: border-box;
  653. text-align: center;
  654. text-decoration: none;
  655. border-radius: 0;
  656. -webkit-tap-highlight-color: transparent;
  657. overflow: hidden;
  658. background-color: #ffffff;
  659. font-size: 36rpx;
  660. color: $color-system;
  661. }
  662. .text {
  663. font-size: $font-size-24;
  664. margin-left: 10rpx;
  665. }
  666. }
  667. .tui-goods-image {
  668. width: 180rpx;
  669. height: 180rpx !important;
  670. border: 2rpx solid #f3f3f3;
  671. border-radius: 12rpx;
  672. position: relative;
  673. border: 2rpx solid #f3f3f3;
  674. .tui-goods-img {
  675. width: 180rpx;
  676. height: 180rpx !important;
  677. border-radius: 12rpx;
  678. flex-shrink: 0;
  679. display: block;
  680. }
  681. .tui-goods-type{
  682. width: 64rpx;
  683. height: 64rpx;
  684. text-align: justify;
  685. box-sizing: border-box;
  686. padding: 10rpx;
  687. border-radius: 0 0 8rpx 8rpx;
  688. background-color: #33CCBF;
  689. font-size: $font-size-22;
  690. color: #FFFFFF;
  691. line-height: 25rpx;
  692. position: absolute;
  693. top: 0;
  694. right: 10rpx;
  695. }
  696. }
  697. .tui-goods-info {
  698. padding-left: 20rpx;
  699. box-sizing: border-box;
  700. position: relative;
  701. .list-details-title {
  702. line-height: 38rpx;
  703. text-overflow: ellipsis;
  704. overflow: hidden;
  705. display: -webkit-box;
  706. -webkit-line-clamp: 2;
  707. line-clamp: 2;
  708. -webkit-box-orient: vertical;
  709. font-size: 26rpx;
  710. color: #333333;
  711. }
  712. .list-details-specs {
  713. width: 100%;
  714. display: inline-block;
  715. margin-top: 8rpx;
  716. color: #999999;
  717. font-size: 24rpx;
  718. }
  719. .list-details-price {
  720. width: 100%;
  721. line-height: 54rpx;
  722. float: left;
  723. &.none {
  724. height: 32rpx;
  725. line-height: 32rpx;
  726. }
  727. .floor-item-act {
  728. height: 54rpx;
  729. text-align: center;
  730. box-sizing: border-box;
  731. float: left;
  732. }
  733. .price-icon {
  734. width: 22rpx;
  735. height: 28rpx;
  736. vertical-align: middle;
  737. margin-right: 10rpx;
  738. }
  739. .price-icon + text {
  740. font-size: 25rpx;
  741. vertical-align: middle;
  742. }
  743. .list-login-now {
  744. width: 375rpx;
  745. color: #f8c499;
  746. position: absolute;
  747. bottom: 0;
  748. .p-no {
  749. float: left;
  750. font-size: $font-size-24;
  751. color: $color-system;
  752. margin-right: 10rpx;
  753. }
  754. }
  755. .login-now {
  756. padding: 10rpx 10rpx 10rpx 0;
  757. }
  758. .list-none {
  759. margin-top: 20rpx;
  760. .price-small {
  761. font-size: $font-size-26;
  762. line-height: 40rpx;
  763. color: #ff2a2a;
  764. }
  765. }
  766. .list-price {
  767. color: #ff2a2a;
  768. float: left;
  769. line-height: 54rpx;
  770. align-items: center;
  771. justify-content: center;
  772. .price-larger {
  773. font-size: $font-size-30;
  774. display: inline-block;
  775. &.none {
  776. text-decoration: line-through;
  777. color: #999999;
  778. }
  779. }
  780. }
  781. .add-cart-btn {
  782. float: right;
  783. width: 140rpx;
  784. height: 54rpx;
  785. line-height: 54rpx;
  786. border-radius: 30rpx;
  787. color: #fff;
  788. font-size: 24rpx;
  789. margin-right: 0;
  790. background: #ffffff;
  791. border: 1px solid #c9c9c9;
  792. color: $text-color;
  793. text-align: center;
  794. }
  795. }
  796. }
  797. .tui-popup-box {
  798. position: relative;
  799. box-sizing: border-box;
  800. min-height: 168rpx;
  801. padding: 6rpx 24rpx;
  802. .tui-popup-content {
  803. padding-top: 30rpx;
  804. }
  805. }
  806. .layer-smimg {
  807. width: 114rpx;
  808. height: 114rpx;
  809. float: left;
  810. border-radius: 10rpx;
  811. margin-right: 24rpx;
  812. image {
  813. width: 114rpx;
  814. height: 114rpx;
  815. border-radius: 10rpx;
  816. }
  817. }
  818. .layer-nunbox {
  819. justify-content: space-between;
  820. align-items: center;
  821. width: 536rpx;
  822. height: 88rpx;
  823. padding: 13rpx 0 0 0;
  824. float: left;
  825. .layer-nunbox-t {
  826. width: 100%;
  827. height: 44rpx;
  828. position: relative;
  829. display: flex;
  830. .layer-nunbox-text {
  831. line-height: 44rpx;
  832. font-size: $font-size-28;
  833. }
  834. .number-box {
  835. display: flex;
  836. justify-content: center;
  837. align-items: center;
  838. border: 2rpx solid #ffe6dc;
  839. border-radius: 30rpx;
  840. height: 48rpx;
  841. margin-left: 20rpx;
  842. .iconfont {
  843. font-size: $font-size-24;
  844. padding: 0 18rpx;
  845. color: #999999;
  846. text-align: center;
  847. line-height: 48rpx;
  848. font-weight: bold;
  849. background: #fef6f3;
  850. &.icon-jianhao {
  851. border-radius: 30rpx 0 0 30rpx;
  852. }
  853. &.icon-jiahao {
  854. border-radius: 0 30rpx 30rpx 0;
  855. }
  856. }
  857. .btn-input {
  858. width: 62rpx;
  859. height: 48rpx;
  860. line-height: 48rpx;
  861. background: #ffffff;
  862. border-radius: 4rpx;
  863. text-align: center;
  864. font-size: $font-size-28;
  865. }
  866. }
  867. .product-step {
  868. position: absolute;
  869. left: 45rpx;
  870. bottom: 0;
  871. height: 44rpx;
  872. background: #ffffff;
  873. }
  874. }
  875. .layer-nunbox-b {
  876. width: 100%;
  877. height: 44rpx;
  878. margin-top: 13rpx;
  879. }
  880. .text {
  881. line-height: 44rpx;
  882. font-size: $font-size-28;
  883. .p {
  884. color: #ff2a2a;
  885. }
  886. .p:first-child {
  887. margin-left: 30rpx;
  888. }
  889. .p.sm {
  890. font-size: $font-size-24;
  891. }
  892. }
  893. }
  894. .tui-popup-btn {
  895. width: 100%;
  896. height: auto;
  897. float: left;
  898. box-sizing: border-box;
  899. margin-top: 30rpx;
  900. .superv-header-checked {
  901. float: left;
  902. font-size: $font-size-30;
  903. .oltext {
  904. width: 120rpx;
  905. float: left;
  906. color: #666666;
  907. display: flex;
  908. margin-left: 10rpx;
  909. .checkbox {
  910. display: flex;
  911. margin: 0;
  912. padding: 0;
  913. display: flex;
  914. flex-direction: column;
  915. align-items: center;
  916. box-sizing: border-box;
  917. text-align: center;
  918. text-decoration: none;
  919. border-radius: 0;
  920. -webkit-tap-highlight-color: transparent;
  921. overflow: hidden;
  922. font-size: 34rpx;
  923. color: $color-system;
  924. line-height: 80rpx;
  925. }
  926. .text {
  927. float: left;
  928. line-height: 80rpx;
  929. margin-left: 15rpx;
  930. }
  931. }
  932. .ortext {
  933. width: 120rpx;
  934. float: right;
  935. color: $color-system;
  936. text-align: right;
  937. }
  938. }
  939. .tui-button {
  940. width: 210rpx;
  941. height: 88rpx;
  942. float: right;
  943. background: #e1e1e1;
  944. line-height: 88rpx;
  945. text-align: center;
  946. color: #ffffff;
  947. font-size: $font-size-28;
  948. border-radius: 44rpx;
  949. &.active {
  950. background: $btn-confirm;
  951. }
  952. }
  953. .tui-flex-btn {
  954. width: 100%;
  955. height: 88rpx;
  956. display: flex;
  957. box-sizing: border-box;
  958. padding: 0 34rpx;
  959. .button {
  960. width: 280rpx;
  961. height: 88rpx;
  962. color: #fff;
  963. display: flex;
  964. align-items: center;
  965. justify-content: center;
  966. font-size: $font-size-28;
  967. border-radius: 44rpx;
  968. &.buy {
  969. background: $btn-confirm;
  970. margin-left: 78rpx;
  971. }
  972. &.add {
  973. background: #ffe6dc;
  974. color: #e15616;
  975. }
  976. }
  977. }
  978. }
  979. </style>