wylyl22 3 years ago
commit f492c9a54e

@ -13,7 +13,9 @@ Component({
showChart: true,
// dataOption: brokenLine(dName,dValue,dColor,dx)
},
onShow() {
this.getTabBar().init();
},
lifetimes: {
attached() {
let sTimeType = wx.getStorageSync("sTimeType") || 34;

@ -63,6 +63,7 @@
text-align: center;
justify-content: space-between;
border: 1rpx solid #0084FF;
border-radius: 4rpx;
}
.box2 {

@ -8,9 +8,9 @@ Component({
sTimeType: '34',
intervalSel: 0,
show: false,
start: moment().format("YYYY-MM-DD HH:mm:ss"),
start: moment().format("YYYY-MM-DD"),
startTime: moment().valueOf(),
end: moment().format("YYYY-MM-DD HH:mm:ss"),
end: moment().format("YYYY-MM-DD"),
endTime: moment().valueOf(),
show1: false,
show2: false,
@ -72,14 +72,14 @@ Component({
});
},
onInput(event) {
let dt = moment(event.detail).format("YYYY-MM-DD HH:mm:ss");
let dt = moment(event.detail).format("YYYY-MM-DD");
this.setData({
dt: dt
});
},
onInput1(event) {
let dt = moment(event.detail).format("YYYY-MM-DD HH:mm:ss");
let dt = moment(event.detail).format("YYYY-MM-DD");
this.setData({
dt1: dt,

@ -7,11 +7,11 @@
<van-cell title="选择结束时间" is-link value="{{ end }}" bind:click="onDisplay1" />
<view class="tp-btn" bindtap="close">收起</view>
<van-popup show="{{ show1 }}" position="bottom">
<van-datetime-picker type="datetime" value="{{startTime}}" bind:input="onInput" bind:confirm="onConfirm"
<van-datetime-picker type="date" value="{{startTime}}" bind:input="onInput" bind:confirm="onConfirm"
bind:cancel="onCancel" />
</van-popup>
<van-popup show="{{ show2 }}" position="bottom">
<van-datetime-picker type="datetime" value="{{endTime}}" bind:input="onInput1" bind:confirm="onConfirm1"
<van-datetime-picker type="date" value="{{endTime}}" bind:input="onInput1" bind:confirm="onConfirm1"
bind:cancel="onCancel1" />
</van-popup>
<van-dialog use-slot title="注意" show="{{ showDialog }}" bind:confirm="cdialog">

@ -1,6 +1,7 @@
// pages/index/Rankdetail/Rankdetail.js
var newtime=new Date();
const app = getApp();
import moment from "moment"
Page({
/**
* 页面的初始数据
@ -8,8 +9,8 @@ Page({
data: {
end:newtime.toLocaleDateString(),
show:false,
date:'2016-09-01',
date2:'2016-09-02',
date:moment().format("YYYY-MM"),
date2:moment().format("YYYY-MM "),
currentDate: new Date().getTime(),
minDate: new Date().getTime(),
ranking: [],

Loading…
Cancel
Save