修改通道选择
parent
3fbe537a8d
commit
3a7ea01f18
|
@ -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'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
})
|
||||
},
|
||||
// 前往详情页
|
||||
|
|
|
@ -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}`
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue