業務申請
預約(yue)維(wei)修(通氣 改管(guan) 過(guo)戶(hu) 其(qi)他(ta))
預(yu)約安檢(jian)
預約抄表(biao)(預約抄(chao)表 核對氣(qi)量 其他)
芭蕉视频app无限次数ios具售後服(fu)務(安(an)裝 維修)
在線預約維修
在線預約安檢
溫(wen)馨提醒(xing):根據本年度內(nei)如(ru)已經完成安檢,第二(er)次安檢需(xu)要(yao)收上門服務費
在線預約抄表
在線預約安裝/維修
' +
'
' +
'
'
);
}
}); //多圖上傳2
upload.render({
elem: '#ywsq_2 .img_box',
url: '/message/imgs_upload',
size: 1024,
acceptMime: 'image/jpg,image/png,image/jpeg',
exts: 'jpg|png|jpeg',
multiple: true,
number: '3',
before: function(obj) {
layer.msg('圖片上傳中...', {
icon: 16,
shade: 0.01,
time: 0
})
// 預讀本地文件示例,不支持ie8
// obj.preview(function(index, file, result) {
// $('#uploader-list').append(
// '' +
'
' +
// '
' +
// '
'
// );
// });
}, done: function(res) { var path = root_url + '/Uploads/ywsq/'; layer.close(layer.msg()); //關閉上傳提示窗口
//上傳完畢
$('#ywsq_2 #uploader-list').append(
'' +
// '
' +
'
' +
'
'
);
}
}); //多圖上傳3
upload.render({
elem: '#ywsq_3 .img_box',
url: '/message/imgs_upload',
size: 1024,
acceptMime: 'image/jpg,image/png,image/jpeg',
exts: 'jpg|png|jpeg',
multiple: true,
number: '3',
before: function(obj) {
layer.msg('圖片上傳中...', {
icon: 16,
shade: 0.01,
time: 0
})
// 預讀本地文件示例,不支持ie8
// obj.preview(function(index, file, result) {
// $('#uploader-list').append(
// '' +
'
' +
// '
' +
// '
'
// );
// });
}, done: function(res) { var path = root_url + '/Uploads/ywsq/'; layer.close(layer.msg()); //關閉上傳提示窗口
//上傳完畢
$('#ywsq_3 #uploader-list').append(
'' +
// '
' +
'
' +
'
'
);
}
}); //多圖上傳4
upload.render({
elem: '#ywsq_4 .img_box',
url: '/message/imgs_upload',
size: 1024,
acceptMime: 'image/jpg,image/png,image/jpeg',
exts: 'jpg|png|jpeg',
multiple: true,
number: '3',
before: function(obj) {
layer.msg('圖片上傳中...', {
icon: 16,
shade: 0.01,
time: 0
})
// 預讀本地文件示例,不支持ie8
// obj.preview(function(index, file, result) {
// $('#uploader-list').append(
// '' +
'
' +
// '
' +
// '
'
// );
// });
}, done: function(res) { var path = root_url + '/Uploads/ywsq/'; layer.close(layer.msg()); //關閉上傳提示窗口
//上傳完畢
$('#ywsq_4 #uploader-list').append(
'' +
// '
' +
'
' +
'
'
);
}
}); $(document).on("mouseenter mouseleave", ".file-iteme", function(event) {
if (event.type === "mouseenter") {
//鼠標懸浮
$(this).children(".handle").fadeIn("fast");
} else if (event.type === "mouseleave") {
//鼠標離開
$(this).children(".handle").hide();
}
}); // 刪除圖片
$(document).on("click", ".file-iteme .handle", function(event) {
$(this).parent().remove();
}) //監聽提交
form.on('submit(ywsq_1)', function(data) {
//獲取checkbox[name='project']的值
var arr = new Array();
$("#ywsq_1 input:checkbox[name='project']:checked").each(function(i) {
arr[i] = $(this).val();
});
data.field.project = arr.join(","); //將數組合並成字符串 $.ajax({
type: "POST",
url: '/message/add_yywx',
dataType: "json",
data: data.field,
timeout: 20000,
beforeSend: function(XMLHttpRequest) {
$("#ywsq_1 .layui-btn").attr("disabled", true);
$("#ywsq_1 .layui-btn").text("正在提交,請稍候...");
},
success: function(data) {
if (data.status == 1) {
layer.msg(data.msg, {
time: 3000,
icon: 6,
end: function() {
if (typeof(data.url) == "undefined") {
location.reload();
} else {
location.xhref = data.url;
}
}
});
} else {
$("#ywsq_1 .layui-btn").attr("disabled", false);
$("#ywsq_1 .layui-btn").text("再次提交");
layer.msg(data.msg);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
layer.alerts("狀態:" + textStatus + ";出錯提示:" + errorThrown, {
title: '溫馨提示'
})
$("#ywsq_1 .layui-btn").attr("disabled", false);
}
});
return false;
});
//監聽提交
form.on('submit(ywsq_2)', function(data) {
$.ajax({
type: "POST",
url: '/message/add_yyaj',
dataType: "json",
data: data.field,
timeout: 20000,
beforeSend: function(XMLHttpRequest) {
$("#ywsq_2 .layui-btn").attr("disabled", true);
$("#ywsq_2 .layui-btn").text("正在提交,請稍候...");
},
success: function(data) {
if (data.status == 1) {
layer.msg(data.msg, {
time: 3000,
icon: 6,
end: function() {
if (typeof(data.url) == "undefined") {
location.reload();
} else {
location.xhref = data.url;
}
}
});
} else {
$("#ywsq_2 .layui-btn").attr("disabled", false);
$("#ywsq_2 .layui-btn").text("再次提交");
layer.msg(data.msg);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
layer.alerts("狀態:" + textStatus + ";出錯提示:" + errorThrown, {
title: '溫馨提示'
})
$("#ywsq_1 .layui-btn").attr("disabled", false);
}
});
return false;
}); //監聽提交
form.on('submit(ywsq_3)', function(data) {
//獲取checkbox[name='project']的值
var arr = new Array();
$("#ywsq_3 input:checkbox[name='project']:checked").each(function(i) {
arr[i] = $(this).val();
});
data.field.project = arr.join(","); //將數組合並成字符串
$.ajax({
type: "POST",
url: '/message/add_yycb',
dataType: "json",
data: data.field,
timeout: 20000,
beforeSend: function(XMLHttpRequest) {
$("#ywsq_3 .layui-btn").attr("disabled", true);
$("#ywsq_3 .layui-btn").text("正在提交,請稍候...");
},
success: function(data) {
if (data.status == 1) {
layer.msg(data.msg, {
time: 3000,
icon: 6,
end: function() {
if (typeof(data.url) == "undefined") {
location.reload();
} else {
location.xhref = data.url;
}
}
});
} else {
$("#ywsq_3 .layui-btn").attr("disabled", false);
$("#ywsq_3 .layui-btn").text("再次提交");
layer.msg(data.msg);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
layer.alerts("狀態:" + textStatus + ";出錯提示:" + errorThrown, {
title: '溫馨提示'
})
$("#ywsq_3 .layui-btn").attr("disabled", false);
}
});
return false;
});
//監聽提交 //監聽提交
form.on('submit(ywsq_4)', function(data) {
$.ajax({
type: "POST",
url: '/message/add_shfw',
dataType: "json",
data: data.field,
timeout: 20000,
beforeSend: function(XMLHttpRequest) {
$("#ywsq_4 .layui-btn").attr("disabled", true);
$("#ywsq_4 .layui-btn").text("正在提交,請稍候...");
},
success: function(data) {
if (data.status == 1) {
layer.msg(data.msg, {
time: 3000,
icon: 6,
end: function() {
if (typeof(data.url) == "undefined") {
location.reload();
} else {
location.xhref = data.url;
}
}
});
} else {
$("#ywsq_4 .layui-btn").attr("disabled", false);
$("#ywsq_4 .layui-btn").text("再次提交");
layer.msg(data.msg);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
layer.alerts("狀態:" + textStatus + ";出錯提示:" + errorThrown, {
title: '溫馨提示'
})
$("#ywsq_4 .layui-btn").attr("disabled", false);
}
});
return false;
});
});
' +
'