diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue
index d7815fe..2b1cd26 100644
--- a/components/tabBar/tabBar.vue
+++ b/components/tabBar/tabBar.vue
@@ -1,259 +1,227 @@
-
-
-
- -
-
-
-
- {{
- item.text }}
-
-
-
-
-
-
-
-
-
+
+
+ -
+
+
+
+ {{ item.text }}
+
+
+
+
+
\ No newline at end of file
+ .tab-bar {
+ height: 30rpx;
+ background-color: #ffffff;
+ }
+}
+
diff --git a/pages.json b/pages.json
index 328a131..54de4ee 100644
--- a/pages.json
+++ b/pages.json
@@ -11,6 +11,11 @@
"style": {
"navigationBarTitleText": "uni-app"
}
+ },{
+ "path": "pages/Message/Message",
+ "style": {
+ "navigationBarTitleText": "消息"
+ }
}
],
"globalStyle": {
@@ -28,6 +33,10 @@
{
"pagePath": "pages/index/index",
"text": "API"
+ },
+ {
+ "pagePath": "pages/Message/Message",
+ "text": "消息"
}
]
}
diff --git a/pages/Message/Message.vue b/pages/Message/Message.vue
new file mode 100644
index 0000000..a22924e
--- /dev/null
+++ b/pages/Message/Message.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/unpackage/dist/dev/.sourcemap/mp-weixin/app.js.map b/unpackage/dist/dev/.sourcemap/mp-weixin/app.js.map
index 3039531..a1ef764 100644
--- a/unpackage/dist/dev/.sourcemap/mp-weixin/app.js.map
+++ b/unpackage/dist/dev/.sourcemap/mp-weixin/app.js.map
@@ -1 +1 @@
-{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["\r\n\r\n\n","import App from './App'\n\n// #ifndef VUE3\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()\n// #endif\n\n// #ifdef VUE3\nimport { createSSRApp } from 'vue'\nexport function createApp() {\n const app = createSSRApp(App)\n return {\n app\n }\n}\n// #endif"],"names":["uni","createSSRApp","App"],"mappings":";;;;;;;AACC,MAAK,YAAU;AAAA,EACd,UAAU,WAAW;AACpBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,gBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACIM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
\ No newline at end of file
+{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["\r\n\r\n\r\n","import App from './App'\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n ...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport { createSSRApp } from 'vue'\r\nexport function createApp() {\r\n const app = createSSRApp(App)\r\n return {\r\n app\r\n }\r\n}\r\n// #endif"],"names":["uni","createSSRApp","App"],"mappings":";;;;;;;;AACC,MAAK,YAAU;AAAA,EACd,UAAU,WAAW;AACpBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,gBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACIM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}
\ No newline at end of file
diff --git a/unpackage/dist/dev/.sourcemap/mp-weixin/components/tabBar/tabBar.js.map b/unpackage/dist/dev/.sourcemap/mp-weixin/components/tabBar/tabBar.js.map
index 6061805..8a0ef74 100644
--- a/unpackage/dist/dev/.sourcemap/mp-weixin/components/tabBar/tabBar.js.map
+++ b/unpackage/dist/dev/.sourcemap/mp-weixin/components/tabBar/tabBar.js.map
@@ -1 +1 @@
-{"version":3,"file":"tabBar.js","sources":["components/tabBar/tabBar.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9jb21wb25lbnRzL3RhYkJhci90YWJCYXIudnVl"],"sourcesContent":["\r\n\t\r\n\r\n\t\t\r\n\t\t\t- \r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{{\r\n\t\t\t\t\titem.text }}\r\n\t\t\t
\r\n\t\t
\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n","import Component from 'D:/项目/tk-mini-program/components/tabBar/tabBar.vue'\nwx.createComponent(Component)"],"names":["ref","reactive","onMounted","uni"],"mappings":";;;;;;;;AAsCC,QAAI,mBAAmBA,kBAAI,KAAK;AAKhC,QAAI,UAAUC,cAAAA,SAAS;AAAA,MAAC;AAAA,QACtB,UAAU;AAAA,QACV,kBAAkB;AAAA,QAClB,MAAM;AAAA,QACN,UAAU;AAAA,QACV,aAAa;AAAA,MACb;AAAA,MACD;AAAA,QACC,UAAU;AAAA,QACV,kBAAkB;AAAA;AAAA,QAElB,MAAM;AAAA,QACN,UAAU;AAAA,QACV,aAAa;AAAA,MACb;AAAA,MACD;AAAA,QACC,UAAU;AAAA,QACV,kBAAkB;AAAA,QAClB,MAAM;AAAA,QACN,UAAU;AAAA,QACV,aAAa;AAAA,MACb;AAAA,MACD;AAAA,QACC,UAAU;AAAA,QACV,kBAAkB;AAAA,QAClB,MAAM;AAAA;AAAA,QAEN,UAAU;AAAA,MACV;AAAA,MACD;AAAA,QACC,UAAU;AAAA,QACV,kBAAkB;AAAA,QAClB,MAAM;AAAA,QACN,UAAU;AAAA,QACV,aAAa;AAAA,MACb;AAAA,IACH,CAAE;AACDC,kBAAAA,UAAU,MAAM;AACf;IAEF,CAAE;AAEDC,kBAAAA,MAAI,cAAc;AAAA,MACf,SAAS,SAAU,KAAK;AAExBA,sBAAY,MAAA,MAAA,OAAA,sCAAA,MAAK,IAAI,UAAU;AAC5B,YAAI,IAAI,SAAS,MAAM,IAAI;AACxBA,8BAAA,MAAA,OAAA,sCAAY,YAAW,IAAI,SAAS,GAAG;AAAA,QACzC;AAAA,MACH;AAAA,IACL,CAAE;AAKD,aAAS,YAAY;AACpB,UAAI,YAAY,QAAQ;AACxB,UAAI,YAAY,GAAG;AAClB,yBAAiB,QAAQ;AACzB,YAAI,cAAc,KAAK,MAAM,YAAY,CAAC;AAC1C,gBAAQ,WAAW,EAAE,cAAc;AAAA,MACnC;AAAA,IACD;AAuBoBH,sBAAK;AAU1B,UAAM,iBAAiB,MAAM;AAC5B,aAAO;AAAA,IACP;;;;;;;;;;;;;;;;;;;;AC3IF,GAAG,gBAAgB,SAAS;"}
\ No newline at end of file
+{"version":3,"file":"tabBar.js","sources":["components/tabBar/tabBar.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDov6aG555uuL3RrLW1pbmktcHJvZ3JhbS9jb21wb25lbnRzL3RhYkJhci90YWJCYXIudnVl"],"sourcesContent":["\r\n \r\n \r\n - \r\n \r\n \r\n \r\n {{ item.text }}\r\n
\r\n
\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import Component from 'D:/项目/tk-mini-program/components/tabBar/tabBar.vue'\nwx.createComponent(Component)"],"names":["ref","reactive","onMounted","uni"],"mappings":";;;;;;;;AAiCA,QAAI,mBAAmBA,cAAAA,IAAI,KAAK;AAKhC,QAAI,UAAUC,cAAAA,SAAS;AAAA,MACrB;AAAA,QACE,UAAU;AAAA,QACV,kBAAkB;AAAA,QAClB,MAAM;AAAA,QACN,UAAU;AAAA,QACV,aAAa;AAAA,M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p-weixin/pages/Message/Message.js.map b/unpackage/dist/dev/.sourcemap/mp-weixin/pages/Message/Message.js.map
new file mode 100644
index 0000000..8089803
--- /dev/null
+++ b/unpackage/dist/dev/.sourcemap/mp-weixin/pages/Message/Message.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"Message.js","sources":["pages/Message/Message.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvTWVzc2FnZS9NZXNzYWdlLnZ1ZQ"],"sourcesContent":["\r\n\r\n\r\n\r\n\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/Message/Message.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;AAII,MAAK,YAAU;AAAA,EACX,OAAO;AACH,WAAO;AAAA,MACH,OAAO;AAAA,IACX;AAAA,EACH;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA;AAAA,EAET;AACJ;;;;;ACfJ,GAAG,WAAW,eAAe;"}
\ No newline at end of file
diff --git a/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map b/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
index d4454b7..b4f8675 100644
--- a/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
+++ b/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sources":["pages/index/index.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvaW5kZXgudnVl"],"sourcesContent":["\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\t{{title}}\r\n\t\t\r\n\t\r\n\r\n\r\n\r\n\r\n\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/index/index.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;;AAUC,MAAK,YAAU;AAAA,EACd,OAAO;AACN,WAAO;AAAA,MACN,OAAO;AAAA,IACR;AAAA,EACA;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS,CAET;AACD;;;;;;;;ACrBD,GAAG,WAAW,eAAe;"}
\ No newline at end of file
+{"version":3,"file":"index.js","sources":["pages/index/index.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvaW5kZXgudnVl"],"sourcesContent":["\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\t{{title}}\r\n\t\t\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n","import MiniProgramPage from 'D:/项目/tk-mini-program/pages/index/index.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;;AAUC,MAAK,YAAU;AAAA,EACd,OAAO;AACN,WAAO;AAAA,MACN,OAAO;AAAA,IACR;AAAA,EACA;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS,CAET;AACD;;;;;;;;ACrBD,GAAG,WAAW,eAAe;"}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/app.js b/unpackage/dist/dev/mp-weixin/app.js
index 15c3cbd..93085de 100644
--- a/unpackage/dist/dev/mp-weixin/app.js
+++ b/unpackage/dist/dev/mp-weixin/app.js
@@ -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() {
diff --git a/unpackage/dist/dev/mp-weixin/app.json b/unpackage/dist/dev/mp-weixin/app.json
index e2ce81f..6037d15 100644
--- a/unpackage/dist/dev/mp-weixin/app.json
+++ b/unpackage/dist/dev/mp-weixin/app.json
@@ -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": "消息"
}
]
},
diff --git a/unpackage/dist/dev/mp-weixin/common/vendor.js b/unpackage/dist/dev/mp-weixin/common/vendor.js
index d084f50..1c18905 100644
--- a/unpackage/dist/dev/mp-weixin/common/vendor.js
+++ b/unpackage/dist/dev/mp-weixin/common/vendor.js
@@ -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();
diff --git a/unpackage/dist/dev/mp-weixin/components/tabBar/tabBar.js b/unpackage/dist/dev/mp-weixin/components/tabBar/tabBar.js
index 0b60a60..ec166db 100644
--- a/unpackage/dist/dev/mp-weixin/components/tabBar/tabBar.js
+++ b/unpackage/dist/dev/mp-weixin/components/tabBar/tabBar.js
@@ -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
};
}),
diff --git a/unpackage/dist/dev/mp-weixin/pages/Message/Message.js b/unpackage/dist/dev/mp-weixin/pages/Message/Message.js
new file mode 100644
index 0000000..76baee3
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/Message/Message.js
@@ -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
diff --git a/unpackage/dist/dev/mp-weixin/pages/Message/Message.json b/unpackage/dist/dev/mp-weixin/pages/Message/Message.json
new file mode 100644
index 0000000..6f85c59
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/Message/Message.json
@@ -0,0 +1,4 @@
+{
+ "navigationBarTitleText": "消息",
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/Message/Message.wxml b/unpackage/dist/dev/mp-weixin/pages/Message/Message.wxml
new file mode 100644
index 0000000..e69de29
diff --git a/unpackage/dist/dev/mp-weixin/pages/Message/Message.wxss b/unpackage/dist/dev/mp-weixin/pages/Message/Message.wxss
new file mode 100644
index 0000000..a7ce282
--- /dev/null
+++ b/unpackage/dist/dev/mp-weixin/pages/Message/Message.wxss
@@ -0,0 +1,2 @@
+
+ /* 样式定义 */