my-shop.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. <template>
  2. <view class="container shop clearfix" :style="{paddingTop:CustomBar+'px'}">
  3. <!-- 主页内容 -->
  4. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="true" :loadingType="5"></tui-skeleton>
  5. <template v-else>
  6. <view class="shop-search-main">
  7. <view class="shop-search">
  8. <text class="iconfont icon-sousuo"></text>
  9. <input class="input" maxlength="20" type="text" value="" v-model.trim="listQuery.keyword" confirm-type="search" @confirm="SubMitSearch()" placeholder="搜索本店铺商品" />
  10. </view>
  11. </view>
  12. <view class="container-shop tui-skeleton">
  13. <!-- 轮播 -->
  14. <view class="product-supplier" @click="goSupplier">
  15. <view class="logo"><img :src="shopLogo" alt=""></view>
  16. <view class="main">
  17. <view class="name">{{ shopName }}</view>
  18. <view class="massgs">
  19. <view class="label">满意度:</view>
  20. <view class="p-stars">
  21. <uni-stars :stars="6" :iconClass="iconClass" :iconColor="iconColor" :fontSize="36" :widthInfo="176"></uni-stars>
  22. </view>
  23. <view class="acount">
  24. <text> {{ normalNum }} </text>件商品
  25. </view>
  26. </view>
  27. </view>
  28. <view class="right"><text class="iconfont icon-xiayibu"></text></view>
  29. </view>
  30. <banner :list="bannerImageList"></banner>
  31. </view>
  32. <view class="container-section tui-skeleton">
  33. <view class="tab-title">主推商品</view>
  34. <view class="section-product clearfix">
  35. <view v-if="recommendList.length > 0" class="floor-item" v-for="(item, index) in recommendList" :key="index" @click.stop="navToDetailPage(item.id)">
  36. <image class="item-img tui-skeleton-fillet" :src="item.image" mode="aspectFill"></image>
  37. <view class="floor-item-content">
  38. <view class="title tui-skeleton-rect">
  39. <text class="mclap">{{item.name}}</text>
  40. </view>
  41. <view class="" v-if="hasLogin">
  42. <template v-if="userIdentity == 4">
  43. <view class="title-none" v-show="item.priceFlag == '1'">
  44. <text class="p big">¥未公开价格</text>
  45. </view>
  46. <view class="title-none" v-show="item.priceFlag == '2'">
  47. <text class="p big">¥价格仅会员可见</text>
  48. </view>
  49. <view class="price tui-skeleton-rect" v-show="item.priceFlag == '0'" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  50. <text class="p sm">¥</text>
  51. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  52. <template v-if="item.actStatus==1">
  53. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  54. {{item.promotions.name}}<text v-if="hasLogin && item.priceFlag != '1'">:¥{{item.price | NumFormat}}</text>
  55. </view>
  56. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  57. </template>
  58. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  59. <view class="floor-tags">阶梯价格</view>
  60. </template>
  61. </view>
  62. </template>
  63. <template v-if="userIdentity == 3">
  64. <template v-if="item.supplierId == shopId">
  65. <view class="title-none" v-if="item.p_price_flag == '1'">
  66. <text class="p big">未公开价格</text>
  67. </view>
  68. <view class="price tui-skeleton-rect" v-else :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  69. <text class="p sm">¥</text>
  70. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  71. <template v-if="item.actStatus==1">
  72. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  73. {{item.promotions.name}}<text v-if="hasLogin && item.p_price_flag != '1'">:¥{{item.price | NumFormat}}</text>
  74. </view>
  75. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  76. </template>
  77. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  78. <view class="floor-tags">阶梯价格</view>
  79. </template>
  80. </view>
  81. </template>
  82. <template v-else>
  83. <view class="no-price">
  84. <view class="p-stars">
  85. <text class="p-no">¥</text>
  86. <uni-grader :grade="Number(item.priceGrade)"></uni-grader>
  87. </view>
  88. </view>
  89. </template>
  90. </template>
  91. <template v-else>
  92. <view class="title-none" v-if="item.priceFlag == '1'">
  93. <text class="p big">未公开价格</text>
  94. </view>
  95. <view class="price tui-skeleton-rect" v-else :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  96. <text class="p sm">¥</text>
  97. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  98. <template v-if="item.actStatus==1">
  99. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  100. {{item.promotions.name}}<text v-if="hasLogin && item.priceFlag != '1'">:¥{{item.price | NumFormat}}</text>
  101. </view>
  102. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  103. </template>
  104. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  105. <view class="floor-tags">阶梯价格</view>
  106. </template>
  107. </view>
  108. </template>
  109. </view>
  110. <view v-else class="no-price">
  111. <view class="p-stars">
  112. <text class="p-no">¥</text>
  113. <uni-grader :grade="Number(item.priceGrade)"></uni-grader>
  114. <template v-if="item.actStatus==1">
  115. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  116. {{item.promotions.name}}<text v-if="hasLogin && item.priceFlag != '1'">:¥{{item.price | NumFormat}}</text>
  117. </view>
  118. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  119. </template>
  120. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  121. <view class="floor-tags">阶梯价格</view>
  122. </template>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. <view class="floor-item-none" v-else>
  128. <image class="none-image" :src="iconNoneData" mode=""></image>
  129. <view class="none-text">暂无主推商品~</view>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="container-section tui-skeleton">
  134. <view class="tab-title">全部商品</view>
  135. <view class="section-product clearfix">
  136. <view class="floor-item-none" v-if="isEmpty">
  137. <image class="none-image" :src="iconNoneData1" mode=""></image>
  138. <view class="none-text">暂未发布任何商品~</view>
  139. </view>
  140. <view v-else class="floor-item" v-for="(item, index) in productList" :key="index" @click.stop="navToDetailPage(item.p_id)">
  141. <image class="item-img tui-skeleton-fillet" :src="item.p_image" mode="aspectFill"></image>
  142. <view class="floor-item-content">
  143. <view class="title tui-skeleton-rect">
  144. <text class="mclap">{{item.p_name}}</text>
  145. </view>
  146. <view class="" v-if="hasLogin">
  147. <template v-if="userIdentity == 4">
  148. <view class="title-none" v-show="item.p_price_flag == '1'">
  149. <text class="p big">¥未公开价格</text>
  150. </view>
  151. <view class="title-none" v-show="item.p_price_flag == '2'">
  152. <text class="p big">¥价格仅会员可见</text>
  153. </view>
  154. <view class="price tui-skeleton-rect" v-show="item.p_price_flag == '0'" :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  155. <text class="p sm">¥</text>
  156. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  157. <template v-if="item.actStatus==1">
  158. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  159. {{item.promotions.name}}<text v-if="hasLogin && item.p_price_flag != '1'">:¥{{item.price | NumFormat}}</text>
  160. </view>
  161. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  162. </template>
  163. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  164. <view class="floor-tags">阶梯价格</view>
  165. </template>
  166. </view>
  167. </template>
  168. <template v-if="userIdentity == 3">
  169. <template v-if="item.supplierId == shopId">
  170. <view class="title-none" v-if="item.p_price_flag == '1'">
  171. <text class="p big">未公开价格</text>
  172. </view>
  173. <view class="price tui-skeleton-rect" v-else :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  174. <text class="p sm">¥</text>
  175. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  176. <template v-if="item.actStatus==1">
  177. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  178. {{item.promotions.name}}<text v-if="hasLogin && item.p_price_flag != '1'">:¥{{item.price | NumFormat}}</text>
  179. </view>
  180. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  181. </template>
  182. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  183. <view class="floor-tags">阶梯价格</view>
  184. </template>
  185. </view>
  186. </template>
  187. <template v-else>
  188. <view class="no-price">
  189. <view class="p-stars">
  190. <text class="p-no">¥</text>
  191. <uni-grader :grade="Number(item.p_price_grade)"></uni-grader>
  192. </view>
  193. </view>
  194. </template>
  195. </template>
  196. <template v-else>
  197. <view class="title-none" v-if="item.p_price_flag == '1'">
  198. <text class="p big">未公开价格</text>
  199. </view>
  200. <view class="price tui-skeleton-rect" v-else :class="PromotionsFormat(item.promotions) ? 'none' : ''">
  201. <text class="p sm">¥</text>
  202. <text class="p big">{{ (PromotionsFormat(item.promotions) ? item.originalPrice : item.price ) | NumFormat}}</text>
  203. <template v-if="item.actStatus==1">
  204. <view class="floor-tags" v-if="PromotionsFormat(item.promotions)">
  205. {{item.promotions.name}}<text v-if="hasLogin && item.p_price_flag != '1'">:¥{{item.price | NumFormat}}</text>
  206. </view>
  207. <view class="floor-tags" v-else>{{item.promotions.name}}</view>
  208. </template>
  209. <template v-if="item.actStatus ==0 && item.ladderPriceFlag==1">
  210. <view class="floor-tags">阶梯价格</view>
  211. </template>
  212. </view>
  213. </template>
  214. </view>
  215. <view v-else class="no-price">
  216. <view class="p-stars">
  217. <text class="p-no">¥</text>
  218. <uni-grader :grade="Number(item.p_price_grade)"></uni-grader>
  219. </view>
  220. </view>
  221. </view>
  222. </view>
  223. </view>
  224. </view>
  225. </template>
  226. <!-- 侧边 -->
  227. <scroll-top v-if="isScrollTop"></scroll-top>
  228. </view>
  229. </template>
  230. <script>
  231. import { mapState,mapMutations} from 'vuex';
  232. import banner from '@/components/cm-module/supplier/banner.vue'
  233. import uniGrader from '@/components/uni-grade/uni-grade.vue'
  234. import authorize from '@/common/config/authorize.js'
  235. export default {
  236. components:{
  237. banner,
  238. uniGrader
  239. },
  240. data() {
  241. return {
  242. userID:0,
  243. supplierId:0,
  244. shopId:0,
  245. iconClass:'icon-aixin',
  246. iconColor:'#ff9100',
  247. iconNoneData:'http://static-b.caimei365.com/app/img/icon/icon-prnone.png',
  248. iconNoneData1:'http://static-b.caimei365.com/app/img/icon/icon-pbnone.png',
  249. isScrollTop:false,
  250. shopName:'',
  251. shopLogo:'',
  252. normalNum:0,
  253. isEmpty:false,
  254. skeletonShow: true,
  255. bannerImageList:[],
  256. recommendList:[],
  257. productList:[],
  258. userIdentity:'',
  259. listQuery:{
  260. keyword: '',
  261. pageSize: 10,
  262. pageNum: 1,
  263. id:0
  264. },
  265. total:0
  266. }
  267. },
  268. onLoad(option) {
  269. this.listQuery.id = this.supplierId = option.shopId
  270. this.$api.getStorage().then((resolve) =>{
  271. this.shopId = resolve.shopID
  272. this.userID = resolve.userID
  273. this.userIdentity = resolve.userIdentity
  274. this.InitShopDataInfo()
  275. }).catch( error =>{
  276. this.InitShopDataInfo()
  277. })
  278. },
  279. filters: {
  280. NumFormat:function(text) {//处理金额
  281. return Number(text).toFixed(2);
  282. },
  283. },
  284. computed: {
  285. ...mapState(['hasLogin','userInfo','isActivity'])
  286. },
  287. methods: {
  288. ...mapMutations(['login','logout']),
  289. InitShopDataInfo(){//初始化请求数据
  290. this.GetSupplierHomeBanner()
  291. this.GetSupplierHomeDeatils()
  292. this.GetSupplierHomeProduct()
  293. this.GetSupplierHomeProductList()
  294. this.skeletonShow =false
  295. },
  296. GetSupplierHomeBanner(){//轮播图
  297. this.ShopService.GetSupplierHomeBanner({supplierId:this.supplierId}).then(response =>{
  298. this.bannerImageList = response.data;
  299. }).catch(error =>{
  300. this.$util.msg(error.msg,2000)
  301. })
  302. },
  303. GetSupplierHomeDeatils(){//商铺详情
  304. this.ShopService.GetSupplierHomeDeatils({supplierId:this.supplierId}).then(response =>{
  305. let data = response.data
  306. this.normalNum = data.normalNum
  307. this.shopName = data.name
  308. this.shopLogo = data.logo
  309. }).catch(error =>{
  310. this.$util.msg(error.msg,2000)
  311. })
  312. },
  313. GetSupplierHomeProduct(){//主推商品
  314. this.ShopService.GetSupplierHomeProduct({supplierId:this.supplierId}).then(response =>{
  315. let data = response.data
  316. if(data.length>0){
  317. this.QueryProductPrice(data)
  318. }
  319. }).catch(error =>{
  320. this.$util.msg(error.msg,2000)
  321. })
  322. },
  323. GetSupplierHomeProductList(){//全部商品
  324. this.ShopService.GetSupplierHomeProductList(this.listQuery).then(response =>{
  325. let data = JSON.parse(response.data)
  326. let dataList = data.items
  327. console.log(data)
  328. this.total = data.total
  329. if(this.total>0){
  330. this.isEmpty = false
  331. this.productList = dataList
  332. this.QueryProductPrice1(this.productList)
  333. }else{
  334. this.isEmpty = true
  335. }
  336. }).catch(error =>{
  337. this.$util.msg(error.msg,2000)
  338. })
  339. },
  340. GetMoreSupplierHomeProductList(){//加载分页
  341. this.listQuery.pageNum +=1
  342. this.ShopService.GetSupplierHomeProductList(this.listQuery).then(response =>{
  343. let data = JSON.parse(response.data)
  344. console.log(data)
  345. this.total = data.total
  346. this.productList = this.productList.concat(data.items)
  347. this.QueryProductPrice1(this.productList)
  348. }).catch(error =>{
  349. this.$util.msg(error.msg,2000)
  350. })
  351. },
  352. QueryProductPrice(data){//处理主推商品商品或者活动价格
  353. let productIdArr = [];
  354. let productIds ='';
  355. data.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  356. productIdArr.push(item.id)
  357. })
  358. productIds = productIdArr.join(",");
  359. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
  360. this.recommendList = this.ReturnNewProducts(data,response.data);
  361. console.log(this.recommendList)
  362. }).catch(error =>{
  363. this.$util.msg(error.msg,2000)
  364. })
  365. },
  366. QueryProductPrice1(data){//获取商品或者活动价格
  367. let productIdArr = [];
  368. let productIds ='';
  369. data.map(item=>{// 0公开价格 1不公开价格 2仅对会员机构公开
  370. productIdArr.push(item.p_id)
  371. })
  372. productIds = productIdArr.join(",");
  373. this.ProductService.querySearchProductPrice({userId: this.userID,productIds:productIds}).then(response =>{
  374. this.productList = this.ReturnNewProducts1(data,response.data);
  375. console.log(this.productList)
  376. }).catch(error =>{
  377. this.$util.msg(error.msg,2000)
  378. })
  379. },
  380. ReturnNewProducts(listA,listB){
  381. let NewArray = []
  382. listA.map(item=>{
  383. for (let i = 0; i < listB.length; i++) {
  384. if( item.id == listB[i].productId ){
  385. NewArray.push(Object.assign(item,listB[i]))
  386. }
  387. }
  388. });
  389. return NewArray
  390. },
  391. ReturnNewProducts1(listA,listB){
  392. let NewArray = []
  393. listA.map(item=>{
  394. for (let i = 0; i < listB.length; i++) {
  395. if( item.p_id == listB[i].productId ){
  396. NewArray.push(Object.assign(item,listB[i]))
  397. }
  398. }
  399. });
  400. return NewArray
  401. },
  402. SubMitSearch() {//搜索
  403. if (this.listQuery.keyword == '') {
  404. this.$util.msg('请输入商品关键词',2000);
  405. return
  406. }
  407. this.listQuery.pageNum = 1
  408. this.GetSupplierHomeProductList()
  409. },
  410. PromotionsFormat(promo){//促销活动类型数据处理
  411. if(promo!=null){
  412. if(promo.type == 1 && promo.mode == 1){
  413. return true
  414. }else{
  415. return false
  416. }
  417. }
  418. return false
  419. },
  420. goSupplier(){//跳供应商资料页
  421. this.$api.navigateTo('/supplier/pages/user/supplier?shopId='+this.shopId)
  422. },
  423. navToDetailPage(id) {//跳转商品详情页
  424. this.$api.navigateTo(`/pages/goods/product?id=${id}`)
  425. }
  426. },
  427. onPageScroll(e){//实时获取到滚动的值
  428. if(e.scrollTop>400){
  429. this.isScrollTop = true
  430. }else{
  431. this.isScrollTop = false
  432. }
  433. },
  434. onPullDownRefresh() {//下拉刷新
  435. this.listQuery.pageNum = 1
  436. this.productList =[]
  437. this.InitShopDataInfo()
  438. uni.stopPullDownRefresh()
  439. },
  440. onReachBottom() {//上滑加载分页
  441. if(this.total > this.productList.length){
  442. this.loadding = true
  443. this.pullUpOn = true
  444. this.GetMoreSupplierHomeProductList()
  445. }
  446. },
  447. onShow(){
  448. }
  449. }
  450. </script>
  451. <style lang="scss">
  452. page{
  453. background-color: #F7F7F7;
  454. }
  455. .shop{
  456. width: 100%;
  457. height: auto;
  458. }
  459. .shop-search-main{
  460. width: 100%;
  461. height: 86rpx;
  462. background-color: #FFFFFF;
  463. box-sizing: border-box;
  464. padding:10rpx 24rpx;
  465. position: fixed;
  466. top:0;
  467. left: 0;
  468. z-index: 999;
  469. .shop-search{
  470. width: 100%;
  471. height: 66rpx;
  472. border-radius: 33rpx;
  473. background-color: #F7F7F7;
  474. box-sizing: border-box;
  475. .icon-sousuo{
  476. width: 80rpx;
  477. height: 66rpx;
  478. display: block;
  479. float: left;
  480. color: #707070;
  481. line-height: 66rpx;
  482. text-align: center;
  483. font-size: 36rpx;
  484. }
  485. .input{
  486. width: 580rpx;
  487. height: 66rpx;
  488. box-sizing: border-box;
  489. color: #666666;
  490. overflow: hidden;
  491. font-size: $font-size-24;
  492. }
  493. }
  494. }
  495. .container-shop{
  496. width: 100%;
  497. height: auto;
  498. padding:24rpx;
  499. box-sizing: border-box;
  500. background-color: #FFFFFF;
  501. margin-top: 96rpx;
  502. }
  503. .product-supplier{
  504. width: 100%;
  505. height: 140rpx;
  506. padding: 30rpx 0 10rpx 0;
  507. box-sizing: border-box;
  508. background-color: #FFFFFF;
  509. position: relative;
  510. box-sizing: border-box;
  511. .logo{
  512. width: 128rpx;
  513. height: 92rpx;
  514. float: left;
  515. border: 1px solid #efefef;
  516. border-radius: 6rpx;
  517. image{
  518. width: 100%;
  519. height: 100%;
  520. display: block;
  521. border-radius: 6rpx;
  522. }
  523. }
  524. .main{
  525. width: 470rpx;
  526. height: 92rpx;
  527. float: left;
  528. margin-left: 20rpx;
  529. .name{
  530. width: 100%;
  531. line-height: 46rpx;
  532. float: left;
  533. font-size: $font-size-28;
  534. color: $text-color;
  535. float: right;
  536. overflow: hidden;
  537. text-overflow:ellipsis;
  538. white-space: nowrap;
  539. text-align: left;
  540. }
  541. .massgs{
  542. width: 100%;
  543. line-height: 46rpx;
  544. float: left;
  545. font-size: $font-size-24;
  546. color: #999999;
  547. .label{
  548. float: left;
  549. }
  550. .p-stars{
  551. float: left;
  552. margin-left: 20rpx;
  553. }
  554. .acount{
  555. float: right;
  556. text{
  557. color: $color-system;
  558. }
  559. }
  560. }
  561. }
  562. .icon-xiayibu{
  563. line-height: 154rpx;
  564. display: inline-block;
  565. position: absolute;
  566. width: 48rpx;
  567. top: 0;
  568. right: 0;
  569. color: #b2b2b2;
  570. }
  571. }
  572. .container-section{
  573. width: 100%;
  574. height: auto;
  575. background-color: #F7F7F7;
  576. box-sizing: border-box;
  577. padding: 0 24rpx;
  578. .tab-title{
  579. width: 100%;
  580. height: 88rpx;
  581. line-height: 88rpx;
  582. font-size: $font-size-30;
  583. font-weight: bold;
  584. }
  585. .section-product{
  586. width: 100%;
  587. height: auto;
  588. .floor-item-none{
  589. min-height: 300rpx;
  590. display: flex;
  591. flex-direction: column;
  592. align-items: center;
  593. .none-image{
  594. width: 260rpx;
  595. height: 260rpx;
  596. }
  597. .none-text{
  598. text-align: center;
  599. font-size: $font-size-28;
  600. color: #999999;
  601. line-height: 40rpx;
  602. }
  603. }
  604. .floor-item{
  605. width: 341rpx;
  606. height: auto;
  607. margin-right: 20rpx;
  608. font-size: $font-size-24;
  609. color: $text-color;
  610. background: #FFFFFF;
  611. line-height: 36rpx;
  612. border-radius: 2rpx;
  613. margin-bottom: 20rpx;
  614. float: left;
  615. box-sizing: border-box;
  616. padding-bottom: 10rpx;
  617. &:nth-child(2n){
  618. margin-right: 0;
  619. }
  620. .item-img{
  621. width: 341rpx;
  622. height: 341rpx;
  623. border-radius: 2rpx 2rpx 0 0;
  624. display: block;
  625. margin-bottom: 20rpx;
  626. }
  627. .floor-item-content{
  628. width: 311rpx;
  629. padding: 0 15rpx;
  630. }
  631. .floor-item-act{
  632. display: block;
  633. width: 100%;
  634. height: 68rpx;
  635. text-align: center;
  636. box-sizing: border-box;
  637. padding: 16rpx 0;
  638. margin-top: 8rpx;
  639. }
  640. .floor-tags{
  641. height: 36rpx;
  642. border-radius: 6rpx;
  643. background-color: #FFFFFF;
  644. line-height: 36rpx;
  645. color: $color-system;
  646. text-align: center;
  647. display: inline-block;
  648. padding:0 16rpx;
  649. font-size: $font-size-20;
  650. margin-left: 15rpx;
  651. border: 1px solid #E15616;
  652. }
  653. .title-none{
  654. font-size: $font-size-26;
  655. color: #FF2A2A;
  656. line-height: 70rpx;
  657. .btn{
  658. display: inline-block;
  659. float: right;
  660. width: 112rpx;
  661. height: 44rpx;
  662. background: $btn-confirm;
  663. line-height: 44rpx;
  664. font-size: $font-size-24;
  665. color: #FFFFFF;
  666. text-align: center;
  667. border-radius: 22rpx;
  668. margin-top: 17rpx;
  669. }
  670. }
  671. .title{
  672. width: 100%;
  673. height: 72rpx;
  674. display: flex;
  675. flex-direction: column;
  676. margin-bottom: 15rpx;
  677. .mclap{
  678. width: 100%;
  679. line-height:40rpx;
  680. text-overflow:ellipsis;
  681. display: -webkit-box;
  682. word-break: break-all;
  683. -webkit-box-orient: vertical;
  684. -webkit-line-clamp: 2;
  685. overflow: hidden;
  686. font-size: 26rpx;
  687. }
  688. }
  689. .no-price{
  690. height: 54rpx;
  691. line-height: 54rpx;
  692. display: flex;
  693. box-sizing: border-box;
  694. .p-no{
  695. font-size: $font-size-30;
  696. color: $text-color;
  697. display: block;
  698. float: left;
  699. }
  700. .p-stars{
  701. float: left;
  702. }
  703. }
  704. .price{
  705. color: #FF2A2A;
  706. line-height:70rpx;
  707. &.none{
  708. text-decoration: line-through;
  709. color: #999999;
  710. }
  711. .sm{
  712. font-size: $font-size-24;
  713. }
  714. .big{
  715. font-size: $font-size-28;
  716. }
  717. }
  718. }
  719. }
  720. }
  721. </style>