|
@@ -0,0 +1,169 @@
|
|
|
+<!DOCTYPE HTML>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
+ <meta name="viewport"
|
|
|
+ content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp"/>
|
|
|
+ <#include "/base/add_base.ftl">
|
|
|
+
|
|
|
+ <style>
|
|
|
+ .tit{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
|
|
|
+ .tit:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
|
|
|
+ .tit-2{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
|
|
|
+ .tit-2:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
|
|
|
+ #province select{margin-right:10px; width:100px;height: 31px;-webkit-appearance:none !important;appearance:none;background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;padding-left:3px;padding-right: 25px;}
|
|
|
+ .ac_results li a {white-space: nowrap;text-decoration:none;display:block;color:#05a;padding:1px 3px}
|
|
|
+ .ac_results li {border:1px solid #fff}
|
|
|
+ .ac_results li a span {float:right}
|
|
|
+ .select-box{background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;}
|
|
|
+ .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 25px;}
|
|
|
+ .dalog-ask{position: absolute;left:60%;top:0;-webkit-transform: translateY(-30%);transform: translateY(-30%);display: none;background-color: #fff;z-index: 10;}
|
|
|
+ .tag{ width:300px; min-height:300px; border:1px solid #32a3d8; position:relative;background-color: #fff;line-height: 1.5;padding: 10px 12px;}
|
|
|
+ .tag em{display:block; border-width:15px; position:absolute; top:30%; left:-30px;border-style:solid dashed dashed; border-color:transparent #32a3d8 transparent transparent;font-size:0; line-height:0;}
|
|
|
+ .time-line-list{list-style: none;width: 100%;margin-left: -20px;}
|
|
|
+ .time-line-list>li{position: relative;float: left; text-align: center;width: 100px;overflow: hidden;white-space: nowrap;word-break: break-all;padding: 2px 0;}
|
|
|
+ .time-line-list .number{display: inline-block; padding: 2px; background: #32a3d8;border: 2px solid #fff;box-shadow:0 0 0 1px #32a3d8;width: 20px;height: 20px;color: #fff;line-height: 20px;border-radius: 50%;}
|
|
|
+ .time-line-list>li:before{content:'';position: absolute;height: 1px;width: 30%;right:0;top: 15px; background-color: #32a3d8;}
|
|
|
+ .time-line-list>li:after{content: '';position: absolute;height: 1px;width: 30%;left: 0;top: 15px;background:#32a3d8;}
|
|
|
+ .time-line-list>li:first-child:after,.time-line-list>li:last-child:before{display: none;}
|
|
|
+ .time-line-list .arrow{border-width:7px; position:absolute; left:25%; top:9px;border-style:solid dashed dashed; border-color:transparent transparent transparent #32a3d8;font-size:0; line-height:0;}
|
|
|
+ .time-line-list>li:first-child .arrow{display: none;}
|
|
|
+ .table-bg th{background-color: #e2f6ff;}
|
|
|
+ .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
|
|
|
+ .msg-phone{height: 35px;line-height: 35px;}
|
|
|
+ .col-sm-1{width: 150px;}
|
|
|
+
|
|
|
+ .all_down{text-decoration: underline;color: #00c;}
|
|
|
+ </style>
|
|
|
+ <title>订单列表 - 发送短信 - RST</title>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<article class="page-container" style="padding: 10px;">
|
|
|
+ <div class="pd-20 cl">
|
|
|
+ <form action="${path}/admin/salesOrder/add_salesOrder" method="post" class="form form-horizontal" id="form-order-add" onkeydown="if(event.keyCode==13)return false;">
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-3">
|
|
|
+ <div class="tit-2">发送短信</div>
|
|
|
+ </label>
|
|
|
+ <div class="formControls col-9">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl" id="">
|
|
|
+ <label class="form-label col-1 col-sm-1" style="float: left;text-align: right;">客户手机:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9" style="float: left;">
|
|
|
+ <input type="text" class="input-text" value="" placeholder="填写客户手机" id="phone" name="phone" >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1" style="float: left;text-align: right;">短信签名:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9" style="float: left;">
|
|
|
+ <span class="select-box">
|
|
|
+ <select class="select" id="smsSignatureId" name="smsSignatureId" >
|
|
|
+ <#list signatures as signature>
|
|
|
+ <option value="${signature.smsSignatureId}" >${signature.smsSignatureInfo}</option>
|
|
|
+ </#list>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-1 col-sm-1"style="float: left;text-align: right;">短信模板:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9" style="float: left;">
|
|
|
+ <span class="select-box">
|
|
|
+ <select class="select" id="templateId">
|
|
|
+ <#list templates as template>
|
|
|
+ <option value="${template.smsTemplateId}" >${template.smsTemplateInfo}</option>
|
|
|
+ </#list>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ <span id="spanid" style="color: #D6E6DA">${templatesOne!''}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1"style="float: left;text-align: right;">短信内容:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9"style="float: left;">
|
|
|
+ <textarea name="smsTemplateInfo" id="smsTemplateInfo" cols="" rows="2" class="textarea">${templatesOne!''}</textarea>
|
|
|
+ <span id="spanidtwo" style="color: #D6E6DA">${templatesDesc!''}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1"style="float: left;text-align: right;"></label>
|
|
|
+ <div class="formControls col-5 col-sm-5"style="float: left;">
|
|
|
+ <button class="btn btn-block btn-primary size-XL" type="button" onclick="send();">确认发送</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+</article>
|
|
|
+
|
|
|
+<script type="text/javascript">
|
|
|
+ var url_path = "${path}";
|
|
|
+</script>
|
|
|
+<#--时间控件-->
|
|
|
+<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
+
|
|
|
+
|
|
|
+<script type="text/javascript">
|
|
|
+ $("#smsSignatureId").change(function (){
|
|
|
+ $.ajax({
|
|
|
+ type:'POST',
|
|
|
+ url: '${path}/admin/salesOrder/get_templates',
|
|
|
+ data:{
|
|
|
+ "smsSignatureId" : $("#smsSignatureId").val()
|
|
|
+ },
|
|
|
+ dataType: 'json',
|
|
|
+ success:function(res) {
|
|
|
+ if(res.resultCode == 200 && res.returnCode == 200){
|
|
|
+ $("#templateId").empty();
|
|
|
+ $(res.returnMsg.templates).each(function (){
|
|
|
+ $("#templateId").append("<option value='"+ this.smsTemplateId +"'>"+ this.smsTemplateInfo +"</option>");
|
|
|
+
|
|
|
+ });
|
|
|
+ $("#spanid").html(res.returnMsg.templatesOne);
|
|
|
+ $("#smsTemplateInfo").html(res.returnMsg.templatesOne);
|
|
|
+ $("#smsTemplateInfo").val(res.returnMsg.templatesOne);
|
|
|
+ $("#spanidtwo").html(res.returnMsg.templatesDesc);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ function send() {
|
|
|
+ var phone = $("#phone").val();
|
|
|
+ var smsSignatureId = $("#smsSignatureId").val();
|
|
|
+ var smsTemplateInfo = $("#smsTemplateInfo").val();
|
|
|
+ //手机验证
|
|
|
+ if(phone == null || phone.length > 20){
|
|
|
+ layer.msg("手机号不能为空或格式错误",{icon: 5,time:3000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(smsTemplateInfo == null){
|
|
|
+ layer.msg("短信模板不能为空",{icon: 5,time:3000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ type:'POST',
|
|
|
+ url: '${path}/admin/salesOrder/send_afterSales_sms',
|
|
|
+ data:{
|
|
|
+ "phone" : phone,
|
|
|
+ "smsSignatureId" : smsSignatureId,
|
|
|
+ "smsTemplateInfo" : smsTemplateInfo
|
|
|
+ },
|
|
|
+ dataType: 'json',
|
|
|
+ success:function(res) {
|
|
|
+ if(res.resultCode == 200 && res.returnCode == 200){
|
|
|
+ layer.alert("发送成功!");
|
|
|
+ }else{
|
|
|
+ layer.alert("发送失败!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|