镇公司采集任务

This commit is contained in:
zmj 2023-11-08 09:13:20 +08:00
parent ed540901c1
commit e3c0ae2df9

View File

@ -44,7 +44,7 @@
</view> </view>
</view> </view>
</view> </view>
<u-popup :show="show" @close="close" :round="10" mode="center" @open="open"> <!-- <u-popup :show="show" @close="close" :round="10" mode="center" @open="open">
<view style="padding: 20rpx;"> <view style="padding: 20rpx;">
<u-button type="primary" @click="navgo(`/subpkg/townTask/townGather?type=plant&task_id=${task_id}`)" <u-button type="primary" @click="navgo(`/subpkg/townTask/townGather?type=plant&task_id=${task_id}`)"
style="margin-bottom: 20rpx;" color="#0122C7" text="养殖基地信息"></u-button> style="margin-bottom: 20rpx;" color="#0122C7" text="养殖基地信息"></u-button>
@ -53,8 +53,8 @@
</view> </view>
</u-popup> </u-popup> -->
<mybtn text="新建信息收集" @click="show=true"> <mybtn text="新建信息收集" @click="creatFn">
</mybtn> </mybtn>
</view> </view>
@ -102,13 +102,20 @@
// townTask3List() // townTask3List()
}, },
methods: { methods: {
open() { // open() {
this.show = true // this.show = true
}, // },
close() { // close() {
this.show = false // this.show = false
}, // },
creatFn() {
if (this.page == 1) {
this.navgo(`/subpkg/townTask/townGather?type=plant&task_id=${this.task_id}`)
} else {
this.navgo(`/subpkg/townTask/townGather?type=supply&task_id=${this.task_id}`)
}
},
navgo(url) { navgo(url) {
this.show = false this.show = false
uni.navigateTo({ uni.navigateTo({
@ -118,7 +125,7 @@
changeTypeCurrent(e) { changeTypeCurrent(e) {
this.page = e.id this.page = e.id
// if(e.) // if(e.)
console.log(e.id)
} }
} }