|
@@ -104,6 +104,7 @@ import { useStores, commonStores, xunJianStores } from "@/store/modules/index";
|
|
|
/*----------------------------------公共方法引入-----------------------------------*/
|
|
|
import config from "@/config";
|
|
|
import { storageSystem } from "@/utils/storage";
|
|
|
+import { decrypt, encrypt } from "@/plugins/jsencrypt";
|
|
|
/*----------------------------------公共变量-----------------------------------*/
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const useStore = useStores();
|
|
@@ -258,7 +259,7 @@ function submitRes() {
|
|
|
|
|
|
/** 获取登录数据 */
|
|
|
function login(data) {
|
|
|
- proxy.$modal.loading("登录中,请耐心等待...");
|
|
|
+ proxy.$modal.loading(data?.form == "xcx" ? "加载中,请耐心等待..." : "登录中,请耐心等待...");
|
|
|
|
|
|
useStore.Login(data).then(() => {
|
|
|
/** 获取用户信息 */
|
|
@@ -301,11 +302,9 @@ onShow(() => {
|
|
|
});
|
|
|
|
|
|
onLoad((options) => {
|
|
|
- if (options.dataToken) {
|
|
|
- localStorage.setItem("App-Token", options.dataToken);
|
|
|
- localStorage.setItem("type", "innerH5");
|
|
|
- useStore.GetInfo();
|
|
|
- proxy.$tab.reLaunch("/pages/index");
|
|
|
+ //微信小程序跳转
|
|
|
+ if (options.xcxData) {
|
|
|
+ login(JSON.parse(decrypt(decodeURIComponent(options.xcxData))))
|
|
|
}
|
|
|
});
|
|
|
</script>
|