This commit is contained in:
pengxiaolong
2025-05-20 00:10:07 +08:00
parent ff546bd9a9
commit 6107739077
34 changed files with 583 additions and 92 deletions

View File

@@ -7,6 +7,7 @@ if (!Math) {
"./pages/index/index.js";
"./pages/login/login.js";
"./pages/UserInformation/UserInformation.js";
"./pages/Setting/Setting.js";
"./TUIKit/components/TUIConversation/index.js";
"./TUIKit/components/TUIChat/index.js";
"./TUIKit/components/TUIChat/video-play.js";
@@ -16,30 +17,43 @@ if (!Math) {
"./TUIKit/components/TUISearch/index2.js";
"./TUIKit/components/TUIConversation/conversation-list/index2.js";
}
let vueVersion = 2;
vueVersion = 3;
common_vendor.index.$SDKAppID = 1600086550;
common_vendor.index.$userID = "123";
common_vendor.index.$userSig = "eJwtzF0LgjAYhuH-suOQ132K0IkYdGAYOaQOs614GclaI4Lov7fUw*d64P4Q3XTZywZSEpoBWU0bjR0jXnHinLKFn8advUdDylwCQCGFgPmxb4-BJhdC0HTNGvH*N8WVZBx4sVTwlqrq4f2muYQKtj090GPdQhwBtaqHE9OwE1UbBu-2Xe-W5PsDP3YvSw__";
const _sfc_main = {
data() {
return {
info: {},
userSig: "",
chatInfo: {}
};
},
onLoad(option) {
common_vendor.index.getStorage({
key: "userinfo",
success: (res) => {
this.info = res.data;
}
});
common_vendor.index.getStorage({
key: "userSig",
success: (res) => {
this.userSig = res.data;
}
});
common_vendor.index.getStorage({
key: "chatInfo",
success: (res) => {
this.chatInfo = res.data;
}
});
if (this.userSig) {
TUIlogin(this.chatInfo.appId, this.info.userChatId, this.userSig);
}
},
provide() {
return {
$global: {
lastPage: null
}
};
},
onLaunch: function() {
common_vendor.A.login({
SDKAppID: common_vendor.index.$SDKAppID,
userID: common_vendor.index.$userID,
userSig: common_vendor.index.$userSig,
useUploadPlugin: true,
// If you need to send rich media messages, please set to true.
framework: `vue${vueVersion}`
// framework used vue2 / vue3
}).catch(() => {
});
}
};
function createApp() {