my-shop.vue 22 KB

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