search.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  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. this.isFocus = true
  184. console.log(option)
  185. if(option.keyWord){
  186. this.listQuery.keyword = option.keyWord
  187. this.setSearchHistoryAdd()
  188. this.getListFromServer()
  189. }else{
  190. this.initGetSerachRecord()
  191. }
  192. },
  193. filters: {
  194. NumFormat:function(text) {//处理金额
  195. return Number(text).toFixed(2);
  196. },
  197. },
  198. computed: {
  199. ...mapState(['hasLogin','userInfo'])
  200. },
  201. methods:{
  202. initGetSerachRecord(){
  203. this.$api.getStorage().then((resolve) =>{
  204. this.userID = resolve.userID ? resolve.userID : 0;
  205. this.shopId = resolve.shopID ? resolve.shopID : 0;
  206. this.userIdentity = resolve.userIdentity ? resolve.userIdentity : '';
  207. if(this.userIdentity == 1){
  208. this.listQuery.identity = 1
  209. }else{
  210. this.listQuery.identity = 2
  211. }
  212. this.ProductService.GetProductSearchHistory({userId:this.userID}).then(response =>{
  213. if(response.code == 0){
  214. this.serachRecordList = response.data
  215. }
  216. })
  217. })
  218. },
  219. subMitSearch() {//搜索
  220. if (this.listQuery.keyword == '') {
  221. this.$util.msg('请输入商品关键词',2000);
  222. }else{
  223. switch(this.searchKeyType){
  224. case 1:
  225. this.listData =[]
  226. this.setSearchHistoryAdd()
  227. this.getListFromServer()
  228. this.isFocus = false
  229. break;
  230. case 2:
  231. this.setSearchHistoryAdd()
  232. this.$api.navigateTo(`/pages/search/search-supplier?keyword=${this.listQuery.keyword}`);
  233. break;
  234. case 3:
  235. this.setSearchHistoryAdd()
  236. this.$api.navigateTo(`/pages/search/search-instrument?keyword=${this.listQuery.keyword}`);
  237. break;
  238. }
  239. }
  240. },
  241. scrolltolower() {
  242. if(this.total>this.listData.length && this.pullFlag) {
  243. this.getListFromServer(true);
  244. }
  245. },
  246. getListFromServer(loadMore) {
  247. this.showLoading = true;
  248. this.loadingNow = true;
  249. this.loadingText = '加载中';
  250. this.showEmpty = false;
  251. if(loadMore) {
  252. this.listQuery.pageNum += 1;
  253. }
  254. this.ProductService.GetProductSearchList(this.listQuery).then(response =>{
  255. this.isShowWrapper = true
  256. const resData = JSON.parse(response.data);
  257. const resList = resData.items;
  258. if(resList && resList.length > 0){
  259. this.total = resData.total;
  260. this.showEmpty = false;
  261. if(loadMore) {
  262. this.listData = [...this.listData,...resList];
  263. this.getProductPrice()
  264. } else {
  265. this.listData = [...resList];
  266. this.getProductPrice()
  267. }
  268. // 防上拉暴滑
  269. this.pullFlag = false;
  270. setTimeout(()=>{ this.pullFlag = true; },500)
  271. // 底部提示文案
  272. if(this.totalPage>this.listData.length) {
  273. this.loadingText = '上拉加载更多';
  274. } else {
  275. this.showLoading = true;
  276. this.loadingNow = false;
  277. }
  278. } else {
  279. if(!loadMore) {
  280. this.showEmpty = true;
  281. }
  282. }
  283. }).catch(error =>{
  284. this.$util.msg(error.msg,2000);
  285. })
  286. },
  287. setSearchHistoryAdd(){//添加搜索记录
  288. if (!this.hasLogin) {return false;}
  289. this.ProductService.GetAddProductSearchHistory({userId: this.userID,keyword:this.listQuery.keyword}).then(response =>{
  290. //此为每次搜索同时添加用户的搜索记录
  291. }).catch(error =>{
  292. this.$util.msg(error.msg,2000);
  293. })
  294. },
  295. getProductPrice(){//获取价格
  296. let productIdArr = [];
  297. this.listData.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  298. productIdArr.push(item.p_id)
  299. })
  300. this.productIds = productIdArr.join(",");
  301. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:this.productIds}).then(response =>{
  302. if (response.data) {
  303. this.listData = this.ReturnNewProducts(this.listData,response.data);
  304. }
  305. this.priceLoading = false;
  306. }).catch(error =>{
  307. this.$util.msg(error.msg,2000)
  308. })
  309. },
  310. ReturnNewProducts(Array,list){//处理对应商品ID的商品价格
  311. let NewArray = []
  312. Array.map(item=>{
  313. for (let i = 0; i < list.length; i++) {
  314. if( item.p_id == list[i].productId ){
  315. NewArray.push(Object.assign(item,list[i]))
  316. }
  317. }
  318. });
  319. return NewArray
  320. },
  321. PromotionsFormat(promo){//促销活动类型数据处理
  322. if(promo!=null){
  323. if(promo.type == 1 && promo.mode == 1){
  324. return true
  325. }else{
  326. return false
  327. }
  328. }
  329. return false
  330. },
  331. onShowClose () {//输入框输入时触发
  332. this.inputEmpty(this.listQuery.keyword)
  333. },
  334. onFocus () { //输入框获取焦点时触发
  335. this.inputEmpty(this.listQuery.keyword)
  336. this.initGetSerachRecord()
  337. },
  338. delInputText () { //清除输入框内容
  339. this.listQuery.keyword = ''
  340. this.isShowClose = false
  341. this.isShowWrapper = false
  342. this.inputEmpty(this.listQuery.keyword)
  343. this.initGetSerachRecord()
  344. },
  345. keywordsClick (item) {//关键词搜索与历史搜索
  346. this.listQuery.keyword = item;
  347. this.isShowClose = true;
  348. this.subMitSearch();
  349. },
  350. confirmDetele() {//清空历史记录
  351. this.$util.modal('提示','确定删除历史记录?','确定','取消',true,() =>{
  352. this.ProductService.GetDeleteProductSearchHistory({userId:this.userID}).then(response =>{
  353. this.$util.msg('删除成功',2000,true,'success')
  354. this.serachRecordList=[];
  355. }).catch(error =>{
  356. this.$util.msg(error.msg,2000)
  357. })
  358. })
  359. },
  360. inputEmpty(val){
  361. this.isShowWrapper = false
  362. if(val != ''){
  363. this.isShowClose = true
  364. this.isFocus = true
  365. }else{
  366. this.isShowClose = false
  367. this.isFocus = true
  368. }
  369. },
  370. isInterceptHtmlFn(text){
  371. let name = this.$reg.interceptHtmlFn(text)
  372. return name
  373. },
  374. navToDetailPage(id) {
  375. this.isModallayer = true;
  376. this.$api.navigateTo(`/pages/goods/product?id=${id}`);
  377. this.isModallayer = false;
  378. },
  379. setScrollHeight() {
  380. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  381. this.windowHeight = windowHeight - 1;
  382. this.scrollHeight = windowHeight - 1;
  383. },
  384. toLoginPage() {
  385. let searchLoginType = 'search'
  386. uni.navigateTo({
  387. url:`/pages/login/login?type=${searchLoginType}`
  388. })
  389. },
  390. selectTabs(index){//选择搜索项
  391. this.show = false
  392. this.searchKeyType = index
  393. switch(index){
  394. case 1:
  395. this.tabValue='产品'
  396. break;
  397. case 2:
  398. this.tabValue='供应商'
  399. break;
  400. case 3:
  401. this.tabValue='项目仪器'
  402. break;
  403. }
  404. },
  405. topBubble() {//显隐搜索项
  406. this.show = !this.show;
  407. },
  408. },
  409. onShow() {
  410. this.setScrollHeight();
  411. }
  412. }
  413. </script>
  414. <style lang="scss">
  415. @import "@/uni.scss";
  416. page{
  417. background-color: #F7F7F7 !important;
  418. }
  419. .search-main{
  420. width: 100%;
  421. height: 88rpx;
  422. position: fixed;
  423. top: 0;
  424. left: 0;
  425. background: #FFFFFF;
  426. z-index: 1001;
  427. box-sizing: border-box;
  428. padding: 9rpx 0;
  429. .search-tab{
  430. width: 160rpx;
  431. height: 70rpx;
  432. line-height: 70rpx;
  433. color: #666666;
  434. font-size: $font-size-24;
  435. text-align: center;
  436. float: left;
  437. position: relative;
  438. .icon-xiangxiajiantou{
  439. margin-left: 10rpx;
  440. font-size: $font-size-30;
  441. }
  442. }
  443. .gosearch-btn{
  444. width: 470rpx;
  445. height: 100%;
  446. float: left;
  447. border-radius: 40rpx;
  448. background: #F0F0F0;
  449. margin: 0 auto;
  450. padding:0 20rpx;
  451. font-size: 28rpx;
  452. line-height: 70rpx;
  453. padding-left: 70rpx;
  454. color: #8A8A8A;
  455. background: #F7F7F7;
  456. position: relative;
  457. box-sizing: border-box;
  458. .icon-sousuo{
  459. width: 70rpx;
  460. height: 70rpx;
  461. line-height: 70rpx;
  462. text-align: center;
  463. display: block;
  464. position: absolute;
  465. left: 0;
  466. top: 0;
  467. font-size: 34rpx;
  468. color: #8A8A8A;
  469. z-index: 10;
  470. }
  471. .icon-shanchu1{
  472. font-size: 36rpx;
  473. color: #8A8A8A;
  474. position: absolute;
  475. right: 10rpx;
  476. top: 0;
  477. padding: 0 10rpx;
  478. z-index: 100;
  479. }
  480. .input{
  481. width: 400rpx;
  482. height: 100%;
  483. float: left;
  484. font-size: $font-size-24;
  485. box-sizing: border-box;
  486. padding-right: 66rpx;
  487. }
  488. }
  489. .search-btn{
  490. width: 120rpx;
  491. height: 70rpx;
  492. line-height: 70rpx;
  493. float: right;
  494. text-align: center;
  495. color: #666666;
  496. font-size: $font-size-24;
  497. }
  498. }
  499. .search-container{
  500. padding-top: 96rpx;
  501. }
  502. .s-block{
  503. background: #FFFFFF;
  504. .header{
  505. font-size: 32rpx;
  506. padding:40rpx 24rpx 22rpx 24rpx;
  507. line-height: 42rpx;
  508. font-size: 30rpx;
  509. font-weight: bold;
  510. position: relative;
  511. .icon-shanchu{
  512. font-size: 36rpx;
  513. color: #333333;
  514. float: right;
  515. padding: 0 10rpx;
  516. z-index: 10;
  517. font-weight: normal;
  518. }
  519. }
  520. .list{
  521. display: flex;
  522. flex-wrap: wrap;
  523. padding-bottom: 40rpx;
  524. view{
  525. color: #8A8A8A;
  526. font-size: 24rpx;
  527. box-sizing: border-box;
  528. text-align: center;
  529. height: 48rpx;
  530. line-height: 48rpx;
  531. border-radius: 24rpx;
  532. margin:12rpx;
  533. padding:.0 30rpx;
  534. overflow: hidden;
  535. white-space: nowrap;
  536. text-overflow: ellipsis;
  537. background-color: #F3F3F3;
  538. }
  539. }
  540. }
  541. .s-circle{
  542. margin-top: 30rpx;
  543. .header{
  544. font-size: 32rpx;
  545. padding: 30rpx;
  546. border-bottom: 2rpx solid #F9F9F9;
  547. position: relative;
  548. image{
  549. width: 36rpx;
  550. height: 36rpx;
  551. padding: 10rpx;
  552. position: absolute;
  553. right: 40rpx;
  554. top: 24rpx;
  555. }
  556. }
  557. .list{
  558. display: flex;
  559. flex-wrap: wrap;
  560. padding: 0 30rpx 20rpx;
  561. view{
  562. padding: 8rpx 30rpx;
  563. margin: 20rpx 30rpx 0 0;
  564. font-size: 28rpx;
  565. color: #8A8A8A;
  566. background-color: #F7F7F7;
  567. box-sizing: border-box;
  568. text-align: center;
  569. border-radius: 20rpx;
  570. }
  571. }
  572. }
  573. .wanted-block{
  574. margin-top: 30rpx;
  575. .header{
  576. font-size: 32rpx;
  577. padding: 30rpx;
  578. }
  579. .list{
  580. display: flex;
  581. flex-wrap: wrap;
  582. view{
  583. width: 50%;
  584. color: #8A8A8A;
  585. font-size: 28rpx;
  586. box-sizing: border-box;
  587. text-align: center;
  588. padding: 20rpx 0;
  589. border-top: 2rpx solid #FFF;
  590. border-left: 2rpx solid #FFF;
  591. background-color: #F7F7F7;
  592. overflow: hidden;
  593. white-space: nowrap;
  594. text-overflow: ellipsis;
  595. }
  596. }
  597. }
  598. .wanted-circle{
  599. margin-top: 30rpx;
  600. .header{
  601. font-size: 32rpx;
  602. padding: 30rpx;
  603. }
  604. .list{
  605. display: flex;
  606. flex-wrap: wrap;
  607. padding: 0 30rpx 20rpx;
  608. view{
  609. padding: 8rpx 30rpx;
  610. margin: 20rpx 30rpx 0 0;
  611. font-size: 28rpx;
  612. color: #8A8A8A;
  613. background-color: #F7F7F7;
  614. box-sizing: border-box;
  615. text-align: center;
  616. border-radius: 20rpx;
  617. }
  618. }
  619. }
  620. .commodity-list-wrapper {
  621. scroll-view {
  622. height: 100%;
  623. overflow: scroll;
  624. }
  625. .empty-container-image {
  626. margin-top: -300rpx;
  627. }
  628. .toIndexPage {
  629. bottom: 390rpx;
  630. }
  631. .show-more-btn {
  632. width: 276rpx;
  633. height: 52rpx;
  634. line-height: 52rpx;
  635. border: 2rpx solid #D8D8D8;
  636. background: #F7F7F7;
  637. font-size: 26rpx;
  638. margin: 26rpx 0;
  639. position: absolute;
  640. left: 50%;
  641. margin-left: -138rpx;
  642. }
  643. }
  644. .all-type-list-content {
  645. height: 216rpx;
  646. padding: 24rpx;
  647. background: #fff;
  648. margin-bottom: 2rpx;
  649. display: flex;
  650. flex-direction: row;
  651. box-sizing: content-box;
  652. .list-img {
  653. width: 210rpx;
  654. height: 218rpx !important;
  655. margin-right: 26rpx;
  656. border-radius: 10rpx;
  657. border: 2rpx solid #f3f3f3;
  658. }
  659. }
  660. .list-details-info {
  661. width: 466rpx;
  662. display: flex;
  663. flex-direction: column;
  664. font-size: 26rpx;
  665. position: relative;
  666. .list-details-title {
  667. line-height: 38rpx;
  668. text-overflow: ellipsis;
  669. overflow: hidden;
  670. display: -webkit-box;
  671. -webkit-line-clamp: 2;
  672. line-clamp: 2;
  673. -webkit-box-orient: vertical;
  674. }
  675. .list-details-specs {
  676. margin-top: 8rpx;
  677. color: #666666;
  678. }
  679. .list-details-miniQuantity {
  680. margin-top: 7rpx;
  681. }
  682. }
  683. .list-details-price {
  684. width: 100%;
  685. height: 54rpx;
  686. line-height: 54rpx;
  687. position: absolute;
  688. bottom: -10rpx;
  689. right: 0;
  690. .floor-item-act{
  691. height: 54rpx;
  692. text-align: center;
  693. box-sizing: border-box;
  694. float: right;
  695. .floor-tags{
  696. height: 36rpx;
  697. border-radius: 6rpx;
  698. background-color: #FFFFFF;
  699. line-height: 36rpx;
  700. color: $color-system;
  701. text-align: center;
  702. display: inline-block;
  703. padding:0 16rpx;
  704. font-size: $font-size-20;
  705. margin-left: 15rpx;
  706. border: 1px solid #E15616;
  707. float: right;
  708. }
  709. }
  710. .price-icon {
  711. width: 22rpx;
  712. height: 28rpx;
  713. vertical-align: middle;
  714. margin-right: 10rpx;
  715. }
  716. .price-icon + text {
  717. font-size: 25rpx;
  718. vertical-align: middle;
  719. }
  720. .list-login-now {
  721. color: #F8C499;
  722. float: left;
  723. line-height: 54rpx;
  724. .p-no{
  725. float: left;
  726. font-size: $font-size-24;
  727. color: $text-color;
  728. }
  729. }
  730. .login-now {
  731. padding: 10rpx 10rpx 10rpx 0;
  732. }
  733. .list-price {
  734. color: #FF2A2A;
  735. height: 44rpx;
  736. float: left;
  737. .price-larger {
  738. width: 100%;
  739. font-size: 32rpx;
  740. &.none{
  741. text-decoration: line-through;
  742. color: #999999;
  743. }
  744. &.small{
  745. font-size: $font-size-24;
  746. }
  747. .txt{
  748. font-size: $font-size-24;
  749. display: inline-block;
  750. line-height: 44rpx;
  751. text-align: left;
  752. float: left;
  753. }
  754. }
  755. }
  756. }
  757. </style>