Browse Source

no message

feature/v2.1
xpz2018 4 years ago
parent
commit
be298f4cec
3 changed files with 5 additions and 8 deletions
  1. 5
      components/calendar/index.js
  2. 2
      pages/index/index.js
  3. 6
      pages/index/index.wxml

5
components/calendar/index.js

@ -172,7 +172,10 @@ VantComponent({
const months = getMonths(minDate, maxDate);
months.some((month, index) => {
if (compareMonth(month, targetDate) === 0) {
this.setData({ scrollIntoView: `month${index}` });
setTimeout(() => {
this.setData({ scrollIntoView: `month${index}` });
}, 100);
// this.setData({ scrollIntoView: `month${index}` });
return true
}
return false

2
pages/index/index.js

@ -85,7 +85,7 @@ Scene({
factoryName: app.userInfo.factoryName,
arrow: this.data.arrow,
customBar: app.globalData.CustomBar || (app.globalData.isIos ? 64 : 60),
fragment: (app.globalData.safeFragmentHeight + app.globalData.statusBarHeight),
fragment: (app.globalData.safeFragmentHeight + app.globalData.statusBarHeight) - 100,
safeBottom: app.globalData.safeBottom
})
event.on('EventMessage', this, this.onEvent)

6
pages/index/index.wxml

@ -33,12 +33,6 @@
<van-popup position="top" show="{{ visible }}" bind:close="onHide" z-index="29">
<view class="bg-white" style="margin-top:{{customBar}}px;width: 100%;">
<!-- <scroll-view scroll-y style="height:{{ 88 * (factoryList.length >= 5 ? 5 : factoryList.length)}}rpx;">
<van-cell clickable wx:for="{{factoryList}}" custom-style="min-height:88rpx" wx:key="index" data-index="{{index}}" bind:click="changeFactory">
<view class="text-bold {{ item.id == factoryId ? 'text-blue' : 'text-black'}}" slot="title">{{item.name}}</view>
<van-icon slot="right-icon" name="success" size="1.3em" color="#008AFF" wx:if="{{item.id == factoryId}}" />
</van-cell>
</scroll-view> -->
<van-tree-select items="{{items}}" height="240px" flex="{{1.5}}" main-active-index="{{mActiveIndex}}" active-id="{{factoryId}}"
bind:click-item="changeFactory" bind:click-nav="onClickNav"></van-tree-select>
</view>

Loading…
Cancel
Save