|
@@ -47,7 +47,7 @@
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
</block>
|
|
</block>
|
|
|
|
|
|
|
|
- <wangCg :loginStyle.sync="globalLoginStyle" @goToLogin="loginTo()"></wangCg>
|
|
|
|
|
|
|
+ <wangCg :loginStyle.sync="globalLoginStyle" @loginSuccess="loginSuccess()"></wangCg>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -120,8 +120,8 @@ export default {
|
|
|
buyProduct(){
|
|
buyProduct(){
|
|
|
this.$util.pageTo({url: "/pages/item/item?account="+this.option.account+'&hdId='+this.hdId,type:2})
|
|
this.$util.pageTo({url: "/pages/item/item?account="+this.option.account+'&hdId='+this.hdId,type:2})
|
|
|
},
|
|
},
|
|
|
- loginTo() {
|
|
|
|
|
- this.$util.pageTo({url:"/pages/login/index?needBack=1"})
|
|
|
|
|
|
|
+ loginSuccess() {
|
|
|
|
|
+ this.init()
|
|
|
},
|
|
},
|
|
|
init(){
|
|
init(){
|
|
|
this.hdId = this.option.hdId ? this.option.hdId : 0
|
|
this.hdId = this.option.hdId ? this.option.hdId : 0
|
|
@@ -163,8 +163,10 @@ export default {
|
|
|
getMyClass () {
|
|
getMyClass () {
|
|
|
return getClass().then(res => {
|
|
return getClass().then(res => {
|
|
|
if(res.code && res.code == 1){
|
|
if(res.code && res.code == 1){
|
|
|
- this.form.categoryId = res.data[0].id
|
|
|
|
|
- this.tabbar = res.data
|
|
|
|
|
|
|
+ if (!this.$util.isEmpty(res.data)) {
|
|
|
|
|
+ this.form.categoryId = res.data[0].id
|
|
|
|
|
+ this.tabbar = res.data
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|