tabber
This commit is contained in:
1
unpackage/dist/dev/mp-weixin/app.js
vendored
1
unpackage/dist/dev/mp-weixin/app.js
vendored
@@ -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() {
|
||||
|
||||
7
unpackage/dist/dev/mp-weixin/app.json
vendored
7
unpackage/dist/dev/mp-weixin/app.json
vendored
@@ -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": "消息"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
};
|
||||
}),
|
||||
|
||||
20
unpackage/dist/dev/mp-weixin/pages/Message/Message.js
vendored
Normal file
20
unpackage/dist/dev/mp-weixin/pages/Message/Message.js
vendored
Normal 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
|
||||
4
unpackage/dist/dev/mp-weixin/pages/Message/Message.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/Message/Message.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "消息",
|
||||
"usingComponents": {}
|
||||
}
|
||||
0
unpackage/dist/dev/mp-weixin/pages/Message/Message.wxml
vendored
Normal file
0
unpackage/dist/dev/mp-weixin/pages/Message/Message.wxml
vendored
Normal file
2
unpackage/dist/dev/mp-weixin/pages/Message/Message.wxss
vendored
Normal file
2
unpackage/dist/dev/mp-weixin/pages/Message/Message.wxss
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
/* 样式定义 */
|
||||
Reference in New Issue
Block a user