search.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. <template>
  2. <view class="search-container">
  3. <view class="search-main">
  4. <view class="search-tab">
  5. <view class="search-tab-btn" @click="topBubble">
  6. <text>{{ tabValue }}</text>
  7. <text class="iconfont icon-xiangxiajiantou"></text>
  8. </view>
  9. <tui-bubble-popup :show="show" :mask="true" position="absolute" direction="top" @close="topBubble" width="140rpx"
  10. left="10rpx" bottom="0rpx" translateY="100%" triangleRight="60rpx" triangleTop="-22rpx" :maskBgColor="maskBgColor">
  11. <view class="tui-menu-item" @tap="selectTabs(1)">产品</view>
  12. <view class="tui-menu-item" @tap="selectTabs(2)">供应商</view>
  13. <view class="tui-menu-item" @tap="selectTabs(3)">项目仪器</view>
  14. </tui-bubble-popup>
  15. </view>
  16. <view class="gosearch-btn">
  17. <text class="iconfont icon-sousuo"></text>
  18. <input class="input" maxlength="20" :focus="isFocus" type="text" value="" confirm-type="search" @focus="onFocus" @input="onShowClose" @confirm="subMitSearch()" placeholder="请输入搜索关键字" v-model.trim="listQuery.keyword"/>
  19. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click.stop="delInputText()"></text>
  20. </view>
  21. <view class="search-btn" @click="subMitSearch()">搜索</view>
  22. </view>
  23. <view class="search-container-history" v-if="!isShowWrapper">
  24. <view :class="'s-' + themeClass" v-if="serachRecordList.length>0">
  25. <view class="header">
  26. 搜索历史<text class="iconfont icon-shanchu" @click="confirmDetele"></text>
  27. </view>
  28. <view class="list">
  29. <view v-for="(item,index) in serachRecordList" :key="index" @click="keywordsClick(item.searchWord)">{{item.searchWord}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view v-else class="commodity-list-wrapper" :style="{'overflow':'auto','height':(listData.length>4? windowHeight + 'px' : 'auto')}">
  34. <scroll-view :style="{'height':(listData.length>4? scrollHeight+'px' : 'auto')}" @scrolltolower="scrolltolower" scroll-y v-if="!showEmpty">
  35. <view v-for="(item,index) in listData" :key="index" :id="item.id" class="all-type-list-content commodity-list" @click.stop="navToDetailPage(item.p_id)">
  36. <image mode='widthFix' :src="item.p_image" class="list-img" alt="list-img"></image>
  37. <view class="list-details-info">
  38. <view class="list-details-title">{{isInterceptHtmlFn(item.p_name)}}</view>
  39. <text class="list-details-specs">规格:{{item.p_unit}}</text>
  40. <view class="list-details-specs" v-if="item.p_code!=''&&item.p_code!=null">
  41. <view>商品编码:{{item.p_code}}</view>
  42. </view>
  43. <view class="list-details-price">
  44. <template v-if="userIdentity == 3">
  45. <view class="floor-item-act" v-if="item.actStatus==1">
  46. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  47. {{item.promotions.name}}<text v-if="item.p_price_flag != '1' && item.supplierId === shopId">:¥{{ item.price | NumFormat }}</text>
  48. </view>
  49. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  50. </view>
  51. <view class="floor-item-act" v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  52. <view class="floor-tags">阶梯价格</view>
  53. </view>
  54. </template>
  55. <template v-else>
  56. <view class="floor-item-act" v-if="item.actStatus==1">
  57. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  58. {{item.promotions.name}}<text v-if="hasLogin && item.p_price_flag != '1'">:¥{{ item.price | NumFormat }}</text>
  59. </view>
  60. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  61. </view>
  62. <view class="floor-item-act" v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  63. <view class="floor-tags">阶梯价格</view>
  64. </view>
  65. </template>
  66. <view v-if="hasLogin" class="list-price">
  67. <template v-if="userIdentity == 1">
  68. <text v-if="priceLoading" class="price-larger small">正在获取价格...</text>
  69. <text v-else class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  70. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  71. </text>
  72. </template>
  73. <template v-if="userIdentity == 4">
  74. <view class="price-larger" v-if="item.p_price_flag == '1'">
  75. <text class="txt">¥未公开价格</text>
  76. </view>
  77. <text v-else-if="priceLoading" class="price-larger small">正在获取价格...</text>
  78. <view v-else>
  79. <view class="price-larger" v-if="item.p_price_flag == '2'">
  80. <text class="txt">¥价格仅会员可见</text>
  81. </view>
  82. <text v-else class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  83. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  84. </text>
  85. </view>
  86. </template>
  87. <template v-if="userIdentity == 3">
  88. <template v-if="item.supplierId == shopId">
  89. <view class="price-larger" v-if="item.p_price_flag == '1'">
  90. <text class="txt">¥未公开价格</text>
  91. </view>
  92. <text v-else-if="priceLoading" class="price-larger small">正在获取价格...</text>
  93. <text v-else class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  94. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  95. </text>
  96. </template>
  97. <template v-else>
  98. <view class="list-login-now">
  99. <text class="p-no">¥</text>
  100. <uni-grader :grade="Number(item.p_price_grade)"></uni-grader>
  101. </view>
  102. </template>
  103. </template>
  104. <template v-if="userIdentity == 2">
  105. <view class="price-larger" v-if="item.p_price_flag == '1'">
  106. <text class="txt">¥未公开价格</text>
  107. </view>
  108. <text v-else-if="priceLoading" class="price-larger small">正在获取价格...</text>
  109. <text v-else class="price-larger" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  110. ¥{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price) | NumFormat}}
  111. </text>
  112. </template>
  113. </view>
  114. <view v-else class="list-login-now">
  115. <text class="p-no">¥</text>
  116. <uni-grader :grade="Number(item.p_price_grade)"></uni-grader>
  117. </view>
  118. </view>
  119. </view>
  120. </view>
  121. <view v-if="showLoading && listData.length > 4">
  122. <view class="loading-wrapper loading-wrapper-now" v-if="loadingNow">{{loadingText}}<text v-if="loadingText === '已至底部'">‧ ‧ ‧</text></view>
  123. <view class="loading-wrapper loading-wrapper-btm" v-else>———<text class="btm-text">已至底部</text>———</view>
  124. </view>
  125. </scroll-view>
  126. <view class="empty-container" v-if="showEmpty">
  127. <image class="empty-container-image" src="https://img.caimei365.com/group1/M00/03/8D/Cmis215XHXWAHCoqAAELHadZ9Xg365.png"></image>
  128. <text class="error-text">抱歉,没有相关商品!</text>
  129. </view>
  130. </view>
  131. <!-- 透明模态层 -->
  132. <modal-layer v-if='isModallayer'></modal-layer>
  133. </view>
  134. </template>
  135. <script>
  136. import { mapState,mapMutations } from 'vuex'
  137. import modalLayer from "@/components/modal-layer"
  138. import uniGrader from '@/components/uni-grade/uni-grade.vue'
  139. import authorize from '@/common/config/authorize.js'
  140. export default {
  141. components: {
  142. modalLayer,
  143. uniGrader
  144. },
  145. data() {
  146. return {
  147. shopId:0,
  148. userID:0,
  149. tabValue:'产品',
  150. themeClass: 'block',
  151. show:false,
  152. userIdentity:'',
  153. identity:2,
  154. searchKeyType:1,
  155. isShowClose:false, //是否显示清空输入框图标
  156. isSearchHistory:false,//是都显示搜索历史
  157. serachRecordList:[],//历史搜索记录
  158. isShowWrapper:false,
  159. isModallayer:false,
  160. isFocus:false,
  161. priceLoading:true,
  162. windowHeight: '',
  163. showEmpty: false,
  164. scrollHeight: '',
  165. listData: [],
  166. productIds:'',//查询价格的商品ID
  167. showLoading: false,
  168. loadingNow: true,
  169. loadingText: '上拉加载更多',
  170. pullFlag: true,
  171. listQuery:{
  172. identity:0,
  173. keyword:'',
  174. sortField:'',
  175. sortType:'',
  176. pageNum: 1,
  177. pageSize: 20,
  178. },
  179. total:0
  180. }
  181. },
  182. onLoad(option) {
  183. console.log(option)
  184. this.$api.getStorage().then((resolve) =>{
  185. this.userID = resolve.userID ? resolve.userID : 0;
  186. this.shopId = resolve.shopID ? resolve.shopID : 0;
  187. this.userIdentity = resolve.userIdentity ? resolve.userIdentity : '';
  188. if(this.userIdentity == 1){
  189. this.listQuery.identity = 1
  190. }else{
  191. this.listQuery.identity = 2
  192. }
  193. if(option.keyWord){
  194. this.listQuery.keyword = option.keyWord
  195. this.setSearchHistoryAdd()
  196. this.getListFromServer()
  197. this.isFocus = false
  198. }else{
  199. this.isFocus = true
  200. this.initGetSerachRecord()
  201. }
  202. })
  203. },
  204. filters: {
  205. NumFormat:function(text) {//处理金额
  206. return Number(text).toFixed(2);
  207. },
  208. },
  209. computed: {
  210. ...mapState(['hasLogin','userInfo'])
  211. },
  212. methods:{
  213. initGetSerachRecord(){//查询搜索历史记录
  214. this.ProductService.GetProductSearchHistory({userId:this.userID}).then(response =>{
  215. if(response.code == 0){
  216. this.serachRecordList = response.data
  217. }
  218. })
  219. },
  220. subMitSearch() {//搜索
  221. if (this.listQuery.keyword == '') {
  222. this.$util.msg('请输入商品关键词',2000);
  223. }else{
  224. switch(this.searchKeyType){
  225. case 1:
  226. this.listData =[]
  227. this.setSearchHistoryAdd()
  228. this.getListFromServer()
  229. this.isFocus = false
  230. break;
  231. case 2:
  232. this.setSearchHistoryAdd()
  233. this.$api.navigateTo(`/pages/search/search-supplier?keyword=${this.listQuery.keyword}`);
  234. break;
  235. case 3:
  236. this.setSearchHistoryAdd()
  237. this.$api.navigateTo(`/pages/search/search-instrument?keyword=${this.listQuery.keyword}`);
  238. break;
  239. }
  240. }
  241. },
  242. scrolltolower() {
  243. if(this.total>this.listData.length && this.pullFlag) {
  244. this.getListFromServer(true);
  245. }
  246. },
  247. getListFromServer(loadMore) {
  248. this.showLoading = true;
  249. this.loadingNow = true;
  250. this.loadingText = '加载中';
  251. this.showEmpty = false;
  252. if(loadMore) {
  253. this.listQuery.pageNum += 1;
  254. }
  255. this.ProductService.GetProductSearchList(this.listQuery).then(response =>{
  256. this.isShowWrapper = true
  257. const resData = JSON.parse(response.data);
  258. const resList = resData.items;
  259. if(resList && resList.length > 0){
  260. this.total = resData.total;
  261. this.showEmpty = false;
  262. if(loadMore) {
  263. this.listData = [...this.listData,...resList];
  264. this.getProductPrice()
  265. } else {
  266. this.listData = [...resList];
  267. this.getProductPrice()
  268. }
  269. // 防上拉暴滑
  270. this.pullFlag = false;
  271. setTimeout(()=>{ this.pullFlag = true; },500)
  272. // 底部提示文案
  273. if(this.totalPage>this.listData.length) {
  274. this.loadingText = '上拉加载更多';
  275. } else {
  276. this.showLoading = true;
  277. this.loadingNow = false;
  278. }
  279. } else {
  280. if(!loadMore) {
  281. this.showEmpty = true;
  282. }
  283. }
  284. }).catch(error =>{
  285. this.$util.msg(error.msg,2000);
  286. })
  287. },
  288. setSearchHistoryAdd(){//添加搜索记录
  289. if (!this.hasLogin) {return false;}
  290. this.ProductService.GetAddProductSearchHistory({userId: this.userID,keyword:this.listQuery.keyword}).then(response =>{
  291. //此为每次搜索同时添加用户的搜索记录
  292. }).catch(error =>{
  293. this.$util.msg(error.msg,2000);
  294. })
  295. },
  296. getProductPrice(){//获取价格
  297. let productIdArr = [];
  298. this.listData.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  299. productIdArr.push(item.p_id)
  300. })
  301. this.productIds = productIdArr.join(",");
  302. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:this.productIds}).then(response =>{
  303. if (response.data) {
  304. this.listData = this.ReturnNewProducts(this.listData,response.data);
  305. }
  306. this.priceLoading = false;
  307. }).catch(error =>{
  308. this.$util.msg(error.msg,2000)
  309. })
  310. },
  311. ReturnNewProducts(Array,list){//处理对应商品ID的商品价格
  312. let NewArray = []
  313. Array.map(item=>{
  314. for (let i = 0; i < list.length; i++) {
  315. if( item.p_id == list[i].productId ){
  316. NewArray.push(Object.assign(item,list[i]))
  317. }
  318. }
  319. });
  320. return NewArray
  321. },
  322. PromotionsFormat(promo){//促销活动类型数据处理
  323. if(promo!=null){
  324. if(promo.type == 1 && promo.mode == 1){
  325. return true
  326. }else{
  327. return false
  328. }
  329. }
  330. return false
  331. },
  332. onShowClose () {//输入框输入时触发
  333. this.inputEmpty(this.listQuery.keyword)
  334. },
  335. onFocus () { //输入框获取焦点时触发
  336. this.inputEmpty(this.listQuery.keyword)
  337. this.initGetSerachRecord()
  338. },
  339. delInputText () { //清除输入框内容
  340. this.listQuery.keyword = ''
  341. this.isShowClose = false
  342. this.isShowWrapper = false
  343. this.inputEmpty(this.listQuery.keyword)
  344. this.initGetSerachRecord()
  345. },
  346. keywordsClick (item) {//关键词搜索与历史搜索
  347. this.listQuery.keyword = item;
  348. this.isShowClose = true;
  349. this.isFocus = false
  350. this.subMitSearch();
  351. },
  352. confirmDetele() {//清空历史记录
  353. this.$util.modal('提示','确定删除历史记录?','确定','取消',true,() =>{
  354. this.ProductService.GetDeleteProductSearchHistory({userId:this.userID}).then(response =>{
  355. this.$util.msg('删除成功',2000,true,'success')
  356. this.serachRecordList=[];
  357. }).catch(error =>{
  358. this.$util.msg(error.msg,2000)
  359. })
  360. })
  361. },
  362. inputEmpty(val){
  363. this.isShowWrapper = false
  364. if(val != ''){
  365. this.isShowClose = true
  366. this.isFocus = true
  367. }else{
  368. this.isShowClose = false
  369. this.isFocus = true
  370. }
  371. },
  372. isInterceptHtmlFn(text){
  373. let name = this.$reg.interceptHtmlFn(text)
  374. return name
  375. },
  376. navToDetailPage(id) {
  377. this.isModallayer = true;
  378. this.$api.navigateTo(`/pages/goods/product?id=${id}`);
  379. this.isModallayer = false;
  380. },
  381. setScrollHeight() {
  382. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  383. this.windowHeight = windowHeight - 1;
  384. this.scrollHeight = windowHeight - 1;
  385. },
  386. toLoginPage() {
  387. let searchLoginType = 'search'
  388. uni.navigateTo({
  389. url:`/pages/login/login?type=${searchLoginType}`
  390. })
  391. },
  392. selectTabs(index){//选择搜索项
  393. this.show = false
  394. this.searchKeyType = index
  395. switch(index){
  396. case 1:
  397. this.tabValue='产品'
  398. break;
  399. case 2:
  400. this.tabValue='供应商'
  401. break;
  402. case 3:
  403. this.tabValue='项目仪器'
  404. break;
  405. }
  406. },
  407. topBubble() {//显隐搜索项
  408. this.show = !this.show;
  409. },
  410. },
  411. onShow() {
  412. this.setScrollHeight();
  413. }
  414. }
  415. </script>
  416. <style lang="scss">
  417. @import "@/uni.scss";
  418. page{
  419. background-color: #F7F7F7 !important;
  420. }
  421. .search-main{
  422. width: 100%;
  423. height: 88rpx;
  424. position: fixed;
  425. top: 0;
  426. left: 0;
  427. background: #FFFFFF;
  428. z-index: 1001;
  429. box-sizing: border-box;
  430. padding: 9rpx 0;
  431. .search-tab{
  432. width: 160rpx;
  433. height: 70rpx;
  434. line-height: 70rpx;
  435. color: #666666;
  436. font-size: $font-size-24;
  437. text-align: center;
  438. float: left;
  439. position: relative;
  440. .icon-xiangxiajiantou{
  441. margin-left: 10rpx;
  442. font-size: $font-size-30;
  443. }
  444. }
  445. .gosearch-btn{
  446. width: 470rpx;
  447. height: 100%;
  448. float: left;
  449. border-radius: 40rpx;
  450. background: #F0F0F0;
  451. margin: 0 auto;
  452. padding:0 20rpx;
  453. font-size: 28rpx;
  454. line-height: 70rpx;
  455. padding-left: 70rpx;
  456. color: #8A8A8A;
  457. background: #F7F7F7;
  458. position: relative;
  459. box-sizing: border-box;
  460. .icon-sousuo{
  461. width: 70rpx;
  462. height: 70rpx;
  463. line-height: 70rpx;
  464. text-align: center;
  465. display: block;
  466. position: absolute;
  467. left: 0;
  468. top: 0;
  469. font-size: 34rpx;
  470. color: #8A8A8A;
  471. z-index: 10;
  472. }
  473. .icon-shanchu1{
  474. font-size: 36rpx;
  475. color: #8A8A8A;
  476. position: absolute;
  477. right: 10rpx;
  478. top: 0;
  479. padding: 0 10rpx;
  480. z-index: 100;
  481. }
  482. .input{
  483. width: 400rpx;
  484. height: 100%;
  485. float: left;
  486. font-size: $font-size-24;
  487. box-sizing: border-box;
  488. padding-right: 66rpx;
  489. }
  490. }
  491. .search-btn{
  492. width: 120rpx;
  493. height: 70rpx;
  494. line-height: 70rpx;
  495. float: right;
  496. text-align: center;
  497. color: #666666;
  498. font-size: $font-size-24;
  499. }
  500. }
  501. .search-container{
  502. padding-top: 96rpx;
  503. }
  504. .s-block{
  505. background: #FFFFFF;
  506. .header{
  507. font-size: 32rpx;
  508. padding:40rpx 24rpx 22rpx 24rpx;
  509. line-height: 42rpx;
  510. font-size: 30rpx;
  511. font-weight: bold;
  512. position: relative;
  513. .icon-shanchu{
  514. font-size: 36rpx;
  515. color: #333333;
  516. float: right;
  517. padding: 0 10rpx;
  518. z-index: 10;
  519. font-weight: normal;
  520. }
  521. }
  522. .list{
  523. display: flex;
  524. flex-wrap: wrap;
  525. padding-bottom: 40rpx;
  526. view{
  527. color: #8A8A8A;
  528. font-size: 24rpx;
  529. box-sizing: border-box;
  530. text-align: center;
  531. height: 48rpx;
  532. line-height: 48rpx;
  533. border-radius: 24rpx;
  534. margin:12rpx;
  535. padding:.0 30rpx;
  536. overflow: hidden;
  537. white-space: nowrap;
  538. text-overflow: ellipsis;
  539. background-color: #F3F3F3;
  540. }
  541. }
  542. }
  543. .s-circle{
  544. margin-top: 30rpx;
  545. .header{
  546. font-size: 32rpx;
  547. padding: 30rpx;
  548. border-bottom: 2rpx solid #F9F9F9;
  549. position: relative;
  550. image{
  551. width: 36rpx;
  552. height: 36rpx;
  553. padding: 10rpx;
  554. position: absolute;
  555. right: 40rpx;
  556. top: 24rpx;
  557. }
  558. }
  559. .list{
  560. display: flex;
  561. flex-wrap: wrap;
  562. padding: 0 30rpx 20rpx;
  563. view{
  564. padding: 8rpx 30rpx;
  565. margin: 20rpx 30rpx 0 0;
  566. font-size: 28rpx;
  567. color: #8A8A8A;
  568. background-color: #F7F7F7;
  569. box-sizing: border-box;
  570. text-align: center;
  571. border-radius: 20rpx;
  572. }
  573. }
  574. }
  575. .wanted-block{
  576. margin-top: 30rpx;
  577. .header{
  578. font-size: 32rpx;
  579. padding: 30rpx;
  580. }
  581. .list{
  582. display: flex;
  583. flex-wrap: wrap;
  584. view{
  585. width: 50%;
  586. color: #8A8A8A;
  587. font-size: 28rpx;
  588. box-sizing: border-box;
  589. text-align: center;
  590. padding: 20rpx 0;
  591. border-top: 2rpx solid #FFF;
  592. border-left: 2rpx solid #FFF;
  593. background-color: #F7F7F7;
  594. overflow: hidden;
  595. white-space: nowrap;
  596. text-overflow: ellipsis;
  597. }
  598. }
  599. }
  600. .wanted-circle{
  601. margin-top: 30rpx;
  602. .header{
  603. font-size: 32rpx;
  604. padding: 30rpx;
  605. }
  606. .list{
  607. display: flex;
  608. flex-wrap: wrap;
  609. padding: 0 30rpx 20rpx;
  610. view{
  611. padding: 8rpx 30rpx;
  612. margin: 20rpx 30rpx 0 0;
  613. font-size: 28rpx;
  614. color: #8A8A8A;
  615. background-color: #F7F7F7;
  616. box-sizing: border-box;
  617. text-align: center;
  618. border-radius: 20rpx;
  619. }
  620. }
  621. }
  622. .commodity-list-wrapper {
  623. scroll-view {
  624. height: 100%;
  625. overflow: scroll;
  626. }
  627. .empty-container-image {
  628. margin-top: -300rpx;
  629. }
  630. .toIndexPage {
  631. bottom: 390rpx;
  632. }
  633. .show-more-btn {
  634. width: 276rpx;
  635. height: 52rpx;
  636. line-height: 52rpx;
  637. border: 2rpx solid #D8D8D8;
  638. background: #F7F7F7;
  639. font-size: 26rpx;
  640. margin: 26rpx 0;
  641. position: absolute;
  642. left: 50%;
  643. margin-left: -138rpx;
  644. }
  645. }
  646. .all-type-list-content {
  647. height: 216rpx;
  648. padding: 24rpx;
  649. background: #fff;
  650. margin-bottom: 2rpx;
  651. display: flex;
  652. flex-direction: row;
  653. box-sizing: content-box;
  654. .list-img {
  655. width: 210rpx;
  656. height: 218rpx !important;
  657. margin-right: 26rpx;
  658. border-radius: 10rpx;
  659. border: 2rpx solid #f3f3f3;
  660. }
  661. }
  662. .list-details-info {
  663. width: 466rpx;
  664. display: flex;
  665. flex-direction: column;
  666. font-size: 26rpx;
  667. position: relative;
  668. .list-details-title {
  669. line-height: 38rpx;
  670. text-overflow: ellipsis;
  671. overflow: hidden;
  672. display: -webkit-box;
  673. -webkit-line-clamp: 2;
  674. line-clamp: 2;
  675. -webkit-box-orient: vertical;
  676. }
  677. .list-details-specs {
  678. margin-top: 8rpx;
  679. color: #666666;
  680. }
  681. .list-details-miniQuantity {
  682. margin-top: 7rpx;
  683. }
  684. }
  685. .list-details-price {
  686. width: 100%;
  687. height: 54rpx;
  688. line-height: 54rpx;
  689. position: absolute;
  690. bottom: -10rpx;
  691. right: 0;
  692. .floor-item-act{
  693. height: 54rpx;
  694. text-align: center;
  695. box-sizing: border-box;
  696. float: right;
  697. .floor-tags{
  698. height: 28rpx;
  699. border-radius: 6rpx;
  700. background-color: #FFFFFF;
  701. line-height: 28rpx;
  702. color: $color-system;
  703. text-align: center;
  704. display: inline-block;
  705. padding:0 16rpx;
  706. font-size: $font-size-20;
  707. margin-left: 15rpx;
  708. border: 1px solid #E15616;
  709. float: right;
  710. }
  711. }
  712. .price-icon {
  713. width: 22rpx;
  714. height: 28rpx;
  715. vertical-align: middle;
  716. margin-right: 10rpx;
  717. }
  718. .price-icon + text {
  719. font-size: 25rpx;
  720. vertical-align: middle;
  721. }
  722. .list-login-now {
  723. color: #F8C499;
  724. float: left;
  725. line-height: 54rpx;
  726. .p-no{
  727. float: left;
  728. font-size: $font-size-24;
  729. color: $text-color;
  730. }
  731. }
  732. .login-now {
  733. padding: 10rpx 10rpx 10rpx 0;
  734. }
  735. .list-price {
  736. color: #FF2A2A;
  737. height: 44rpx;
  738. float: left;
  739. .price-larger {
  740. width: 100%;
  741. font-size: 32rpx;
  742. &.none{
  743. text-decoration: line-through;
  744. color: #999999;
  745. }
  746. &.small{
  747. font-size: $font-size-24;
  748. }
  749. .txt{
  750. font-size: $font-size-24;
  751. display: inline-block;
  752. line-height: 44rpx;
  753. text-align: left;
  754. float: left;
  755. }
  756. }
  757. }
  758. }
  759. </style>