immediatelyList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  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(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 :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>总额:<text class="foot_text">{{item.productTotalAmount.toFixed(2)}}</text></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(tabIndex) {
  192. if(this.hasNextPage && this.pullFlag) {
  193. if(tabIndex ==0){
  194. this.getProductAgainInfo(true);
  195. }else if(tabIndex==1){
  196. console.log('tabindex11111')
  197. this.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: 490rpx;
  459. }
  460. .zuhe_foot-box text{
  461. margin-right: 36rpx;
  462. }
  463. .foot_text{
  464. color: #FF2A2A;
  465. }
  466. .foot_conten .buycart{
  467. width: 162rpx;
  468. height: 64rpx;
  469. background: #EFAF00 !important;
  470. color: #fff;
  471. font-size: 28rpx;
  472. border-radius: 36rpx;
  473. text-align: center;
  474. line-height: 64rpx;
  475. float: right;
  476. }
  477. .price-none{
  478. font-size: 24rpx;
  479. color: #666666;
  480. }
  481. .zuhe_title{
  482. background:#FFFFFF;
  483. height: 76rpx;
  484. font-size: 28rpx;
  485. color: #1675E1;
  486. border-bottom: 4rpx solid #1675E1 ;
  487. line-height: 76rpx;
  488. padding-left: 30rpx;
  489. &.active{
  490. color: #E15616;
  491. border-bottom: 4rpx solid #E15616;
  492. }
  493. }
  494. .icon-gou{
  495. color: #E15616;
  496. position: absolute;
  497. top: 22rpx;
  498. right: 0rpx;
  499. font-weight: bold
  500. }
  501. .addstyle{
  502. background: linear-gradient(-42deg, transparent 28rpx, #E15616 0) top right;
  503. color: #FFFFFF;
  504. }
  505. .tabstyle{
  506. width: 128rpx;
  507. height: 64rpx;
  508. font-size: 26rpx;
  509. display: inline-block;
  510. border-radius: 10rpx;
  511. text-align: center;
  512. line-height: 64rpx;
  513. border: 2rpx solid #EEEEEE;
  514. position: relative;
  515. margin-right: 12rpx;
  516. }
  517. .commodity-list-wrapper {
  518. scroll-view {
  519. height: 100%;
  520. }
  521. .show-more-btn {
  522. width: 276rpx;
  523. height: 52rpx;
  524. line-height: 52rpx;
  525. border: 2rpx solid #D8D8D8;
  526. background: #F7F7F7;
  527. font-size: 26rpx;
  528. margin: 26rpx 0;
  529. position: absolute;
  530. left: 50%;
  531. margin-left: -138rpx;
  532. }
  533. }
  534. .good-search{
  535. height: 64rpx;
  536. width: 702rpx;
  537. padding: 24rpx;
  538. background: #FFFFFF;
  539. display: flex;
  540. align-items: center;
  541. margin-bottom: 20rpx;
  542. position: fixed;
  543. top: 0;
  544. left: 0;
  545. z-index: 999;
  546. .search-from{
  547. width: 326rpx;
  548. height: 64rpx;
  549. background: #F7F7F7;
  550. border-radius: 14rpx;
  551. float: left;
  552. position: relative;
  553. .input{
  554. // width: 500rpx;
  555. height: 64rpx;
  556. float: left;
  557. line-height: 64rpx;
  558. color: $text-color;
  559. font-size: $font-size-24;
  560. }
  561. .icon-iconfonticonfontsousuo1{
  562. width: 64rpx;
  563. height: 64rpx;
  564. line-height: 64rpx;
  565. text-align: center;
  566. display: block;
  567. font-size: $font-size-38;
  568. float: left;
  569. color: #999999;
  570. }
  571. .icon-shanchu1{
  572. font-size: $font-size-32;
  573. color: #999999;
  574. position: absolute;
  575. width: 64rpx;
  576. height: 64rpx;
  577. line-height: 64rpx;
  578. top: 0;
  579. right: 0;
  580. text-align: center;
  581. z-index: 10;
  582. }
  583. }
  584. .search-btn{
  585. // width: 120rpx;
  586. line-height: 64rpx;
  587. text-align: center;
  588. font-size: $font-size-28;
  589. color: $color-system;
  590. float: left;
  591. background: #FFFFFF;
  592. margin-left: 10rpx;
  593. }
  594. }
  595. .all-type-list-content {
  596. // height: 240rpx;
  597. padding: 24rpx;
  598. background: #fff;
  599. margin-bottom: 2rpx;
  600. display: flex;
  601. flex-direction: row;
  602. box-sizing: content-box;
  603. .list-img {
  604. width: 312rpx;
  605. height: 207rpx !important;
  606. margin-right: 26rpx;
  607. border-radius: 10rpx;
  608. border: 2rpx solid #f3f3f3;
  609. }
  610. }
  611. .zuhe-list-content{
  612. width: 655rpx;
  613. // height: 214rpx;
  614. background: #fff;
  615. border: 2rpx solid #DEF4FF;
  616. display: flex;
  617. flex-direction: row;
  618. box-sizing: content-box;
  619. margin-top: 10rpx;
  620. border-radius: 14rpx;
  621. margin: 10rpx auto;
  622. padding: 20rpx;
  623. &.stylecontent{
  624. border: 2rpx solid #FFF0DE;
  625. }
  626. }
  627. .list-details-info {
  628. width: 100%;
  629. flex-direction: column;
  630. font-size: 26rpx;
  631. position: relative;
  632. .list-details-title {
  633. line-height: 38rpx;
  634. text-overflow: ellipsis;
  635. overflow: hidden;
  636. display: -webkit-box;
  637. -webkit-line-clamp: 2;
  638. line-clamp: 2;
  639. -webkit-box-orient: vertical;
  640. }
  641. .list-details-specs {
  642. width: 100%;
  643. display: inline-block;
  644. margin-top: 8rpx;
  645. color: #666666;
  646. }
  647. .list-details-miniQuantity {
  648. width: 100%;
  649. display: inline-block;
  650. margin-top: 7rpx;
  651. }
  652. }
  653. .list-details-price {
  654. width: 100%;
  655. display: flex;
  656. flex-direction: row;
  657. justify-content: space-between;
  658. .price-icon {
  659. width: 22rpx;
  660. height: 28rpx;
  661. vertical-align: middle;
  662. margin-right: 10rpx;
  663. }
  664. .price-icon + text {
  665. font-size: 25rpx;
  666. vertical-align: middle;
  667. }
  668. .list-login-now {
  669. width: 375rpx;
  670. color: #F8C499;
  671. position: absolute;
  672. bottom: 0;
  673. .p-no{
  674. float: left;
  675. font-size: $font-size-24;
  676. color: $color-system;
  677. margin-right: 10rpx;
  678. }
  679. }
  680. .login-now {
  681. padding: 10rpx 10rpx 10rpx 0;
  682. }
  683. .list-none{
  684. margin-top: 15rpx;
  685. .price-small{
  686. font-size:$font-size-24;
  687. line-height: 40rpx;
  688. color: #FF2A2A;
  689. }
  690. }
  691. .list-shop{
  692. width: 100%;
  693. height: auto;
  694. flex: 6;
  695. overflow: hidden;
  696. .list-price {
  697. // width: 100%;
  698. color: #FF2A2A;
  699. float: left;
  700. line-height:36rpx ;
  701. align-items: center;
  702. justify-content: center;
  703. .price-larger {
  704. margin-top: 20rpx;
  705. font-size: $font-size-30;
  706. display: inline-block;
  707. margin-right: 20rpx;
  708. }
  709. .zuhe_price-larger{
  710. color: #666666;
  711. float: left;
  712. // margin-right: 85rpx;
  713. }
  714. .price-two{
  715. color: #666666;
  716. float: right;
  717. }
  718. .zuhe_list_zj{
  719. color: #FF2A2A;
  720. }
  721. .price-view{
  722. display: inline-block;
  723. width: 40rpx;
  724. border-radius: 10rpx;
  725. font-size: $font-size-24;
  726. text-align: center;
  727. color: #FFFFFF;
  728. height: 36rpx;
  729. line-height: 36rpx;
  730. margin-right: 8rpx;
  731. &.ladder{
  732. background: linear-gradient(135deg,rgba(255,0,0,1) 0%,rgba(242,143,49,1) 100%);
  733. }
  734. &.activity{
  735. background: linear-gradient(135deg,rgba(128,0,255,1) 0%,rgba(242,49,153,1) 100%);
  736. }
  737. }
  738. }
  739. .zuhe_list_price .price-view{
  740. margin-left:10rpx;
  741. }
  742. .zuhe_list_price{
  743. width: 470rpx;
  744. overflow: hidden;
  745. margin-top: 10rpx;
  746. }
  747. .count{
  748. margin-top: 10rpx;
  749. float: right;
  750. border: 1px solid #EEEEEE;
  751. border-radius: 10rpx;
  752. .number-box{
  753. display: flex;
  754. justify-content: center;
  755. align-items: center;
  756. .iconfont{
  757. font-size: $font-size-24;
  758. padding:0 16rpx;
  759. color: $text-color;
  760. text-align: center;
  761. line-height: 48rpx;
  762. font-weight: bold;
  763. }
  764. .btn-input{
  765. width: 48rpx;
  766. height: 48rpx;
  767. line-height: 48rpx;
  768. background: #F8F8F8;
  769. border-radius: 4rpx;
  770. text-align: center;
  771. font-size: $font-size-24;
  772. border-right: 1px solid #EEEEEE;
  773. border-left: 1px solid #EEEEEE;
  774. }
  775. }
  776. }
  777. .list-price-none{
  778. width: 100%;
  779. .price-none{
  780. text-decoration: line-through;
  781. color: #999999;
  782. display: inline-block;
  783. }
  784. .icon-wenhao{
  785. font-size: $font-size-32;
  786. color: #0091FF;
  787. margin-left: 6rpx;
  788. }
  789. }
  790. }
  791. .add-cart-btn {
  792. flex: 4;
  793. width: 156rpx;
  794. height: 64rpx;
  795. line-height: 64rpx;
  796. border-radius: 32rpx;
  797. color: #333333;
  798. font-size: 26rpx;
  799. margin-right: 0;
  800. // background:linear-gradient(135deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  801. background: #FFFFFF;
  802. border: 2rpx solid #C9C9C9;
  803. }
  804. .zuhe_btn{
  805. float: right;
  806. }
  807. }
  808. .zuhe_list_price{
  809. display: block !important;
  810. }
  811. .cart-icon {
  812. width: 92rpx;
  813. height: 92rpx;
  814. border-radius: 50%;
  815. background: rgba(255, 147, 0, 0.5);
  816. position: fixed;
  817. right: 24rpx;
  818. bottom: 37%;
  819. display: flex;
  820. align-items: center;
  821. justify-content: center;
  822. cursor: pointer;
  823. image {
  824. width: 58rpx;
  825. height: 58rpx;
  826. }
  827. text {
  828. font-size: 28rpx;
  829. position: absolute;
  830. top: -10rpx;
  831. right: 0;
  832. }
  833. }
  834. .zuhe_list_text{
  835. margin-top: 10rpx;
  836. }
  837. </style>