This commit is contained in:
pengxiaolong
2025-07-18 13:06:06 +08:00
parent 6dec463705
commit 31527ba8a6
1853 changed files with 65500 additions and 98288 deletions

View File

@@ -1,8 +1,7 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const components_request = require("../../components/request.js");
const components_debug_GenerateTestUserSig = require("../../components/debug/GenerateTestUserSig.js");
const components_TUILogin = require("../../components/TUILogin.js");
const components_goEasyTool_tool = require("../../components/goEasyTool/tool.js");
const stores_counter = require("../../stores/counter.js");
const counter = stores_counter.useCounterStore();
const _sfc_main = {
@@ -62,21 +61,6 @@ const _sfc_main = {
userInfo: false
});
this.info = res;
const sdkAppID = Number(this.info.data.chatInfo.appId);
const userID = "administrator";
this.userSig = components_debug_GenerateTestUserSig.genTestUserSig({
SDKAPPID: sdkAppID,
SECRETKEY: this.info.data.chatInfo.appKey,
userID
});
this.myuserSig = components_debug_GenerateTestUserSig.genTestUserSig({
SDKAPPID: sdkAppID,
SECRETKEY: this.info.data.chatInfo.appKey,
userID: String(res.data.info.id)
});
common_vendor.index.setStorageSync("myuserSig", this.myuserSig);
common_vendor.index.setStorageSync("chatInfo", this.info.data.chatInfo);
common_vendor.index.setStorageSync("userSig", this.userSig);
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
const now = Date.now();
common_vendor.index.setStorageSync("last_clean_time", now);
@@ -86,11 +70,10 @@ const _sfc_main = {
common_vendor.index.reLaunch({
url: "/pages/UserInformation/UserInformation"
});
components_TUILogin.TUIlogin(this.info.data.chatInfo.appId, this.info.data.info.id, this.myuserSig.userSig);
common_vendor.index.hideLoading();
} else {
common_vendor.index.setStorageSync("userinfo", this.info.data.info);
components_TUILogin.TUIlogin(this.info.data.chatInfo.appId, this.info.data.info.id, this.myuserSig.userSig);
components_goEasyTool_tool.goEasylogin(this.$goeasy, String(this.info.data.info.id), this.info.data.info.headerIcon, this.info.data.info.nickName);
common_vendor.index.hideLoading();
common_vendor.index.reLaunch({
url: this.lastPage
@@ -107,10 +90,10 @@ const _sfc_main = {
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o$1((...args) => $options.Return && $options.Return(...args)),
a: common_vendor.o((...args) => $options.Return && $options.Return(...args)),
b: $data.userInfo.avatarUrl,
c: common_vendor.t($data.userInfo.nickName),
d: common_vendor.o$1((...args) => $options.getPhoneNumber && $options.getPhoneNumber(...args))
d: common_vendor.o((...args) => $options.getPhoneNumber && $options.getPhoneNumber(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);