优化页面

This commit is contained in:
pengxiaolong
2025-05-27 21:05:01 +08:00
parent cf8728f0d7
commit e682754922
28 changed files with 2742 additions and 2434 deletions

View File

@@ -21,19 +21,50 @@ import topNavigation from "../../components/topNavigation/topNavigation";
import Advertisement from "../../components/Advertisement/Advertisement";
import contentList from "../../components/contentList/contentList";
import tabBar from "../../components/tabBar/tabBar";
import TUIlogin from "../../components/TUILogin.js";
import TencentCloudChat from "@tencentcloud/chat";
export default {
inject: ['$global'],
inject: ["$global"],
data() {
return {};
return {
info: {},
myuserSig: "",
chatInfo: {},
};
},
onLoad() {
// this.requestSomething();
uni.getStorage({
key: "userinfo",
success: (res) => {
this.info = res.data;
uni.getStorage({
key: "myuserSig",
success: (res) => {
this.myuserSig = res.data;
uni.getStorage({
key: "chatInfo",
success: (res) => {
this.chatInfo = res.data;
TUIlogin(this.chatInfo.appId, this.info.id, this.myuserSig.userSig);
// let options = {
// SDKAppID: this.chatInfo.appId,
// };
// console.log("`````````````````````````````````````````", this.chatInfo);
// let chat = TencentCloudChat.create(options);
// console.log("chat````````````````````````````````````````", this.chat);
// chat.login({ userID: String(this.info.id), userSig: this.myuserSig.userSig });
},
});
},
});
},
});
},
methods: {
goAdvertisement(){
goAdvertisement() {
// this.$global.lastPage = getCurrentPages().router;
uni.navigateTo({ url: '/pages/pkDetail/pkDetail' })
}
uni.navigateTo({ url: "/pages/pkDetail/pkDetail" });
},
},
components: {
topNavigation,