secondHand.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  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
  284. if(index==0){
  285. this.instrumentType=''
  286. }
  287. this.getProductAgainInfo();
  288. },
  289. toFixedFn(text){//处理小数点后两位数
  290. return Number(text).toFixed(2);
  291. },
  292. hideTabIndexSelect(){
  293. this.isTabIndexSelect = false
  294. },
  295. discard(){
  296. //丢弃
  297. },
  298. btnClick() {
  299. this.$emit('goCartPage')
  300. },
  301. btnTouchstart() {
  302. // console.log('btnTouchstart');
  303. },
  304. btnTouchend() {
  305. // console.log('btnTouchend');
  306. }
  307. }
  308. }
  309. </script>
  310. <style lang="scss">
  311. .all-zuhe-list{
  312. background: #FFFFFF;
  313. }
  314. .foot_conten{
  315. width: 655rpx;
  316. background: #fff;
  317. font-size: 28rpx;
  318. height: 80rpx;
  319. // line-height: 80rpx;
  320. display: inherit;
  321. padding: 10px;
  322. overflow: hidden;
  323. margin: 20rpx auto;
  324. }
  325. .zuhe_foot-box{
  326. float: left;
  327. overflow: hidden;
  328. white-space: nowrap;
  329. // text-overflow: ellipsis;
  330. width: 490rpx;
  331. }
  332. .zuhe_foot-box text{
  333. margin-right: 36rpx;
  334. }
  335. .foot_text{
  336. color: #FF2A2A;
  337. }
  338. .foot_conten .buycart{
  339. width: 162rpx;
  340. height: 64rpx;
  341. background: #EFAF00 !important;
  342. color: #fff;
  343. font-size: 28rpx;
  344. border-radius: 36rpx;
  345. text-align: center;
  346. line-height: 64rpx;
  347. float: right;
  348. }
  349. .price-none{
  350. font-size: 24rpx;
  351. color: #666666;
  352. }
  353. .zuhe_title{
  354. background:#FFFFFF;
  355. height: 76rpx;
  356. font-size: 28rpx;
  357. color: #1675E1;
  358. border-bottom: 4rpx solid #1675E1 ;
  359. line-height: 76rpx;
  360. padding-left: 30rpx;
  361. &.active{
  362. color: #E15616;
  363. border-bottom: 4rpx solid #E15616;
  364. }
  365. }
  366. .tabstyle{
  367. width: 128rpx;
  368. height: 76rpx;
  369. font-size: 26rpx;
  370. display: inline-block;
  371. border-radius: 10rpx;
  372. text-align: center;
  373. line-height: 76rpx;
  374. border: 2rpx solid #EEEEEE;
  375. position: relative;
  376. margin-right: 12rpx;
  377. &.addstyle{
  378. background: $btn-confirm;
  379. color: #FFFFFF;
  380. &::before{
  381. content: "";
  382. width: 0;
  383. height: 0;
  384. border-top: 20rpx solid transparent;
  385. border-right: 20rpx solid #FFFFFF;
  386. border-left: 20rpx solid transparent;
  387. border-bottom: 20rpx solid #FFFFFF;
  388. position: absolute;
  389. right: 0;
  390. bottom: 0;
  391. }
  392. }
  393. .icon-gou{
  394. width: 36rpx;
  395. height: 36rpx;
  396. line-height: 36rpx;
  397. text-align: center;
  398. color: #E15616;
  399. position: absolute;
  400. bottom: -5rpx;
  401. right: -5rpx;
  402. font-weight: bold;
  403. font-size: $font-size-28;
  404. }
  405. }
  406. .commodity-list-wrapper {
  407. scroll-view {
  408. height: 100%;
  409. }
  410. .show-more-btn {
  411. width: 276rpx;
  412. height: 52rpx;
  413. line-height: 52rpx;
  414. border: 2rpx solid #D8D8D8;
  415. background: #F7F7F7;
  416. font-size: 26rpx;
  417. margin: 26rpx 0;
  418. position: absolute;
  419. left: 50%;
  420. margin-left: -138rpx;
  421. }
  422. }
  423. .good-search{
  424. height: auto;
  425. width: 702rpx;
  426. padding: 10rpx 24rpx;
  427. background: #FFFFFF;
  428. display: flex;
  429. align-items: center;
  430. margin-bottom: 20rpx;
  431. position: fixed;
  432. flex-direction: column;
  433. top: 0;
  434. left: 0;
  435. z-index: 999;
  436. .good-search-top{
  437. width: 702rpx;
  438. height: 70rpx;
  439. flex: 1;
  440. .search-from{
  441. width: 582rpx;
  442. height: 70rpx;
  443. background: #F7F7F7;
  444. border-radius: 40rpx;
  445. float: left;
  446. position: relative;
  447. .input{
  448. width: 340rpx;
  449. height: 70rpx;
  450. float: left;
  451. line-height: 70rpx;
  452. color: $text-color;
  453. font-size: $font-size-24;
  454. }
  455. .icon-iconfonticonfontsousuo1{
  456. width: 64rpx;
  457. height: 70rpx;
  458. line-height: 70rpx;
  459. text-align: center;
  460. display: block;
  461. font-size: $font-size-38;
  462. float: left;
  463. color: #999999;
  464. }
  465. .icon-shanchu1{
  466. font-size: $font-size-32;
  467. color: #999999;
  468. position: absolute;
  469. width: 120rpx;
  470. height: 70rpx;
  471. line-height: 70rpx;
  472. top: 0;
  473. right: 0;
  474. text-align: center;
  475. z-index: 10;
  476. }
  477. }
  478. .search-btn{
  479. // width: 120rpx;
  480. line-height: 70rpx;
  481. text-align: center;
  482. font-size: $font-size-28;
  483. color: $color-system;
  484. float: left;
  485. background: #FFFFFF;
  486. margin-left: 10rpx;
  487. }
  488. }
  489. .good-search-tabs{
  490. width: 702rpx;
  491. height: auto;
  492. flex: 1;
  493. position: relative;
  494. .good-search-tabs-t{
  495. height: 64rpx;
  496. width: 702rpx;
  497. padding: 10rpx 0;
  498. display: flex;
  499. justify-content: center;
  500. justify-items: center;
  501. .tabs-item{
  502. flex: 1;
  503. height: 64rpx;
  504. border-radius: 10rpx;
  505. background: #F7F7F7;
  506. margin-right: 22rpx;
  507. line-height: 64rpx;
  508. font-size: $font-size-28;
  509. color: #333333;
  510. text-align: center;
  511. position: relative;
  512. .icon-xiangxia1{
  513. width: 64rpx;
  514. height: 64rpx;
  515. line-height: 64rpx;
  516. text-align: center;
  517. color: #333333;
  518. font-size: $font-size-24;
  519. transform:rotate(0deg);
  520. &.reto{
  521. transform:rotate(180deg);
  522. }
  523. }
  524. &.active{
  525. color: $color-system;
  526. .icon-xiangxia1{
  527. color: $color-system;
  528. }
  529. }
  530. &:last-child{
  531. margin-right: 0;
  532. }
  533. }
  534. }
  535. .tabs-item-first{
  536. position: absolute;
  537. bottom: -308rpx;
  538. left: -24rpx;
  539. height: auto;
  540. width: 702rpx;
  541. background-color: #FFF;
  542. z-index: 999;
  543. padding: 0 24rpx 10rpx 24rpx;
  544. border-top: 1px solid #F7F7F7;
  545. .tabs-item{
  546. width: 100%;
  547. height: 70rpx;
  548. line-height: 70rpx;
  549. font-size: $font-size-28;
  550. color: #333333;
  551. text-align: left;
  552. float: left;
  553. position: relative;
  554. border-bottom: 1px solid #F7F7F7;
  555. &:last-child{
  556. border-bottom: none;
  557. }
  558. .icon-gou{
  559. display: block;
  560. width: 70rpx;
  561. height: 70rpx;
  562. line-height: 70rpx;
  563. text-align: center;
  564. color: #333333;
  565. font-size: $font-size-40;
  566. position: absolute;
  567. right: 0;
  568. top: 0;
  569. }
  570. &.active{
  571. color: $color-system;
  572. .icon-gou{
  573. color: $color-system;
  574. }
  575. }
  576. }
  577. }
  578. }
  579. }
  580. .all-type-list-content {
  581. // height: 240rpx;
  582. padding: 24rpx;
  583. background: #fff;
  584. margin-bottom: 2rpx;
  585. display: flex;
  586. flex-direction: row;
  587. box-sizing: content-box;
  588. .list-img {
  589. width: 312rpx;
  590. height: 207rpx !important;
  591. margin-right: 26rpx;
  592. border-radius: 10rpx;
  593. border: 2rpx solid #f3f3f3;
  594. }
  595. }
  596. .list-details-info {
  597. width: 100%;
  598. flex-direction: column;
  599. font-size: 26rpx;
  600. position: relative;
  601. .list-details-title {
  602. position: relative;
  603. .tabs{
  604. width: 38rpx;
  605. height: 38rpx;
  606. position: absolute;
  607. top: 0;
  608. left: 0;
  609. image{
  610. width: 38rpx;
  611. height: 38rpx;
  612. display: block;
  613. }
  614. }
  615. .name{
  616. width: 100%;
  617. line-height: 38rpx;
  618. text-overflow: ellipsis;
  619. overflow: hidden;
  620. display: -webkit-box;
  621. -webkit-line-clamp: 2;
  622. line-clamp: 2;
  623. -webkit-box-orient: vertical;
  624. }
  625. }
  626. .list-details-specs {
  627. width: 100%;
  628. display: inline-block;
  629. margin-top: 8rpx;
  630. color: #666666;
  631. }
  632. .list-details-miniQuantity {
  633. width: 100%;
  634. display: inline-block;
  635. margin-top: 7rpx;
  636. }
  637. }
  638. .list-details-price {
  639. width: 100%;
  640. display: flex;
  641. flex-direction: row;
  642. justify-content: space-between;
  643. margin-top: 80rpx;
  644. .price-icon {
  645. width: 22rpx;
  646. height: 28rpx;
  647. vertical-align: middle;
  648. margin-right: 10rpx;
  649. }
  650. .price-icon + text {
  651. font-size: 25rpx;
  652. vertical-align: middle;
  653. }
  654. .list-login-now {
  655. width: 375rpx;
  656. color: #F8C499;
  657. position: absolute;
  658. bottom: 0;
  659. .p-no{
  660. float: left;
  661. font-size: $font-size-24;
  662. color: $color-system;
  663. margin-right: 10rpx;
  664. }
  665. }
  666. .login-now {
  667. padding: 10rpx 10rpx 10rpx 0;
  668. }
  669. .list-none{
  670. margin-top: 15rpx;
  671. .price-small{
  672. font-size:$font-size-24;
  673. line-height: 40rpx;
  674. color: #FF2A2A;
  675. }
  676. }
  677. .list-price-loding{
  678. flex: 6;
  679. font-size:$font-size-24;
  680. line-height: 64rpx;
  681. color: #FF2A2A;
  682. }
  683. .list-shop{
  684. width: 100%;
  685. height: auto;
  686. flex: 6;
  687. overflow: hidden;
  688. .list-price {
  689. // width: 100%;
  690. color: #FF2A2A;
  691. float: left;
  692. line-height:36rpx ;
  693. align-items: center;
  694. justify-content: center;
  695. .price-larger {
  696. margin-top: 20rpx;
  697. font-size: $font-size-30;
  698. display: inline-block;
  699. margin-right: 20rpx;
  700. }
  701. .zuhe_price-larger{
  702. color: #666666;
  703. // float: left;
  704. // margin-right: 85rpx;
  705. }
  706. .price-two{
  707. color: #666666;
  708. float: left;
  709. }
  710. .zuhe_list_zj{
  711. color: #FF2A2A;
  712. }
  713. .price-view{
  714. display: inline-block;
  715. width: 40rpx;
  716. border-radius: 10rpx;
  717. font-size: $font-size-22;
  718. text-align: center;
  719. color: #FFFFFF;
  720. height: 36rpx;
  721. line-height: 36rpx;
  722. margin-right: 8rpx;
  723. &.ladder{
  724. background: linear-gradient(135deg,rgba(255,0,0,1) 0%,rgba(242,143,49,1) 100%);
  725. }
  726. &.activity{
  727. background: linear-gradient(135deg,rgba(128,0,255,1) 0%,rgba(242,49,153,1) 100%);
  728. }
  729. }
  730. }
  731. .zuhe_list_price .price-view{
  732. margin-left:20rpx;
  733. float: left;
  734. margin-top: 5rpx;
  735. }
  736. .zuhe_list_price{
  737. width: 400rpx;
  738. overflow: hidden;
  739. margin-top: 10rpx;
  740. }
  741. .count{
  742. margin-top: 50rpx;
  743. float: right;
  744. border: 1px solid #EEEEEE;
  745. border-radius: 10rpx;
  746. .number-box{
  747. display: flex;
  748. justify-content: center;
  749. align-items: center;
  750. .iconfont{
  751. font-size: $font-size-24;
  752. padding:0 16rpx;
  753. color: $text-color;
  754. text-align: center;
  755. line-height: 48rpx;
  756. font-weight: bold;
  757. }
  758. .btn-input{
  759. width: 100rpx;
  760. height: 48rpx;
  761. line-height: 48rpx;
  762. background: #F8F8F8;
  763. border-radius: 4rpx;
  764. text-align: center;
  765. font-size: $font-size-24;
  766. border-right: 1px solid #EEEEEE;
  767. border-left: 1px solid #EEEEEE;
  768. }
  769. }
  770. }
  771. .list-price-none{
  772. width: 100%;
  773. .price-none{
  774. text-decoration: line-through;
  775. color: #999999;
  776. display: inline-block;
  777. }
  778. .icon-wenhao{
  779. font-size: $font-size-32;
  780. color: #0091FF;
  781. margin-left: 6rpx;
  782. }
  783. }
  784. }
  785. .add-cart-btn {
  786. flex: 4;
  787. width: 156rpx;
  788. height: 64rpx;
  789. line-height: 64rpx;
  790. border-radius: 32rpx;
  791. color: #333333;
  792. font-size: 26rpx;
  793. margin-right: 0;
  794. // background:linear-gradient(135deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  795. background: #FFFFFF;
  796. border: 2rpx solid #C9C9C9;
  797. }
  798. .zuhe_btn{
  799. float: right;
  800. }
  801. }
  802. .popup-tabs{
  803. position: fixed;
  804. top: 0;
  805. width: 100%;
  806. height: 100%;
  807. z-index: 888;
  808. .mask{
  809. position: fixed;
  810. top: 0;
  811. width: 100%;
  812. height: 100%;
  813. z-index: 21;
  814. background-color: rgba(0, 0, 0, 0.6);
  815. }
  816. }
  817. </style>