diff --git a/wechatMp/pages/token/login/index.ts b/wechatMp/pages/token/login/index.ts index 09e86de89..a1637d53b 100644 --- a/wechatMp/pages/token/login/index.ts +++ b/wechatMp/pages/token/login/index.ts @@ -9,8 +9,9 @@ OakPage({ level: 1, }, isList: true, - formData: (tokenList) => { - if (tokenList.length > 0) { + formData: (tokenList, features) => { + const tokenValue = features.token.getToken(); + if (tokenValue) { return { loggedIn: true, }; @@ -20,12 +21,14 @@ OakPage({ } }, }, { - properties: { - depth: Number, - }, methods: { async onLoginClicked(options: WechatMiniprogram.Touch) { const code = await wx.login(); + console.log(code); + }, + + onReturnClicked() { + wx.navigateBack(); } } }); \ No newline at end of file diff --git a/wechatMp/pages/token/login/index.wxml b/wechatMp/pages/token/login/index.wxml index 47af48e3a..dd712c04a 100644 --- a/wechatMp/pages/token/login/index.wxml +++ b/wechatMp/pages/token/login/index.wxml @@ -1,8 +1,13 @@ - - - {{item.name}} + + + - + + + + + + \ No newline at end of file