immediatelyList.vue 21 KB

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