|
|
@ -45,8 +45,9 @@ |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
init(){ |
|
|
init(){ |
|
|
console.log("我的初始化") |
|
|
|
|
|
this.schoolShop = uni.getStorageSync('schoolShop') |
|
|
this.schoolShop = uni.getStorageSync('schoolShop') |
|
|
|
|
|
console.log("我的初始化",this.schoolShop) |
|
|
this.worker = uni.getStorageSync('worker') |
|
|
this.worker = uni.getStorageSync('worker') |
|
|
let shopId = uni.getStorageSync('shopId') |
|
|
let shopId = uni.getStorageSync('shopId') |
|
|
let worker = uni.getStorageSync('worker') |
|
|
let worker = uni.getStorageSync('worker') |
|
|
@ -75,6 +76,7 @@ |
|
|
if(e=='addgoods'){ |
|
|
if(e=='addgoods'){ |
|
|
url = '/package1/myCenter/addGoods' |
|
|
url = '/package1/myCenter/addGoods' |
|
|
}else if(e=='merchantCenter'){ |
|
|
}else if(e=='merchantCenter'){ |
|
|
|
|
|
if(this.schoolShop){ |
|
|
if(this.schoolShop.length>1){ |
|
|
if(this.schoolShop.length>1){ |
|
|
this.$refs.shopPopup.open() |
|
|
this.$refs.shopPopup.open() |
|
|
return |
|
|
return |
|
|
@ -86,9 +88,25 @@ |
|
|
uni.setStorageSync('shopScore',this.schoolShop[0].shopScore) |
|
|
uni.setStorageSync('shopScore',this.schoolShop[0].shopScore) |
|
|
uni.setStorageSync('shopTakeaway',this.schoolShop[0].shopTakeaway) |
|
|
uni.setStorageSync('shopTakeaway',this.schoolShop[0].shopTakeaway) |
|
|
url = '/package2/shop/merchantCenter' |
|
|
url = '/package2/shop/merchantCenter' |
|
|
|
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
|
|
|
uni.showModal({ |
|
|
|
|
|
title: '提示', |
|
|
|
|
|
content: '您还没有注册成为商家,要去注册吗?', |
|
|
|
|
|
cancelText:'暂时不了', |
|
|
|
|
|
confirmText:'去注册', |
|
|
|
|
|
success: function (res) { |
|
|
|
|
|
if (res.confirm) { |
|
|
url = '/package2/shop/merchantRegister' |
|
|
url = '/package2/shop/merchantRegister' |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: url |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}else if(e=='addType'){ |
|
|
}else if(e=='addType'){ |
|
|
url = '/package1/myCenter/addType' |
|
|
url = '/package1/myCenter/addType' |
|
|
}else if(e=='goodsList'){ |
|
|
}else if(e=='goodsList'){ |
|
|
|