immediatelyList.vue 23 KB

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