You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
55 lines
1.2 KiB
3 months ago
|
// components/navigationBar.js
|
||
|
Component({
|
||
|
|
||
|
/**
|
||
|
* 组件的属性列表
|
||
|
*/
|
||
|
properties: {
|
||
|
title:{
|
||
|
type: String,
|
||
|
value: '续期提醒'
|
||
|
},
|
||
|
backgroundImage:{
|
||
|
type: String,
|
||
|
value: ''
|
||
|
},
|
||
|
isSowArrow:{
|
||
|
type: Boolean,
|
||
|
value: false
|
||
|
},
|
||
|
isShowBg:{
|
||
|
type: Boolean,
|
||
|
value: false
|
||
|
},
|
||
|
height:{
|
||
|
type:String,
|
||
|
value:''
|
||
|
}
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 组件的初始数据
|
||
|
*/
|
||
|
data: {
|
||
|
// 状态栏高度
|
||
|
statusBarHeight: wx.getStorageSync('statusBarHeight') + 'px',
|
||
|
// 导航栏高度
|
||
|
navigationBarHeight: wx.getStorageSync('navigationBarHeight') + 'px',
|
||
|
// 胶囊按钮高度
|
||
|
menuButtonHeight: wx.getStorageSync('menuButtonHeight') + 'px',
|
||
|
// 导航栏和状态栏高度
|
||
|
navigationBarAndStatusBarHeight: wx.getStorageSync('statusBarHeight') + wx.getStorageSync('navigationBarHeight') + 'px'
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 组件的方法列表
|
||
|
*/
|
||
|
methods: {
|
||
|
handleGoToBack(){
|
||
|
wx.navigateBack({
|
||
|
delta: 1
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
})
|