immediatelyList.vue 23 KB

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