Commit d566ad54 authored by 王's avatar

群发助手48小时默认时间

parent 3e25e101
......@@ -551,6 +551,7 @@
let msgTips = this.searchFrom.is_test ? '发送筛选用户,' : '不发送筛选用户,';
if(this.searchFrom.type === 1){
if(this.searchFrom.time && this.searchFrom.time.length > 0){
console.log('this.searchFrom.time', this.searchFrom.time)
json.start_at = CommonJs.dateFmt(this.searchFrom.time[0],"yyyy-MM-dd hh:mm:ss");
json.end_at = CommonJs.dateFmt(this.searchFrom.time[1],"yyyy-MM-dd hh:mm:ss");
msgTips += '48时内关注但未购课用户(' + json.start_at + '~' + json.end_at + ',';
......@@ -861,7 +862,7 @@
let date = new Date();
let now_seconds = date.getTime();
let start_seconds = now_seconds - 48 * 60 * 60 * 1000;
this.searchFrom.time = [CommonJs.dateFmt(new Date (start_seconds), 'yyyy-MM-dd hh:mm:ss'),CommonJs.dateFmt(new Date (now_seconds), 'yyyy-MM-dd hh:mm:ss')]
this.searchFrom.time = [new Date (start_seconds),new Date (now_seconds)]
}
},
mounted(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment