作者 王智

bug

... ... @@ -43,7 +43,8 @@ Page({
show: false,
shows: false,
shownight:false,
showdate:false
showdate:false,
arr:[],
},
//日历
... ... @@ -118,11 +119,19 @@ onConfirmdate(event) {
list.push(Data);
});
let data=[];
console.log('1111111111111111', list)
list.forEach(item => {
console.log("item-",item);
data.push({
date:item
})
})
console.log("---",data);
this.setData({
show: false,
date: list.join(',')
date: list.join(','),
arr:data,
});
},
... ... @@ -646,7 +655,8 @@ onConfirmdate(event) {
type: that.data.type_id,
work_content: that.data.check_id,
select_time: JSON.stringify(that.data.t_arr),
apply_stay: JSON.stringify(that.data.z_arr),
// apply_stay: JSON.stringify(that.data.z_arr),
apply_stay: JSON.stringify(that.data.arr),
apply_food: JSON.stringify(that.data.e_arr)
}
let header = {
... ...
... ... @@ -52,11 +52,8 @@
<view class="left">
<image src="/imgs/must.png" /> 参加日期
</view>
<!-- <picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}"
data-id="1" disabled="{{status}}"> -->
<view class="right" style="flex: 1;display:flex;justify-content: flex-end;margin-left: 32rpx;overflow: hidden;"
bindtap="onDisplaydate">
<text>{{data?data:'请选择'}}</text>
... ...
... ... @@ -136,7 +136,22 @@ Page({
layerModel: true
})
}
},
fail() {
wx.showModal({
title: '提示',
content: '请打开手机定位功能',
showCancel: false
})
}
})
} else {
... ...
... ... @@ -337,6 +337,12 @@
"pathName": "pages/enroll/enroll",
"query": "id=63",
"scene": null
},
{
"id": -1,
"name": "pages/enroll/enroll",
"pathName": "pages/enroll/enroll",
"scene": null
}
]
}
... ...