my-shop.vue 23 KB

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