优化页面
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user