|
@@ -2,7 +2,7 @@
|
|
<view class="container home clearfix">
|
|
<view class="container home clearfix">
|
|
<!-- top -->
|
|
<!-- top -->
|
|
<view class="container-top"><image src="http://static-b.caimei365.com/app/meibohui/meibo@_05.jpg" mode=""></image></view>
|
|
<view class="container-top"><image src="http://static-b.caimei365.com/app/meibohui/meibo@_05.jpg" mode=""></image></view>
|
|
- <view class="container-activ"><image src="http://static-b.caimei365.com/app/meibohui/meibo@_03.jpg" mode=""></image></view>
|
|
|
|
|
|
+ <view class="container-activ" @click="LookMyCouponDetils"><image src="http://static-b.caimei365.com/app/meibohui/meibo@_03.jpg" mode=""></image></view>
|
|
<!-- VIP品牌线上馆 -->
|
|
<!-- VIP品牌线上馆 -->
|
|
<view class="container-page clearfix">
|
|
<view class="container-page clearfix">
|
|
<view class="tui-group-name">
|
|
<view class="tui-group-name">
|
|
@@ -50,7 +50,7 @@
|
|
<view class="floor-item__image">
|
|
<view class="floor-item__image">
|
|
<image :src="lives.image" mode=""></image>
|
|
<image :src="lives.image" mode=""></image>
|
|
</view>
|
|
</view>
|
|
- <view class="floor-item__text">{{lives.text}}</view>
|
|
|
|
|
|
+ <view class="floor-item__text">{{lives.liveTitle}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
@@ -69,7 +69,7 @@
|
|
<view class="tui-sub__desc">展位图描述词</view>
|
|
<view class="tui-sub__desc">展位图描述词</view>
|
|
</view>
|
|
</view>
|
|
<view class="tui-group-list">
|
|
<view class="tui-group-list">
|
|
- <view class="floor-item-booth" v-for="(booths,index) in boothList" :key="index">
|
|
|
|
|
|
+ <view class="floor-item-booth" v-for="(booths,index) in boothList" :key="index" @click="previewImg(index)">
|
|
<view class="floor-item-booth-image">
|
|
<view class="floor-item-booth-image">
|
|
<image :src="booths.image" class="floor-item-image" mode=""></image>
|
|
<image :src="booths.image" class="floor-item-image" mode=""></image>
|
|
</view>
|
|
</view>
|
|
@@ -90,7 +90,7 @@
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
<text class="iconfont icon-xiayibu"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="tui-sub__desc">展位图描述词</view>
|
|
|
|
|
|
+ <view class="tui-sub__desc">{{ floors.marke }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="tui-group-good__scroll clearfix">
|
|
<view class="tui-group-good__scroll clearfix">
|
|
<scroll-view scroll-x>
|
|
<scroll-view scroll-x>
|
|
@@ -205,9 +205,9 @@
|
|
import authorize from '@/common/config/authorize.js'
|
|
import authorize from '@/common/config/authorize.js'
|
|
import uniGrader from '@/components/uni-grade/uni-grade.vue'
|
|
import uniGrader from '@/components/uni-grade/uni-grade.vue'
|
|
import modalLayer from "@/components/modal-layer"
|
|
import modalLayer from "@/components/modal-layer"
|
|
-
|
|
|
|
import { userInfoLogin } from "@/api/use.js"
|
|
import { userInfoLogin } from "@/api/use.js"
|
|
import { mapState,mapMutations} from 'vuex';
|
|
import { mapState,mapMutations} from 'vuex';
|
|
|
|
+ var isPreviewImg;
|
|
export default {
|
|
export default {
|
|
components:{
|
|
components:{
|
|
uniGrader,
|
|
uniGrader,
|
|
@@ -239,10 +239,10 @@
|
|
{image:'http://static-b.caimei365.com/app/meibohui/meibo_logo@_01.png',id:23456}
|
|
{image:'http://static-b.caimei365.com/app/meibohui/meibo_logo@_01.png',id:23456}
|
|
],
|
|
],
|
|
liveList:[
|
|
liveList:[
|
|
- {image:'http://static-b.caimei365.com/app/meibohui/meibo_live@_01.png',text:'不同阶段的痘重磅上由...'},
|
|
|
|
- {image:'http://static-b.caimei365.com/app/meibohui/meibo_live@_02.png',text:'不同阶段的痘重磅上由...'},
|
|
|
|
- {image:'http://static-b.caimei365.com/app/meibohui/meibo_live@_01.png',text:'不同阶段的痘重磅上由...'},
|
|
|
|
- {image:'http://static-b.caimei365.com/app/meibohui/meibo_live@_02.png',text:'不同阶段的痘重磅上由...'}
|
|
|
|
|
|
+ {image:'http://static-b.caimei365.com/app/meibohui/meibo_live@_01.png',liveTitle:'不同阶段的痘重磅上由...'},
|
|
|
|
+ {image:'http://static-b.caimei365.com/app/meibohui/meibo_live@_02.png',liveTitle:'不同阶段的痘重磅上由...'},
|
|
|
|
+ {image:'http://static-b.caimei365.com/app/meibohui/meibo_live@_01.png',liveTitle:'不同阶段的痘重磅上由...'},
|
|
|
|
+ {image:'http://static-b.caimei365.com/app/meibohui/meibo_live@_02.png',liveTitle:'不同阶段的痘重磅上由...'}
|
|
],
|
|
],
|
|
boothList:[
|
|
boothList:[
|
|
{image:'http://static-b.caimei365.com/app/meibohui/meibo_img@_01.png',name:'采美信息技术有限公司',num:'21F'},
|
|
{image:'http://static-b.caimei365.com/app/meibohui/meibo_img@_01.png',name:'采美信息技术有限公司',num:'21F'},
|
|
@@ -250,15 +250,28 @@
|
|
{image:'http://static-b.caimei365.com/app/meibohui/meibo_img@_03.png',name:'采美信息技术有限公司',num:'21F'},
|
|
{image:'http://static-b.caimei365.com/app/meibohui/meibo_img@_03.png',name:'采美信息技术有限公司',num:'21F'},
|
|
{image:'http://static-b.caimei365.com/app/meibohui/meibo_img@_04.png',name:'采美信息技术有限公司',num:'21F'}
|
|
{image:'http://static-b.caimei365.com/app/meibohui/meibo_img@_04.png',name:'采美信息技术有限公司',num:'21F'}
|
|
],
|
|
],
|
|
|
|
+ SuppierNoteList:[
|
|
|
|
+ {shopId:1161,marke:'我的描述文件'}
|
|
|
|
+ ],
|
|
flootData:[],//楼层
|
|
flootData:[],//楼层
|
|
isScrollTop:false,
|
|
isScrollTop:false,
|
|
isRequest:false,
|
|
isRequest:false,
|
|
isNavRequest:false,
|
|
isNavRequest:false,
|
|
isLiveRequest:false,
|
|
isLiveRequest:false,
|
|
|
|
+ productImage:[],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
-
|
|
|
|
|
|
+ this.modallayer = false
|
|
|
|
+ this.$api.getComStorage('userInfo').then((resolve) =>{
|
|
|
|
+ this.clubStatus = resolve.clubStatus
|
|
|
|
+ this.userID = resolve.userID ? resolve.userID : 0;
|
|
|
|
+ this.shopId = resolve.shopID ? resolve.shopID : 0;
|
|
|
|
+ this.userIdentity = resolve.userIdentity
|
|
|
|
+ this.GetActitityInit()
|
|
|
|
+ }).catch(error =>{
|
|
|
|
+ this.GetActitityInit()
|
|
|
|
+ })
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
NumFormat:function(text) {//处理金额
|
|
NumFormat:function(text) {//处理金额
|
|
@@ -270,13 +283,43 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapMutations(['login','logout']),
|
|
...mapMutations(['login','logout']),
|
|
- GetActitityInit(){//金刚区分类
|
|
|
|
|
|
+ LookMyCouponDetils(){//点击优惠券 跳转处理
|
|
|
|
+ if(this.login){
|
|
|
|
+ if(this.userIdentity == 2 || this.userIdentity == 4){
|
|
|
|
+ this.$api.navigateTo('/pages/user/coupon/coupon')
|
|
|
|
+ }else if(this.userIdentity == 3){
|
|
|
|
+ this.$api.navigateTo('/supplier/pages/index/index')
|
|
|
|
+ }else{
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.$api.navigateTo('/pages/login/login')
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ GetActitityInit(){
|
|
this.ActivityService.GetRepeatActivityFloorData({userId:this.userID}).then(response =>{
|
|
this.ActivityService.GetRepeatActivityFloorData({userId:this.userID}).then(response =>{
|
|
- this.flootData = response.data
|
|
|
|
|
|
+ this.flootData = this.ReturnNewFlootData(response.data,this.SuppierNoteList)
|
|
|
|
+ console.log(this.flootData);
|
|
|
|
+ //处理商品图片列表
|
|
|
|
+ this.productImage =[]
|
|
|
|
+ this.boothList.forEach(item =>{
|
|
|
|
+ this.productImage.push(item.image);
|
|
|
|
+ })
|
|
}).catch(error =>{
|
|
}).catch(error =>{
|
|
this.$util.msg(error.msg,2000)
|
|
this.$util.msg(error.msg,2000)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ ReturnNewFlootData(listA,listB){
|
|
|
|
+ let NewArray = []
|
|
|
|
+ listA.map(item=>{
|
|
|
|
+ for (let i = 0; i < listB.length; i++) {
|
|
|
|
+ if( item.shopId == listB[i].shopId ){
|
|
|
|
+ NewArray.push(Object.assign(item,listB[i]))
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return NewArray
|
|
|
|
+ },
|
|
NavToDetailPage(path){
|
|
NavToDetailPage(path){
|
|
this.$api.navigateTo(path)
|
|
this.$api.navigateTo(path)
|
|
},
|
|
},
|
|
@@ -289,8 +332,27 @@
|
|
this.$api.navigateTo('/supplier/pages/user/my-shop?shopId='+value)
|
|
this.$api.navigateTo('/supplier/pages/user/my-shop?shopId='+value)
|
|
},
|
|
},
|
|
LiveGoPathPros(live){
|
|
LiveGoPathPros(live){
|
|
- this.$api.navigateTo(`/h5/pages/article/page-image?title=${live.liveTitle}&image=${live.advertisingImage}`)
|
|
|
|
- }
|
|
|
|
|
|
+ this.$api.navigateTo(`/h5/pages/article/page-image?title=${live.liveTitle}&image=${live.image}`)
|
|
|
|
+ },
|
|
|
|
+ PromotionsFormat(promo){//促销活动类型数据处理
|
|
|
|
+ if(promo!=null){
|
|
|
|
+ if(promo.type == 1 && promo.mode == 1){
|
|
|
|
+ return true
|
|
|
|
+ }else{
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ },
|
|
|
|
+ previewImg (index) {//顶部商品图片预览
|
|
|
|
+ // isPreviewImg = true
|
|
|
|
+ let previewUrls = this.productImage
|
|
|
|
+ uni.previewImage({
|
|
|
|
+ current: index, //图片索引
|
|
|
|
+ urls: previewUrls, //必须是http图片,本地图片无效
|
|
|
|
+ longPressActions:''
|
|
|
|
+ })
|
|
|
|
+ },
|
|
},
|
|
},
|
|
onPageScroll(e){//实时获取到滚动的值
|
|
onPageScroll(e){//实时获取到滚动的值
|
|
if(e.scrollTop>400){
|
|
if(e.scrollTop>400){
|
|
@@ -314,16 +376,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow(){
|
|
onShow(){
|
|
- this.modallayer = false
|
|
|
|
- this.$api.getComStorage('userInfo').then((resolve) =>{
|
|
|
|
- this.clubStatus = resolve.clubStatus
|
|
|
|
- this.userID = resolve.userID ? resolve.userID : 0;
|
|
|
|
- this.shopId = resolve.shopID ? resolve.shopID : 0;
|
|
|
|
- this.userIdentity = resolve.userIdentity
|
|
|
|
- this.GetActitityInit()
|
|
|
|
- }).catch(error =>{
|
|
|
|
- this.GetActitityInit()
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -613,7 +666,7 @@
|
|
-webkit-line-clamp: 2;
|
|
-webkit-line-clamp: 2;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
font-size: 26rpx;
|
|
font-size: 26rpx;
|
|
- text-indent: 100rpx;
|
|
|
|
|
|
+ text-indent: 95rpx;
|
|
}
|
|
}
|
|
.mclap-tag{
|
|
.mclap-tag{
|
|
display: block;
|
|
display: block;
|