流程再次大调整

This commit is contained in:
aixianling
2023-01-03 16:20:23 +08:00
parent 55c71a3058
commit 04664e58b3
2 changed files with 15 additions and 22 deletions

View File

@@ -17,7 +17,7 @@
<u-parse :html="detail.ending"/>
</AiGroup>
<u-gap height="160"/>
<weixin-login :autoShow="!user.token" content="投票需要您授权您的微信信息" @login="getList"/>
<weixin-login :autoShow="!user.token||wxLogin" content="投票需要您授权您的微信信息" @login="getList"/>
</section>
</template>
@@ -32,7 +32,8 @@ export default {
data() {
return {
detail: {},
list: []
list: [],
wxLogin: false
}
},
computed: {
@@ -59,7 +60,8 @@ export default {
})
},
handleDetail(id) {
uni.navigateTo({url: './voteDetail?id=' + id})
if (!this.user.token) this.wxLogin = true
else uni.navigateTo({url: './voteDetail?id=' + id})
}
},
onShow() {