|
|
@ -1,30 +1,33 @@ |
|
|
|
// components/navigationBar.js
|
|
|
|
Component({ |
|
|
|
|
|
|
|
/** |
|
|
|
* 组件的属性列表 |
|
|
|
*/ |
|
|
|
properties: { |
|
|
|
title:{ |
|
|
|
title: { |
|
|
|
type: String, |
|
|
|
value: '续期提醒' |
|
|
|
value: "续期提醒", |
|
|
|
}, |
|
|
|
backgroundImage:{ |
|
|
|
backgroundImage: { |
|
|
|
type: String, |
|
|
|
value: '' |
|
|
|
value: "", |
|
|
|
}, |
|
|
|
isSowArrow:{ |
|
|
|
isSowArrow: { |
|
|
|
type: Boolean, |
|
|
|
value: false |
|
|
|
value: false, |
|
|
|
}, |
|
|
|
isShowBg:{ |
|
|
|
isShowBg: { |
|
|
|
type: Boolean, |
|
|
|
value: false |
|
|
|
value: false, |
|
|
|
}, |
|
|
|
height: { |
|
|
|
type: String, |
|
|
|
value: "", |
|
|
|
}, |
|
|
|
titleAlign: { |
|
|
|
type: String, |
|
|
|
value: "center", // 默认居中对齐
|
|
|
|
}, |
|
|
|
height:{ |
|
|
|
type:String, |
|
|
|
value:'' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@ -32,24 +35,26 @@ Component({ |
|
|
|
*/ |
|
|
|
data: { |
|
|
|
// 状态栏高度
|
|
|
|
statusBarHeight: wx.getStorageSync('statusBarHeight') + 'px', |
|
|
|
statusBarHeight: wx.getStorageSync("statusBarHeight") + "px", |
|
|
|
// 导航栏高度
|
|
|
|
navigationBarHeight: wx.getStorageSync('navigationBarHeight') + 'px', |
|
|
|
navigationBarHeight: wx.getStorageSync("navigationBarHeight") + "px", |
|
|
|
// 胶囊按钮高度
|
|
|
|
menuButtonHeight: wx.getStorageSync('menuButtonHeight') + 'px', |
|
|
|
menuButtonHeight: wx.getStorageSync("menuButtonHeight") + "px", |
|
|
|
// 导航栏和状态栏高度
|
|
|
|
navigationBarAndStatusBarHeight: wx.getStorageSync('statusBarHeight') + wx.getStorageSync('navigationBarHeight') + 'px' |
|
|
|
|
|
|
|
navigationBarAndStatusBarHeight: |
|
|
|
wx.getStorageSync("statusBarHeight") + |
|
|
|
wx.getStorageSync("navigationBarHeight") + |
|
|
|
"px", |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 组件的方法列表 |
|
|
|
*/ |
|
|
|
methods: { |
|
|
|
handleGoToBack(){ |
|
|
|
handleGoToBack() { |
|
|
|
wx.navigateBack({ |
|
|
|
delta: 1 |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
delta: 1, |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|