Commit ab14daea authored by fwz's avatar fwz

商品详情登录

parent 2b98f819
...@@ -182,6 +182,8 @@ export default { ...@@ -182,6 +182,8 @@ export default {
this.superiorParam = "0" this.superiorParam = "0"
} }
jumpUrl += "?index=" + this.superiorParam jumpUrl += "?index=" + this.superiorParam
}else{
jumpUrl += "?id=" + this.superiorParam
} }
//跳转到绑定页面 //跳转到绑定页面
uni.reLaunch({ //信息更新成功后跳转到小程序首页 uni.reLaunch({ //信息更新成功后跳转到小程序首页
...@@ -222,6 +224,9 @@ export default { ...@@ -222,6 +224,9 @@ export default {
if(e.index){ if(e.index){
this.superiorParam = e.index this.superiorParam = e.index
} }
if(e.id){
this.superiorParam = e.id
}
} }
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
......
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
let token = uni.getStorageSync('userToken'); let token = uni.getStorageSync('userToken');
if(!token){ if(!token){
uni.navigateTo({ uni.navigateTo({
url: '/pages/binding/index?url=/pages/main&param=4' url: '/pages/binding/index?url=/pages/main&index=4'
}) })
return; return;
} }
...@@ -159,6 +159,13 @@ export default { ...@@ -159,6 +159,13 @@ export default {
}, },
editInfo() { editInfo() {
let token = uni.getStorageSync('userToken');
if(!token){
uni.navigateTo({
url: '/pages/binding/index?url=/pages/main&index=4'
})
return;
}
uni.navigateTo({ uni.navigateTo({
url: '/pagesD/pages/personal/userInfo' url: '/pagesD/pages/personal/userInfo'
}); });
......
...@@ -43,6 +43,13 @@ export default { ...@@ -43,6 +43,13 @@ export default {
}, },
methods: { methods: {
pay(){ pay(){
let token = uni.getStorageSync('userToken');
if(!token){
uni.navigateTo({
url: '/pages/binding/index?url=/pagesC/pages/shop/detail&id=' + this.id
})
return;
}
uni.navigateTo({ uni.navigateTo({
url: '/pagesC/pages/shop/pay?id=' + this.id url: '/pagesC/pages/shop/pay?id=' + this.id
}) })
......
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