This commit is contained in:
pengxiaolong
2025-05-13 16:03:28 +08:00
parent c45c7c4de1
commit 37da6765b8
15 changed files with 281 additions and 242 deletions

View File

@@ -4,6 +4,7 @@ const common_vendor = require("./common/vendor.js");
if (!Math) {
"./pages/Home/Home.js";
"./pages/index/index.js";
"./pages/Message/Message.js";
}
const _sfc_main = {
onLaunch: function() {

View File

@@ -1,7 +1,8 @@
{
"pages": [
"pages/Home/Home",
"pages/index/index"
"pages/index/index",
"pages/Message/Message"
],
"window": {
"navigationStyle": "custom",
@@ -17,6 +18,10 @@
{
"pagePath": "pages/index/index",
"text": "API"
},
{
"pagePath": "pages/Message/Message",
"text": "消息"
}
]
},

View File

@@ -6973,9 +6973,9 @@ function isConsoleWritable() {
return isWritable;
}
function initRuntimeSocketService() {
const hosts = "192.168.0.105,127.0.0.1";
const hosts = "192.168.0.107,127.0.0.1";
const port = "8090";
const id = "mp-weixin_xtn-7C";
const id = "mp-weixin_4sXeA4";
const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => {
} : initOnError();

View File

@@ -35,7 +35,7 @@ const _sfc_main = {
selectedIconPath: "../../static/Messageclick.png",
text: "消息",
// text: '社区',
pagePath: ""
pagePath: "../../pages/Message/Message"
},
{
iconPath: "../../static/Mine.png",
@@ -50,9 +50,9 @@ const _sfc_main = {
});
common_vendor.index.getSystemInfo({
success: function(res) {
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:89", "机型", res.deviceType);
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:85", "机型", res.deviceType);
if (res.safeArea.top > 40) {
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:91", "苹果的底部栏大小", res.safeArea.top);
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:87", "苹果的底部栏大小", res.safeArea.top);
}
}
});
@@ -68,6 +68,13 @@ const _sfc_main = {
const disabledScroll = () => {
return false;
};
function handlePush(item, index) {
if (item.pagePath) {
common_vendor.index.switchTab({
url: item.pagePath
});
}
}
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(tabList), (item, index, i0) => {
@@ -76,7 +83,7 @@ const _sfc_main = {
b: common_vendor.t(item.text),
c: __props.tabIndex == index ? "#1DD2F9" : "#A7A3A3",
d: common_vendor.n("list-item flex flex-column flex-middle " + item.middleClass),
e: common_vendor.o(($event) => _ctx.handlePush(item, index), index),
e: common_vendor.o(($event) => handlePush(item), index),
f: index
};
}),

View File

@@ -0,0 +1,20 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
title: "Hello"
};
},
onLoad() {
},
methods: {
// 方法定义
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d4fc3199"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/Message/Message.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "消息",
"usingComponents": {}
}

View File

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