immediatelyList.vue 23 KB

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