immediatelyList.vue 25 KB

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