<%@ page language="java" pageEncoding="utf-8" isELIgnored="false"%>
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
|
<%@ include file="include/pagetop.jsp"%>
|
<!DOCTYPE html>
|
<html>
|
<head>
|
<%@ include file="include/head.jsp"%>
|
</head>
|
<body>
|
<%@ include file="include/loading.jsp"%>
|
<%-- <%@ include file="include/top.jsp"%> --%>
|
<%-- <%@ include file="include/menu_left.jsp"%> --%>
|
|
<!-- //////////////////////////////////////////////////////////////////////////// -->
|
<!-- START CONTENT -->
|
<div class="ifr-dody">
|
|
|
|
<!-- //////////////////////////////////////////////////////////////////////////// -->
|
<!-- START CONTAINER -->
|
<div class="ifr-con">
|
<h3>用户活动</h3>
|
<%@ include file="include/alert.jsp"%>
|
<!-- //////////////////////////////////////////////////////////////////////////// -->
|
<!-- START queryForm -->
|
<form action="<%=basePath%>normal/adminActivityOrderAction!list.action"
|
method="post" id="queryForm">
|
<input type="hidden" name="pageNo" id="pageNo"/>
|
<input type="hidden" name="name_para" id="name_para"/>
|
</form>
|
<!-- END queryForm -->
|
<!-- //////////////////////////////////////////////////////////////////////////// -->
|
<div class="row">
|
<div class="col-md-12 col-lg-12">
|
<div class="panel panel-default">
|
|
<div class="panel-title">
|
修改用户活动
|
<ul class="panel-tools">
|
<li><a class="icon minimise-tool"><i
|
class="fa fa-minus"></i></a></li>
|
<li><a class="icon expand-tool"><i class="fa fa-expand"></i></a></li>
|
</ul>
|
</div>
|
|
<div class="panel-body">
|
<form class="form-horizontal"
|
action="<%=basePath%>normal/adminActivityOrderAction!update.action"
|
method="post" name="mainForm" id="mainForm">
|
<input type="hidden" name="id" id="id" value = "${id}"/>
|
<input type="hidden" name="title_img" id="title_img" value = "${title_img}"/>
|
<input type="hidden" name="content_img" id="content_img" value = "${content_img}"/>
|
|
<h5>基础信息</h5>
|
<div class="form-group">
|
<label class="col-sm-2 control-label form-label">用户或代理商UID(*)</label>
|
<div class="col-sm-3">
|
<input id="usercode" name="usercode" class="form-control" readonly="readonly" value = "${usercode}"/>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-2 control-label form-label">活动标题文本(*)</label>
|
<div class="col-sm-3">
|
<input id="title" name="title" class="form-control" value = "${title}"/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label form-label">活动标题图片(*)</label>
|
|
<div class="col-sm-3">
|
<input type="file" id="fileName" name="fileName" onchange="upload();"
|
style="position:absolute;opacity:0;" value = "${fileName}">
|
<label for="fileName">
|
|
<img width="90px" height="90px" id="show_img"
|
|
src="<%=base%>/image/add.png" alt="点击上传图片" />
|
|
</label>
|
|
</div>
|
</div>
|
<div class="form-group">
|
<label for="input002" class="col-sm-2 control-label form-label">活动内容文本</label>
|
<div class="col-sm-5">
|
|
<input id="content" name="content" class="form-control input-lg"
|
rows="3" cols="10" value = "${content}"/>
|
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-2 control-label form-label">活动内容图片(*)</label>
|
|
<div class="col-sm-3">
|
<input type="file" id="fileName_content" name="fileName_content"
|
value = "${fileName_content}" onchange="upload_content();" style="position:absolute;opacity:0;">
|
<label for="fileName_content">
|
|
<img width="90px" height="90px" id="show_img_content"
|
|
src="<%=base%>/image/add.png" alt="点击上传图片" />
|
|
</label>
|
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label form-label">活动准入结束时间(*)</label>
|
<div class="col-sm-2">
|
|
<input id="endtime_update" name="endtime_update" class="form-control" value = "${endtime_update}"/>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-2 control-label form-label">活动奖励派发时间(*)</label>
|
<div class="col-sm-2">
|
<input id="sendtime_update" name="sendtime_update" class="form-control" value = "${sendtime_update}"/>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-2 control-label form-label">首页弹出活动</label>
|
<div class="col-sm-3">
|
<div class="input-group">
|
|
<select id="index" name = "index" class="form-control" >
|
<option value="true" <c:if test="${index == 'true'}">selected="true"</c:if> >开启</option>
|
<option value="false" <c:if test="${index == 'false'}">selected="true"</c:if> >关闭</option>
|
</select>
|
</div>
|
</div>
|
</div>
|
|
|
<h5>交易信息</h5>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label form-label">用户USDT达标数量(*)</label>
|
<div class="col-sm-3">
|
<input id="usdt" name="usdt" class="form-control" value = "${usdt}"/>
|
</div>
|
</div>
|
|
<div class="form-group">
|
<label class="col-sm-2 control-label form-label">奖励ETH数量(*)</label>
|
<div class="col-sm-3">
|
<input id="eth" name="eth" class="form-control" value = "${eth}"/>
|
</div>
|
</div>
|
|
|
<div class="col-sm-1">
|
<!-- 模态框(Modal) -->
|
<div class="modal fade" id="modal_succeeded" tabindex="-1"
|
role="dialog" aria-labelledby="myModalLabel"
|
aria-hidden="true">
|
<div class="modal-dialog">
|
<div class="modal-content" style="width: 350px;">
|
<div class="modal-header">
|
<button type="button" class="close"
|
data-dismiss="modal" aria-hidden="true">×</button>
|
<h4 class="modal-title" id="myModalLabel">登录人资金密码</h4>
|
</div>
|
<div class="modal-body">
|
<div class="" >
|
<input id="login_safeword" type="password" name="login_safeword"
|
class="login_safeword" placeholder="请输入登录人资金密码" style="width: 250px;">
|
</div>
|
</div>
|
<div class="modal-footer" style="margin-top: 0;">
|
<button type="button" class="btn "
|
data-dismiss="modal">关闭</button>
|
<button id="sub" type="submit"
|
class="btn btn-default" >确认</button>
|
</div>
|
</div>
|
<!-- /.modal-content -->
|
</div>
|
<!-- /.modal -->
|
</div>
|
</div>
|
|
|
<div class="form-group">
|
<div class="col-sm-offset-2 col-sm-10">
|
<a href="javascript:goUrl(${pageNo})"
|
class="btn">取消</a> <a href="javascript:submit()"
|
class="btn btn-default">保存</a>
|
</div>
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
</div>
|
</div>
|
|
|
</div>
|
<!-- END CONTAINER -->
|
<!-- //////////////////////////////////////////////////////////////////////////// -->
|
|
|
<%@ include file="include/footer.jsp"%>
|
|
|
</div>
|
<!-- End Content -->
|
<!-- //////////////////////////////////////////////////////////////////////////// -->
|
|
|
|
|
|
<%@ include file="include/js.jsp"%>
|
|
|
<script type="text/javascript">
|
|
function submit() {
|
$('#modal_succeeded').modal("show");
|
}
|
|
//初始化执行一次
|
setTimeout(function() {
|
start();
|
}, 100);
|
|
function start(){
|
var img = $("#title_img").val();
|
var show_img = document.getElementById('show_img');
|
show_img.src="<%=base%>wap/public/showimg!showImg.action?imagePath="+img;
|
|
var img_content = $("#content_img").val();
|
var show_img_content = document.getElementById('show_img_content');
|
show_img_content.src="<%=base%>wap/public/showimg!showImg.action?imagePath="+img_content;
|
}
|
|
$.fn.datetimepicker.dates['zh'] = {
|
days : [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日" ],
|
daysShort : [ "日", "一", "二", "三", "四", "五", "六", "日" ],
|
daysMin : [ "日", "一", "二", "三", "四", "五", "六", "日" ],
|
months : [ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月",
|
"十月", "十一月", "十二月" ],
|
monthsShort : [ "一", "二", "三", "四", "五", "六", "七", "八", "九", "十",
|
"十一", "十二" ],
|
meridiem : [ "上午", "下午" ],
|
//suffix: ["st", "nd", "rd", "th"],
|
today : "今天",
|
clear : "清空"
|
};
|
$('#endtime_update').datetimepicker({
|
format : 'yyyy-mm-dd hh:ii:00',
|
minuteStep:1,
|
language : 'zh',
|
weekStart : 1,
|
todayBtn : 1,
|
autoclose : 1,
|
todayHighlight : 1,
|
startView : 2,
|
clearBtn : true
|
// minView : 2,
|
// pickerPosition: "bottom-left"
|
});
|
|
|
$('#sendtime_update').datetimepicker({
|
format : 'yyyy-mm-dd hh:ii:00',
|
minuteStep:1,
|
language : 'zh',
|
weekStart : 1,
|
todayBtn : 1,
|
autoclose : 1,
|
todayHighlight : 1,
|
startView : 2,
|
clearBtn : true
|
// minView : 2,
|
// pickerPosition: "bottom-left"
|
});
|
|
|
function upload(){
|
var fileReader = new FileReader();
|
var formData = new FormData();
|
var file = document.getElementById('fileName').files[0];
|
formData.append("file", file);
|
$.ajax({
|
type: "POST",
|
url: "<%=basePath%>normal/uploadimg!execute.action?random="
|
+ Math.random(),
|
data: formData,
|
dataType: "json",
|
contentType: false,
|
processData: false,
|
success : function(data) {
|
console.log(data);
|
$("#title_img").val(data.data)
|
var show_img = document.getElementById('show_img');
|
show_img.src="<%=base%>wap/public/showimg!showImg.action?imagePath="+data.data;
|
|
},
|
error : function(XMLHttpRequest, textStatus,
|
errorThrown) {
|
console.log("请求错误");
|
}
|
});
|
|
}
|
|
function upload_content(){
|
var fileReader = new FileReader();
|
var formData = new FormData();
|
var file = document.getElementById('fileName_content').files[0];
|
formData.append("file", file);
|
$.ajax({
|
type: "POST",
|
url: "<%=basePath%>normal/uploadimg!execute.action?random="
|
+ Math.random(),
|
data: formData,
|
dataType: "json",
|
contentType: false,
|
processData: false,
|
success : function(data) {
|
console.log(data);
|
$("#content_img").val(data.data)
|
var show_img = document.getElementById('show_img_content');
|
show_img.src="<%=base%>wap/public/showimg!showImg.action?imagePath="+data.data;
|
|
},
|
error : function(XMLHttpRequest, textStatus,
|
errorThrown) {
|
console.log("请求错误");
|
}
|
});
|
|
}
|
|
</script>
|
|
|
</body>
|
</html>
|