Commit e01808af43632aafc11c377247bce4554f0951a4

Authored by teemitop
1 parent 16bca052

套餐上传

... ... @@ -108,8 +108,10 @@ class Package extends Common
$arr['main_url'] = $data['upload_main_val'];
$arr['detail_url'] = $data['upload_detail_val'];
$time = $data['date'] ? explode(' - ', $data['date']) : '';
//开始时间默认为 00:00:00 结束时间默认为23:59:59
$eff_time_end = $time[1].'23:59:59';
$arr['eff_time_start'] = $time ? strtotime(date($time[0],time())) : 0;
$arr['eff_time_end'] = $time ? strtotime(date($time[1],time())) : 0;
$arr['eff_time_end'] = $time ? strtotime(date($eff_time_end,time())) : 0;
$arr['use_time'] = $data['usetime'];
$arr['use_notice'] = $data['usenotice'];
$arr['status'] = $data['status'];
... ...
... ... @@ -105,7 +105,7 @@
<div class="layui-input-inline" style="width: 300px;">
<input type="text" name="date" id="date" lay-verify="required" readonly placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">该期间内可以消费使用</div>
<div class="layui-form-mid layui-word-aux">默认为 xx年xx月xx日 00:00:00 - xx年xx月xx日 23:59:59</div>
</div>
</div>
... ... @@ -241,7 +241,7 @@
//日期时间范围
laydate.render({
elem: '#date'
,type: 'datetime'
,type: 'date'
,range: true
,min: 0
,trigger:'click'
... ...