Skip to content

Commit

Permalink
chore(*): release v2.4.0
Browse files Browse the repository at this point in the history
fix(login): remove throttle wrapper and fix trigger time
perf(yxy): add help link
  • Loading branch information
j10ccc committed May 24, 2023
1 parent e58b2d9 commit d13f975
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dayjs.extend(utc);
dayjs.extend(relativeTime);

const App = createApp({
onShow() {
mounted() {
SystemService.getGeneralInfo();
SystemService.getAppList();
LoginByTaro();
Expand Down
4 changes: 2 additions & 2 deletions src/components/AppList/AppListItem/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ if (requireActive.value === "yxy" && !serviceStore.user.isBindYXY)
async function appTaped() {
if (isDisabled.value) {
await Taro.navigateTo({ url: "/pages/bind/index" }); //保留当前页面,跳转到url界面
Taro.showToast({ //显示消息提示框
await Taro.navigateTo({ url: "/pages/bind/index" });
Taro.showToast({
icon: "none",
title: "请绑定相关账号"
});
Expand Down
2 changes: 1 addition & 1 deletion src/constants/updateInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type UpdateInfoType = {
}

export const updateInfo: UpdateInfoType = {
version: "2.3.0",
version: "2.4.0",
title: "微精弘更新公告",
content: `微精弘小程序更新[电费查询],注册绑定一卡通以体验!
> 更新内容
Expand Down
11 changes: 10 additions & 1 deletion src/pages/bind/YXY/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ const handleLoginYXY = () => {
}
};
const handleClickTutorial = () => {
store.commit("setTempUrl", {
url: "https://mp.weixin.qq.com/s/uFdF37XSznzPMOe_IfjrEQ"
});
Taro.navigateTo({
url: "/pages/webview/index"
});
};
onMounted(() => {
getGraphAPI();
});
Expand Down Expand Up @@ -148,7 +157,7 @@ onMounted(() => {
<text style="color: var(--wjh-color-red); font-size: .9rem;">
tips:验证码获取存在一定的不稳定性,如果无法获取成功,请再不同时间段进行尝试
</text>
<text style="color: var(--wjh-color-blue); font-size: .9rem;">
<text style="color: var(--wjh-color-blue); font-size: .9rem;" @tap="handleClickTutorial">
🔗 如何绑定
</text>
<w-button block @tap="handleLoginYXY">确认绑定</w-button>
Expand Down
3 changes: 1 addition & 2 deletions src/services/services/authService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { api } from "../api/apiList";
import { serviceStore } from "@/store";
import store from "@/store";
import { testSession } from "../utils/session";
import { throttle } from "@/utils";
import errCodeHandler from "../utils/errHandler";
import { ServerCode } from "../api/codes";

Expand Down Expand Up @@ -36,6 +35,6 @@ async function LoginByTaroImpl(): Promise<boolean> {
return false;
}

const LoginByTaro = throttle(LoginByTaroImpl, 5000);
const LoginByTaro = LoginByTaroImpl;

export { LoginByTaro };

0 comments on commit d13f975

Please sign in to comment.