|
@ -45,7 +45,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex flex-centr2 flex-mean m-top18"> |
|
|
<div class="flex flex-centr2 flex-mean m-top18"> |
|
|
<div class="flex-y flex flex-center1 flex-center2 nav font-size13 " v-for="(item, index) in tabList" |
|
|
<div class="flex-y flex flex-center1 flex-center2 nav font-size13 " v-for="(item, index) in tabList" |
|
|
@click="handelClickJump(item.path)" :key="index"> |
|
|
@click="handelClickJump(item.path,'tab')" :key="index"> |
|
|
<img :src="item.imgSrc" alt=""> |
|
|
<img :src="item.imgSrc" alt=""> |
|
|
<span>{{ item.title }}</span> |
|
|
<span>{{ item.title }}</span> |
|
|
</div> |
|
|
</div> |
|
@ -64,11 +64,11 @@ |
|
|
<div class="time gray font-size14">时间:{{ item.startTime }}</div> |
|
|
<div class="time gray font-size14">时间:{{ item.startTime }}</div> |
|
|
<div class="flex flex-end"> |
|
|
<div class="flex flex-end"> |
|
|
<div> |
|
|
<div> |
|
|
<span>报名人数:</span> <span class="font-size18 orange">{{ item.participants }}</span>/<span |
|
|
<span>报名人数:</span> <span class="font-size18 orange">{{ item.currentParticipants }}</span>/<span |
|
|
class="font-size14">{{ item.participants }}人</span> |
|
|
class="font-size14">{{ item.participants }}人</span> |
|
|
</div> |
|
|
</div> |
|
|
<van-button type="info" size="small" round @click="handelClickJump(`activityDetail`,item)" |
|
|
<van-button type="info" size="small" round @click="handelClickJump(`activityDetail`,item)" |
|
|
:disabled="item.online !== 1">报名</van-button> |
|
|
:disabled="new Date(item.cutOffTime.replace(/-/g, '/')).getTime()<Date.now()">报名</van-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -199,7 +199,6 @@ export default { |
|
|
if(item.coverPic){ |
|
|
if(item.coverPic){ |
|
|
this.$router.push({name:'communityPublicityDetail',query:{item:JSON.stringify(item)}}) |
|
|
this.$router.push({name:'communityPublicityDetail',query:{item:JSON.stringify(item)}}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
async querystaffmessage(){ |
|
|
async querystaffmessage(){ |
|
|
let parm = { |
|
|
let parm = { |
|
@ -297,7 +296,6 @@ export default { |
|
|
let res = await communityPublicity(parm) |
|
|
let res = await communityPublicity(parm) |
|
|
if (res) { |
|
|
if (res) { |
|
|
this.PublicityList = res.list.slice(0, 2) |
|
|
this.PublicityList = res.list.slice(0, 2) |
|
|
console.log(this.PublicityList,"s dsfd fs"); |
|
|
|
|
|
this.PublicityListImg = res.list.filter((item)=>item.coverPic) |
|
|
this.PublicityListImg = res.list.filter((item)=>item.coverPic) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -317,7 +315,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handelClickJump(path,item) { |
|
|
handelClickJump(path,item) { |
|
|
if (path === 'event' || path === 'service' || path === 'activity') { |
|
|
if (path === 'event' || path === 'service' || path === 'activity' || path === 'Enjoyableservices' || item === 'tab') { |
|
|
if (this.$store.state.app.userInfo.mobile) { |
|
|
if (this.$store.state.app.userInfo.mobile) { |
|
|
this.$router.push({ path: `/${path}` }); |
|
|
this.$router.push({ path: `/${path}` }); |
|
|
} else { |
|
|
} else { |
|
|