|
@@ -14,8 +14,6 @@
|
|
<view class="login-image-txt">盲票</view>
|
|
<view class="login-image-txt">盲票</view>
|
|
</view>
|
|
</view>
|
|
<!-- #ifdef MP-ALIPAY -->
|
|
<!-- #ifdef MP-ALIPAY -->
|
|
- <!-- <button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" v-if="checked">支付宝登录</button>
|
|
|
|
- <button @click="getPhoneNumber" v-else>支付宝登录</button> -->
|
|
|
|
<view class="login-btn">
|
|
<view class="login-btn">
|
|
<button if="canIUseAuthButton" open-type="getAuthorize" @getAuthorize="onGetAuthorize" @error="onAuthError" scope='phoneNumber'>支付宝登录</button>
|
|
<button if="canIUseAuthButton" open-type="getAuthorize" @getAuthorize="onGetAuthorize" @error="onAuthError" scope='phoneNumber'>支付宝登录</button>
|
|
<button @click="onCode">获取code</button>
|
|
<button @click="onCode">获取code</button>
|
|
@@ -210,16 +208,15 @@
|
|
},
|
|
},
|
|
onCode() {
|
|
onCode() {
|
|
console.log("1111");
|
|
console.log("1111");
|
|
-
|
|
|
|
my.getAuthCode ({
|
|
my.getAuthCode ({
|
|
scopes : ['auth_user'],
|
|
scopes : ['auth_user'],
|
|
success: (res) => {
|
|
success: (res) => {
|
|
console.log(res);
|
|
console.log(res);
|
|
- my.alert({
|
|
|
|
- content: res.authCode,
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- })
|
|
|
|
|
|
+ my.alert({
|
|
|
|
+ content: res.authCode,
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|