消息
This commit is contained in:
16
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
16
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
20
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
Normal file
20
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.js
vendored
Normal 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
|
||||
4
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<button bindtap="{{a}}">OpenChat</button>
|
||||
0
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.wxss
vendored
Normal file
0
unpackage/dist/dev/mp-weixin/pages/Mine/Mine.wxss
vendored
Normal 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
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<view><button bindtap="{{a}}">打开会话列表</button><button bindtap="{{b}}">打开联系人</button></view>
|
||||
@@ -0,0 +1,2 @@
|
||||
|
||||
/* 样式定义 */
|
||||
|
||||
Reference in New Issue
Block a user