Commit ab14daea authored by fwz's avatar fwz

商品详情登录

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