module.exports = { data() { return {} }, onLoad() { }, methods: { /** * @param {Object} info * @description 页面跳转逻辑判断 * @description state: 1:审核通过 2:待审核 3:未审核 4:审核驳回 */ $jumpPage(info){ let url = ''; // 跳转类型 let type = 'navigateTo'; const { is_has_green_house, state } = info; // 审核通过 if(state == 1){ // 直接跳转首页 if(is_has_green_house == 1){ url = '/pages/view/index/home'; type = 'switchTab'; } // 跳转至棚屋引导页 if(is_has_green_house == 0){ // 上次登录 已经确认暂不创建棚屋 console.log(this.$getStorage('createRoomStatus')) if(this.$getStorage('createRoomStatus') && this.$getStorage('createRoomStatus') == 1){ url = '/pages/view/index/home'; type = 'switchTab'; } // 直接跳转棚屋引导页 else{ url = '/pages/view/certification/passUser/passUser'; type = 'redirectTo'; } } } // 待审核状 if(state == 2){ url = '/pages/view/certification/ingUser/ingUser'; type = 'redirectTo'; } // 未审核 if(state == 3){ // 认证引导页面 url = '/pages/view/certification/guideUser/guideUser'; type = 'redirectTo'; } // 审核驳回 if(state == 4){ url = '/pages/view/certification/unpassUser/unpassUser'; type = 'redirectTo'; } // 页面跳转 if(url){ this.$u.route({ url: url, type: type }) } }, }, }