1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- let {
- statusBarHeight,
- screenHeight,
- safeArea: {
- bottom
- }
- } = wx.getSystemInfoSync();
- statusBarHeight = Math.abs(statusBarHeight)
- let custom = wx.getMenuButtonBoundingClientRect();
- let customBarHeight = custom.bottom + custom.top - statusBarHeight;
- customBarHeight = Math.abs(customBarHeight)
- Component({
-
- properties: {
- imgUrls:Array,
- title:String,
-
- active:{
- type:Number,
- value:-1
- }
- },
-
- data: {
- statusBarHeight,
- customBarHeight,
- screenHeight,
- },
-
- methods: {
- goUrl(e){
- let url = ''
-
- let {active} = this.properties
- if(active==0){
- url ='/nova-tourism/pages/food-list/index'
- }else if(active==1){
- url = '/nova-tourism/pages/homestay/hotel-list/index'
- }else{
- url = '/nova-tourism/pages/template-2/searching/index'
- }
- wx.navigateTo({
- url: url,
- })
- },
- }
- })
|