my-shop.vue 23 KB

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