|
@@ -21,7 +21,23 @@ const _sfc_main = {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- this.getWxLoginCode();
|
|
|
+ common_vendor.index.showModal({
|
|
|
+ title: "微信登录",
|
|
|
+ content: "是否使用微信账号登录?",
|
|
|
+ confirmText: "确认登录",
|
|
|
+ cancelText: "取消",
|
|
|
+ success: (res) => {
|
|
|
+ if (res.confirm) {
|
|
|
+ this.getWxLoginCode();
|
|
|
+ } else {
|
|
|
+ console.log("用户取消了登录");
|
|
|
+ common_vendor.index.showToast({
|
|
|
+ title: "已取消登录",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
getWxLoginCode() {
|
|
|
common_vendor.index.showLoading({ title: "登录中..." });
|