diff --git a/src/view/guide.vue b/src/view/guide.vue index 86a2f7f..24a1c46 100644 --- a/src/view/guide.vue +++ b/src/view/guide.vue @@ -140,41 +140,27 @@ const login = () => { .then((res) => { // let auth__code = env == "pc" ? res.auth_code : res.code; // console.log( 555,res, auth__code); - http - .post(`/api/sign_in/one_click_login?authCode=${res.auth_code}`) - .then((response) => { - if (response.code == 200) { - tools.data.set("token", response.data.token); - tools.data.set("type", 1); - // console.log(1111, response); - // this.loading = false; - // // 登录成功 - // if (!response.data.is_bind) { - // this.isShowBind = true; - // this.tenantUserId = response.data.tenant_user_id; - // } else { - // var user = { - // token: response.data.token, - // name: response.data.name, - // id: response.data.id, - // }; - // tools.data.set("user", user); - // this.$message.success("登录成功"); - // this.$router.replace("/home"); - // } - - } else { - // 跳转未绑定页面 - router.push({ - path: `error/noPermission`, - }); - } - }); + if (res.auth_code) { + http + .post(`/api/sign_in/one_click_login?authCode=${res.auth_code}`) + .then((response) => { + if (response.code == 200) { + tools.data.set("token", response.data.token); + tools.data.set("type", 1); + // console.log(1111, response); + } else { + // 跳转未绑定页面 + router.push({ + path: `error/noPermission`, + }); + } + }); + } }) .catch((err) => { console.log(err); - var token = getCookie("lytoken"); - // var token = '6b0e380b4a8f46baae4923f83faf670d'; + // var token = getCookie("lytoken"); + var token = '6b0e380b4a8f46baae4923f83faf670d'; // console.log('token', token) if (!token) { window.location.href = diff --git a/src/view/sy_details.vue b/src/view/sy_details.vue index 93ad28e..38f7f46 100644 --- a/src/view/sy_details.vue +++ b/src/view/sy_details.vue @@ -292,16 +292,16 @@ const data = reactive({ width: "50", }, { - label: "补助类型", + label: "服务类型", property: "bzlx", width: "100", }, { - label: "补助对象或条件", + label: "服务对象或条件", property: "bzdx", }, { - label: "补助标准或内容", + label: "服务标准或内容", property: "bzbz", }, {