Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
f9afca1731
2 changed files with 5 additions and 2 deletions
  1. 5
      pages/index/index.js
  2. 2
      pages/index/index.wxml

5
pages/index/index.js

@ -6,6 +6,7 @@ const util = require('../../utils/util')
const tdsdk = require('../../libs/tdweapp.js')
const wxqqmap = require('../../libs/qqmap-wx-jssdk.min')
const event = require('../../utils/event')
const math = require('../../utils/math')
const storage = require('../../utils/storage')
const app = getApp()
const qqwxmap = new wxqqmap({ key: 'GAMBZ-CBGCK-GB6J3-A6PJX-F6ZHH-IWFUD'})
@ -53,7 +54,9 @@ Page({
event.on('EventMessage', this, this.onEvent)
wx.showLoading({ title: '加载中', mask: true })
const fheght = (app.globalData.safeFragmentHeight + app.globalData.statusBarHeight) - 100
this.setData({
var sHeight = parseInt(math.times(app.globalData.fragmentHeight, 0.65))
this.setData({
sHeight,
fragment: fheght,
safeBottom: app.globalData.safeBottom,
maxDate, minDate, calendar,

2
pages/index/index.wxml

@ -49,7 +49,7 @@
<view class="text-black text-sg text-bold">选择城市</view>
<view class="text-gray text-df" hover-class="button--hover" style="width: 120rpx;line-height: 90rpx;" bindtap="onClose">取消</view>
</view>
<scroll-view scroll-y style="height:630rpx;">
<scroll-view scroll-y style="height:{{sHeight}}rpx;">
<view class="flex flex-justify" style="padding: 0rpx 32rpx;height: 72rpx;" wx:if="{{historyList.length}}">
<view class="text-black text-df text-bold">历史选择</view>
<text class="cuIcon-delete" style="font-size: 17px" bindtap="clearHistory"></text>

Loading…
Cancel
Save