2021-03-30 09:45:17 +08:00
|
|
|
|
<!DOCTYPE html>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
2021-03-30 09:45:17 +08:00
|
|
|
|
<head>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<th:block th:include="include :: header('创建活动')"/>
|
|
|
|
|
|
<th:block th:include="include :: datetimepicker-css"/>
|
|
|
|
|
|
<th:block th:include="include :: jquery-smartwizard-css"/>
|
2021-04-06 14:39:12 +08:00
|
|
|
|
<th:block th:include="include :: jasny-bootstrap-css"/>
|
2021-03-30 09:45:17 +08:00
|
|
|
|
</head>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<style type='text/css'>
|
2021-04-06 14:05:54 +08:00
|
|
|
|
.rightarea {
|
2021-04-02 15:00:12 +08:00
|
|
|
|
float: left;
|
|
|
|
|
|
width: 40%;
|
|
|
|
|
|
height: 300px;
|
|
|
|
|
|
}
|
2021-04-06 14:05:54 +08:00
|
|
|
|
|
|
|
|
|
|
.leftarea {
|
2021-04-02 15:00:12 +08:00
|
|
|
|
float: left;
|
|
|
|
|
|
width: 50%;
|
|
|
|
|
|
height: 300px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sw > .tab-content {
|
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
}
|
2021-04-06 14:39:12 +08:00
|
|
|
|
|
2021-04-02 15:00:12 +08:00
|
|
|
|
.col-sm-6 {
|
2021-04-08 10:24:28 +08:00
|
|
|
|
width: 50%;
|
2021-04-02 15:00:12 +08:00
|
|
|
|
}
|
2021-04-06 14:39:12 +08:00
|
|
|
|
|
|
|
|
|
|
.drawNamePic {
|
|
|
|
|
|
text-align: center;
|
2021-04-02 15:00:12 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 100px;
|
|
|
|
|
|
font-size: 37px;
|
|
|
|
|
|
left: 0px;
|
2021-04-06 14:39:12 +08:00
|
|
|
|
color: #F00;
|
2021-04-02 15:00:12 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
2021-04-06 14:39:12 +08:00
|
|
|
|
|
|
|
|
|
|
.drawDescribePic {
|
|
|
|
|
|
text-align: center;
|
2021-04-02 15:00:12 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 150px;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
left: 0px;
|
2021-04-06 14:39:12 +08:00
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.drawbtnPic {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 70%;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
left: 0px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.drawbtnPic2 {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 78%;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
left: 0px;
|
2021-04-02 15:00:12 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
|
|
|
|
|
.btnSelect {
|
2021-04-08 10:24:28 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
background-color: #4CAF50;
|
2021-04-08 17:01:23 +08:00
|
|
|
|
color: white;
|
|
|
|
|
|
padding: 15px 32px;
|
2021-04-08 10:24:28 +08:00
|
|
|
|
display: inline-block;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
}
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
2021-04-08 10:42:02 +08:00
|
|
|
|
/* 配置收集信息*/
|
|
|
|
|
|
.drawTotalPri {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 10%;
|
|
|
|
|
|
font-size: 37px;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
|
|
|
|
|
.drawDescribePri {
|
2021-04-08 10:42:02 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 25%;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
|
|
|
|
|
.drawTextPri {
|
2021-04-08 10:42:02 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
|
|
|
|
|
.drawText2Pri {
|
2021-04-08 10:42:02 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 55%;
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 80%;
|
|
|
|
|
|
}
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
|
|
|
|
|
.drawText3Pri {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 60%;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-04-08 10:42:02 +08:00
|
|
|
|
.drawbtnPri {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 88%;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
left: 0px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
/* 配置分享信息*/
|
2021-04-08 10:42:02 +08:00
|
|
|
|
.drawShareTitlePri {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 40%;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
left: 28%;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.drawShareDescribePri {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
|
left: 25%;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
2021-04-08 10:42:02 +08:00
|
|
|
|
.drawShareImgPic {
|
2021-04-08 17:01:23 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
font-size: 37px;
|
|
|
|
|
|
left: 35%;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.drawShareImg2Pic {
|
2021-04-08 10:42:02 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 40%;
|
|
|
|
|
|
font-size: 37px;
|
|
|
|
|
|
left: 30%;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
/* 关注二维码*/
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
.drawCodeImgPic {
|
2021-04-08 10:42:02 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
font-size: 37px;
|
|
|
|
|
|
left: 0%;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
|
|
|
|
|
.drawQrCodePri {
|
2021-04-08 10:42:02 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 70%;
|
|
|
|
|
|
font-size: 25px;
|
|
|
|
|
|
left: 0%;
|
|
|
|
|
|
color: #F00;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</style>
|
2021-03-30 09:45:17 +08:00
|
|
|
|
<body class="white-bg">
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
|
|
|
|
<form class="form-horizontal m" id="form-info-add">
|
|
|
|
|
|
|
|
|
|
|
|
<div id="smartwizard">
|
|
|
|
|
|
<ul class="nav">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<li class="nav-item">
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<a class="nav-link" href="#step-1"> 基本信息 </a>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
|
<a class="nav-link" href="#step-2"> 选择UI模板 </a>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
|
<a class="nav-link" href="#step-3"> 配置展现内容 </a>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
|
<a class="nav-link" href="#step-4"> 选择玩法 </a>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li class="nav-item">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
<a class="nav-link" href="#step-5"> 配置收集信息 </a>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</li>
|
|
|
|
|
|
<li class="nav-item">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
<a class="nav-link" href="#step-6"> 配置分享信息 </a>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</li>
|
|
|
|
|
|
<li class="nav-item">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
<a class="nav-link" href="#step-7"> 关注二维码 </a>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
<div class="tab-content" style="height: 610px;">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<div id="step-1" class="tab-pane" role="tabpanel" aria-labelledby="step-1">
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<div>
|
|
|
|
|
|
<form class="form form-horizontal m-t">
|
|
|
|
|
|
<h4 class="form-header h4">第1步-基本信息</h4>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">活动名称:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<input name="drawInfo-drawname" placeholder="活动名称" class="form-control"
|
|
|
|
|
|
type="text" maxlength="30">
|
2021-04-02 09:31:03 +08:00
|
|
|
|
</div>
|
2021-04-02 09:28:28 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">状态:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<select name="drawInfo-status" class="form-control"
|
|
|
|
|
|
th:with="type=${@dict.getType('start_stop')}">
|
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
|
|
|
|
|
th:value="${dict.dictValue}"></option>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</select>
|
2021-04-02 09:31:03 +08:00
|
|
|
|
</div>
|
2021-04-02 09:28:28 +08:00
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">消耗对象:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<select name="drawInfo-expeno" class="form-control"
|
|
|
|
|
|
th:with="type=${@dict.getType('expeType')}">
|
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
|
|
|
|
|
th:value="${dict.dictValue}"></option>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</select>
|
2021-04-02 09:31:03 +08:00
|
|
|
|
</div>
|
2021-04-02 09:28:28 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">消耗价值:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<input name="drawInfo-expenovalue" placeholder="消耗价值" class="form-control"
|
|
|
|
|
|
type="text" maxlength="30">
|
2021-04-02 09:31:03 +08:00
|
|
|
|
</div>
|
2021-04-02 09:28:28 +08:00
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">开始时间:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<div class="input-group date">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<input name="drawInfo-starttime" class="form-control"
|
|
|
|
|
|
placeholder="yyyy-MM-dd HH:mm:ss" type="text">
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
2021-04-02 09:31:03 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 09:28:28 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<label class="col-sm-4 control-label is-required">结束时间:</label>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
<div class="col-sm-8">
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<div class="input-group date">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<input name="drawInfo-endtime" class="form-control"
|
|
|
|
|
|
placeholder="yyyy-MM-dd HH:mm:ss" type="text">
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
|
|
|
|
</div>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="step-2" class="tab-pane" role="tabpanel" aria-labelledby="step-2">
|
|
|
|
|
|
<div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<h4 class="form-header h4">第2步-选择UI模板</h4>
|
|
|
|
|
|
<div th:with="type=${@dict.getType('activityTemplate')}">
|
|
|
|
|
|
<a class="btn btn-rounded" href="#" th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
|
|
|
|
|
th:value="${dict.dictValue}" onclick="activityTemplate(this)"></a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<h4 class="form-header h4">字典表显示字段</h4>
|
|
|
|
|
|
<img src="../../img/1.jpg" width="104" height="142">
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="step-3" class="tab-pane" role="tabpanel" aria-labelledby="step-3">
|
|
|
|
|
|
<div style="height: 610px">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<div class="leftarea">
|
|
|
|
|
|
<h4 class="form-header h4">第3步-配置展现内容</h4>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">活动标题:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="actTitle" name="actPageConfigGuide-actTitle" placeholder="活动名称"
|
|
|
|
|
|
class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePic(this)">
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">活动描述:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="actDesc" name="actPageConfigGuide-actDesc" placeholder="活动描述"
|
|
|
|
|
|
class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePic(this)">
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
2021-04-06 14:05:54 +08:00
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">背景图片:</label>
|
2021-04-06 14:05:54 +08:00
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<div class="fileinput fileinput-new" data-provides="fileinput">
|
|
|
|
|
|
<div class="fileinput-preview thumbnail" data-trigger="fileinput"
|
|
|
|
|
|
style="width: 200px; height: 150px;"></div>
|
|
|
|
|
|
<div>
|
2021-04-06 14:39:12 +08:00
|
|
|
|
<span class="btn btn-white btn-file"><span
|
|
|
|
|
|
class="fileinput-new">选择图片</span><span class="fileinput-exists">更改</span>
|
2021-04-08 14:40:47 +08:00
|
|
|
|
<input type="file" id="pic" name="actPageConfigGuide-bgImg"></span>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<a href="#" class="btn btn-white fileinput-exists"
|
|
|
|
|
|
data-dismiss="fileinput">清除</a>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<input id="picval" type="hidden" name="actPageConfigGuide-bgImg" value="">
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">自定义按钮1:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="btn1" name="actPageConfigGuide-btnText" placeholder="自定义按钮1"
|
|
|
|
|
|
class="form-control"
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePic(this)">
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">按钮1跳转链接:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input name="actPageConfigGuide-btnLink" placeholder="按钮1跳转链接"
|
|
|
|
|
|
class="form-control"
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
maxlength="30">
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">自定义按钮2:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="btn2" name="actPageConfigGuide-btnText2" placeholder="自定义按钮2"
|
|
|
|
|
|
class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePic(this)">
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">按钮2跳转链接:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input name="actPageConfigGuide-btnLink2" placeholder="按钮2跳转链接"
|
|
|
|
|
|
class="form-control"
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
maxlength="30">
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="rightarea">
|
|
|
|
|
|
<h4 class="form-header h4">效果图</h4>
|
|
|
|
|
|
<div style="position: relative;text-align:center">
|
|
|
|
|
|
<img id="imgPic" src="../../img/1.jpg" width="380" height="500">
|
|
|
|
|
|
<span class="drawNamePic" id="actTitlePic">活动标题</span>
|
|
|
|
|
|
<span class="drawDescribePic" id="actDescPic">活动描述</span>
|
|
|
|
|
|
<span class="drawbtnPic">
|
2021-04-06 14:39:12 +08:00
|
|
|
|
<a id="btn1Pic" class="btn btn-success btn-xs ">自定义按钮1</a>
|
|
|
|
|
|
</span>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<span class="drawbtnPic2">
|
2021-04-06 14:39:12 +08:00
|
|
|
|
<a id="btn2Pic" class="btn btn-success btn-xs ">自定义按钮2</a>
|
|
|
|
|
|
</span>
|
2021-04-06 14:05:54 +08:00
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div id="step-4" class="tab-pane" role="tabpanel" aria-labelledby="step-4">
|
2021-04-08 10:24:28 +08:00
|
|
|
|
<h4 class="form-header h4">第4步-选择玩法</h4>
|
|
|
|
|
|
<div th:with="type=${@dict.getType('activityPlay')}">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<a class="btn btn-rounded" href="#" th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
|
|
|
|
|
th:value="${dict.dictValue}" onclick="activityTemplate(this)"></a>
|
2021-04-08 10:24:28 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<img src="../../img/1.jpg" width="104" height="142">
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<h4 class="form-header h4">活动规则</h4>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">首次中奖配置:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<select name="drawRule-firstflag" id="FIRSTFLAG" onchange="firstflag()"
|
|
|
|
|
|
class="form-control"
|
2021-04-02 15:00:12 +08:00
|
|
|
|
th:with="type=${@dict.getType('is_boolean')}">
|
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
|
|
|
|
|
th:value="${dict.dictValue}"></option>
|
|
|
|
|
|
</select>
|
2021-04-02 09:28:28 +08:00
|
|
|
|
</div>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">首次中奖奖品:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<select name="drawRule-firstawardprize" class="form-control" id="firstawardprize"
|
|
|
|
|
|
disabled>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</select>
|
2021-04-02 09:28:28 +08:00
|
|
|
|
</div>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">时间段抽奖配置:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<select name="drawRule-dailyflag" id="DAILYFLAG" onchange="dailyflag()"
|
|
|
|
|
|
class="form-control"
|
2021-04-02 15:00:12 +08:00
|
|
|
|
th:with="type=${@dict.getType('is_boolean')}">
|
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
|
|
|
|
|
th:value="${dict.dictValue}"></option>
|
|
|
|
|
|
</select>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">时间段限制次数:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 16:20:54 +08:00
|
|
|
|
<input name="drawRule-dailynumber" id="dailynumber" placeholder="时间段限制次数"
|
2021-04-02 15:00:12 +08:00
|
|
|
|
class="form-control" type="text" maxlength="30" disabled>
|
2021-04-02 09:28:28 +08:00
|
|
|
|
</div>
|
2021-03-30 09:45:17 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">抽奖限制开始时间:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<div class="input-group date">
|
2021-04-08 16:20:54 +08:00
|
|
|
|
<input name="drawRule-dailystarttime" id="dailystarttime" class="form-control"
|
2021-04-02 15:00:12 +08:00
|
|
|
|
placeholder="HH:mm:ss" type="text" disabled>
|
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">抽奖限制结束时间:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<div class="input-group date">
|
2021-04-08 16:20:54 +08:00
|
|
|
|
<input name="drawRule-dailyendtime" id="dailyendtime" class="form-control"
|
2021-04-02 15:00:12 +08:00
|
|
|
|
placeholder="HH:mm:ss" type="text" disabled>
|
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-03-30 09:45:17 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
2021-03-30 09:45:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">抽奖必中配置:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 16:20:54 +08:00
|
|
|
|
<select name="drawRule-willdrawflag" id="WILLDRAWFLAG" onchange="willdrawflag()"
|
2021-04-02 15:00:12 +08:00
|
|
|
|
class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
|
|
|
|
|
th:value="${dict.dictValue}"></option>
|
|
|
|
|
|
</select>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">抽奖必中计数:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<input name="drawRule-willdrawawardnumber" id="willdrawawardnumber"
|
|
|
|
|
|
placeholder="抽奖必中计数"
|
2021-04-02 15:00:12 +08:00
|
|
|
|
class="form-control" type="text" maxlength="30" disabled>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-03-30 09:45:17 +08:00
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
2021-03-30 09:45:17 +08:00
|
|
|
|
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">抽奖必中奖品:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<select name="drawRule-willdrawawardprize" class="form-control"
|
|
|
|
|
|
id="willdrawawardprize"
|
2021-04-02 15:00:12 +08:00
|
|
|
|
disabled>
|
|
|
|
|
|
</select>
|
2021-04-02 10:38:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-03-30 09:45:17 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
<div id="step-5" class="tab-pane" role="tabpanel" aria-labelledby="step-5">
|
|
|
|
|
|
<div style="height: 610px">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<div class="leftarea">
|
|
|
|
|
|
<h4 class="form-header h4">第五步-配置收集信息</h4>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">标题:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="title" name="actPageConfigUserinfo-title" placeholder="例如:客户姓名"
|
|
|
|
|
|
class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePri(this)">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">描述:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="describe" name="actPageConfigUserinfo-description"
|
|
|
|
|
|
placeholder="例如:客户手机号" class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePri(this)">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">协议内容:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="agreement" name="actPageConfigUserinfo-agreement" height="100px"
|
|
|
|
|
|
class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePri(this)">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">背景图片:</label>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fileinput fileinput-new" data-provides="fileinput">
|
|
|
|
|
|
<div class="fileinput-preview thumbnail" data-trigger="fileinput"
|
|
|
|
|
|
style="width: 200px; height: 150px;"></div>
|
|
|
|
|
|
<div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
<span class="btn btn-white btn-file"><span
|
|
|
|
|
|
class="fileinput-new">选择图片</span><span class="fileinput-exists">更改</span>
|
2021-04-08 14:40:47 +08:00
|
|
|
|
<input type="file" id="picture" name="actPageConfigUserinfo-bgImg"></span>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<a href="#" class="btn btn-white fileinput-exists"
|
|
|
|
|
|
data-dismiss="fileinput">清除</a>
|
|
|
|
|
|
<input id="pictureval" type="hidden" name="actPageConfigUserinfo-bgImg"
|
|
|
|
|
|
value="">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">自定义按钮:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="btn" name="actPageConfigUserinfo-btnText" placeholder="自定义按钮"
|
|
|
|
|
|
class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePri(this)">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">按钮跳转链接:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input name="actPageConfigUserinfo-btnLink" placeholder="按钮跳转链接"
|
|
|
|
|
|
class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePri(this)">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">客户必填信息:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<label class="checkbox-inline">
|
|
|
|
|
|
<input type="checkbox" name="actPageConfigUserinfo-userName" id="name"
|
|
|
|
|
|
onclick="updateText(this)">姓名</input>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<label class="checkbox-inline">
|
|
|
|
|
|
<input type="checkbox" name="actPageConfigUserinfo-phone" id="phone"
|
|
|
|
|
|
onclick="updateText(this)">手机号</input>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<label class="checkbox-inline">
|
|
|
|
|
|
<input type="checkbox" name="actPageConfigUserinfo-gender" id="sex"
|
|
|
|
|
|
onclick="updateText(this)">性别</input>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<label class="checkbox-inline">
|
|
|
|
|
|
<input type="checkbox" name="actPageConfigUserinfo-address" id="address"
|
|
|
|
|
|
onclick="updateText(this)">地址</input>
|
|
|
|
|
|
</label>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label ">代理人信息:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<label class="checkbox-inline">
|
|
|
|
|
|
<input type="checkbox" name="actPageConfigUserinfo-agentName"
|
|
|
|
|
|
id="agentName" onclick="updateText(this)">代理人姓名</input>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<label class="checkbox-inline">
|
|
|
|
|
|
<input type="checkbox" name="actPageConfigUserinfo-agentMobile"
|
|
|
|
|
|
id="agentPhone" onclick="updateText(this)">代理人手机号</input>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<label class="checkbox-inline">
|
|
|
|
|
|
<input type="checkbox" name="actPageConfigUserinfo-agentGender"
|
|
|
|
|
|
id="agentSex" onclick="updateText(this)">代理人性别</input>
|
|
|
|
|
|
</label>
|
|
|
|
|
|
<label class="checkbox-inline">
|
|
|
|
|
|
<input type="checkbox" name="actPageConfigUserinfo-agentNo"
|
|
|
|
|
|
id="agentNumber" onclick="updateText(this)">代理人工号</input>
|
|
|
|
|
|
</label>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<div class="rightarea">
|
|
|
|
|
|
<h4 class="form-header h4">效果图</h4>
|
|
|
|
|
|
<div style="position: relative;text-align:center">
|
|
|
|
|
|
<img id="imgPri" src="../../img/shj.jpg" width="380" height="500">
|
|
|
|
|
|
<span class="drawTotalPri" id="titlePri">标题</span>
|
|
|
|
|
|
<span class="drawDescribePri" id="describePri">描述</span>
|
|
|
|
|
|
<span class="drawTextPri">请填写您的基本信息</span>
|
|
|
|
|
|
<div class="drawText2Pri">
|
|
|
|
|
|
<input type="checkbox">
|
|
|
|
|
|
<span id="agreementPri">信息页文本协议提示</span>
|
|
|
|
|
|
</div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<div class="drawText3Pri">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<input placeholder="姓名" type="hidden" id="namePri">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<input placeholder="手机号" type="hidden" id="phonePri">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<input placeholder="性别" height="10px" type="hidden" id="sexPri">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<input placeholder="地址" type="hidden" id="addressPri">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<input placeholder="代理人姓名" type="hidden" id="agentNamePri">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<input placeholder="代理人手机号" type="hidden" id="agentPhonePri">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<input placeholder="代理人性别" type="hidden" id="agentSexPri">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<input placeholder="代理人地址" type="hidden" id="agentNumberPri">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<span class="drawbtnPri">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
<a id="btnPri" class="btn btn-success btn-xs ">自定义按钮</a>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div id="step-6" class="tab-pane" role="tabpanel" aria-labelledby="step-6">
|
|
|
|
|
|
<div style="height: 610px">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<div class="leftarea">
|
|
|
|
|
|
<h4 class="form-header h4">第六步-配置分享信息</h4>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">分享连接:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="shareConnect" name="actConfig-shareLink"
|
|
|
|
|
|
placeholder="例如:http://XX" class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePri(this)">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">分享标题:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="shareTitle" name="actConfig-shareTitle"
|
|
|
|
|
|
placeholder="例如:2021XX客户节" class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePri(this)">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">分享描述:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="shareDescribe" name="actConfig-shareDesc"
|
|
|
|
|
|
placeholder="例如:参与活动,赢大奖" class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePri(this)">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">分享图片:</label>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fileinput fileinput-new" data-provides="fileinput">
|
|
|
|
|
|
<div class="fileinput-preview thumbnail" data-trigger="fileinput"
|
|
|
|
|
|
style="width: 200px; height: 150px;"></div>
|
|
|
|
|
|
<div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
<span class="btn btn-white btn-file"><span
|
|
|
|
|
|
class="fileinput-new">选择图片</span><span class="fileinput-exists">更改</span>
|
2021-04-08 14:40:47 +08:00
|
|
|
|
<input type="file" id="shareImg" name="actConfig-shareImg"></span>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<a href="#" class="btn btn-white fileinput-exists"
|
|
|
|
|
|
data-dismiss="fileinput">清除</a>
|
|
|
|
|
|
<input id="shareImgval" type="hidden" name="actConfig-shareImg" value="">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="rightarea">
|
|
|
|
|
|
<h4 class="form-header h4">效果图</h4>
|
|
|
|
|
|
<div style="height: 210px">
|
|
|
|
|
|
<div class="drawShareImg2Pic">
|
|
|
|
|
|
<img id="ss" src="../../img/shj.jpg" width="254" height="142">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<div class="drawShareImgPic">
|
|
|
|
|
|
<img id="shareImgPic" src="../../img/shj.jpg" width="50" height="50">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<span class="drawShareTitlePri" id="shareTitlePri">中国人寿举办活动</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<span class="drawShareDescribePri" id="shareDescribePri">分享必得奖品</span>
|
|
|
|
|
|
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div id="step-7" class="tab-pane" role="tabpanel" aria-labelledby="step-7">
|
|
|
|
|
|
<div style="height: 610px">
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<div class="leftarea">
|
|
|
|
|
|
<h4 class="form-header h4">第七步-关注二维码</h4>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">关注二维码描述:</label>
|
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
|
<input id="qrCode" name="actPageConfigSubscribe-qrCode"
|
|
|
|
|
|
placeholder="例如:扫描二维码参加活动" class="form-control" type="text"
|
|
|
|
|
|
maxlength="30" onkeyup="updatePri(this)">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">背景图片:</label>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="fileinput fileinput-new" data-provides="fileinput">
|
|
|
|
|
|
<div class="fileinput-preview thumbnail" data-trigger="fileinput"
|
|
|
|
|
|
style="width: 200px; height: 150px;"></div>
|
|
|
|
|
|
<div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
<span class="btn btn-white btn-file"><span
|
|
|
|
|
|
class="fileinput-new">选择图片</span><span class="fileinput-exists">更改</span>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<input type="file" id="backdropImg"
|
|
|
|
|
|
name="actPageConfigSubscribe-bgImg"></span>
|
|
|
|
|
|
<a href="#" class="btn btn-white fileinput-exists"
|
|
|
|
|
|
data-dismiss="fileinput">清除</a>
|
|
|
|
|
|
<input id="backdropImgval" type="hidden" name="actPageConfigSubscribe-bgImg"
|
|
|
|
|
|
value="">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
<label class="col-sm-4 control-label is-required">二维码图片:</label>
|
|
|
|
|
|
<div class="fileinput fileinput-new" data-provides="fileinput">
|
|
|
|
|
|
<div class="fileinput-preview thumbnail" data-trigger="fileinput"
|
|
|
|
|
|
style="width: 200px; height: 150px;"></div>
|
|
|
|
|
|
<div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
<span class="btn btn-white btn-file"><span
|
|
|
|
|
|
class="fileinput-new">选择图片</span><span class="fileinput-exists">更改</span>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<input type="file" id="qrCodeImg"
|
|
|
|
|
|
name="actPageConfigSubscribe-bgImg2"></span>
|
|
|
|
|
|
<a href="#" class="btn btn-white fileinput-exists"
|
|
|
|
|
|
data-dismiss="fileinput">清除</a>
|
|
|
|
|
|
<input id="qrCodeImgval" type="hidden" name="actPageConfigSubscribe-bgImg2"
|
|
|
|
|
|
value="">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="rightarea">
|
|
|
|
|
|
<h4 class="form-header h4">效果图</h4>
|
|
|
|
|
|
<div style="position: relative;text-align:center">
|
|
|
|
|
|
<img id="backdropImgPri" src="../../img/shj.jpg" width="400" height="400">
|
|
|
|
|
|
<div class="drawCodeImgPic">
|
|
|
|
|
|
<img id="qrCodeImgPri" src="../../img/shj.jpg" width="80" height="80">
|
|
|
|
|
|
</div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
<span class="drawQrCodePri" id="qrCodePri">关注二维码</span>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
2021-04-08 17:01:23 +08:00
|
|
|
|
</div>
|
2021-04-08 10:42:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2021-03-30 09:45:17 +08:00
|
|
|
|
</div>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<th:block th:include="include :: footer"/>
|
|
|
|
|
|
<th:block th:include="include :: datetimepicker-js"/>
|
|
|
|
|
|
<th:block th:include="include :: jquery-smartwizard-js"/>
|
2021-04-06 14:39:12 +08:00
|
|
|
|
<th:block th:include="include :: jasny-bootstrap-js"/>
|
2021-04-02 15:00:12 +08:00
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
|
var prefix = ctx + "activity/info"
|
|
|
|
|
|
|
|
|
|
|
|
/**获取奖品及信息列表*/
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
|
var job = "";
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
|
|
|
|
url: prefix + "/prizeInfo",
|
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
|
|
for (var i in data) {
|
|
|
|
|
|
if (job.length == 0) {
|
|
|
|
|
|
job = "<option value='" + data[i].prizecode + "'>" + data[i].prizename + "</option>"
|
|
|
|
|
|
} else {
|
|
|
|
|
|
job += "<option value='" + data[i].prizecode + "'>" + data[i].prizename + "</option>"
|
2021-03-30 09:45:17 +08:00
|
|
|
|
}
|
2021-04-02 15:00:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
$("#firstawardprize").html(job);
|
|
|
|
|
|
$("#willdrawawardprize").html(job);
|
|
|
|
|
|
},
|
|
|
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
|
|
|
alert(errorThrown);
|
|
|
|
|
|
},
|
|
|
|
|
|
async: false //false表示同步
|
2021-03-31 17:48:27 +08:00
|
|
|
|
}
|
2021-04-02 15:00:12 +08:00
|
|
|
|
);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#form-info-add").validate({
|
|
|
|
|
|
focusCleanup: true
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function submitHandler() {
|
|
|
|
|
|
var data = $("#form-info-add").serializeArray();
|
|
|
|
|
|
$.operate.saveModal(prefix + "/add", data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//时间段抽奖配置
|
|
|
|
|
|
function dailyflag() {
|
|
|
|
|
|
var DAILYFLAG = $("#DAILYFLAG").val();
|
|
|
|
|
|
if (DAILYFLAG == 1) {
|
|
|
|
|
|
$('#dailynumber').removeAttr('disabled');
|
|
|
|
|
|
$('#dailystarttime').removeAttr('disabled');
|
|
|
|
|
|
$('#dailyendtime').removeAttr('disabled');
|
|
|
|
|
|
} else if (DAILYFLAG == 0) {
|
|
|
|
|
|
$("#dailynumber").attr('disabled', 'true');
|
|
|
|
|
|
$("#dailystarttime").attr('disabled', 'true');
|
|
|
|
|
|
$("#dailyendtime").attr('disabled', 'true');
|
2021-03-31 17:48:27 +08:00
|
|
|
|
}
|
2021-04-02 15:00:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//抽奖必中配置
|
|
|
|
|
|
function willdrawflag() {
|
|
|
|
|
|
var WILLDRAWFLAG = $("#WILLDRAWFLAG").val();
|
|
|
|
|
|
if (WILLDRAWFLAG == 1) {
|
|
|
|
|
|
$('#willdrawawardnumber').removeAttr('disabled');
|
|
|
|
|
|
$('#willdrawawardprize').removeAttr('disabled');
|
|
|
|
|
|
} else if (WILLDRAWFLAG == 0) {
|
|
|
|
|
|
$("#willdrawawardnumber").attr('disabled', 'true');
|
|
|
|
|
|
$("#willdrawawardprize").attr('disabled', 'true');
|
2021-04-01 09:23:30 +08:00
|
|
|
|
|
2021-03-31 17:48:27 +08:00
|
|
|
|
}
|
2021-04-02 15:00:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//首次中奖配置
|
|
|
|
|
|
function firstflag() {
|
|
|
|
|
|
var FIRSTFLAG = $("#FIRSTFLAG").val();
|
|
|
|
|
|
if (FIRSTFLAG == 1) {
|
|
|
|
|
|
$('#firstawardprize').removeAttr('disabled');
|
|
|
|
|
|
} else if (FIRSTFLAG == 0) {
|
|
|
|
|
|
$("#firstawardprize").attr('disabled', 'true');
|
2021-03-31 17:48:27 +08:00
|
|
|
|
}
|
2021-03-30 09:45:17 +08:00
|
|
|
|
|
2021-04-02 15:00:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("input[name='STARTTIME']").datetimepicker({
|
|
|
|
|
|
weekStart: 1,
|
|
|
|
|
|
todayBtn: 1,
|
|
|
|
|
|
autoclose: 1,
|
|
|
|
|
|
todayHighlight: 1,
|
|
|
|
|
|
startView: 2,
|
|
|
|
|
|
forceParse: 0,
|
|
|
|
|
|
showMeridian: 1,
|
|
|
|
|
|
format: 'yyyy-mm-dd hh:ii:ss'
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("input[name='ENDTIME']").datetimepicker({
|
|
|
|
|
|
weekStart: 1,
|
|
|
|
|
|
todayBtn: 1,
|
|
|
|
|
|
autoclose: 1,
|
|
|
|
|
|
todayHighlight: 1,
|
|
|
|
|
|
startView: 2,
|
|
|
|
|
|
forceParse: 0,
|
|
|
|
|
|
showMeridian: 1,
|
|
|
|
|
|
format: 'yyyy-mm-dd hh:ii:ss'
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("input[name='DAILYSTARTTIME']").datetimepicker({
|
|
|
|
|
|
weekStart: 1,
|
|
|
|
|
|
todayBtn: 1,
|
|
|
|
|
|
autoclose: 1,
|
|
|
|
|
|
todayHighlight: 1,
|
|
|
|
|
|
startView: 2,
|
|
|
|
|
|
forceParse: 0,
|
|
|
|
|
|
showMeridian: 1,
|
|
|
|
|
|
format: 'hh:ii:ss'
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("input[name='DAILYENDTIME']").datetimepicker({
|
|
|
|
|
|
weekStart: 1,
|
|
|
|
|
|
todayBtn: 1,
|
|
|
|
|
|
autoclose: 1,
|
|
|
|
|
|
todayHighlight: 1,
|
|
|
|
|
|
startView: 2,
|
|
|
|
|
|
forceParse: 0,
|
|
|
|
|
|
showMeridian: 1,
|
|
|
|
|
|
format: 'hh:ii:ss'
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
|
// 工具栏按钮
|
|
|
|
|
|
var btnFinish = $('<a id="btn-finish"></a>').text('完成')
|
|
|
|
|
|
.addClass('btn btn-info')
|
|
|
|
|
|
.on('click', function () {
|
2021-04-08 13:42:34 +08:00
|
|
|
|
//添加保存逻辑
|
2021-04-08 17:01:23 +08:00
|
|
|
|
var data = customSerialize("form-info-add", true);
|
2021-04-08 15:25:06 +08:00
|
|
|
|
alert(data);
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
url: prefix + "/add/test",
|
|
|
|
|
|
data: data,
|
|
|
|
|
|
type: "post",
|
|
|
|
|
|
contentType: "application/json;charset=UTF-8",
|
2021-04-08 17:01:23 +08:00
|
|
|
|
success: function (result) {
|
2021-04-08 15:25:06 +08:00
|
|
|
|
if (result.code == web_status.SUCCESS) {
|
|
|
|
|
|
layer.msg("保存成功,正在刷新数据请稍后……", {
|
|
|
|
|
|
icon: 1,
|
|
|
|
|
|
time: 500,
|
|
|
|
|
|
shade: [0.1, '#8F8F8F']
|
2021-04-08 17:01:23 +08:00
|
|
|
|
}, function () {
|
2021-04-08 15:25:06 +08:00
|
|
|
|
location.reload();
|
|
|
|
|
|
});
|
|
|
|
|
|
} else {
|
|
|
|
|
|
alert(result.msg);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
2021-04-02 15:00:12 +08:00
|
|
|
|
});
|
|
|
|
|
|
var btnCancel = $('<a id="btn-cancel"></a>').text('取消')
|
|
|
|
|
|
.addClass('btn btn-danger')
|
|
|
|
|
|
.on('click', function () {
|
|
|
|
|
|
$('#smartwizard').smartWizard("reset");
|
|
|
|
|
|
});
|
|
|
|
|
|
// 下面两个按钮是为了因为插件默认的是botton,这里换成<a>,也可以选择用样式替换,或者不替换
|
|
|
|
|
|
var btnNext = $('<a id="btn-next"></a>').text('下一步')
|
|
|
|
|
|
.addClass('btn btn-info')
|
|
|
|
|
|
.on('click', function () {
|
|
|
|
|
|
$('#smartwizard').smartWizard("next");
|
2021-04-02 09:28:28 +08:00
|
|
|
|
});
|
2021-04-02 15:00:12 +08:00
|
|
|
|
var btnPrev = $('<a id="btn-prev"></a>').text('上一步')
|
|
|
|
|
|
.addClass('btn btn-success disabled')
|
|
|
|
|
|
.on('click', function () {
|
|
|
|
|
|
$('#smartwizard').smartWizard("prev");
|
|
|
|
|
|
});
|
|
|
|
|
|
// 初始化表单向导组件
|
|
|
|
|
|
$('#smartwizard').smartWizard({
|
|
|
|
|
|
theme: 'dots', // default, arrows, dots, progress
|
|
|
|
|
|
autoAdjustHeight: true, // 自动调整高度, 默认true
|
|
|
|
|
|
enableURLhash: false, //开启URL hash,开启后点击浏览器前进后退按钮会执行下一步和上一步操作
|
|
|
|
|
|
transition: {
|
|
|
|
|
|
animation: 'slide-horizontal', // Effect on navigation, none/fade/slide-horizontal/slide-vertical/slide-swing
|
|
|
|
|
|
},
|
|
|
|
|
|
toolbarSettings: {
|
|
|
|
|
|
showNextButton: false,// 因为上面自定义了下一步按钮, 所以隐藏掉插件自带的按钮, 如果不使用自定义按钮, 需要改为true或者去掉该属性
|
|
|
|
|
|
showPreviousButton: false,// 因为上面自定义了上一步按钮, 所以隐藏掉插件自带的按钮, 如果不使用自定义按钮, 需要改为true或者去掉该属性
|
|
|
|
|
|
toolbarExtraButtons: [btnCancel, btnPrev, btnNext, btnFinish]// 扩展的按钮集合
|
|
|
|
|
|
}
|
2021-04-02 09:28:28 +08:00
|
|
|
|
});
|
2021-04-02 15:00:12 +08:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// 显示步骤时将触发事件
|
|
|
|
|
|
$("#smartwizard").on("showStep", function (e, anchorObject, stepNumber, stepDirection, stepPosition) {
|
|
|
|
|
|
// 下面按钮是快速操作栏的
|
|
|
|
|
|
$("#prev-btn").removeClass('disabled');
|
|
|
|
|
|
$("#next-btn").removeClass('disabled');
|
|
|
|
|
|
// 下面按钮是工具栏的
|
|
|
|
|
|
$("#btn-prev").removeClass('disabled');
|
|
|
|
|
|
$("#btn-next").removeClass('disabled');
|
|
|
|
|
|
$("#btn-finish").removeClass('disabled');
|
|
|
|
|
|
if (stepPosition === 'first') {
|
|
|
|
|
|
$("#prev-btn").addClass('disabled');// 快速操作栏(演示用)
|
|
|
|
|
|
$("#btn-prev").addClass('disabled');
|
|
|
|
|
|
$("#btn-finish").addClass('disabled');
|
|
|
|
|
|
} else if (stepPosition === 'last') {
|
|
|
|
|
|
$("#next-btn").addClass('disabled');// 快速操作栏(演示用)
|
|
|
|
|
|
$("#btn-next").addClass('disabled');
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#prev-btn").removeClass('disabled');// 快速操作栏(演示用)
|
|
|
|
|
|
$("#next-btn").removeClass('disabled');// 快速操作栏(演示用)
|
2021-04-02 09:28:28 +08:00
|
|
|
|
$("#btn-prev").removeClass('disabled');
|
|
|
|
|
|
$("#btn-next").removeClass('disabled');
|
2021-04-02 15:00:12 +08:00
|
|
|
|
$("#btn-finish").addClass('disabled');
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// 该事件在离开某个步骤之前触发
|
|
|
|
|
|
$("#smartwizard").on("leaveStep", function (e, anchorObject, currentStepNumber, nextStepNumber, stepDirection) {
|
|
|
|
|
|
if (stepDirection == 'forward') {
|
|
|
|
|
|
var form = $("#step-" + (currentStepNumber + 1)).find('.form');
|
|
|
|
|
|
if (form.length > 0) {
|
|
|
|
|
|
return form.validate().form();
|
2021-04-02 09:28:28 +08:00
|
|
|
|
}
|
|
|
|
|
|
return true;
|
2021-04-02 15:00:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#theme-selector").on("change", function () {
|
|
|
|
|
|
// Change theme
|
|
|
|
|
|
var options = {
|
|
|
|
|
|
theme: $(this).val()
|
|
|
|
|
|
};
|
|
|
|
|
|
$('#smartwizard').smartWizard("setOptions", options);
|
|
|
|
|
|
return true;
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#reset-btn").on("click", function () {
|
|
|
|
|
|
// Reset wizard
|
|
|
|
|
|
$('#smartwizard').smartWizard("reset");
|
|
|
|
|
|
return true;
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#prev-btn").on("click", function () {
|
|
|
|
|
|
// Navigate previous
|
|
|
|
|
|
$('#smartwizard').smartWizard("prev");
|
|
|
|
|
|
return true;
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#next-btn").on("click", function () {
|
|
|
|
|
|
// Navigate next
|
|
|
|
|
|
$('#smartwizard').smartWizard("next");
|
|
|
|
|
|
return true;
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<script th:inline="javascript">
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
function updateText(val) {
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
var id = val.id;
|
|
|
|
|
|
var boolean = $("#" + id).prop("checked");
|
|
|
|
|
|
if (boolean) {
|
|
|
|
|
|
$("#" + id + "Pri").attr('type', 'text');
|
|
|
|
|
|
} else {
|
|
|
|
|
|
$("#" + id + "Pri").attr('type', 'hidden');
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
2021-04-06 14:39:12 +08:00
|
|
|
|
function updatePic(val) {
|
2021-04-02 15:00:12 +08:00
|
|
|
|
var id = val.id;
|
|
|
|
|
|
var value = val.value;
|
2021-04-08 17:01:23 +08:00
|
|
|
|
if (value == null || value == "" && id.indexOf("btn") != -1) {
|
2021-04-08 10:24:28 +08:00
|
|
|
|
//默认值
|
2021-04-08 17:01:23 +08:00
|
|
|
|
value = "自定义按钮" + id.charAt(id.length - 1);
|
2021-04-08 10:24:28 +08:00
|
|
|
|
}
|
2021-04-06 14:39:12 +08:00
|
|
|
|
$("#" + id + "Pic").text(value);
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
2021-04-08 10:42:02 +08:00
|
|
|
|
function updatePri(val) {
|
|
|
|
|
|
var id = val.id;
|
|
|
|
|
|
var value = val.value;
|
2021-04-08 17:01:23 +08:00
|
|
|
|
if (value == null || value == "" && id.indexOf("btn") != -1) {
|
2021-04-08 10:42:02 +08:00
|
|
|
|
//默认值
|
|
|
|
|
|
value = "自定义按钮";
|
|
|
|
|
|
}
|
|
|
|
|
|
$("#" + id + "Pri").text(value);
|
|
|
|
|
|
}
|
2021-04-08 17:01:23 +08:00
|
|
|
|
|
|
|
|
|
|
//分享图片
|
|
|
|
|
|
$("#qrCodeImg").change(function () {
|
|
|
|
|
|
qrCodeImg(this);
|
|
|
|
|
|
if ($(this).val() != '') {
|
|
|
|
|
|
$("#qrCodeImgPri").attr("src", $(this).val());
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function qrCodeImg(input) {
|
|
|
|
|
|
if (input.files && input.files[0]) {
|
|
|
|
|
|
var reader = new FileReader();
|
|
|
|
|
|
|
|
|
|
|
|
reader.onload = function (e) {
|
|
|
|
|
|
//$('#prevImg').attr('src', e.target.result);
|
|
|
|
|
|
$("#qrCodeImgPri").attr("src", e.target.result);
|
|
|
|
|
|
$("#qrCodeImgPrival").val(e.target.result);
|
|
|
|
|
|
//$('#preview').css("background", "url(" + e.target.result +")" + " right top no-repeat");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
reader.readAsDataURL(input.files[0]);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//分享图片
|
|
|
|
|
|
$("#backdropImg").change(function () {
|
|
|
|
|
|
backdropImg(this);
|
|
|
|
|
|
if ($(this).val() != '') {
|
|
|
|
|
|
$("#backdropImgPri").attr("src", $(this).val());
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function backdropImg(input) {
|
|
|
|
|
|
if (input.files && input.files[0]) {
|
|
|
|
|
|
var reader = new FileReader();
|
|
|
|
|
|
|
|
|
|
|
|
reader.onload = function (e) {
|
|
|
|
|
|
//$('#prevImg').attr('src', e.target.result);
|
|
|
|
|
|
$("#backdropImgPri").attr("src", e.target.result);
|
|
|
|
|
|
$("#backdropImgval").val(e.target.result);
|
|
|
|
|
|
//$('#preview').css("background", "url(" + e.target.result +")" + " right top no-repeat");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
reader.readAsDataURL(input.files[0]);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//分享图片
|
|
|
|
|
|
$("#shareImg").change(function () {
|
|
|
|
|
|
shareImg(this);
|
|
|
|
|
|
if ($(this).val() != '') {
|
|
|
|
|
|
$("#shareImgPic").attr("src", $(this).val());
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function shareImg(input) {
|
|
|
|
|
|
if (input.files && input.files[0]) {
|
|
|
|
|
|
var reader = new FileReader();
|
|
|
|
|
|
|
|
|
|
|
|
reader.onload = function (e) {
|
|
|
|
|
|
//$('#prevImg').attr('src', e.target.result);
|
|
|
|
|
|
$("#shareImgPic").attr("src", e.target.result);
|
|
|
|
|
|
$("#shareImgval").val(e.target.result);
|
|
|
|
|
|
//$('#preview').css("background", "url(" + e.target.result +")" + " right top no-repeat");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
reader.readAsDataURL(input.files[0]);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-04-08 10:42:02 +08:00
|
|
|
|
|
|
|
|
|
|
$("#picture").change(function () {
|
|
|
|
|
|
btnURL(this);
|
|
|
|
|
|
if ($(this).val() != '') {
|
|
|
|
|
|
// var formData = new FormData();
|
|
|
|
|
|
// formData.append('file', $(this)[0].files[0]);
|
|
|
|
|
|
// $.ajax({
|
|
|
|
|
|
// url: '/path/to/upload',
|
|
|
|
|
|
// type: 'POST',
|
|
|
|
|
|
// data: formData,
|
|
|
|
|
|
// async: false,
|
|
|
|
|
|
// success: function (r) {
|
|
|
|
|
|
// if(r.success) {
|
|
|
|
|
|
// //success work
|
|
|
|
|
|
// }
|
|
|
|
|
|
// },
|
|
|
|
|
|
// cache: false,
|
|
|
|
|
|
// contentType: false,
|
|
|
|
|
|
// processData: false
|
|
|
|
|
|
// });
|
|
|
|
|
|
$("#imgPri").attr("src", $(this).val());
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function btnURL(input) {
|
|
|
|
|
|
if (input.files && input.files[0]) {
|
|
|
|
|
|
var reader = new FileReader();
|
|
|
|
|
|
|
|
|
|
|
|
reader.onload = function (e) {
|
|
|
|
|
|
//$('#prevImg').attr('src', e.target.result);
|
|
|
|
|
|
$("#imgPri").attr("src", e.target.result);
|
2021-04-08 16:51:43 +08:00
|
|
|
|
$("#pictureval").val(e.target.result);
|
2021-04-08 10:42:02 +08:00
|
|
|
|
//$('#preview').css("background", "url(" + e.target.result +")" + " right top no-repeat");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
reader.readAsDataURL(input.files[0]);
|
|
|
|
|
|
}
|
2021-04-02 15:00:12 +08:00
|
|
|
|
}
|
2021-04-06 14:39:12 +08:00
|
|
|
|
|
|
|
|
|
|
$("#pic").change(function () {
|
2021-04-06 14:05:54 +08:00
|
|
|
|
previewURL(this);
|
2021-04-06 14:39:12 +08:00
|
|
|
|
if ($(this).val() != '') {
|
2021-04-06 14:05:54 +08:00
|
|
|
|
// var formData = new FormData();
|
|
|
|
|
|
// formData.append('file', $(this)[0].files[0]);
|
|
|
|
|
|
// $.ajax({
|
|
|
|
|
|
// url: '/path/to/upload',
|
|
|
|
|
|
// type: 'POST',
|
|
|
|
|
|
// data: formData,
|
|
|
|
|
|
// async: false,
|
|
|
|
|
|
// success: function (r) {
|
|
|
|
|
|
// if(r.success) {
|
|
|
|
|
|
// //success work
|
|
|
|
|
|
// }
|
|
|
|
|
|
// },
|
|
|
|
|
|
// cache: false,
|
|
|
|
|
|
// contentType: false,
|
|
|
|
|
|
// processData: false
|
|
|
|
|
|
// });
|
2021-04-06 14:39:12 +08:00
|
|
|
|
$("#imgPic").attr("src", $(this).val());
|
2021-04-06 14:05:54 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function previewURL(input) {
|
|
|
|
|
|
if (input.files && input.files[0]) {
|
|
|
|
|
|
var reader = new FileReader();
|
|
|
|
|
|
|
|
|
|
|
|
reader.onload = function (e) {
|
|
|
|
|
|
//$('#prevImg').attr('src', e.target.result);
|
2021-04-06 14:39:12 +08:00
|
|
|
|
$("#imgPic").attr("src", e.target.result);
|
2021-04-08 16:09:34 +08:00
|
|
|
|
$("#picval").val(e.target.result);
|
2021-04-06 14:05:54 +08:00
|
|
|
|
//$('#preview').css("background", "url(" + e.target.result +")" + " right top no-repeat");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
reader.readAsDataURL(input.files[0]);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-04-08 17:01:23 +08:00
|
|
|
|
function activityTemplate(val) {
|
2021-04-08 10:24:28 +08:00
|
|
|
|
$(val).addClass('btn-success').siblings().removeClass('btn-success');
|
|
|
|
|
|
//todo 添加逻辑
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-04-02 15:00:12 +08:00
|
|
|
|
</script>
|
2021-03-30 09:45:17 +08:00
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|