secondHand.vue 19 KB

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