| | |
| | | if (props.policyChecked) { |
| | | userStore.loginSuccess(wxMiniAppUserLoginRes.value); |
| | | Message.success('登录成功', { |
| | | onClosed: () => { |
| | | onClosed: async () => { |
| | | if (!Taro.requestSubscribeMessage) { |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续?' }); |
| | | } |
| | | await Taro.requestSubscribeMessage({ |
| | | tmplIds: subscribeMessageTemplateIdsForB, |
| | | success: function (res) { |
| | | console.log('res: ', res); |
| | | }, |
| | | }); |
| | | jump(); |
| | | }, |
| | | }); |
| | |
| | | code: loginRes.code, |
| | | }); |
| | | if (!Taro.requestSubscribeMessage) { |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续报名' }); |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续?' }); |
| | | } |
| | | await Taro.requestSubscribeMessage({ |
| | | tmplIds: subscribeMessageTemplateIdsForB, |
| | |
| | | async function handleLoginSuccess() { |
| | | try { |
| | | if (!Taro.requestSubscribeMessage) { |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续报名' }); |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续?' }); |
| | | } |
| | | const res = await Taro.getSetting({ |
| | | withSubscriptions: true, |
| | |
| | | if (props.policyChecked) { |
| | | userStore.loginSuccess(wxMiniAppUserLoginRes.value); |
| | | Message.success('登录成功', { |
| | | onClosed: () => { |
| | | onClosed: async () => { |
| | | if (!Taro.requestSubscribeMessage) { |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续?' }); |
| | | } |
| | | await Taro.requestSubscribeMessage({ |
| | | tmplIds: subscribeMessageTemplateIdsForU, |
| | | success: function (res) { |
| | | console.log('res: ', res); |
| | | }, |
| | | }); |
| | | jump(); |
| | | }, |
| | | }); |
| | |
| | | code: loginRes.code, |
| | | }); |
| | | if (!Taro.requestSubscribeMessage) { |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续报名' }); |
| | | await Message.confirm({ message: '你的微信版本过低,不支持订阅消息,是否继续?' }); |
| | | } |
| | | await Taro.requestSubscribeMessage({ |
| | | tmplIds: subscribeMessageTemplateIdsForU, |