记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
1b9f1e16
Commit
1b9f1e16
authored
Apr 20, 2022
by
xuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_kid' of
http://gitlab.zhengzai.tv/dongjingwei/liquidnet-bus-v1
into dev_kid
parents
13a8d723
a15b8946
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
209 additions
and
1015 deletions
+209
-1015
list.html
.../main/resources/templates/zhengzai/smile/school/list.html
+6
-1
detail.html
...n/resources/templates/zhengzai/smile/userList/detail.html
+193
-1000
list.html
...ain/resources/templates/zhengzai/smile/userList/list.html
+6
-1
list.html
...ources/templates/zhengzai/smile/userPendingList/list.html
+1
-1
list.html
...n/resources/templates/zhengzai/smile/volunteers/list.html
+1
-10
SmileShowServiceImpl.java
...min/zhengzai/smile/service/impl/SmileShowServiceImpl.java
+2
-2
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/smile/school/list.html
View file @
1b9f1e16
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<ul>
<ul>
<li>
<li>
<label>
学校名称:
</label>
<label>
学校名称:
</label>
<input
type=
"text"
name=
"activityTitl
e"
/>
<input
id=
"schoolName"
type=
"text"
name=
"nam
e"
/>
</li>
</li>
<li>
<li>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
...
@@ -104,6 +104,8 @@
...
@@ -104,6 +104,8 @@
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
},
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
},
data
:
JSON
.
stringify
(
postData
),
data
:
JSON
.
stringify
(
postData
),
success
:
function
(
e
)
{
success
:
function
(
e
)
{
$
(
"pull-right button[type=refresh]"
).
click
();
refreshItem
();
$
(
".layui-layer-close1"
).
click
();
$
(
".layui-layer-close1"
).
click
();
}
}
})
})
...
@@ -115,6 +117,8 @@
...
@@ -115,6 +117,8 @@
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
},
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
},
data
:
JSON
.
stringify
(
postData
),
data
:
JSON
.
stringify
(
postData
),
success
:
function
(
e
)
{
success
:
function
(
e
)
{
$
(
"pull-right button[type=refresh]"
).
click
();
refreshItem
();
$
(
".layui-layer-close1"
).
click
();
$
(
".layui-layer-close1"
).
click
();
}
}
})
})
...
@@ -124,6 +128,7 @@
...
@@ -124,6 +128,7 @@
$
(
".layui-layer-close1"
).
click
();
$
(
".layui-layer-close1"
).
click
();
}
}
$
(
"#button-open-10"
).
click
(
function
(){
$
(
"#button-open-10"
).
click
(
function
(){
$
(
"#schoolName"
).
val
(
''
);
$
(
'.editCon'
).
val
(
''
);
$
(
'.editCon'
).
val
(
''
);
layer
.
open
({
layer
.
open
({
type
:
1
,
type
:
1
,
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/smile/userList/detail.html
View file @
1b9f1e16
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<head>
<th:block
th:include=
"include :: header('
添加活动
')"
/>
<th:block
th:include=
"include :: header('
用户详情
')"
/>
<th:block
th:include=
"include :: bootstrap-fileinput-css"
/>
<th:block
th:include=
"include :: bootstrap-fileinput-css"
/>
<style>
.user_data_box
{
padding
:
0
28px
28px
;
}
h2
{
font-weight
:
600
;
}
.user_item
{
/* padding-left: 20px; */
margin
:
12px
0
;
}
.user_item
,
.name_box
{
display
:
flex
;
margin-right
:
40px
;
align-items
:
center
;
}
.user_item
h3
{
margin
:
0
;
margin-right
:
12px
;
}
.user_item_box
.title
{
display
:
flex
;
align-items
:
center
;
}
.user_item_box
.title
h3
{
margin
:
0
0
0
6px
;
}
.user_item_box
.title
span
{
height
:
20px
;
width
:
4px
;
background
:
#3c8dbc
;
}
.user_items_box
{
padding
:
12px
12px
0
;
}
.user_items_box
p
{
/* font-weight: 600; */
font-size
:
16px
;
margin-top
:
12px
;
margin-right
:
20px
;
}
.items
{
display
:
flex
;
padding-bottom
:
12px
;
align-items
:
center
;
/* border-bottom: 1px solid; */
}
.items
img
{
height
:
120px
;
}
.items
.showImg
{
margin-right
:
20px
;
}
.items
span
{
display
:
inline-block
;
height
:
30px
;
width
:
70px
;
text-align
:
center
;
line-height
:
30px
;
margin-right
:
20px
;
background
:
#ccc
;
border
:
1px
solid
#ccc
;
}
.items
.selectedSp
{
color
:
#fff
;
background
:
skyblue
;
border
:
1px
solid
skyblue
;
}
.items
input
{
border
:
1px
solid
#ddd
;
border-radius
:
4px
;
background
:
transparent
;
outline
:
none
;
height
:
30px
;
width
:
200px
;
padding-left
:
5px
;
}
.items2
p
{
font-weight
:
600
;
}
</style>
</head>
</head>
<body
class=
"white-bg"
>
<body
class=
"user_data_box"
>
<!--奖品项配置表单-->
<h2>
用户资料
</h2>
<form
id=
"form-user-add"
class=
"layui-form"
>
<div
class=
"user_item"
>
<div>
<div
class=
"name_box"
>
基础信息
<h3>
用户身份:
</h3>
<span>
代理/总代/特邀代理/志愿者
</span>
</div>
</div>
<div
class=
"main_type"
>
<div
class=
"name_box"
>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
活动名称:
</span>
<h3>
状态:
</h3>
<div
class=
"layui-input-block"
style=
"display: flex"
>
<span>
正常/黑名单
</span>
<input
type=
"text"
id=
"ActivityName"
autocomplete=
"off"
class=
"layui-input"
placeholder=
"请输入名称"
>
</div>
</div>
</div>
<div
class=
"main_type"
>
</div>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
活动类型:
</span>
<div
class=
"user_item_box"
>
<div
class=
"layui-input-block"
style=
"display: flex"
>
<div
class=
"title"
>
<input
type=
"text"
id=
"ActivityType"
autocomplete=
"off"
class=
"layui-input"
value=
"转盘"
disabled
placeholder=
"请输入类型"
>
<span></span><h3>
基础资料
</h3>
</div>
</div>
</div>
<input
id=
"ceshi"
class=
"scoreFile"
type=
"file"
name=
"scoreFile"
style=
"display: none;"
>
<div
class=
"user_items_box"
>
<input
id=
"selectCeshi"
class=
"scoreFile"
type=
"file"
name=
"scoreFile"
style=
"display: none;"
>
<div
class=
"items2"
style=
"display: flex;"
>
<div
class=
"main_type"
>
<p
style=
"font-weight: 500"
>
照片:
</p>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
banner图:
</span>
<img
style=
"height: 120px;"
src=
"https://img.zhengzai.tv/banner/2022/02/28/6735ab4d9baf467998e80dcd70fee527.jpeg?x-oss-process=image/resize,s_400"
alt=
""
>
<div
class=
"layui-input-block"
style=
"display: flex;flex-direction: column;"
>
<img
id=
"viewImg"
src=
""
alt=
""
style=
"max-height:242px;"
>
<div
class=
"ibox-content"
>
<div
class=
"form-group"
>
<div
class=
"file-loading"
>
<input
id=
"fileinput"
type=
"file"
name=
"file"
data-browse-on-zone-click=
"true"
data-theme=
"fas"
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"items"
>
<div
class=
"main_type"
>
<p>
真实姓名:
</p>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
所需积分:
</span>
<input
type=
"text"
disabled
id=
"name"
autocomplete=
"off"
value=
"张三"
class=
"layui-input"
>
<div
class=
"layui-input-block"
style=
"display: flex"
>
<input
type=
"text"
id=
"integral"
autocomplete=
"off"
class=
"layui-input"
placeholder=
"请输入所需积分"
>
</div>
</div>
</div>
<div
class=
"items"
>
<div
class=
"sendType"
>
<p>
出生日期:
</p>
<div
style=
"display: flex;align-items: center;"
>
<input
type=
"text"
disabled
id=
"name"
autocomplete=
"off"
value=
"2022.04.20"
class=
"layui-input"
>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
活动时间:
</span>
<div
class=
"layui-input-block"
style=
"display: flex"
>
<input
type=
"radio"
value=
"1"
name=
"sendType"
checked
><span>
长期
</span>
<input
type=
"radio"
value=
"2"
name=
"sendType"
><span>
选择开始结束时间
</span>
<div
class=
"selectTime"
>
<input
type=
"text"
class=
"layui-input"
id=
"startTime"
autocomplete=
"off"
placeholder=
"请选择起始时间"
>
<span>
~
</span>
<input
type=
"text"
class=
"layui-input"
id=
"endTime"
autocomplete=
"off"
placeholder=
"请选择结束时间"
>
</div>
</div>
</div>
</div>
</div>
<div
class=
"items"
>
<div
class=
"selectScore"
>
<p>
性别:
</p>
<p><i
class=
"required"
>
*
</i>
选择商品
</p>
<span
class=
"selectedSp"
>
男
</span>
<!-- <button type="button" class="btn btn-primary" onclick="addColumn()">新增商品</button>
<span>
女
</span>
<span>最多可上传6个</span> -->
</div>
<!-- <img src="img/select.png" alt=""> -->
<div
class=
"scoreTable"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"col-sm-12 select-table table-striped"
>
<table
id=
"bootstrap-table"
></table>
</div>
</div>
</div>
</div>
</div>
<div
class=
"items"
>
<div
class=
"main_bottom"
>
<p>
所在城市:
</p>
<div
class=
"main_type"
>
<input
type=
"text"
disabled
id=
"name"
autocomplete=
"off"
value=
"北京 北京市 朝阳区"
class=
"layui-input"
>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
预估玩此活动的总人数:
</span>
<div
class=
"layui-input-block"
style=
"display: flex"
>
<input
type=
"text"
id=
"estimatedNum"
autocomplete=
"off"
class=
"layui-input"
placeholder=
"预估玩此活动的总人数"
>
</div>
</div>
</div>
<div
class=
"describe"
>
<div
class=
"items"
>
<span
class=
"labelName"
>
<p>
详细地址:
</p>
<i
class=
"required"
>
*
</i>
活动规则:
<input
type=
"text"
disabled
id=
"name"
autocomplete=
"off"
value=
"北京 北京市 朝阳区"
class=
"layui-input"
>
</span>
<textarea
id=
"activityRule"
class=
"form-control"
style=
"min-height: 160px;"
></textarea>
</div>
</div>
<div
class=
"describe"
>
<div
class=
"items"
>
<span
class=
"labelName"
>
<p>
类型:
</p>
<i
class=
"required"
>
*
</i>
概率公示:
<span
class=
"selectedSp"
>
在校学生
</span>
</span>
<span>
已毕业
</span>
<textarea
id=
"probabilityPublicity"
class=
"form-control"
style=
"min-height: 160px;"
></textarea>
</div>
</div>
<div
class=
"sendTime"
>
<div
class=
"items"
>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
是否上线:
</span>
<p>
学校全称/单位名称:
</p>
<div
class=
"layui-input-block"
style=
"display: flex"
>
<input
type=
"text"
disabled
id=
"name"
autocomplete=
"off"
value=
"北京 北京市 朝阳区"
class=
"layui-input"
>
<input
type=
"radio"
name=
"online"
value=
"1"
checked
><span>
未上线
</span>
<input
type=
"radio"
name=
"online"
value=
"2"
style=
"margin-left: 12px;"
><span>
已上线
</span>
</div>
</div>
</div>
<div
class=
"sendTime"
>
<div
class=
"items"
>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
快递费用:
</span>
<p>
所学专业/所在部门:
</p>
<div
class=
"layui-input-block"
style=
"display: flex"
>
<input
type=
"text"
disabled
id=
"name"
autocomplete=
"off"
value=
"北京 北京市 朝阳区"
class=
"layui-input"
>
<input
type=
"radio"
name=
"sex"
value=
"1"
checked
><span>
包邮
</span>
<input
type=
"radio"
name=
"sex"
value=
"2"
style=
"margin-left: 12px;"
><span>
到付
</span>
</div>
<!-- <span style="margin-right:12px;"><p>输入金额</p></span>
<input type="text" id="courierMoney" autocomplete="off" class="layui-input" placeholder="请输入金额"> -->
</div>
</div>
<div
class=
"
bottom_btn
"
>
<div
class=
"
items
"
>
<
!-- <button type="button" class="layui-btn btn btn-primary" lay-filter="formDemo" onclick="create()">创建代金券</button> --
>
<
p>
微信号:
</p
>
<
button
type=
"button"
class=
"btn btn-primary"
onclick=
"create()"
>
确 定
</button
>
<
input
type=
"text"
disabled
id=
"name"
autocomplete=
"off"
value=
"北京 北京市 朝阳区"
class=
"layui-input"
>
</div>
</div>
</div>
</div>
</form>
</div>
<div
id=
"detailsFormList"
class=
"details-form-list"
style=
"display: none"
>
<div
class=
"user_item_box"
>
<!--奖品详情-->
<div
class=
"title"
>
<div
class=
"details-pop-inner"
>
<span></span><h3>
认证信息
</h3>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"addCouponShow()"
>
添加优惠券
</button>
</div>
<button
type=
"button"
class=
"btn btn-warning"
onclick=
"closeCouponShow()"
>
关闭窗口
</button>
<div
class=
"user_items_box"
>
<hr>
<div
class=
"items2"
>
<div
class=
"coupon-select"
style=
"display: none"
>
<p>
姓名:
<span>
张三
</span></p>
<div
class=
"scope_application"
>
<p>
身份证号:
<span>
211481199302641564
</span></p>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
选择类别:
</span>
<p>
有效期:
<span>
长期/2021年12月27日到期
</span></p>
<div
class=
"radio-box"
>
</div>
<input
type=
"radio"
name=
"coupeAdd_type"
value=
"2"
checked=
"checked"
/>
商品
<div
class=
"items"
>
</div>
<div
class=
"showImg"
>
<div
class=
"radio-box"
>
<p>
身份证正面:
</p>
<input
type=
"radio"
name=
"coupeAdd_type"
value=
"3"
/>
优先购买
<img
src=
"https://img.zhengzai.tv/banner/2022/02/28/6735ab4d9baf467998e80dcd70fee527.jpeg?x-oss-process=image/resize,s_400"
alt=
""
>
</div>
</div>
</div>
<!--选择优惠券-->
<div
class=
"showImg"
>
<div
class=
"scope_application"
id=
"scope_application"
>
<p>
身份证反面:
</p>
<span
class=
"labelName"
><i
class=
"required"
>
*
</i>
选择优惠券:
</span>
<img
src=
"https://img.zhengzai.tv/banner/2022/02/28/6735ab4d9baf467998e80dcd70fee527.jpeg?x-oss-process=image/resize,s_400"
alt=
""
>
<div
class=
"search_ipt"
style=
"position: relative;display: inline;"
>
<input
type=
"text"
id=
"searchIpt"
autocomplete=
"off"
class=
"layui-input"
placeholder=
"全部"
>
<ul
id=
"dataList"
style=
"position: absolute;"
></ul>
</div>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"addCouponFun()"
>
确认添加当前优惠券
</button>
</div>
</div>
</div>
<div
class=
"showImg"
>
<p>
手持身份证:
</p>
<hr>
<img
src=
"https://img.zhengzai.tv/banner/2022/02/28/6735ab4d9baf467998e80dcd70fee527.jpeg?x-oss-process=image/resize,s_400"
alt=
""
>
<div
class=
"couponTable"
>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"col-sm-12 select-table table-striped"
>
<table
id=
"details-table"
></table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"user_item_box"
>
<div
class=
"title"
>
<span></span><h3>
个人技能
</h3>
</div>
<div
class=
"user_items_box"
>
<div
class=
"items2"
>
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
style=
"height: 200px;width: 50%"
>
先随便写点啥
</textarea>
</div>
<div
class=
"items"
>
<p>
作品链接:
</p>
<input
type=
"text"
disabled
id=
"name"
autocomplete=
"off"
value=
"https://weibo.com/u/53454874"
class=
"layui-input"
>
</div>
</div>
</div>
<div
class=
"user_item_box"
>
<div
class=
"title"
>
<span></span><h3>
自我介绍
</h3>
</div>
<div
class=
"user_items_box"
>
<div
class=
"items2"
>
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
style=
"height: 200px;width: 50%"
>
先随便写点啥
</textarea>
</div>
</div>
</div>
<div
class=
"user_item_box"
>
<div
class=
"title"
>
<span></span><h3>
社交主页
</h3>
</div>
<div
class=
"user_items_box"
>
<div
class=
"items"
>
<p>
抖音:
</p>
<input
type=
"text"
disabled
id=
"name"
autocomplete=
"off"
value=
"https://weibo.com/u/53454874"
class=
"layui-input"
>
</div>
<div
class=
"items"
>
<p>
微博:
</p>
<input
type=
"text"
disabled
id=
"name"
autocomplete=
"off"
value=
"https://weibo.com/u/53454874"
class=
"layui-input"
>
</div>
<div
class=
"items"
>
<p>
提交时间:
</p>
<p>
2022年02月24日 16:43:15
</p>
</div>
</div>
</div>
</body>
</body>
<th:block
th:include=
"include :: footer"
/>
<th:block
th:include=
"include :: footer"
/>
<script
th:src=
"@{/js/jquery.tmpl.js}"
></script>
<!--远程搜索下拉框:积分抽奖配置使用-->
<script
th:src=
"@{/js/remote-search-coupon-list.js}"
></script>
<th:block
th:include=
"include :: bootstrap-fileinput-js"
/>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
let
platformUrl
=
`[[
${
platformUrl
}
]]`
let
prefix
=
ctx
+
"sweet/sweetIntegralActivity"
;
let
candyfix
=
ctx
+
"candy/coupon"
;
let
showIndex
=
null
;
// 初始化数据, 可以由后台传过来
var
data
=
[];
// 表格内数据集合
let
activityName
=
''
;
// 活动名称
let
activityType
=
''
;
// 活动类型
let
timeType
=
'1'
;
// 活动时间类型
let
startTime
=
''
;
// 开始时间
let
endTime
=
''
;
// 结束时间
let
activityRule
=
''
;
// 活动规则
let
courierType
=
'1'
;
// 快递类型
let
courierMoney
=
''
;
// 快递费用
let
showPicture
=
''
;
// banner
let
online
=
'1'
;
// 是否上线
let
itemId
=
''
;
let
activitySize
=
false
;
let
options
=
{
id
:
"bootstrap-table"
,
data
:
data
,
pagination
:
false
,
showSearch
:
false
,
showRefresh
:
false
,
showToggle
:
false
,
showColumns
:
false
,
sidePagination
:
"client"
,
columns
:
[
{
field
:
'index'
,
align
:
'center'
,
title
:
"序号"
,
formatter
:
function
(
value
,
row
,
index
)
{
return
index
+
1
;
}
},
{
field
:
'prizeTitle'
,
align
:
'center'
,
title
:
'奖品名称'
,
formatter
:
function
(
value
,
row
,
index
)
{
let
str
=
''
;
if
(
data
[
index
].
prizeTitle
)
{
str
=
"<input id='prizeTitle"
+
index
+
"' class='form-control' type='text' name='' value='"
+
data
[
index
].
prizeTitle
+
"'>"
}
else
{
str
=
"<input id='prizeTitle"
+
index
+
"' class='form-control' type='text' name='' value=''>"
}
var
html
=
$
.
common
.
sprintf
(
str
,
index
,
value
);
return
html
;
}
},
{
field
:
'prizeImgInit'
,
align
:
'center'
,
title
:
'商品图片'
,
formatter
:
function
(
value
,
row
,
index
)
{
//
let
str
=
''
;
if
(
data
[
index
].
prizeImgInit
)
{
str
=
`<img id="showPic
${
index
}
" onclick=upFile(
${
index
}
) src="
${
data
[
index
].
prizeImgInit
}
" alt="" style="max-height:50px;">`
}
else
{
str
=
`<img id="showPic
${
index
}
" onclick=upFile(
${
index
}
) src="
${
value
}
" alt="点击上传" style="max-height:50px;">`
}
var
html
=
$
.
common
.
sprintf
(
str
,
index
,
value
);
return
html
;
}
},
{
field
:
'prizeImgSelect'
,
align
:
'center'
,
title
:
'选中图片'
,
formatter
:
function
(
value
,
row
,
index
)
{
//
let
str
=
''
;
if
(
data
[
index
].
prizeImgSelect
)
{
str
=
`<img id="showPicSelect
${
index
}
" onclick=upFileSelect(
${
index
}
) src="
${
data
[
index
].
prizeImgSelect
}
" alt="" style="max-height:50px;">`
}
else
{
str
=
`<img id="showPicSelect
${
index
}
" onclick=upFileSelect(
${
index
}
) src="
${
value
}
" alt="点击上传" style="max-height:50px;">`
}
var
html
=
$
.
common
.
sprintf
(
str
,
index
,
value
);
return
html
;
}
},
{
field
:
'prizeType'
,
align
:
'center'
,
title
:
'奖品类型'
,
formatter
:
function
(
value
,
row
,
index
)
{
let
arr
=
[
'积分'
,
'优惠券'
,
'实物'
,
'登登登VIP'
,
'优先购买券'
];
let
str
=
''
;
arr
.
forEach
((
item
,
i
)
=>
{
i
++
if
(
i
==
data
[
index
].
prizeType
)
{
str
+=
`<option value="
${
i
}
" selected>
${
item
}
</option>`
}
else
{
str
+=
`<option value="
${
i
}
">
${
item
}
</option>`
}
})
let
dom
=
`<select id='prizeType
${
index
}
' class='form-control' name='' onchange="changePrizeType(this,
${
index
}
)">
${
str
}
</select>`
return
dom
;
}
},
{
field
:
'prizeTypeNum'
,
align
:
'center'
,
title
:
'奖励积分数量'
,
formatter
:
function
(
value
,
row
,
index
)
{
let
str
=
''
;
if
(
data
[
index
].
prizeType
===
1
)
{
str
=
`<input id='prizeTypeNum
${
index
}
' class='form-control' type='text' name='' value='
${
data
[
index
].
prizeTypeNum
}
' style="display: block">`
}
else
{
str
=
`<input id='prizeTypeNum
${
index
}
' class='form-control' type='text' name='' value='
${
data
[
index
].
prizeTypeNum
}
' style="display: none">`
}
var
html
=
$
.
common
.
sprintf
(
str
,
index
,
value
);
return
html
;
}
},
{
field
:
'winningProbability'
,
align
:
'center'
,
title
:
'概率'
,
formatter
:
function
(
value
,
row
,
index
)
{
let
str
=
''
;
if
(
data
[
index
].
winningProbability
!==
''
)
{
str
=
`<input id='winningProbability
${
index
}
' class='form-control' type='text' name='' value='
${
data
[
index
].
winningProbability
}
'>`
}
else
{
str
=
`<input id='winningProbability
${
index
}
' class='form-control' type='text' name='' value=''>`
}
var
html
=
$
.
common
.
sprintf
(
str
,
index
,
value
);
return
html
;
}
},
{
field
:
'isInfinite'
,
align
:
'center'
,
title
:
'奖品库存'
,
formatter
:
function
(
value
,
row
,
index
)
{
let
str
=
''
;
if
(
data
[
index
].
isInfinite
===
1
)
{
str
=
`<div class="radio-box"><input type="radio" name="isInfinite
${
index
}
" value="1" checked onclick="changeInfinite(this,
${
index
}
)"/>有限库存</div>
<div class="radio-box"><input type="radio" name="isInfinite
${
index
}
" value="2" onclick="changeInfinite(this,
${
index
}
)"/>无限库存</div>`
}
else
{
str
=
`<div class="radio-box"><input type="radio" name="isInfinite
${
index
}
" value="1" onclick="changeInfinite(this,
${
index
}
)"/>有限库存</div>
<div class="radio-box"><input type="radio" name="isInfinite
${
index
}
" value="2" checked onclick="changeInfinite(this,
${
index
}
)"/>无限库存</div>`
}
var
html
=
$
.
common
.
sprintf
(
str
,
index
,
value
);
return
html
;
}
},
{
field
:
'prizeNum'
,
align
:
'center'
,
title
:
'数量'
,
formatter
:
function
(
value
,
row
,
index
)
{
let
str
=
''
;
if
(
data
[
index
].
prizeNum
!==
''
)
{
if
(
data
[
index
].
isInfinite
===
1
)
{
str
=
`<input id='prizeNum
${
index
}
' class='form-control' type='text' name='' value='
${
data
[
index
].
prizeNum
}
'>`
}
else
{
str
=
`<input id='prizeNum
${
index
}
' class='form-control' type='text' name='' value='
${
data
[
index
].
prizeNum
}
' style="display: none">`
}
}
var
html
=
$
.
common
.
sprintf
(
str
,
index
,
value
);
return
html
;
}
},
{
field
:
'prizeDescribe'
,
align
:
'center'
,
title
:
'奖品描述'
,
formatter
:
function
(
value
,
row
,
index
)
{
let
str
=
''
;
if
(
data
[
index
].
prizeDescribe
!==
''
)
{
str
=
`<input id='prizeDescribe
${
index
}
' class='form-control' type='text' name='' value='
${
data
[
index
].
prizeDescribe
}
'>`
}
else
{
str
=
`<input id='prizeDescribe
${
index
}
' class='form-control' type='text' name='' value=''>`
}
var
html
=
$
.
common
.
sprintf
(
str
,
index
,
value
);
return
html
;
}
},
// {
// field: 'winnersNum',
// align: 'center',
// title: '中奖人数',
// formatter: function(value, row, index) {
// let str = '';
// if (data[index].winnersNum) {
// str = `
<
input
id
=
'winnersNum${index}'
class
=
'form-control'
type
=
'text'
name
=
''
value
=
'${data[index].winnersNum}'
>
`
// } else {
// str = `
<
input
id
=
'winnersNum${index}'
class
=
'form-control'
type
=
'text'
name
=
''
value
=
''
>
`
// }
// var html = $.common.sprintf(str, index, value);
// return html;
// }
// },
{
field: 'winPrizeNum',
align: 'center',
title: '已发出'
},
{
field: 'residue',
align: 'center',
title: '奖品剩余',
formatter: function(value, row, index) {
if (itemId) {
return (row.prizeNum - row.winPrizeNum) || '0'
} else {
return '0'
}
}
},
{
field: '',
align: 'center',
title: '操作',
formatter: function(value, row, index) {
let str = '';
if (data[index].prizeType === 2) {
str = `
<
button
type
=
"button"
class
=
"btn btn-primary"
onclick
=
"showList(` + index + `)"
>
查看列表
<
/button>
`
}
var
html
=
$
.
common
.
sprintf
(
str
,
index
,
value
);
return
html
;
}
}
]
};
let
nowList
=
[];
// 当前编辑的奖品详情列表
let
nowShowData
=
{};
// 当前编辑的奖品信息
let
searchVal
=
''
;
// 优惠券输入框内数据
let
searchData
=
[];
// 优惠券搜索总数据
let
nowCouponSelect
=
{};
// 当前选择的优惠券
let
detailsOptions
=
{
id
:
"details-table"
,
data
:
nowList
,
pagination
:
false
,
showSearch
:
false
,
showRefresh
:
false
,
showToggle
:
false
,
showColumns
:
false
,
sidePagination
:
"client"
,
columns
:
[
{
field
:
'index'
,
align
:
'center'
,
title
:
"序号"
,
formatter
:
function
(
value
,
row
,
index
)
{
return
index
+
1
;
}
},
{
field
:
'couponId'
,
align
:
'center'
,
title
:
"优惠券ID"
,
formatter
:
function
(
value
,
row
,
index
)
{
return
nowList
[
index
].
couponId
;
}
},
{
field
:
'couponTitle'
,
align
:
'center'
,
title
:
"优惠券名称"
,
formatter
:
function
(
value
,
row
,
index
)
{
return
nowList
[
index
].
couponTitle
;
}
},
{
field
:
''
,
align
:
'center'
,
title
:
'操作'
,
formatter
:
function
(
value
,
row
,
index
)
{
let
str
=
''
;
str
=
`<button type="button" class="btn btn-primary" onclick="deleteCoupon(`
+
index
+
`)">删除</button>`
var
html
=
$
.
common
.
sprintf
(
str
,
index
,
value
);
return
html
;
}
}
]
};
$
(
function
()
{
itemId
=
getUrlParms
(
'id'
)
function
getUrlParms
(
name
){
var
reg
=
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
return
unescape
(
r
[
2
]);
return
null
;
}
if
(
itemId
)
{
$
.
ajax
({
type
:
'get'
,
url
:
'/sweet/integralActivity/details'
,
data
:
{
integralActivityId
:
itemId
},
success
:
function
(
e
)
{
if
(
e
.
code
==
0
)
{
let
res
=
e
.
data
;
showPicture
=
res
.
activityImg
;
$
(
"#viewImg"
).
attr
(
'src'
,
showPicture
);
$
(
"#integral"
).
val
(
res
.
activityNum
);
$
(
"#activityRule"
).
val
(
res
.
activityRules
);
$
(
"#ActivityName"
).
val
(
res
.
activityTitle
);
$
(
"#estimatedNum"
).
val
(
res
.
estimatedNum
);
$
(
"#probabilityPublicity"
).
val
(
res
.
probabilityPublicity
);
// activityType: 1,
courierType
=
res
.
expressFeeType
;
if
(
courierType
==
2
)
{
$
(
"input[name='sex'][value='2']"
).
attr
(
'checked'
,
true
).
siblings
().
removeAttr
(
'checked'
);
}
integralActivityId
=
res
.
integralActivityId
;
online
=
res
.
isOnline
;
if
(
online
==
2
)
{
$
(
"input[name='online'][value='2']"
).
attr
(
'checked'
,
true
).
siblings
().
removeAttr
(
'checked'
);
}
timeType
=
res
.
timeType
;
if
(
timeType
==
2
)
{
$
(
"input[name='sendType'][value='2']"
).
attr
(
'checked'
,
true
).
siblings
().
removeAttr
(
'checked'
);
$
(
"#endTime"
).
val
(
$
.
common
.
dateFormat
(
res
.
endTime
,
'yyyy-MM-dd HH:mm:ss'
));
$
(
"#startTime"
).
val
(
$
.
common
.
dateFormat
(
res
.
startTime
,
'yyyy-MM-dd HH:mm:ss'
));
}
else
{
$
(
"#endTime"
).
val
(
""
);
$
(
"#startTime"
).
val
(
""
);
}
data
=
[...
res
.
prizeList
]
options
.
data
=
data
;
setTimeout
(()
=>
{
$
.
table
.
init
(
options
);
},
500
)
}
}
})
}
else
{
let
obj
=
{
prizeId
:
""
,
prizeTitle
:
""
,
prizeImgInit
:
""
,
prizeImgSelect
:
""
,
winPrizeNum
:
""
,
prizeType
:
1
,
prizeTypeNum
:
0
,
isInfinite
:
1
,
prizeNum
:
0
,
winningProbability
:
""
,
prizeDescribe
:
""
,
residue
:
""
};
for
(
var
i
=
0
;
i
<
20
;
i
++
)
{
data
.
push
(
obj
)
}
$
.
table
.
init
(
options
);
}
});
layui
.
use
(
'laydate'
,
function
(){
var
laydate
=
layui
.
laydate
;
//执行一个laydate实例
laydate
.
render
({
elem
:
'#startTime'
,
//指定元素
type
:
'datetime'
});
laydate
.
render
({
elem
:
'#endTime'
,
//指定元素
type
:
'datetime'
});
});
$
(
"#ActivityName"
).
blur
(
function
(
e
)
{
if
(
e
.
target
.
value
.
length
>
20
)
{
activitySize
=
true
;
layer
.
msg
(
'活动名称限制在20个字符以内!'
)
return
}
else
{
activitySize
=
false
;
}
})
$
(
"input[name=sendType]"
).
change
((
e
)
=>
{
timeType
=
e
.
target
.
value
;
if
(
timeType
==
1
)
{
$
(
"#endTime"
).
val
(
""
);
$
(
"#startTime"
).
val
(
""
);
}
})
$
(
"input[name=sex]"
).
change
((
e
)
=>
{
courierType
=
e
.
target
.
value
;
})
$
(
"input[name=online]"
).
change
((
e
)
=>
{
online
=
e
.
target
.
value
;
})
function
upFile
(
e
)
{
showIndex
=
e
;
$
(
"#ceshi"
).
click
();
}
function
upFileSelect
(
e
)
{
showIndex
=
e
;
$
(
"#selectCeshi"
).
click
();
}
$
(
"#ceshi"
).
change
((
e
)
=>
{
if
(
!
e
.
target
.
files
[
0
])
{
return
}
var
formData
=
new
FormData
();
formData
.
append
(
"file"
,
e
.
target
.
files
[
0
]);
$
.
ajax
({
url
:
platformUrl
+
"/platform/basicServices/alOss/upload"
,
//路径是你控制器中上传图片的方法,下面controller里面我会写到
data
:
formData
,
cache
:
false
,
contentType
:
false
,
processData
:
false
,
type
:
'POST'
,
success
:
function
(
res
)
{
$
(
"#showPic"
+
showIndex
).
attr
(
'src'
,
'https://img.zhengzai.tv/'
+
res
.
data
.
ossPath
)
data
[
showIndex
].
prizeImgInit
=
'https://img.zhengzai.tv/'
+
res
.
data
.
ossPath
;
$
(
"#ceshi"
).
val
(
""
);
// $summernote.summernote('insertImage', 'https://img.zhengzai.tv/' + data.data.ossPath)
}
});
})
$
(
"#selectCeshi"
).
change
((
e
)
=>
{
if
(
!
e
.
target
.
files
[
0
])
{
return
}
var
formData
=
new
FormData
();
formData
.
append
(
"file"
,
e
.
target
.
files
[
0
]);
$
.
ajax
({
url
:
platformUrl
+
"/platform/basicServices/alOss/upload"
,
//路径是你控制器中上传图片的方法,下面controller里面我会写到
data
:
formData
,
cache
:
false
,
contentType
:
false
,
processData
:
false
,
type
:
'POST'
,
success
:
function
(
res
)
{
$
(
"#showPicSelect"
+
showIndex
).
attr
(
'src'
,
'https://img.zhengzai.tv/'
+
res
.
data
.
ossPath
)
data
[
showIndex
].
prizeImgInit
=
'https://img.zhengzai.tv/'
+
res
.
data
.
ossPath
;
$
(
"#selectCeshi"
).
val
(
""
);
// $summernote.summernote('insertImage', 'https://img.zhengzai.tv/' + data.data.ossPath)
}
});
})
$
(
"#fileinput"
).
fileinput
({
'theme'
:
'explorer-fas'
,
'uploadUrl'
:
platformUrl
+
"/platform/basicServices/alOss/upload"
,
"uploadExtraData"
:
{
"pathName"
:
"banner"
,
"buckType"
:
1
},
autoReplace
:
true
,
showCaption
:
false
,
showPreview
:
false
,
showRemove
:
false
,
showUpload
:
false
,
showCancel
:
false
,
showClose
:
false
,
autoReplace
:
true
,
dropZoneTitle
:
"请上传文件"
,
maxFileCount
:
1
}).
on
(
"filebatchselected"
,
function
(
event
,
files
)
{
//默认上传
$
(
this
).
fileinput
(
"upload"
);
})
.
on
(
"fileuploaded"
,
function
(
event
,
data
)
{
//上传回调事件
showPicture
=
'https://img.zhengzai.tv/'
+
data
.
response
.
data
.
ossPath
;
$
(
"#viewImg"
).
attr
(
'src'
,
showPicture
)
})
function
create
()
{
if
(
!
$
(
"#ActivityName"
).
val
()
||
!
$
(
"#ActivityType"
).
val
()
||
!
showPicture
||
!
$
(
"#integral"
).
val
()
||
!
$
(
"#activityRule"
).
val
()
||
!
$
(
"#viewImg"
).
attr
(
'src'
)
||
!
$
(
"#estimatedNum"
).
val
()
||
!
$
(
"#probabilityPublicity"
).
val
()
)
{
return
layer
.
msg
(
'请将活动必填信息填写完整!'
)
}
if
(
timeType
==
2
)
{
if
(
!
$
(
"#startTime"
).
val
()
||
!
$
(
"#endTime"
).
val
())
{
return
layer
.
msg
(
'请选择时间!'
)
}
}
else
{
$
(
"#startTime"
).
val
(
""
)
$
(
"#endTime"
).
val
(
""
)
}
if
(
activitySize
)
{
layer
.
msg
(
"活动名称限制在20个字符以内!"
)
return
}
let
flag
=
false
;
let
prizeListArr
=
[]
data
.
forEach
((
item
,
index
)
=>
{
let
temp
=
{};
if
(
!
$
(
"#prizeTitle"
+
index
).
val
()
||
!
$
(
"#showPic"
+
index
).
attr
(
'src'
)
||
!
$
(
"#showPicSelect"
+
index
).
attr
(
'src'
)
||
!
$
(
"#prizeType"
+
index
).
val
()
||
!
$
(
"#winningProbability"
+
index
).
val
()
||
!
$
(
"input[name=isInfinite"
+
index
+
"]:checked"
).
val
()
||
!
$
(
"#prizeNum"
+
index
).
val
()
)
{
flag
=
true
}
else
{
temp
.
prizeId
=
data
[
index
].
prizeId
?
data
[
index
].
prizeId
:
''
;
temp
.
prizeTitle
=
$
(
"#prizeTitle"
+
index
).
val
();
temp
.
prizeImgInit
=
$
(
"#showPic"
+
index
).
attr
(
'src'
);
temp
.
prizeImgSelect
=
$
(
"#showPicSelect"
+
index
).
attr
(
'src'
);
temp
.
prizeType
=
$
(
"#prizeType"
+
index
).
val
();
temp
.
prizeTypeNum
=
temp
.
prizeType
==
'1'
?
$
(
"#prizeTypeNum"
+
index
).
val
()
:
0
;
temp
.
isInfinite
=
$
(
"input[name=isInfinite"
+
index
+
"]:checked"
).
val
();
temp
.
prizeNum
=
temp
.
isInfinite
===
'1'
?
$
(
"#prizeNum"
+
index
).
val
()
:
0
;
temp
.
winningProbability
=
$
(
"#winningProbability"
+
index
).
val
();
temp
.
prizeDescribe
=
$
(
"#prizeDescribe"
+
index
).
val
();
}
prizeListArr
.
push
(
temp
);
});
if
(
flag
)
{
return
layer
.
msg
(
'请将奖品表格内容填写完整!'
)
}
let
datas
=
{
activityImg
:
showPicture
,
activityNum
:
$
(
"#integral"
).
val
(),
activityRules
:
$
(
"#activityRule"
).
val
(),
activityTitle
:
$
(
"#ActivityName"
).
val
(),
activityType
:
1
,
expressFeeType
:
courierType
,
integralActivityId
:
itemId
||
''
,
endTime
:
$
.
common
.
dateFormat
(
$
(
"#endTime"
).
val
(),
'yyyy-MM-dd HH:mm:ss'
)
,
//
isOnline
:
online
,
prizeList
:
prizeListArr
,
startTime
:
$
.
common
.
dateFormat
(
$
(
"#startTime"
).
val
(),
'yyyy-MM-dd HH:mm:ss'
),
timeType
:
timeType
,
estimatedNum
:
$
(
"#estimatedNum"
).
val
(),
probabilityPublicity
:
$
(
"#probabilityPublicity"
).
val
()
}
let
url
=
'/sweet/integralActivity/create'
;
let
type
=
'post'
;
if
(
itemId
)
{
url
=
'/sweet/integralActivity/update'
type
=
'put'
}
$
.
ajax
({
type
,
url
,
contentType
:
"application/json;charset=UTF-8"
,
data
:
JSON
.
stringify
(
datas
),
success
:
function
(
res
)
{
layer
.
msg
(
''
+
res
);
if
(
res
.
code
!=
undefined
&&
res
.
code
!=
web_status
.
SUCCESS
)
{
$
.
modal
.
alertWarning
(
res
.
msg
);
return
;
}
else
if
(
res
.
code
==
web_status
.
SUCCESS
)
{
$
.
operate
.
successTabCallback
(
res
);
closeItem
();
}
}
})
}
// 奖品类型切换
function
changePrizeType
(
item
,
index
)
{
if
(
item
.
value
===
'1'
)
{
$
(
'#prizeTypeNum'
+
index
).
show
();
// 填积分数量
}
else
{
$
(
'#prizeTypeNum'
+
index
).
val
(
0
);
$
(
'#prizeTypeNum'
+
index
).
hide
();
// 不填数量
}
}
// 库存切换
function
changeInfinite
(
item
,
index
)
{
if
(
item
.
value
===
'1'
)
{
$
(
'#prizeNum'
+
index
).
show
();
// 填数量
}
else
if
(
item
.
value
===
'2'
)
{
$
(
'#prizeNum'
+
index
).
val
(
0
);
$
(
'#prizeNum'
+
index
).
hide
();
// 无限库存,不填数量
}
}
// 展示已配置的优惠券列表
function
showList
(
index
)
{
nowShowData
=
data
[
index
];
nowShowData
.
index
=
index
;
nowList
=
[];
detailsOptions
.
data
=
[];
$
.
table
.
destroy
(
"details-table"
);
$
.
ajax
({
type
:
'get'
,
url
:
'/sweet/integralActivityPrizeRelation/list'
,
data
:
{
prizeId
:
nowShowData
[
'prizeId'
]
},
success
:
function
(
res
)
{
nowList
=
res
;
detailsOptions
.
data
=
res
;
setTimeout
(()
=>
{
$
.
table
.
init
(
detailsOptions
);
},
500
)
$
(
"#detailsFormList"
).
show
();
}
});
}
function
addCouponShow
()
{
$
(
".coupon-select"
).
show
();
}
function
closeCouponShow
()
{
$
(
"#detailsFormList"
).
hide
();
}
// 类别
function
changeRadioType
(
val
)
{
console
.
log
(
'changeRadioType'
,
val
);
}
// 添加优惠券
function
addCouponFun
()
{
if
(
!
nowCouponSelect
.
couponId
)
{
this
.
alert
(
'请先选择优惠券'
);
return
;
}
let
postData
=
{
"couponId"
:
nowCouponSelect
.
couponId
,
"couponTitle"
:
nowCouponSelect
.
title
,
"integralActivityId"
:
nowShowData
[
'integralActivityId'
],
"prizeId"
:
nowShowData
[
'prizeId'
]
};
$
.
ajax
({
type
:
'post'
,
url
:
'/sweet/integralActivityPrizeRelation/create'
,
data
:
JSON
.
stringify
(
postData
),
contentType
:
'application/json'
,
success
:
function
(
e
)
{
if
(
e
.
code
==
0
)
{
showList
(
nowShowData
.
index
);
alert
(
'添加成功!'
);
}
}
});
}
// 删除优惠券
function
deleteCoupon
(
index
)
{
let
postData
=
{
"integralActivityId"
:
nowShowData
[
'integralActivityId'
],
"prizeRelationId"
:
nowList
[
index
][
'prizeRelationId'
]
};
$
.
ajax
({
type
:
'put'
,
url
:
'/sweet/integralActivityPrizeRelation/delete'
,
data
:
postData
,
success
:
function
(
e
)
{
if
(
e
.
code
==
0
)
{
showList
(
nowShowData
.
index
);
alert
(
'删除成功!'
);
}
}
});
}
// 远程搜索券
function
getMallList
()
{
let
data
=
{
keyword
:
searchVal
,
busiType
:
parseInt
(
$
(
'input[type=radio][name=coupeAdd_type]:checked'
).
val
()),
pageSize
:
20
,
pageNum
:
1
,
bindType
:
2
}
let
str
=
''
;
promiseMethods
(
candyfix
+
"/list"
,
'post'
,
data
,
'application/x-www-form-urlencoded'
).
then
(
res
=>
{
if
(
res
.
rows
.
length
>
0
)
{
searchData
=
res
.
rows
;
searchData
.
forEach
((
item
,
index
)
=>
{
str
+=
`<li class="selectData" onclick="selectOne('
${
item
.
couponId
}
', 'couponId')">
${
item
.
title
}
</li>`
})
$
(
'#dataList'
).
html
(
str
);
}
else
{
$
(
'#dataList'
).
html
(
'<li style="width:100%;text-align:center;color:#ccc;">--- 暂无数据 ---</li>'
);
}
})
}
function
promiseMethods
(
url
,
type
,
data
,
contentType
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
$
.
ajax
({
url
,
type
,
data
,
contentType
,
success
:
function
(
res
)
{
resolve
(
res
);
}
})
})
}
// 选择优惠券
function
selectOne
(
id
,
name
)
{
searchData
.
some
(
(
item
,
index
)
=>
{
if
(
item
[
name
]
==
id
)
{
nowCouponSelect
=
item
;
return
$
(
"#searchIpt"
).
val
(
item
.
title
);
}
}
)
}
$
(
"#searchIpt"
).
focus
(
function
(){
getMallList
()
$
(
'#dataList'
).
show
()
});
$
(
"#searchIpt"
).
blur
(
function
(){
setTimeout
(()
=>
{
$
(
'#dataList'
).
hide
()
},
500
);
});
$
(
"#searchIpt"
).
keyup
(
function
(){
searchVal
=
$
(
"#searchIpt"
).
val
()
getMallList
()
});
</script>
</script>
<style>
.layui-form
{
padding
:
20px
;
}
.main_type
,
.money
,
.scope_application
,
.sendType
,
.phoneNumber
,
.playMethod
{
margin-bottom
:
20px
;
}
.phoneNumber
,
.playMethod
{
display
:
none
;
}
.labelName
{
display
:
inline-block
;
width
:
100px
;
text-align
:
right
;
}
input
{
border
:
1px
solid
#ddd
;
border-radius
:
4px
;
background
:
transparent
;
outline
:
none
;
padding-left
:
5px
;
height
:
30px
;
}
.main_type
.form-control.kv-fileinput-caption
{
height
:
42px
!important
;
}
.prompt
{
margin-left
:
100px
!important
;
}
.main_type
input
,
.sendType
input
,
.playMethod
input
{
margin-top
:
-2px
;
margin-right
:
5px
;
}
.main_type
span
,
.sendType
span
,
.playMethod
span
{
margin-right
:
12px
;
line-height
:
28px
;
}
.layui-form
.money
input
{
width
:
60px
;
}
.main_bottom
.describe
,
.main_bottom
.sendTime
{
margin-bottom
:
20px
;
}
.describe
,
.main_type
{
display
:
flex
;
}
.sendTime
{
display
:
flex
;
}
.sendTime
input
{
margin-top
:
-6px
;
margin-right
:
5px
;
}
.bottom_btn
{
width
:
25%
;
text-align
:
center
;
}
select
{
border
:
1px
solid
#ddd
;
border-radius
:
4px
;
background
:
transparent
;
outline
:
none
;
height
:
30px
;
width
:
200px
;
}
.required
{
font-style
:
normal
;
color
:
red
;
}
.ibox-content
{
border-style
:
none
;
border-width
:
0px
;
}
.main_type
.file-footer-buttons
.kv-file-remove
{
display
:
none
!important
;
}
.selectScore
{
display
:
flex
;
align-items
:
center
;
}
.selectScore
p
{
margin
:
0
;
}
.selectScore
button
{
margin
:
0
12px
;
}
.selectScore
span
{
color
:
#ccc
;
}
.couponTable
{
margin-bottom
:
12px
;
overflow-y
:
scroll
;
max-height
:
270px
;
}
.details-form-list
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
.5
);
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.details-pop-inner
{
width
:
800px
;
height
:
490px
;
padding
:
10px
;
background
:
#fff
;
}
.search_ipt
ul
,
.search_ipt
li
{
padding
:
0
;
margin
:
0
;
font-style
:
normal
;
list-style
:
none
;
}
.search_ipt
ul
{
display
:
none
;
position
:
absolute
;
left
:
0
;
top
:
26px
;
padding
:
5px
0
;
z-index
:
899
;
min-width
:
200px
;
border
:
1px
solid
#eee
;
max-height
:
300px
;
overflow-y
:
auto
;
background-color
:
#fff
;
border-radius
:
2px
;
box-sizing
:
border-box
;
box-shadow
:
1px
1px
4px
rgb
(
0
0
0
/
8%
);
}
.search_ipt
li
{
background-color
:
#fff
;
cursor
:
pointer
;
padding-left
:
10px
!important
;
color
:
#999
;
padding
:
0
10px
;
line-height
:
36px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.search_ipt
li
:hover
{
background
:
#F6F6F6
;
}
.search_ipt
.layui-input
{
width
:
200px
;
}
.radio-box
input
[
type
=
radio
]
{
vertical-align
:
middle
;
}
</style>
</html>
</html>
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/smile/userList/list.html
View file @
1b9f1e16
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
// // modalName: "订单",
// // modalName: "订单",
$
(
function
()
{
$
(
function
()
{
var
options
=
{
var
options
=
{
updateUrl
:
smilePrefix
+
"/smileDetail"
,
url
:
smilePrefix
+
"/list"
,
url
:
smilePrefix
+
"/list"
,
columns
:
[{
columns
:
[{
checkbox
:
true
checkbox
:
true
...
@@ -115,7 +116,7 @@
...
@@ -115,7 +116,7 @@
align
:
'center'
,
align
:
'center'
,
formatter
:
function
(
value
,
row
,
index
)
{
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="
$.operate.edit(
\'
'
+
row
.
m
id
+
'
\'
)"><i class="fa fa-edit"></i>查看</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="
goDetail(
\'
'
+
row
.
id
+
'
\'
)"><i class="fa fa-edit"></i>查看</a> '
);
return
actions
.
join
(
''
);
return
actions
.
join
(
''
);
}
}
}]
}]
...
@@ -124,6 +125,10 @@
...
@@ -124,6 +125,10 @@
console
.
log
(
options
)
console
.
log
(
options
)
});
});
function
goDetail
(
id
)
{
var
url
=
ctx
+
'local/smileDetail?id='
+
id
;
$
.
modal
.
openTab
(
"用户详情"
,
url
);
}
// var updateFlag = [[${@permission.hasPermi('sweet:integralActivity:create')}]];
// var updateFlag = [[${@permission.hasPermi('sweet:integralActivity:create')}]];
// var isOnlineFlag = [[${@permission.hasPermi('sweet:integralActivity:isOnline')}]];
// var isOnlineFlag = [[${@permission.hasPermi('sweet:integralActivity:isOnline')}]];
// var drawListFlag = [[${@permission.hasPermi('sweet:integralActivityDraw:list')}]];
// var drawListFlag = [[${@permission.hasPermi('sweet:integralActivityDraw:list')}]];
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/smile/userPendingList/list.html
View file @
1b9f1e16
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<ul>
<ul>
<li>
<li>
<label>
手机号:
</label>
<label>
手机号:
</label>
<input
type=
"text"
name=
"
activityTitl
e"
/>
<input
type=
"text"
name=
"
phon
e"
/>
</li>
</li>
<li>
<li>
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
<a
class=
"btn btn-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/smile/volunteers/list.html
View file @
1b9f1e16
...
@@ -125,16 +125,7 @@
...
@@ -125,16 +125,7 @@
},
},
{
{
field
:
'status'
,
field
:
'status'
,
title
:
'状态'
,
title
:
'状态'
formatter
:
function
(
value
,
row
,
index
)
{
if
(
value
==
1
)
{
return
'通过'
;
}
else
if
(
value
==
2
)
{
return
'拒绝'
;
}
else
{
return
'待审核'
;
}
}
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/smile/service/impl/SmileShowServiceImpl.java
View file @
1b9f1e16
...
@@ -197,7 +197,7 @@ public class SmileShowServiceImpl extends ServiceImpl<SmileSchoolMapper, SmileSc
...
@@ -197,7 +197,7 @@ public class SmileShowServiceImpl extends ServiceImpl<SmileSchoolMapper, SmileSc
List
<
ShowAgentVo
>
showAgentVoList
=
new
ArrayList
<>();
List
<
ShowAgentVo
>
showAgentVoList
=
new
ArrayList
<>();
List
<
ShowTicketVo
>
showTicketVoList
=
new
ArrayList
<>();
List
<
ShowTicketVo
>
showTicketVoList
=
new
ArrayList
<>();
List
<
SmileAgent
>
smileAgents
=
getSmileAgentsByProId
(
performancesId
);
List
<
SmileAgent
>
smileAgents
=
getSmileAgentsByProId
(
performancesId
);
if
(
smileAgents
!
=
null
)
{
if
(
smileAgents
=
=
null
)
{
return
AjaxResult
.
warn
(
"该演出未开启代理票种"
);
return
AjaxResult
.
warn
(
"该演出未开启代理票种"
);
}
}
Map
<
String
,
SmileAgent
>
map
=
getSmileAgentMap
(
smileAgents
);
Map
<
String
,
SmileAgent
>
map
=
getSmileAgentMap
(
smileAgents
);
...
@@ -360,7 +360,7 @@ public class SmileShowServiceImpl extends ServiceImpl<SmileSchoolMapper, SmileSc
...
@@ -360,7 +360,7 @@ public class SmileShowServiceImpl extends ServiceImpl<SmileSchoolMapper, SmileSc
}
}
}
}
// if (userDataAgentVo.getCommission().compareTo(new BigDecimal(0)) != 0) {
// if (userDataAgentVo.getCommission().compareTo(new BigDecimal(0)) != 0) {
userDataAgentVos
.
add
(
userDataAgentVo
);
userDataAgentVos
.
add
(
userDataAgentVo
);
// }
// }
}
}
userData
.
setUid
(
smileUser
.
getUid
());
userData
.
setUid
(
smileUser
.
getUid
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment