File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
miniapp-taro/src/pages/index
miniapp-uniapp/src/pages/index
miniapp-wx/miniapp/pages/index Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ export default class Index extends Component<PropsWithChildren> {
6464 console . log ( 'authing.loginByCode res: ' , res )
6565 }
6666
67+ /**
68+ * 需要在真机上测试,微信开发者工具不会返回 code
69+ * @param {* } e
70+ */
6771 async loginByPhone ( e ) {
6872 const { code } = e . detail
6973 const res = await authing . loginByPhone ( {
Original file line number Diff line number Diff line change 5151 },
5252
5353 methods: {
54+ /**
55+ * 需要在真机上测试,微信开发者工具不会返回 code
56+ * @param {*} e
57+ */
5458 async loginByPhone (e ) {
5559 const { code } = e .detail
5660 const res = await authing .loginByPhone ({
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ console.log('authing: ', authing)
1818Page ( {
1919 data : { } ,
2020
21+ /**
22+ * 需要在真机上测试,微信开发者工具不会返回 code
23+ * @param {* } e
24+ */
2125 async loginByPhone ( e ) {
2226 const { code } = e . detail
2327 const res = await authing . loginByPhone ( {
You can’t perform that action at this time.
0 commit comments