Commit 9e502756 authored by 谢卓城's avatar 谢卓城

完善:1.打包忽略文件.

parent 04f73af2
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* 使用 <Component super-class="<#type#>" /> * 使用 <Component super-class="<#type#>" />
*/ */
let app = getApp(); let app = getApp();
Component({ Component({
properties: { properties: {
...@@ -14,16 +14,16 @@ Component({ ...@@ -14,16 +14,16 @@ Component({
leftIcon: String, leftIcon: String,
titleOpcity: { titleOpcity: {
type: Number, type: Number,
value: 1 value: 1,
}, },
opcity: { opcity: {
type: Number, type: Number,
value: 0 value: 0,
}, },
iconOpcity: { iconOpcity: {
type: Number, type: Number,
value: 0 value: 0,
} },
}, },
externalClasses: ["super-class"], externalClasses: ["super-class"],
data: { data: {
...@@ -32,14 +32,13 @@ Component({ ...@@ -32,14 +32,13 @@ Component({
navBarHeight: 0, // 导航栏高度 = navBar + 状态栏高度 navBarHeight: 0, // 导航栏高度 = navBar + 状态栏高度
menuBotton: 0, // 胶囊距底部间距(保持底部间距一致) menuBotton: 0, // 胶囊距底部间距(保持底部间距一致)
menuRight: 0, // 胶囊距右方间距(方保持左、右间距一致) menuRight: 0, // 胶囊距右方间距(方保持左、右间距一致)
menuHeight: 0 // 胶囊高度(自定义内容可与胶囊高度保证一致) menuHeight: 0, // 胶囊高度(自定义内容可与胶囊高度保证一致)
}, },
pageLifetimes: { pageLifetimes: {
// 组件所在页面的生命周期函数 // 组件所在页面的生命周期函数
show: function() { show: function () {
this.setNavBarInfo(); this.setNavBarInfo();
} },
}, },
methods: { methods: {
/** /**
...@@ -52,14 +51,14 @@ Component({ ...@@ -52,14 +51,14 @@ Component({
menuHeight: app.globalData.menuHeight, // 胶囊高度(自定义内容可与胶囊高度保证一致) menuHeight: app.globalData.menuHeight, // 胶囊高度(自定义内容可与胶囊高度保证一致)
navBar: app.globalData.customBarHeight - app.globalData.statusBarHeight, navBar: app.globalData.customBarHeight - app.globalData.statusBarHeight,
navBarHeight: app.globalData.customBarHeight, navBarHeight: app.globalData.customBarHeight,
top: app.globalData.menuBottonTop top: app.globalData.menuBottonTop,
}); });
}, },
// 这里是一个自定义方法 // 这里是一个自定义方法
tagAction(e) { tagAction(e) {
console.log(e); console.log(e);
var eventOption = { }; // 触发事件的选项 var eventOption = {}; // 触发事件的选项
this.triggerEvent("tagClick", eventOption); this.triggerEvent("tagClick", eventOption);
} },
} },
}); });
{ {
"description": "项目配置文件", "description": "项目配置文件",
"packOptions": { "packOptions": {
"ignore": [] "ignore": [
{
"type": "folder",
"value": "miniprogram_npm/nmaxios/README.md"
}
]
}, },
"setting": { "setting": {
"urlCheck": true, "urlCheck": true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment