修改通道选择

master
吃肉的饺子 2022-07-30 18:19:04 +08:00
parent 3fbe537a8d
commit 3a7ea01f18
3 changed files with 6 additions and 7 deletions

View File

@ -48,13 +48,12 @@
desc:'获取亲的昵称、头像及性别',
success: (resEnd)=> {
this.userInfo = resEnd.userInfo;
console.log(resEnd,7777);
//
uni.login({
provider: 'weixin',
success: (rescode)=> {
uni.reLaunch({
url:'/pagesA/passageway/passageway'
url:'/pagesA/my-opinion-list/my-opinion-list'
})
// this.updateUserInfo(rescode.code);
},
@ -87,7 +86,7 @@
})
} else {
uni.reLaunch({
url:'/pagesA/passageway/passageway'
url:'/pagesA/my-opinion-list/my-opinion-list'
})
}
}

View File

@ -51,13 +51,12 @@
methods: {
//
switchEv(index){
console.log(index);
this.switchIndex = index;
},
//
goOpinionSubmit(){
uni.navigateTo({
url:'/pagesA/opinion-submit/opinion-submit'
url:'/pagesA/passageway/passageway'
})
},
//

View File

@ -1,6 +1,6 @@
<template>
<view class="disjcac fc">
<view @tap="passagewayModeEv(1)" class="way-item-box disjcac fc">
<view @tap="passagewayModeEv(0)" class="way-item-box disjcac fc">
<view class="posir">
<image class="way-head" src="/static/icon/icon-head.png" mode=""></image>
<view class="posir disjcac icon-box">
@ -10,7 +10,7 @@
</view>
<view class="colf fon42 mar-s30">实名通道</view>
</view>
<view @tap="passagewayModeEv(0)" class="way-item-box disjcac fc" style="margin: 0;">
<view @tap="passagewayModeEv(1)" class="way-item-box disjcac fc" style="margin: 0;">
<view class="posir">
<image class="way-head" src="/static/icon/icon-head.png" mode=""></image>
<view class="posir disjcac icon-box">
@ -33,6 +33,7 @@
methods: {
//
passagewayModeEv(index){
this.$store.commit('setAnonymous',[false,true][index])
uni.navigateTo({
url:`/pagesA/opinion-submit/opinion-submit?flag=${index==1}`
})