immediatelyList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. <template>
  2. <view class="container commodity-list-wrapper" :style="{'overflow':(showSkeleton? 'hidden' : 'auto'),'height': (showSkeleton? windowHeight + 'px' : 'auto')}">
  3. <view class="good-search clearfix" v-if="searchStatus">
  4. <view class="nav-tab-bar u-f-ajc">
  5. <block v-for="(tab,index) in tabBars" :key='tab.id' :class="{ current: tabIndex === index }">
  6. <view class="tabstyle u-f-ajc" :class="{'addstyle':tabIndex==index}" @tap="changeTab(index)">{{tab.name}}
  7. <i v-if='(tabIndex==index)' class='nav-tab-line iconfont icon-gou'></i>
  8. </view>
  9. </block>
  10. </view>
  11. <view class="search-from name">
  12. <text class="iconfont icon-iconfonticonfontsousuo1"></text>
  13. <input class="input"
  14. type="text"
  15. focus
  16. confirm-type="search"
  17. v-model="searchInputVal"
  18. placeholder="请输入商品关键词"
  19. @input="onShowClose"
  20. @confirm="searchOpertor"
  21. maxlength="20"/>
  22. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
  23. </view>
  24. <view class="search-btn" :class="tabIndex">
  25. <button class="search-btn" type="default" @click.stop="searchOpertor(tabIndex)" >搜索</button>
  26. </view>
  27. </view>
  28. <list-skeleton v-if="showSkeleton"></list-skeleton>
  29. <view class="empty-container" v-if="isShowEmpty" >
  30. <image class="empty-container-image" src="https://img.caimei365.com/group1/M00/03/71/Cmis2F3wna6AY2ZjAABpmnBICH4247.png"></image>
  31. <text class="error-text">{{isShowEmptyText}}</text>
  32. </view>
  33. <!-- 单一商品 -->
  34. <view class="product-container" v-else :style="{paddingTop:searchStatus?'112rpx':''}" >
  35. <view :class="tabIndex" v-if="tabIndex === 0">
  36. <scroll-view :style="{'height':scrollHeight+'px'}" @scrolltolower="scrolltolower" scroll-y v-if="productList.length > 0">
  37. <view v-for="(item,index) in productList" :key="index" :id="item.id" class="all-type-list-content commodity-list" @click.stop="navToDetailPage(item.productID)">
  38. <image mode='widthFix' :src="item.mainImage" class="list-img" alt="list-img"></image>
  39. <view class="list-details-info">
  40. <text class="list-details-title">{{item.name}}</text>
  41. <text class="list-details-specs">规格:{{item.unit?item.unit:''}}</text>
  42. <text class="list-details-miniQuantity list-details-specs">起订量:{{item.minBuyNumber}}</text>
  43. <view class="list-details-specs" v-if="item.productCode!=''&&item.productCode!=null">
  44. <view>商品编码:{{item.productCode}}</view>
  45. </view>
  46. <view class="list-details-price">
  47. <view class="list-shop">
  48. <view class="list-price" >
  49. <text class="price-view activity" v-if="item.isShowActFlg">活动价</text>
  50. <text class="price-larger" >¥{{item.retailPrice.toFixed(2)}}</text>
  51. <text class="price-view ladder" v-if="item.ladderPriceFlag == '1'" @click.stop="alertjieti(item)">阶</text>
  52. </view>
  53. <view class="list-price-none" v-if="item.repurchasePriceState">
  54. <text class="price-none">¥{{item.discountPrice}}</text>
  55. <text class="iconfont icon-wenhao" @click.stop="repurchModel"></text>
  56. </view>
  57. </view>
  58. <button class="add-cart-btn" @click.stop="operationHanld(item)">选择数量</button>
  59. </view>
  60. </view>
  61. </view>
  62. <view v-if="showLoading && productList.length > 4 && !showRegularBtn">
  63. <view class="loading-wrapper loading-wrapper-now" v-if="loadingNow">{{loadingText}}<text v-if="loadingText === '已至底部'">‧ ‧ ‧</text></view>
  64. <view class="loading-wrapper loading-wrapper-btm" v-else>———<text class="btm-text">已至底部</text>———</view>
  65. </view>
  66. </scroll-view>
  67. </view>
  68. <!-- 组合商品 -->
  69. <view :class="tabIndex" v-if="tabIndex === 1">
  70. <scroll-view :style="{'height':scrollHeight+'px'}" @scrolltolower="scrolltolower" scroll-y>
  71. <view class="all-zuhe-list" v-for="(item,index) in combinationProduct" :key="index" :id="item.id">
  72. <view class="zuhe_title" :class="index==0 ? 'active' : ''">{{item.name}}</view>
  73. <view v-for="(pros,proIndex) in item.combinationProductList" :class="index==0 ? 'stylecontent' : ''" :key="proIndex" :id="pros.productID" class="zuhe-list-content commodity-list" >
  74. <view class="list-details-info" >
  75. <text class="list-details-title zuhe_list_text">商品编码:{{pros.productCode}}</text>
  76. <text class="list-details-specs zuhe_list_text" @click.stop="navToDetailPage(pros.productID)">{{pros.name}}</text>
  77. <view class="list-details-price zuhe_list_price">
  78. <view class="list-shop">
  79. <view class="list-price zuhe_list_price" >
  80. <text class="zuhe_price-larger zuhe_list_text" >价格:¥{{pros.retailPrice.toFixed(2)}}</text>
  81. <text class="price-two zuhe_list_text" @click.stop="alertjieti(pros)">
  82. 总价:<text class="zuhe_list_zj">¥ {{pros.totalPrice.toFixed(2)}}</text>
  83. <text class="price-view ladder" v-if="pros.ladderPriceFlag == '1'" >阶</text>
  84. </text>
  85. <text class="price-view activity" v-if="pros.actStatus == '1'">活动价</text>
  86. </view>
  87. <view class="list-price-none" v-if="pros.repurchasePriceState">
  88. <text class="price-none">价格:¥{{pros.discountPrice}}</text>
  89. <text class="iconfont icon-wenhao" @click.stop="repurchModel"></text>
  90. </view>
  91. <view class="count">
  92. <view class="number-box">
  93. <view class="iconfont icon-jianhao" @click.stop="changeCountSub(item,pros)"></view>
  94. <input class="btn-input" type="number" maxlength='4' v-model="pros.initProductNum" @blur="changeNnmber($event,item,pros)">
  95. <view class="iconfont icon-jiahao" @click.stop="changeCountAdd(item,pros)"></view>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <view class="foot_conten" >
  103. <view class="zuhe_foot-box">
  104. <!-- -->
  105. <text>种类:{{item.productKind}}</text>
  106. <text >总数:{{item.productTotalNum}}</text>
  107. <text>总额:{{item.productTotalAmount}}</text>
  108. </view>
  109. <button type="default" class="buycart" @click.stop="operationHanld(item)">加入购物车</button>
  110. </view>
  111. </view>
  112. </scroll-view>
  113. </view>
  114. </view>
  115. <view class="cart-icon" @click="toCartPage">
  116. <text v-if="cartQuantity > 0" class="uni-badge uni-badge-error uni-small uni-badge--small icon-num">
  117. {{cartQuantity >= 100 ? '99+' : cartQuantity}}
  118. </text>
  119. <image src='../../../static/icon-cart-active@3x.png' mode="widthFix"></image>
  120. </view>
  121. <!-- 透明模态层 -->
  122. <modal-layer v-if='isModallayer'></modal-layer>
  123. </view>
  124. </template>
  125. <script>
  126. import listSkeleton from '@/components/cm-module/listTemplate/listSkeleton'
  127. import modalLayer from "@/components/modal-layer"
  128. import uniStars from '@/components/uni-stars/uni-stars.vue'
  129. import { getSellerProduct,getcombinationProduct } from "@/api/seller.js"
  130. import { mapState,mapMutations } from 'vuex';
  131. export default{
  132. name:'productList',
  133. components:{
  134. listSkeleton,
  135. modalLayer,
  136. uniStars
  137. },
  138. props: {
  139. searchStatus:{
  140. type:Boolean,
  141. default:false
  142. }
  143. },
  144. data(){
  145. return{
  146. isShowClose:false,
  147. searchInputVal:'',
  148. isModallayer:false,
  149. windowHeight: '',
  150. showSkeleton: false,
  151. isShowEmpty: false,
  152. isShowEmptyText: '搜索相关商品',
  153. clubUserId: '',
  154. scrollHeight: '',
  155. productList: [],
  156. combinationProduct:[],
  157. zuheProductList:[],//组合商品列表
  158. showLoading: false,
  159. loadingNow: true,
  160. loadingText: '上拉加载更多',
  161. pageSize: 10,
  162. pageNum: 1,
  163. hasNextPage: false,
  164. pullFlag: true,
  165. fromRegularPurchasePage: false,
  166. cartQuantity: 0,
  167. showRegularBtn: false,
  168. isPrecedence:false,
  169. ladderPriceList:[],//是否 阶梯,
  170. tabIndex:0,
  171. goodsList:[],
  172. tabBars:[
  173. {name:'单一商品',id:'danyi'},
  174. {name:'组合商品',id:'zuhe'}
  175. ],
  176. isShow: false,
  177. }
  178. },
  179. created() {
  180. this.setScrollHeight();
  181. this.$api.getComStorage('orderUserInfo').then((resolve) =>{
  182. this.clubUserId = resolve.userID
  183. })
  184. },
  185. computed: {
  186. ...mapState(['hasLogin','userInfo'])
  187. },
  188. methods:{
  189. scrolltolower() {
  190. if(this.hasNextPage && this.pullFlag) {
  191. if(tabIndex ==0){
  192. this.getProductAgainInfo(true);
  193. }else if(tabIndex==1){
  194. getcombinationProduct(true);
  195. }
  196. }
  197. },
  198. setScrollHeight() {
  199. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  200. this.windowHeight = windowHeight - 1;
  201. this.scrollHeight = windowHeight - 1;
  202. },
  203. getProductAgainInfo(loadMore) {
  204. this.showLoading = true;
  205. this.loadingNow = true;
  206. this.loadingText = '加载中';
  207. this.isShowEmpty = false;
  208. if(loadMore) {this.pageNum += 1;}
  209. let params = {clubUserId:this.clubUserId,pageNum:this.pageNum,pageSize:this.pageSize,searchWord:this.searchInputVal}
  210. getSellerProduct(params).then(response =>{
  211. this.isShowWrapper = true
  212. const responseData = response.data;
  213. if(responseData.results && responseData.results.length > 0){
  214. this.hasNextPage = responseData.hasNextPage;
  215. this.isShowEmpty = false;
  216. if(loadMore) {
  217. this.productList = [...this.productList,...responseData.results];
  218. } else {
  219. this.productList = [...responseData.results];
  220. this.showSkeleton = false;
  221. }
  222. //价格显示处理
  223. let isActFlg,newProductList=[];
  224. this.productList.map((item, index)=> {
  225. if(item.actStatus == 1){
  226. isActFlg = true
  227. }else if(item.actStatus == 1 && item.ladderPriceFlag == '1'){
  228. isActFlg = true
  229. }else{
  230. isActFlg = false
  231. }
  232. newProductList.push(Object.assign({},item,{isShowActFlg:isActFlg}))
  233. })
  234. this.productList = newProductList
  235. // 防上拉暴滑
  236. this.pullFlag = false;
  237. setTimeout(()=>{
  238. this.pullFlag = true;
  239. },500)
  240. // 底部提示文案
  241. if(this.hasNextPage) {
  242. this.loadingText = '上拉加载更多';
  243. } else {
  244. this.showLoading = true;
  245. this.loadingNow = false;
  246. }
  247. } else {
  248. this.isShowEmpty = true;
  249. this.isShowEmptyText ='暂无相关商品'
  250. }
  251. }).catch(error =>{
  252. this.$util.msg(error.msg,2000);
  253. })
  254. },
  255. searchOpertor(tabIndex){//搜索商品
  256. if(tabIndex == 0){
  257. if(this.searchInputVal == ''){
  258. this.$util.msg('请输入商品关键词',2000)
  259. }else{
  260. this.pageNum = 1
  261. this.showSkeleton = true;
  262. this.getProductAgainInfo();
  263. }
  264. }else{
  265. this.pageNum = 1
  266. this.showSkeleton = true;
  267. this.getcombinationProduct();
  268. }
  269. },
  270. getcombinationProduct(loadMore){//组合搜索商品
  271. this.showLoading = true;
  272. this.loadingNow = true;
  273. this.loadingText = '加载中';
  274. this.isShowEmpty = false;
  275. if(loadMore) {this.pageNum += 1;}
  276. let params = {clubUserId:this.clubUserId,pageNum:this.pageNum,pageSize:this.pageSize,searchWord:this.searchInputVal}
  277. getcombinationProduct(params).then(response =>{
  278. this.isShowWrapper = true
  279. const responseData = response.data;
  280. if(responseData.results && responseData.results.length > 0){
  281. this.hasNextPage = responseData.hasNextPage;
  282. this.isShowEmpty = false;
  283. if(loadMore) {
  284. this.combinationProduct = [...this.combinationProduct,...responseData.results];
  285. } else {
  286. this.combinationProduct = [...responseData.results];
  287. this.showSkeleton = false;
  288. }
  289. // 防上拉暴滑
  290. this.pullFlag = false;
  291. setTimeout(()=>{
  292. this.pullFlag = true;
  293. },500)
  294. // 底部提示文案
  295. if(this.hasNextPage) {
  296. this.loadingText = '上拉加载更多';
  297. } else {
  298. this.showLoading = true;
  299. this.loadingNow = false;
  300. }
  301. } else {
  302. this.isShowEmpty = true;
  303. this.isShowEmptyText ='暂无相关商品'
  304. }
  305. }).catch(error =>{
  306. this.$util.msg(error.msg,2000);
  307. })
  308. },
  309. changeCountAdd(item,pros){//商品数量加加
  310. if(pros.initProductNum == 0){
  311. pros.initProductNum = pros.minBuyNumber
  312. this.processActivityPrice(pros)
  313. }else if(pros.initProductNum >= pros.minBuyNumber){
  314. pros.initProductNum++
  315. this.processActivityPrice(pros)
  316. }
  317. this.totalPeice(item)
  318. this.totalCount(item)
  319. this.totalKind(item)
  320. },
  321. changeCountSub(item,pros){//商品数量减减
  322. if(pros.initProductNum==0){
  323. this.$util.msg(`采购数量不能小于0`,2000);
  324. return
  325. }else{
  326. pros.initProductNum--
  327. this.processActivityPrice(pros)
  328. }
  329. this.totalPeice(item)
  330. this.totalCount(item)
  331. this.totalKind(item)
  332. },
  333. changeNnmber(e,item,pros){//输入商品数量更新
  334. let _value = e.detail.value;
  335. if(!this.$api.isNumber(_value)){
  336. pros.initProductNum = pros.minBuyNumber
  337. }else if(_value < pros.minBuyNumber){
  338. this.$util.msg(`该商品最小起订量为${pros.minBuyNumber}`,2000);
  339. pros.initProductNum = pros.minBuyNumber
  340. }else{
  341. pros.initProductNum = e.detail.value
  342. this.processActivityPrice(pros)
  343. }
  344. this.totalPeice(item)
  345. this.totalCount(item)
  346. this.totalKind(item)
  347. },
  348. totalPeice(item){ //计算总价格,每次调用此方法,将初始值为0,遍历价格并累加
  349. let prosPrice=0;
  350. let productsList =[];
  351. productsList=item.combinationProductList;
  352. productsList.forEach(pros=>{
  353. prosPrice+=pros.retailPrice*pros.initProductNum;
  354. item.productTotalAmount = prosPrice;
  355. })
  356. // console.log(prosPrice)
  357. },
  358. totalCount(item){//计算总数量
  359. let prosAllCount=0
  360. let productsList =[];
  361. productsList = item.combinationProductList
  362. productsList.forEach(pros=>{
  363. prosAllCount+=parseInt(pros.initProductNum);
  364. item.productTotalNum = prosAllCount
  365. })
  366. // console.log(prosAllCount)
  367. },
  368. totalKind(item){
  369. let productsList =[];
  370. let checkList = [];
  371. productsList=item.combinationProductList;
  372. productsList.forEach(pros=>{
  373. if(pros.initProductNum>0){
  374. checkList.push(pros)
  375. item.productKind = checkList.length
  376. }else{
  377. return item.productKind
  378. }
  379. })
  380. },
  381. processActivityPrice(pros){//单独处理活动价格和阶梯价格
  382. let ladderPriceList = pros.ladderPriceList;
  383. if(pros.ladderPriceFlag == '0' || pros.actStatus == 1){
  384. pros.totalPrice = pros.initProductNum*pros.retailPrice
  385. }else{
  386. ladderPriceList.forEach((item,index)=>{
  387. if(pros.initProductNum>=item.buyNum){
  388. pros.retailPrice = item.buyPrice
  389. pros.totalPrice = pros.initProductNum*item.buyPrice
  390. }
  391. })
  392. }
  393. },
  394. operationHanld(prop){
  395. this.$emit('operationConfim',prop);
  396. },
  397. alertjieti(pros){
  398. this.$emit('alertjietiConfim',pros);
  399. },
  400. changeTab(index){
  401. this.tabIndex = index;
  402. if(index == 0){
  403. this.loadingNow = false;
  404. }
  405. this.$emit('changetab',index);
  406. },
  407. navToDetailPage(id) {
  408. this.isModallayer = true;
  409. this.$api.navigateTo(`/pages/goods/product?id=${id}`);
  410. this.isModallayer = false;
  411. },
  412. toCartPage() {
  413. this.$emit('goCartPage')
  414. },
  415. repurchModel(){
  416. this.$util.modal('','此商品的价格有变化,原来的购买价已不适用','知道了','',false,() =>{})
  417. },
  418. onShowClose () {//输入框失去焦点时触发
  419. if(this.searchInputVal != ''){
  420. this.isShowClose = true
  421. }else{
  422. this.isShowClose = false
  423. }
  424. },
  425. delInputText(){//清除输入框内容
  426. this.searchInputVal = ''
  427. this.isShowClose = false
  428. }
  429. }
  430. }
  431. </script>
  432. <style lang="scss">
  433. .all-zuhe-list{
  434. background: #FFFFFF;
  435. }
  436. .foot_conten{
  437. width: 100%;
  438. background: #fff;
  439. font-size: 28rpx;
  440. text-align: center;
  441. height: 120rpx;
  442. line-height: 120rpx;
  443. display: inherit;
  444. margin-bottom: 20rpx;
  445. }
  446. .zuhe_foot-box{
  447. float: left;
  448. margin-left: 40rpx;
  449. }
  450. .zuhe_foot-box text{
  451. margin-right: 30rpx;
  452. }
  453. .foot_conten .buycart{
  454. width: 162rpx;
  455. height: 64rpx;
  456. background: #EFAF00 !important;
  457. color: #fff;
  458. font-size: 28rpx;
  459. border-radius: 36rpx;
  460. text-align: center;
  461. line-height: 64rpx;
  462. bottom: -25rpx;
  463. }
  464. .price-none{
  465. font-size: 24rpx;
  466. color: #666666;
  467. }
  468. .zuhe_title{
  469. background:#FFFFFF;
  470. height: 76rpx;
  471. font-size: 28rpx;
  472. color: #1675E1;
  473. border-bottom: 4rpx solid #1675E1 ;
  474. line-height: 76rpx;
  475. padding-left: 30rpx;
  476. &.active{
  477. color: #E15616;
  478. border-bottom: 4rpx solid #E15616;
  479. }
  480. }
  481. .icon-gou{
  482. color: #E15616;
  483. position: absolute;
  484. top: 22rpx;
  485. right: 0rpx;
  486. font-weight: bold
  487. }
  488. .addstyle{
  489. background: linear-gradient(-42deg, transparent 28rpx, #E15616 0) top right;
  490. color: #FFFFFF;
  491. }
  492. .tabstyle{
  493. width: 128rpx;
  494. height: 64rpx;
  495. font-size: 26rpx;
  496. display: inline-block;
  497. border-radius: 10rpx;
  498. text-align: center;
  499. line-height: 64rpx;
  500. border: 2rpx solid #EEEEEE;
  501. position: relative;
  502. margin-right: 12rpx;
  503. }
  504. .commodity-list-wrapper {
  505. scroll-view {
  506. height: 100%;
  507. }
  508. .show-more-btn {
  509. width: 276rpx;
  510. height: 52rpx;
  511. line-height: 52rpx;
  512. border: 2rpx solid #D8D8D8;
  513. background: #F7F7F7;
  514. font-size: 26rpx;
  515. margin: 26rpx 0;
  516. position: absolute;
  517. left: 50%;
  518. margin-left: -138rpx;
  519. }
  520. }
  521. .good-search{
  522. height: 64rpx;
  523. width: 702rpx;
  524. padding: 24rpx;
  525. background: #FFFFFF;
  526. display: flex;
  527. align-items: center;
  528. margin-bottom: 20rpx;
  529. position: fixed;
  530. top: 0;
  531. left: 0;
  532. z-index: 999;
  533. .search-from{
  534. width: 326rpx;
  535. height: 64rpx;
  536. background: #F7F7F7;
  537. border-radius: 14rpx;
  538. float: left;
  539. position: relative;
  540. .input{
  541. // width: 500rpx;
  542. height: 64rpx;
  543. float: left;
  544. line-height: 64rpx;
  545. color: $text-color;
  546. font-size: $font-size-24;
  547. }
  548. .icon-iconfonticonfontsousuo1{
  549. width: 64rpx;
  550. height: 64rpx;
  551. line-height: 64rpx;
  552. text-align: center;
  553. display: block;
  554. font-size: $font-size-38;
  555. float: left;
  556. color: #999999;
  557. }
  558. .icon-shanchu1{
  559. font-size: $font-size-32;
  560. color: #999999;
  561. position: absolute;
  562. width: 64rpx;
  563. height: 64rpx;
  564. line-height: 64rpx;
  565. top: 0;
  566. right: 0;
  567. text-align: center;
  568. z-index: 10;
  569. }
  570. }
  571. .search-btn{
  572. // width: 120rpx;
  573. line-height: 64rpx;
  574. text-align: center;
  575. font-size: $font-size-28;
  576. color: $color-system;
  577. float: left;
  578. background: #FFFFFF;
  579. margin-left: 10rpx;
  580. }
  581. }
  582. .all-type-list-content {
  583. height: 240rpx;
  584. padding: 24rpx;
  585. background: #fff;
  586. margin-bottom: 2rpx;
  587. display: flex;
  588. flex-direction: row;
  589. box-sizing: content-box;
  590. .list-img {
  591. width: 240rpx;
  592. height: 240rpx !important;
  593. margin-right: 26rpx;
  594. border-radius: 10rpx;
  595. border: 2rpx solid #f3f3f3;
  596. }
  597. }
  598. .zuhe-list-content{
  599. width: 655rpx;
  600. // height: 214rpx;
  601. background: #fff;
  602. border: 2rpx solid #DEF4FF;
  603. display: flex;
  604. flex-direction: row;
  605. box-sizing: content-box;
  606. margin-top: 10rpx;
  607. border-radius: 14rpx;
  608. margin: 10rpx auto;
  609. padding: 20rpx;
  610. &.stylecontent{
  611. border: 2rpx solid #FFF0DE;
  612. }
  613. }
  614. .list-details-info {
  615. width: 100%;
  616. flex-direction: column;
  617. font-size: 26rpx;
  618. position: relative;
  619. .list-details-title {
  620. line-height: 38rpx;
  621. text-overflow: ellipsis;
  622. overflow: hidden;
  623. display: -webkit-box;
  624. -webkit-line-clamp: 2;
  625. line-clamp: 2;
  626. -webkit-box-orient: vertical;
  627. }
  628. .list-details-specs {
  629. width: 100%;
  630. display: inline-block;
  631. margin-top: 8rpx;
  632. color: #666666;
  633. }
  634. .list-details-miniQuantity {
  635. width: 100%;
  636. display: inline-block;
  637. margin-top: 7rpx;
  638. }
  639. }
  640. .list-details-price {
  641. width: 100%;
  642. display: flex;
  643. flex-direction: row;
  644. justify-content: space-between;
  645. .price-icon {
  646. width: 22rpx;
  647. height: 28rpx;
  648. vertical-align: middle;
  649. margin-right: 10rpx;
  650. }
  651. .price-icon + text {
  652. font-size: 25rpx;
  653. vertical-align: middle;
  654. }
  655. .list-login-now {
  656. width: 375rpx;
  657. color: #F8C499;
  658. position: absolute;
  659. bottom: 0;
  660. .p-no{
  661. float: left;
  662. font-size: $font-size-24;
  663. color: $color-system;
  664. margin-right: 10rpx;
  665. }
  666. }
  667. .login-now {
  668. padding: 10rpx 10rpx 10rpx 0;
  669. }
  670. .list-none{
  671. margin-top: 15rpx;
  672. .price-small{
  673. font-size:$font-size-24;
  674. line-height: 40rpx;
  675. color: #FF2A2A;
  676. }
  677. }
  678. .list-shop{
  679. width: 100%;
  680. height: auto;
  681. flex: 6;
  682. .list-price {
  683. // width: 100%;
  684. color: #FF2A2A;
  685. float: left;
  686. line-height:36rpx ;
  687. align-items: center;
  688. justify-content: center;
  689. .price-larger {
  690. margin-top: 20rpx;
  691. font-size: $font-size-30;
  692. display: inline-block;
  693. margin-right: 20rpx;
  694. }
  695. .zuhe_price-larger{
  696. color: #666666;
  697. float: left;
  698. }
  699. .price-two{
  700. color: #666666;
  701. float: right;
  702. }
  703. .zuhe_list_zj{
  704. color: #FF2A2A;
  705. }
  706. .price-view{
  707. display: inline-block;
  708. width: 40rpx;
  709. border-radius: 10rpx;
  710. font-size: $font-size-24;
  711. text-align: center;
  712. color: #FFFFFF;
  713. height: 36rpx;
  714. line-height: 36rpx;
  715. margin-right: 8rpx;
  716. &.ladder{
  717. background: linear-gradient(135deg,rgba(255,0,0,1) 0%,rgba(242,143,49,1) 100%);
  718. }
  719. &.activity{
  720. background: linear-gradient(135deg,rgba(128,0,255,1) 0%,rgba(242,49,153,1) 100%);
  721. }
  722. }
  723. }
  724. .zuhe_list_price .price-view{
  725. margin-left:10rpx;
  726. }
  727. .zuhe_list_price{
  728. width: 70%;
  729. overflow: hidden;
  730. }
  731. .count{
  732. margin-top: 10rpx;
  733. float: right;
  734. border: 1px solid #EEEEEE;
  735. border-radius: 10rpx;
  736. .number-box{
  737. display: flex;
  738. justify-content: center;
  739. align-items: center;
  740. .iconfont{
  741. font-size: $font-size-24;
  742. padding:0 16rpx;
  743. color: $text-color;
  744. text-align: center;
  745. line-height: 48rpx;
  746. font-weight: bold;
  747. }
  748. .btn-input{
  749. width: 48rpx;
  750. height: 48rpx;
  751. line-height: 48rpx;
  752. background: #F8F8F8;
  753. border-radius: 4rpx;
  754. text-align: center;
  755. font-size: $font-size-24;
  756. border-right: 1px solid #EEEEEE;
  757. border-left: 1px solid #EEEEEE;
  758. }
  759. }
  760. }
  761. .list-price-none{
  762. width: 100%;
  763. .price-none{
  764. text-decoration: line-through;
  765. color: #999999;
  766. display: inline-block;
  767. }
  768. .icon-wenhao{
  769. font-size: $font-size-32;
  770. color: #0091FF;
  771. margin-left: 6rpx;
  772. }
  773. }
  774. }
  775. .add-cart-btn {
  776. flex: 4;
  777. width: 156rpx;
  778. height: 64rpx;
  779. line-height: 64rpx;
  780. border-radius: 32rpx;
  781. color: #333333;
  782. font-size: 26rpx;
  783. margin-right: 0;
  784. // background:linear-gradient(135deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  785. background: #FFFFFF;
  786. border: 2rpx solid #C9C9C9;
  787. }
  788. .zuhe_btn{
  789. float: right;
  790. }
  791. }
  792. .zuhe_list_price{
  793. display: block !important;
  794. }
  795. .cart-icon {
  796. width: 92rpx;
  797. height: 92rpx;
  798. border-radius: 50%;
  799. background: rgba(255, 147, 0, 0.5);
  800. position: fixed;
  801. right: 24rpx;
  802. bottom: 37%;
  803. display: flex;
  804. align-items: center;
  805. justify-content: center;
  806. cursor: pointer;
  807. image {
  808. width: 58rpx;
  809. height: 58rpx;
  810. }
  811. text {
  812. font-size: 28rpx;
  813. position: absolute;
  814. top: -10rpx;
  815. right: 0;
  816. }
  817. }
  818. .zuhe_list_text{
  819. margin-top: 20rpx;
  820. }
  821. </style>