修改通道选择
parent
3fbe537a8d
commit
3a7ea01f18
|
@ -48,13 +48,12 @@
|
||||||
desc:'获取亲的昵称、头像及性别',
|
desc:'获取亲的昵称、头像及性别',
|
||||||
success: (resEnd)=> {
|
success: (resEnd)=> {
|
||||||
this.userInfo = resEnd.userInfo;
|
this.userInfo = resEnd.userInfo;
|
||||||
console.log(resEnd,7777);
|
|
||||||
//用户已经授权过,添加用户信息
|
//用户已经授权过,添加用户信息
|
||||||
uni.login({
|
uni.login({
|
||||||
provider: 'weixin',
|
provider: 'weixin',
|
||||||
success: (rescode)=> {
|
success: (rescode)=> {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/pagesA/passageway/passageway'
|
url:'/pagesA/my-opinion-list/my-opinion-list'
|
||||||
})
|
})
|
||||||
// this.updateUserInfo(rescode.code);
|
// this.updateUserInfo(rescode.code);
|
||||||
},
|
},
|
||||||
|
@ -87,7 +86,7 @@
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:'/pagesA/passageway/passageway'
|
url:'/pagesA/my-opinion-list/my-opinion-list'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,13 +51,12 @@
|
||||||
methods: {
|
methods: {
|
||||||
// 切换事件
|
// 切换事件
|
||||||
switchEv(index){
|
switchEv(index){
|
||||||
console.log(index);
|
|
||||||
this.switchIndex = index;
|
this.switchIndex = index;
|
||||||
},
|
},
|
||||||
// 前往提交页面
|
// 前往提交页面
|
||||||
goOpinionSubmit(){
|
goOpinionSubmit(){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:'/pagesA/opinion-submit/opinion-submit'
|
url:'/pagesA/passageway/passageway'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 前往详情页
|
// 前往详情页
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="disjcac fc">
|
<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">
|
<view class="posir">
|
||||||
<image class="way-head" src="/static/icon/icon-head.png" mode=""></image>
|
<image class="way-head" src="/static/icon/icon-head.png" mode=""></image>
|
||||||
<view class="posir disjcac icon-box">
|
<view class="posir disjcac icon-box">
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="colf fon42 mar-s30">实名通道</view>
|
<view class="colf fon42 mar-s30">实名通道</view>
|
||||||
</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">
|
<view class="posir">
|
||||||
<image class="way-head" src="/static/icon/icon-head.png" mode=""></image>
|
<image class="way-head" src="/static/icon/icon-head.png" mode=""></image>
|
||||||
<view class="posir disjcac icon-box">
|
<view class="posir disjcac icon-box">
|
||||||
|
@ -33,6 +33,7 @@
|
||||||
methods: {
|
methods: {
|
||||||
// 通道方式
|
// 通道方式
|
||||||
passagewayModeEv(index){
|
passagewayModeEv(index){
|
||||||
|
this.$store.commit('setAnonymous',[false,true][index])
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`/pagesA/opinion-submit/opinion-submit?flag=${index==1}`
|
url:`/pagesA/opinion-submit/opinion-submit?flag=${index==1}`
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue