secondHand.vue 20 KB

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