Commit 7fa4ad93 by 前端

fixed

1 parent 4320f810
import ActivityApi from '~/api/activityApi/index' import ActivityApi from '~/api/activityApi/index'
let thisPage; let thisPage;
import {thousand} from '~/utils/format' import { thousand } from '~/utils/format'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -106,6 +106,7 @@ Component({ ...@@ -106,6 +106,7 @@ Component({
unit: '' unit: ''
}], }],
}, },
calendarLoading: false,
listData: [], listData: [],
chartData: [], chartData: [],
triggered: false, triggered: false,
...@@ -234,7 +235,7 @@ Component({ ...@@ -234,7 +235,7 @@ Component({
} }
} }
ActivityApi[apiName](params).then(res => { ActivityApi[apiName](params).then(res => {
thisPage.setData({loading:false}) thisPage.setData({ loading: false })
this.setData({ this.setData({
outputData: { outputData: {
...this.data.outputData, ...this.data.outputData,
...@@ -424,8 +425,14 @@ Component({ ...@@ -424,8 +425,14 @@ Component({
}, },
lifetimes: { lifetimes: {
attached() { attached() {
if(this.control)return if (this.control) return
this.control = true this.control = true
setTimeout(()=>{
this.setData({
calendarLoading: true,
})
},0)
this.initLocal(this.data.entranceType) this.initLocal(this.data.entranceType)
} }
}, },
......
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
.table-box { .table-box {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin: 48rpx 0; margin-top: 48rpx;
padding-bottom: 30rpx; padding-bottom: 50rpx;
.btn-box { .btn-box {
width: 316rpx; width: 316rpx;
......
...@@ -29,4 +29,7 @@ ...@@ -29,4 +29,7 @@
</view> </view>
</scroll-view > </scroll-view >
<view wx:if="{{calendarLoading}}">
<van-calendar max-range="{{ 30 }}" min-date="{{ minDate }}" max-date="{{ maxDate }}" show="{{ isShow }}" type="range" color="#4466F0" bind:confirm="onConfirm" bind:close="onClose"/> <van-calendar max-range="{{ 30 }}" min-date="{{ minDate }}" max-date="{{ maxDate }}" show="{{ isShow }}" type="range" color="#4466F0" bind:confirm="onConfirm" bind:close="onClose"/>
</view>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!