|
|
@@ -133,11 +133,11 @@ export default {
|
|
|
watch: {
|
|
|
//纯花店打开直接跳转到采购页
|
|
|
loginInfo(newVal) {
|
|
|
- if(!this.$util.isEmpty(newVal.pfShopId)){
|
|
|
- if(Number(newVal.pfShopId) == 0){
|
|
|
- uni.reLaunch({ url: '/pagesPurchase/order' })
|
|
|
+ if(!this.$util.isEmpty(newVal.onlyCg)){
|
|
|
+ if(Number(newVal.onlyCg) == 1){
|
|
|
+ uni.reLaunch({ url: '/pagesPurchase/order' })
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
}
|
|
|
},
|
|
|
onLoad () {
|
|
|
@@ -149,14 +149,14 @@ export default {
|
|
|
},
|
|
|
onShow () {
|
|
|
|
|
|
- //纯花店打开直接跳转到采购页
|
|
|
- if(!this.$util.isEmpty(this.loginInfo)){
|
|
|
- if(!this.$util.isEmpty(this.loginInfo.pfShopId)){
|
|
|
- if(Number(this.loginInfo.pfShopId) == 0){
|
|
|
- uni.reLaunch({ url: '/pagesPurchase/order' })
|
|
|
+ //纯花店打开直接跳转到采购页
|
|
|
+ if(!this.$util.isEmpty(this.loginInfo)){
|
|
|
+ if(!this.$util.isEmpty(this.loginInfo.onlyCg)){
|
|
|
+ if(Number(this.loginInfo.onlyCg) == 1){
|
|
|
+ uni.reLaunch({ url: '/pagesPurchase/order' })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
getShopInfo().then(res => {
|
|
|
if(res.name){
|