This commit is contained in:
pengxiaolong
2025-05-13 22:16:09 +08:00
parent c006a8e63d
commit 5f8ff971d4
34 changed files with 411 additions and 309 deletions

View File

@@ -10,9 +10,23 @@ const _sfc_main = {
return {};
},
onLoad() {
this.requestSomething();
},
methods: {
// 方法定义
requestSomething() {
common_vendor.wx$1.request({
url: "http://192.168.0.218:8086/user/login",
// 请求的 URL
method: "POST",
// 请求方式
success: (res) => {
common_vendor.index.__f__("log", "at pages/Home/Home.vue:37", "请求成功", res.data);
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/Home/Home.vue:40", "请求失败", err);
}
});
}
},
components: {
topNavigation,

View File

@@ -20,18 +20,17 @@
height: 114.5rpx;
}
.Advertisement.data-v-7ffebbf4 {
position: fixed;
top: 300rpx;
left: 0;
width: 100%;
height: 100rpx;
z-index: 100;
position: fixed;
top: 300rpx;
left: 0;
width: 100%;
height: 100rpx;
z-index: 100;
}
.contentList.data-v-7ffebbf4 {
position: fixed;
top: 300rpx;
left: 0;
width: 100%;
height: 1300rpx;
position: fixed;
top: 300rpx;
left: 0;
width: 100%;
height: 1300rpx;
}

View File

@@ -0,0 +1,20 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
methods: {
openChat() {
const conversationID = "C2Cqwe";
common_vendor.index.navigateTo({
url: `/TUIKit/components/TUIChat/index?conversationID=${conversationID}`
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o$1((...args) => $options.openChat && $options.openChat(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Mine/Mine.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "我的",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<button bindtap="{{a}}">OpenChat</button>

View File

View File

@@ -1,23 +1,23 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
title: "Hello"
};
},
onLoad() {
this.openConversationList();
},
methods: {
// 打开会话列表
openConversationList() {
common_vendor.index.navigateTo({ url: "/TUIKit/components/TUIConversation/index" });
},
// 打开联系人
openContact() {
common_vendor.index.navigateTo({ url: "/TUIKit/components/TUIContact/index" });
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o$1((...args) => $options.openConversationList && $options.openConversationList(...args)),
b: common_vendor.o$1((...args) => $options.openContact && $options.openContact(...args))
};
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1cf27b2a"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map

View File

@@ -1 +0,0 @@
<view><button bindtap="{{a}}">打开会话列表</button><button bindtap="{{b}}">打开联系人</button></view>

View File

@@ -0,0 +1,2 @@
/* 样式定义 */