|
@@ -255,34 +255,34 @@
|
|
|
},
|
|
|
computed: mapGetters(['isLogin']),
|
|
|
onLoad(options) {
|
|
|
- if (this.is_diy) {
|
|
|
- if (uni.getStorageSync('FOOTER_BAR')) {
|
|
|
- uni.hideTabBar()
|
|
|
- } else {
|
|
|
- this.is_diy_set = true
|
|
|
- }
|
|
|
- uni.request({
|
|
|
- url:'api/mock/navigation',
|
|
|
- success:res=>{
|
|
|
- this.newData = res.data
|
|
|
- if (this.newData.status && this.newData.status.status) {
|
|
|
- uni.hideTabBar()
|
|
|
- } else {
|
|
|
- uni.showTabBar()
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- // getNavigation().then(res => {
|
|
|
- // this.newData = res.data
|
|
|
- // if (this.newData.status && this.newData.status.status) {
|
|
|
- // uni.hideTabBar()
|
|
|
- // } else {
|
|
|
- // uni.showTabBar()
|
|
|
- // }
|
|
|
- // })
|
|
|
- } else {
|
|
|
- uni.hideTabBar()
|
|
|
- }
|
|
|
+ // if (this.is_diy) {
|
|
|
+ // if (uni.getStorageSync('FOOTER_BAR')) {
|
|
|
+ // uni.hideTabBar()
|
|
|
+ // } else {
|
|
|
+ // this.is_diy_set = true
|
|
|
+ // }
|
|
|
+ // uni.request({
|
|
|
+ // url:'api/mock/navigation',
|
|
|
+ // success:res=>{
|
|
|
+ // this.newData = res.data
|
|
|
+ // if (this.newData.status && this.newData.status.status) {
|
|
|
+ // uni.hideTabBar()
|
|
|
+ // } else {
|
|
|
+ // uni.showTabBar()
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // // getNavigation().then(res => {
|
|
|
+ // // this.newData = res.data
|
|
|
+ // // if (this.newData.status && this.newData.status.status) {
|
|
|
+ // // uni.hideTabBar()
|
|
|
+ // // } else {
|
|
|
+ // // uni.showTabBar()
|
|
|
+ // // }
|
|
|
+ // // })
|
|
|
+ // } else {
|
|
|
+ // uni.hideTabBar()
|
|
|
+ // }
|
|
|
let that = this;
|
|
|
if (that.isLogin == false) {
|
|
|
toLogin();
|