zx 3 years ago
parent c4331497a4
commit 35c29d4f5e

@ -24,6 +24,8 @@ Page({
Name: '', Name: '',
StartTime: '', StartTime: '',
EndTime: '', EndTime: '',
startShow: new Date().getTime(),
endShow: new Date().getTime(),
DetailsData: [], DetailsData: [],
AnalyzeWord: '', // 和 或 的主体词 AnalyzeWord: '', // 和 或 的主体词
HuoWord:'', // 和 或 的可选词 HuoWord:'', // 和 或 的可选词
@ -72,12 +74,15 @@ Page({
Source: res.DetailsData[0].Source, Source: res.DetailsData[0].Source,
}) })
} }
console.log(new Date(res.StartTime))
this.setData({ this.setData({
Name: res.Name, Name: res.Name,
StartTime: res.StartTime, StartTime: res.StartTime,
start: res.StartTime, start: res.StartTime,
EndTime: res.EndTime, EndTime: res.EndTime,
end: res.EndTime, end: res.EndTime,
startShow: new Date(res.StartTime).valueOf(),
endShow: new Date(res.EndTime).valueOf(),
}) })
}); });
}, },

@ -21,10 +21,10 @@
<van-cell title="请选择时间" custom-class="date-picker-cell" is-link value="{{ end }}" bind:click="onDisplay2" /> <van-cell title="请选择时间" custom-class="date-picker-cell" is-link value="{{ end }}" bind:click="onDisplay2" />
</van-cell-group> </van-cell-group>
<van-popup show="{{ show1 }}" position="bottom"> <van-popup show="{{ show1 }}" position="bottom">
<van-datetime-picker type="datetime" bind:confirm="onConfirm" bind:cancel="onCancel" /> <van-datetime-picker value="{{startShow}}" type="datetime" bind:confirm="onConfirm" bind:cancel="onCancel" />
</van-popup> </van-popup>
<van-popup show="{{ show2 }}" position="bottom"> <van-popup show="{{ show2 }}" position="bottom">
<van-datetime-picker type="datetime" bind:confirm="onConfirm2" bind:cancel="onCancel2" /> <van-datetime-picker value="{{endShow}}" type="datetime" bind:confirm="onConfirm2" bind:cancel="onCancel2" />
</van-popup> </van-popup>
</view> </view>
<view class="form-content" wx:if="{{active == 0}}"> <view class="form-content" wx:if="{{active == 0}}">

@ -7,8 +7,8 @@
</van-row> </van-row>
<van-divider custom-style="background: linear-gradient(117deg, rgba(245,245,245,0) 0%, #EEEEEE 50%, rgba(232,232,232,0) 100%);" hairline /> <van-divider custom-style="background: linear-gradient(117deg, rgba(245,245,245,0) 0%, #EEEEEE 50%, rgba(232,232,232,0) 100%);" hairline />
<view style="padding: 0 32rpx 0 32rpx"> <view style="padding: 0 32rpx 0 32rpx">
<view class="van-multi-ellipsis--l2" style="font-size: 16px;font-weight: 600;color: #FFFFFF;">{{affData.Summarize}}</view> <view class="van-multi-ellipsis--l4" style="font-size: 16px;font-weight: 600;color: #FFFFFF;">{{affData.Summarize}}</view>
<rich-text class="van-multi-ellipsis--l2" style="font-size: 14px;font-weight: 400;color: rgba(255,255,255,0.6);margin-top: 24rpx;" nodes="{{affData.AffectionsMsg}}"></rich-text> <rich-text class="van-multi-ellipsis--l3" style="font-size: 14px;font-weight: 400;color: rgba(255,255,255,0.6);margin-top: 24rpx;" nodes="{{affData.AffectionsMsg}}"></rich-text>
</view> </view>
</view> </view>
</view> </view>

@ -11,7 +11,7 @@
padding: 2rpx 32rpx 32rpx 32rpx padding: 2rpx 32rpx 32rpx 32rpx
} }
.switch-container { .switch-container {
height: 305rpx; /* height: 645rpx; */
background: rgb(77, 159, 253); background: rgb(77, 159, 253);
padding: 24rpx 0rpx 24rpx 0rpx; padding: 24rpx 0rpx 24rpx 0rpx;
border-radius: 4px; border-radius: 4px;

Loading…
Cancel
Save