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.
44 lines
924 B
44 lines
924 B
"use strict";
|
|
var App = getApp();
|
|
Component({
|
|
options: {
|
|
addGlobalClass: true,
|
|
},
|
|
externalClasses: ['custom-class'],
|
|
properties: {
|
|
pageName: String,
|
|
showNav: {
|
|
type: Boolean,
|
|
value: true
|
|
},
|
|
bgColor: {
|
|
type: String,
|
|
value: '#fff'
|
|
},
|
|
iconColor: {
|
|
type: String,
|
|
value: '#000'
|
|
}
|
|
},
|
|
data: {},
|
|
lifetimes: {
|
|
attached: function () {
|
|
this.setData({
|
|
navHeight: App.globalData.navHeight,
|
|
navTop: App.globalData.navTop
|
|
});
|
|
}
|
|
},
|
|
methods: {
|
|
_navBack: function () {
|
|
wx.navigateBack({
|
|
delta: 1
|
|
});
|
|
},
|
|
_toIndex: function () {
|
|
wx.navigateTo({
|
|
url: '/pages/index/index'
|
|
});
|
|
},
|
|
}
|
|
});
|
|
|