微信小程序发布试用版本
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const uni_modules_uniIdPages_common_loginPage_mixin = require("../../common/login-page.mixin.js");
|
||||
const uni_modules_uniIdPages_common_store = require("../../common/store.js");
|
||||
const common_store = require("../../../../common/store.js");
|
||||
const common_config = require("../../../../common/config.js");
|
||||
const _sfc_main = {
|
||||
mixins: [uni_modules_uniIdPages_common_loginPage_mixin.mixin],
|
||||
@@ -115,7 +115,7 @@ const _sfc_main = {
|
||||
common_vendor.index.__f__("warn", "at uni_modules/uni-id-pages/pages/login/login-withpwd.vue:176", "触发 tabbar 刷新事件失败:", e);
|
||||
}
|
||||
try {
|
||||
uni_modules_uniIdPages_common_store.mutations.setUserInfo({
|
||||
common_store.mutations.setUserInfo({
|
||||
username: loginData.userName,
|
||||
mobile: loginData.phone,
|
||||
email: loginData.email,
|
||||
@@ -129,13 +129,21 @@ const _sfc_main = {
|
||||
icon: "none",
|
||||
duration: 800
|
||||
});
|
||||
try {
|
||||
const app = getApp();
|
||||
if (app && app.setGlobalRoleInfo) {
|
||||
app.setGlobalRoleInfo();
|
||||
}
|
||||
} catch (e) {
|
||||
common_vendor.index.__f__("warn", "at uni_modules/uni-id-pages/pages/login/login-withpwd.vue:204", "[Login] Failed to update global role info:", e);
|
||||
}
|
||||
setTimeout(() => {
|
||||
common_vendor.index.switchTab({
|
||||
url: "/pages/reception/reception"
|
||||
url: "/pages/furniture_reception/furniture_reception"
|
||||
});
|
||||
}, 300);
|
||||
} catch (err) {
|
||||
common_vendor.index.__f__("error", "at uni_modules/uni-id-pages/pages/login/login-withpwd.vue:204", "调用登录接口失败:", err);
|
||||
common_vendor.index.__f__("error", "at uni_modules/uni-id-pages/pages/login/login-withpwd.vue:214", "调用登录接口失败:", err);
|
||||
common_vendor.index.showToast({
|
||||
title: "网络异常,登录失败",
|
||||
icon: "none",
|
||||
@@ -150,7 +158,7 @@ const _sfc_main = {
|
||||
common_vendor.index.navigateTo({
|
||||
url: this.config.isAdmin ? "/uni_modules/uni-id-pages/pages/register/register-admin" : "/uni_modules/uni-id-pages/pages/register/register",
|
||||
fail(e) {
|
||||
common_vendor.index.__f__("error", "at uni_modules/uni-id-pages/pages/login/login-withpwd.vue:220", e);
|
||||
common_vendor.index.__f__("error", "at uni_modules/uni-id-pages/pages/login/login-withpwd.vue:230", e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const uni_modules_uniIdPages_pages_register_validator = require("./validator.js");
|
||||
const uni_modules_uniIdPages_common_loginPage_mixin = require("../../common/login-page.mixin.js");
|
||||
require("../../common/store.js");
|
||||
require("../../../../common/store.js");
|
||||
const uniIdCo = common_vendor.tr.importObject("uni-id-co");
|
||||
const _sfc_main = {
|
||||
mixins: [uni_modules_uniIdPages_common_loginPage_mixin.mixin],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../../common/vendor.js");
|
||||
const uni_modules_uniIdPages_common_store = require("../../../common/store.js");
|
||||
const common_store = require("../../../../../common/store.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
@@ -51,7 +51,7 @@ const _sfc_main = {
|
||||
duration: 3e3
|
||||
});
|
||||
this.getOpenerEventChannel();
|
||||
uni_modules_uniIdPages_common_store.mutations.setUserInfo(this.formData);
|
||||
common_store.mutations.setUserInfo(this.formData);
|
||||
common_vendor.index.navigateBack();
|
||||
}).catch((e) => {
|
||||
common_vendor.index.__f__("log", "at uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile.vue:84", e);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../../common/vendor.js");
|
||||
const uni_modules_uniIdPages_common_loginPage_mixin = require("../../../common/login-page.mixin.js");
|
||||
const uni_modules_uniIdPages_common_store = require("../../../common/store.js");
|
||||
const common_store = require("../../../../../common/store.js");
|
||||
const common_assets = require("../../../../../common/assets.js");
|
||||
common_vendor.tr.importObject("uni-id-co");
|
||||
const tempFrvInfoKey = "uni-id-pages-temp-frv";
|
||||
@@ -20,7 +20,7 @@ const _sfc_main = {
|
||||
},
|
||||
computed: {
|
||||
userInfo() {
|
||||
return uni_modules_uniIdPages_common_store.store.userInfo;
|
||||
return common_store.store.userInfo;
|
||||
},
|
||||
certifyIdNext() {
|
||||
return Boolean(this.realName) && Boolean(this.idCard) && (this.needAgreements && this.agree);
|
||||
@@ -73,7 +73,7 @@ const _sfc_main = {
|
||||
content: "实名认证成功",
|
||||
showCancel: false,
|
||||
success: () => {
|
||||
uni_modules_uniIdPages_common_store.mutations.setUserInfo({
|
||||
common_store.mutations.setUserInfo({
|
||||
realNameAuth: rest
|
||||
});
|
||||
this.verifyFail = false;
|
||||
@@ -132,7 +132,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
} : common_vendor.e({
|
||||
d: $data.verifyFail
|
||||
}, $data.verifyFail ? common_vendor.e({
|
||||
e: common_assets._imports_0$1,
|
||||
e: common_assets._imports_0,
|
||||
f: common_vendor.t($data.verifyFailTitle),
|
||||
g: common_vendor.t($data.verifyFailContent),
|
||||
h: $data.verifyFailCode !== 10013
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../../common/vendor.js");
|
||||
const uni_modules_uniIdPages_common_password = require("../../../common/password.js");
|
||||
const uni_modules_uniIdPages_common_store = require("../../../common/store.js");
|
||||
const common_store = require("../../../../../common/store.js");
|
||||
const uni_modules_uniIdPages_config = require("../../../config.js");
|
||||
const uniIdCo = common_vendor.tr.importObject("uni-id-co", {
|
||||
customUI: true
|
||||
@@ -27,7 +27,7 @@ const _sfc_main = {
|
||||
},
|
||||
computed: {
|
||||
userInfo() {
|
||||
return uni_modules_uniIdPages_common_store.store.userInfo;
|
||||
return common_store.store.userInfo;
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
@@ -60,7 +60,7 @@ const _sfc_main = {
|
||||
content: "密码设置成功",
|
||||
showCancel: false,
|
||||
success: () => {
|
||||
uni_modules_uniIdPages_common_store.mutations.loginBack({
|
||||
common_store.mutations.loginBack({
|
||||
uniIdRedirectUrl: this.uniIdRedirectUrl,
|
||||
loginType: this.loginType
|
||||
});
|
||||
@@ -83,7 +83,7 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
skip() {
|
||||
uni_modules_uniIdPages_common_store.mutations.loginBack({
|
||||
common_store.mutations.loginBack({
|
||||
uniIdRedirectUrl: this.uniIdRedirectUrl
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const uni_modules_uniIdPages_common_store = require("../../common/store.js");
|
||||
const common_store = require("../../../../common/store.js");
|
||||
const uniIdCo = common_vendor.tr.importObject("uni-id-co");
|
||||
const _sfc_main = {
|
||||
computed: {
|
||||
userInfo() {
|
||||
return uni_modules_uniIdPages_common_store.store.userInfo;
|
||||
return common_store.store.userInfo;
|
||||
},
|
||||
realNameStatus() {
|
||||
if (!this.userInfo.realNameAuth) {
|
||||
@@ -55,10 +55,10 @@ const _sfc_main = {
|
||||
});
|
||||
},
|
||||
logout() {
|
||||
uni_modules_uniIdPages_common_store.mutations.logout();
|
||||
common_store.mutations.logout();
|
||||
},
|
||||
bindMobileSuccess() {
|
||||
uni_modules_uniIdPages_common_store.mutations.updateUserInfo();
|
||||
common_store.mutations.updateUserInfo();
|
||||
},
|
||||
changePassword() {
|
||||
common_vendor.index.navigateTo({
|
||||
@@ -76,7 +76,7 @@ const _sfc_main = {
|
||||
"univerifyStyle": this.univerifyStyle,
|
||||
success: async (e) => {
|
||||
uniIdCo.bindMobileByUniverify(e.authResult).then((res) => {
|
||||
uni_modules_uniIdPages_common_store.mutations.updateUserInfo();
|
||||
common_store.mutations.updateUserInfo();
|
||||
}).catch((e2) => {
|
||||
common_vendor.index.__f__("log", "at uni_modules/uni-id-pages/pages/userinfo/userinfo.vue:142", e2);
|
||||
}).finally((e2) => {
|
||||
@@ -98,7 +98,7 @@ const _sfc_main = {
|
||||
},
|
||||
setNickname(nickname) {
|
||||
if (nickname) {
|
||||
uni_modules_uniIdPages_common_store.mutations.updateUserInfo({
|
||||
common_store.mutations.updateUserInfo({
|
||||
nickname
|
||||
});
|
||||
this.setNicknameIng = false;
|
||||
@@ -122,7 +122,7 @@ const _sfc_main = {
|
||||
}[provider.toLowerCase()];
|
||||
if (this.userInfo[bindField]) {
|
||||
await uniIdCo2["unbind" + provider]();
|
||||
await uni_modules_uniIdPages_common_store.mutations.updateUserInfo();
|
||||
await common_store.mutations.updateUserInfo();
|
||||
} else {
|
||||
common_vendor.index.login({
|
||||
provider: provider.toLowerCase(),
|
||||
@@ -137,7 +137,7 @@ const _sfc_main = {
|
||||
duration: 3e3
|
||||
});
|
||||
}
|
||||
await uni_modules_uniIdPages_common_store.mutations.updateUserInfo();
|
||||
await common_store.mutations.updateUserInfo();
|
||||
},
|
||||
fail: async (err) => {
|
||||
common_vendor.index.__f__("log", "at uni_modules/uni-id-pages/pages/userinfo/userinfo.vue:206", err);
|
||||
|
||||
Reference in New Issue
Block a user