my-shop.vue 24 KB

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