Commit e1630043 authored by lvtz's avatar lvtz

fix

parent 9b2324e2
......@@ -28,7 +28,19 @@ Component({
},
methods: {
goUserBusiness () {
const visitor = LocalStorage.getItem('visitor');
const visitor = LocalStorage.getItem('visitor') || {};
let user = LocalStorage.getItem('user');
let dakarole = LocalStorage.getItem('dakarole');
if(user && user.token){
LocalStorage.setItem('dakarole', 1);
wx.redirectTo({
url: `/business/pages/exchangebusiness/index?from=1`
})
return
}
getMember({
consumer_id: visitor && visitor.id
}).then(res=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment