This commit is contained in:
shijingjing
2022-09-07 18:04:53 +08:00
parent 79dffc51b2
commit 0b3523418c
5 changed files with 101 additions and 50 deletions

View File

@@ -2,7 +2,7 @@
<div class="AppCooperationPropaganda">
<AiTopFixed>
<div class="tab-select">
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index" @click="tabClick(index)">{{ item }}<span></span></div>
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index" @click="tabClick(item,index)">{{ item.name }}<span></span></div>
</div>
<div class="search">
<div class="searchBox">
@@ -98,7 +98,20 @@ export default {
appName: '协同宣发',
data() {
return {
tabs: ['群发居民群','群发居民','群发朋友圈'],
tabs: [
{
name: '群发居民群',
value: 'ResidentsGroup'
},
{
name: '群发居民',
value: 'Residents'
},
{
name: '群发朋友圈',
value: 'CircleOfFriends'
},
],
tabIndex: 0,
current: 1,
name: '',
@@ -114,12 +127,14 @@ export default {
createUserId: '',
userList: [],
userIdList: [],
status: ''
status: '',
sendType: '',
}
},
methods: {
tabClick(index) {
tabClick(item,index) {
this.tabIndex = index;
this.sendType = item.value
},
toDetail(item) {
uni.navigateTo({url: `./cooperationDetail?id=${item.id}&time=${item.createTime}`})
@@ -183,7 +198,7 @@ export default {
this.endTime = val.year + '-' + val.month + '-' + val.day
},
toAdd() {
uni.navigateTo({url: `./addPropaganda?index=${this.tabIndex}`})
uni.navigateTo({url: `./addPropaganda?type=${this.sendType}`})
}
},
onShow() {