修改通道选择

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:'获取亲的昵称、头像及性别', 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'
}) })
} }
} }

View File

@ -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'
}) })
}, },
// //

View File

@ -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}`
}) })