search.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761
  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. if(option.keyWord){
  185. this.listQuery.keyword = option.keyWord
  186. this.setSearchHistoryAdd()
  187. this.getListFromServer()
  188. this.isFocus = false
  189. }else{
  190. this.isFocus = true
  191. this.initGetSerachRecord()
  192. }
  193. },
  194. filters: {
  195. NumFormat:function(text) {//处理金额
  196. return Number(text).toFixed(2);
  197. },
  198. },
  199. computed: {
  200. ...mapState(['hasLogin','userInfo'])
  201. },
  202. methods:{
  203. initGetSerachRecord(){
  204. this.$api.getStorage().then((resolve) =>{
  205. this.userID = resolve.userID ? resolve.userID : 0;
  206. this.shopId = resolve.shopID ? resolve.shopID : 0;
  207. this.userIdentity = resolve.userIdentity ? resolve.userIdentity : '';
  208. if(this.userIdentity == 1){
  209. this.listQuery.identity = 1
  210. }else{
  211. this.listQuery.identity = 2
  212. }
  213. this.ProductService.GetProductSearchHistory({userId:this.userID}).then(response =>{
  214. if(response.code == 0){
  215. this.serachRecordList = response.data
  216. }
  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.subMitSearch();
  350. },
  351. confirmDetele() {//清空历史记录
  352. this.$util.modal('提示','确定删除历史记录?','确定','取消',true,() =>{
  353. this.ProductService.GetDeleteProductSearchHistory({userId:this.userID}).then(response =>{
  354. this.$util.msg('删除成功',2000,true,'success')
  355. this.serachRecordList=[];
  356. }).catch(error =>{
  357. this.$util.msg(error.msg,2000)
  358. })
  359. })
  360. },
  361. inputEmpty(val){
  362. this.isShowWrapper = false
  363. if(val != ''){
  364. this.isShowClose = true
  365. this.isFocus = true
  366. }else{
  367. this.isShowClose = false
  368. this.isFocus = true
  369. }
  370. },
  371. isInterceptHtmlFn(text){
  372. let name = this.$reg.interceptHtmlFn(text)
  373. return name
  374. },
  375. navToDetailPage(id) {
  376. this.isModallayer = true;
  377. this.$api.navigateTo(`/pages/goods/product?id=${id}`);
  378. this.isModallayer = false;
  379. },
  380. setScrollHeight() {
  381. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  382. this.windowHeight = windowHeight - 1;
  383. this.scrollHeight = windowHeight - 1;
  384. },
  385. toLoginPage() {
  386. let searchLoginType = 'search'
  387. uni.navigateTo({
  388. url:`/pages/login/login?type=${searchLoginType}`
  389. })
  390. },
  391. selectTabs(index){//选择搜索项
  392. this.show = false
  393. this.searchKeyType = index
  394. switch(index){
  395. case 1:
  396. this.tabValue='产品'
  397. break;
  398. case 2:
  399. this.tabValue='供应商'
  400. break;
  401. case 3:
  402. this.tabValue='项目仪器'
  403. break;
  404. }
  405. },
  406. topBubble() {//显隐搜索项
  407. this.show = !this.show;
  408. },
  409. },
  410. onShow() {
  411. this.setScrollHeight();
  412. }
  413. }
  414. </script>
  415. <style lang="scss">
  416. @import "@/uni.scss";
  417. page{
  418. background-color: #F7F7F7 !important;
  419. }
  420. .search-main{
  421. width: 100%;
  422. height: 88rpx;
  423. position: fixed;
  424. top: 0;
  425. left: 0;
  426. background: #FFFFFF;
  427. z-index: 1001;
  428. box-sizing: border-box;
  429. padding: 9rpx 0;
  430. .search-tab{
  431. width: 160rpx;
  432. height: 70rpx;
  433. line-height: 70rpx;
  434. color: #666666;
  435. font-size: $font-size-24;
  436. text-align: center;
  437. float: left;
  438. position: relative;
  439. .icon-xiangxiajiantou{
  440. margin-left: 10rpx;
  441. font-size: $font-size-30;
  442. }
  443. }
  444. .gosearch-btn{
  445. width: 470rpx;
  446. height: 100%;
  447. float: left;
  448. border-radius: 40rpx;
  449. background: #F0F0F0;
  450. margin: 0 auto;
  451. padding:0 20rpx;
  452. font-size: 28rpx;
  453. line-height: 70rpx;
  454. padding-left: 70rpx;
  455. color: #8A8A8A;
  456. background: #F7F7F7;
  457. position: relative;
  458. box-sizing: border-box;
  459. .icon-sousuo{
  460. width: 70rpx;
  461. height: 70rpx;
  462. line-height: 70rpx;
  463. text-align: center;
  464. display: block;
  465. position: absolute;
  466. left: 0;
  467. top: 0;
  468. font-size: 34rpx;
  469. color: #8A8A8A;
  470. z-index: 10;
  471. }
  472. .icon-shanchu1{
  473. font-size: 36rpx;
  474. color: #8A8A8A;
  475. position: absolute;
  476. right: 10rpx;
  477. top: 0;
  478. padding: 0 10rpx;
  479. z-index: 100;
  480. }
  481. .input{
  482. width: 400rpx;
  483. height: 100%;
  484. float: left;
  485. font-size: $font-size-24;
  486. box-sizing: border-box;
  487. padding-right: 66rpx;
  488. }
  489. }
  490. .search-btn{
  491. width: 120rpx;
  492. height: 70rpx;
  493. line-height: 70rpx;
  494. float: right;
  495. text-align: center;
  496. color: #666666;
  497. font-size: $font-size-24;
  498. }
  499. }
  500. .search-container{
  501. padding-top: 96rpx;
  502. }
  503. .s-block{
  504. background: #FFFFFF;
  505. .header{
  506. font-size: 32rpx;
  507. padding:40rpx 24rpx 22rpx 24rpx;
  508. line-height: 42rpx;
  509. font-size: 30rpx;
  510. font-weight: bold;
  511. position: relative;
  512. .icon-shanchu{
  513. font-size: 36rpx;
  514. color: #333333;
  515. float: right;
  516. padding: 0 10rpx;
  517. z-index: 10;
  518. font-weight: normal;
  519. }
  520. }
  521. .list{
  522. display: flex;
  523. flex-wrap: wrap;
  524. padding-bottom: 40rpx;
  525. view{
  526. color: #8A8A8A;
  527. font-size: 24rpx;
  528. box-sizing: border-box;
  529. text-align: center;
  530. height: 48rpx;
  531. line-height: 48rpx;
  532. border-radius: 24rpx;
  533. margin:12rpx;
  534. padding:.0 30rpx;
  535. overflow: hidden;
  536. white-space: nowrap;
  537. text-overflow: ellipsis;
  538. background-color: #F3F3F3;
  539. }
  540. }
  541. }
  542. .s-circle{
  543. margin-top: 30rpx;
  544. .header{
  545. font-size: 32rpx;
  546. padding: 30rpx;
  547. border-bottom: 2rpx solid #F9F9F9;
  548. position: relative;
  549. image{
  550. width: 36rpx;
  551. height: 36rpx;
  552. padding: 10rpx;
  553. position: absolute;
  554. right: 40rpx;
  555. top: 24rpx;
  556. }
  557. }
  558. .list{
  559. display: flex;
  560. flex-wrap: wrap;
  561. padding: 0 30rpx 20rpx;
  562. view{
  563. padding: 8rpx 30rpx;
  564. margin: 20rpx 30rpx 0 0;
  565. font-size: 28rpx;
  566. color: #8A8A8A;
  567. background-color: #F7F7F7;
  568. box-sizing: border-box;
  569. text-align: center;
  570. border-radius: 20rpx;
  571. }
  572. }
  573. }
  574. .wanted-block{
  575. margin-top: 30rpx;
  576. .header{
  577. font-size: 32rpx;
  578. padding: 30rpx;
  579. }
  580. .list{
  581. display: flex;
  582. flex-wrap: wrap;
  583. view{
  584. width: 50%;
  585. color: #8A8A8A;
  586. font-size: 28rpx;
  587. box-sizing: border-box;
  588. text-align: center;
  589. padding: 20rpx 0;
  590. border-top: 2rpx solid #FFF;
  591. border-left: 2rpx solid #FFF;
  592. background-color: #F7F7F7;
  593. overflow: hidden;
  594. white-space: nowrap;
  595. text-overflow: ellipsis;
  596. }
  597. }
  598. }
  599. .wanted-circle{
  600. margin-top: 30rpx;
  601. .header{
  602. font-size: 32rpx;
  603. padding: 30rpx;
  604. }
  605. .list{
  606. display: flex;
  607. flex-wrap: wrap;
  608. padding: 0 30rpx 20rpx;
  609. view{
  610. padding: 8rpx 30rpx;
  611. margin: 20rpx 30rpx 0 0;
  612. font-size: 28rpx;
  613. color: #8A8A8A;
  614. background-color: #F7F7F7;
  615. box-sizing: border-box;
  616. text-align: center;
  617. border-radius: 20rpx;
  618. }
  619. }
  620. }
  621. .commodity-list-wrapper {
  622. scroll-view {
  623. height: 100%;
  624. overflow: scroll;
  625. }
  626. .empty-container-image {
  627. margin-top: -300rpx;
  628. }
  629. .toIndexPage {
  630. bottom: 390rpx;
  631. }
  632. .show-more-btn {
  633. width: 276rpx;
  634. height: 52rpx;
  635. line-height: 52rpx;
  636. border: 2rpx solid #D8D8D8;
  637. background: #F7F7F7;
  638. font-size: 26rpx;
  639. margin: 26rpx 0;
  640. position: absolute;
  641. left: 50%;
  642. margin-left: -138rpx;
  643. }
  644. }
  645. .all-type-list-content {
  646. height: 216rpx;
  647. padding: 24rpx;
  648. background: #fff;
  649. margin-bottom: 2rpx;
  650. display: flex;
  651. flex-direction: row;
  652. box-sizing: content-box;
  653. .list-img {
  654. width: 210rpx;
  655. height: 218rpx !important;
  656. margin-right: 26rpx;
  657. border-radius: 10rpx;
  658. border: 2rpx solid #f3f3f3;
  659. }
  660. }
  661. .list-details-info {
  662. width: 466rpx;
  663. display: flex;
  664. flex-direction: column;
  665. font-size: 26rpx;
  666. position: relative;
  667. .list-details-title {
  668. line-height: 38rpx;
  669. text-overflow: ellipsis;
  670. overflow: hidden;
  671. display: -webkit-box;
  672. -webkit-line-clamp: 2;
  673. line-clamp: 2;
  674. -webkit-box-orient: vertical;
  675. }
  676. .list-details-specs {
  677. margin-top: 8rpx;
  678. color: #666666;
  679. }
  680. .list-details-miniQuantity {
  681. margin-top: 7rpx;
  682. }
  683. }
  684. .list-details-price {
  685. width: 100%;
  686. height: 54rpx;
  687. line-height: 54rpx;
  688. position: absolute;
  689. bottom: -10rpx;
  690. right: 0;
  691. .floor-item-act{
  692. height: 54rpx;
  693. text-align: center;
  694. box-sizing: border-box;
  695. float: right;
  696. .floor-tags{
  697. height: 36rpx;
  698. border-radius: 6rpx;
  699. background-color: #FFFFFF;
  700. line-height: 36rpx;
  701. color: $color-system;
  702. text-align: center;
  703. display: inline-block;
  704. padding:0 16rpx;
  705. font-size: $font-size-20;
  706. margin-left: 15rpx;
  707. border: 1px solid #E15616;
  708. float: right;
  709. }
  710. }
  711. .price-icon {
  712. width: 22rpx;
  713. height: 28rpx;
  714. vertical-align: middle;
  715. margin-right: 10rpx;
  716. }
  717. .price-icon + text {
  718. font-size: 25rpx;
  719. vertical-align: middle;
  720. }
  721. .list-login-now {
  722. color: #F8C499;
  723. float: left;
  724. line-height: 54rpx;
  725. .p-no{
  726. float: left;
  727. font-size: $font-size-24;
  728. color: $text-color;
  729. }
  730. }
  731. .login-now {
  732. padding: 10rpx 10rpx 10rpx 0;
  733. }
  734. .list-price {
  735. color: #FF2A2A;
  736. height: 44rpx;
  737. float: left;
  738. .price-larger {
  739. width: 100%;
  740. font-size: 32rpx;
  741. &.none{
  742. text-decoration: line-through;
  743. color: #999999;
  744. }
  745. &.small{
  746. font-size: $font-size-24;
  747. }
  748. .txt{
  749. font-size: $font-size-24;
  750. display: inline-block;
  751. line-height: 44rpx;
  752. text-align: left;
  753. float: left;
  754. }
  755. }
  756. }
  757. }
  758. </style>