记得上下班打卡 | 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
9d98998c
Commit
9d98998c
authored
Jul 13, 2022
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增活动券部分(表格内的字段暂不清楚)
parent
4b275f44
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
316 additions
and
0 deletions
+316
-0
activityList.html
...ates/zhengzai/sweet/performanceActivity/activityList.html
+123
-0
createActivity.html
...es/zhengzai/sweet/performanceActivity/createActivity.html
+108
-0
ticketList.html
...plates/zhengzai/sweet/performanceActivity/ticketList.html
+85
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/performanceActivity/activityList.html
0 → 100644
View file @
9d98998c
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
xmlns:shiro=
"http://www.pollix.at/thymeleaf/shiro"
>
<head>
<th:block
th:include=
"include :: header('积分明细')"
/>
<style>
body
.layui-layer-btn
{
display
:
none
!important
;
}
</style>
</head>
<body
class=
"gray-bg"
>
<div
class=
"container-div"
>
<div
class=
"row"
>
<!-- <div class="col-sm-12 search-collapse">
<form id="coupon-form">
<div class="select-list">
<ul>
<input type="hidden" name="couType" th:value="${couType}"/>
<li>
<input type="text" name="mobile" placeholder="请输入手机号码"/>
</li>
<li>
状态:
<select name="status" id="">
<option value="0">全部</option>
<option value="1">正常</option>
<option value="2">冻结</option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
</li>
</ul>
</div>
</form>
</div> -->
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<a
class=
"btn btn-primary"
onclick=
"exportSelected()"
shiro:hasPermission=
"monitor:job:export"
>
创建活动
</a>
</div>
<div
class=
"col-sm-12 select-table table-striped"
>
<table
id=
"bootstrap-table"
></table>
</div>
</div>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
// var dicCouponBusiType = [[${@dict.getType('zhengzai_coupon_busi_type')}]];
// var dicCouponBindType = [[${@dict.getType('zhengzai_coupon_bind_type')}]];
var
prefix
=
ctx
+
"stone/logs"
;
var
prefix2
=
ctx
+
"local"
;
// var viewMgtCouponFlag = [[${@permission.hasPermi('candy:coupon:mgt:detail')}]];
// var cancelMgtCouponFlag = [[${@permission.hasPermi('candy:coupon:mgt:cancel')}]];
var
couType
=
[[
$
{
couType
}]];
$
(
function
()
{
var
options
=
{
url
:
'/kylin-acitve/pageActive'
,
pagination
:
true
,
modalName
:
"积分"
,
columns
:
[
{
checkbox
:
false
},
{
field
:
'activeName'
,
title
:
'活动名称'
},
{
field
:
'number'
,
title
:
'券数量'
},
{
title
:
'操作'
,
// align: 'center',
formatter
:
function
(
value
,
row
,
index
)
{
let
dataArr
=
[];
dataArr
.
push
(
`<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="opendTicketList('
${
row
.
activeId
}
')"><i class="fa fa-search"></i>查看券列表</span>`
)
return
dataArr
.
join
(
' '
)
}
}]
};
$
.
table
.
init
(
options
);
});
function
opendTicketList
(
id
)
{
console
.
log
(
id
,
'121212121212activityTicketList'
)
var
url
=
prefix2
+
'/activityTicketList?id='
+
id
;
$
.
modal
.
openTab
(
"活动券列表"
,
url
);
}
function
openModal
(
uid
,
status
,
title
)
{
$
.
modal
.
confirm
(
title
,
function
()
{
let
data
=
{
status
,
uid
}
$
.
ajax
({
type
:
'put'
,
url
:
prefix
+
'/change/status'
,
data
,
success
:
function
(
e
)
{
$
(
"button[name=refresh]"
).
click
();
}
})
});
}
// 导出数据
function
exportSelected
()
{
// console.log(userIds.toString(), 'dataParam')
$
.
modal
.
open
(
'创建活动'
,
prefix2
+
"/createActivityModal"
,
500
,
260
,
cancel
)
}
function
cancel
()
{
console
.
log
(
'确定按钮?'
)
}
</script>
</body>
</html>
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/performanceActivity/createActivity.html
0 → 100644
View file @
9d98998c
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
xmlns:shiro=
"http://www.pollix.at/thymeleaf/shiro"
>
<head>
<th:block
th:include=
"include :: header('创建活动')"
/>
<th:block
th:include=
"include :: bootstrap-fileinput-css"
/>
<style>
.create_activity_box
{
padding
:
20px
;
}
.items
{
/* border: 1px dashed #ccc; */
border-radius
:
10px
;
padding
:
12px
;
margin-bottom
:
10px
;
}
label
{
width
:
80px
;
text-align
:
right
;
}
input
{
width
:
200px
;
height
:
30px
;
}
.footer_btn
{
margin-top
:
20px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
select
{
height
:
30px
;
width
:
200px
;
}
</style>
</head>
<body>
<div
class=
"create_activity_box"
>
<div
class=
"items"
>
<label><span
style=
"color: red;"
>
*
</span>
活动名称:
</label>
<input
type=
"text"
id=
"activityName"
/>
</div>
<!-- <div class="items">
关联演出:
<select name="tagType">
<option value="">全部</option>
<option>1</option>
<option>1</option>
<option>1</option>
<option>1</option>
</select>
</div> -->
<div
class=
"items"
>
<label><span
style=
"color: red;"
>
*
</span>
券数量:
</label>
<input
type=
"text"
id=
"ticketNum"
/>
</div>
<div
class=
"footer_btn"
>
<button
type=
"button"
class=
"btn btn-success"
onclick=
"save()"
>
保存
</button>
</div>
</div>
<th:block
th:include=
"include :: footer"
/>
<th:block
th:include=
"include :: bootstrap-fileinput-js"
/>
<th:block
th:include=
"include :: bootstrap-suggest-js"
/>
<script
th:inline=
"javascript"
>
var
prefix2
=
ctx
+
"local"
;
var
platformUrl
=
[[
$
{
platformUrl
}]];
let
count
=
0
;
let
compilationsId
=
''
;
let
createTime
=
''
;
let
cubeId
=
''
;
let
mid
=
''
;
let
updateTime
=
''
;
function
save
()
{
let
activityName
=
$
(
"#activityName"
).
val
();
let
ticketNum
=
$
(
"#ticketNum"
).
val
();
if
(
!
activityName
||
!
ticketNum
)
{
layer
.
msg
(
'请将表单填写完整!'
)
}
let
data
=
{
"activeId"
:
""
,
"activeName"
:
activityName
,
"delTag"
:
0
,
"mid"
:
0
,
"number"
:
ticketNum
,
"performanceId"
:
""
}
promiseMethods
(
'/kylin-acitve/add'
,
'post'
,
JSON
.
stringify
(
data
),
'application/json'
).
then
((
res
)
=>
{
layer
.
msg
(
"保存成功!"
)
$
.
operate
.
successCallback
(
res
);
})
}
function
promiseMethods
(
url
,
type
,
data
,
contentType
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
$
.
ajax
({
url
,
type
,
data
,
contentType
,
success
:
function
(
res
)
{
resolve
(
res
);
}
})
})
}
</script>
</body>
</html>
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/performanceActivity/ticketList.html
0 → 100644
View file @
9d98998c
<!DOCTYPE html>
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
xmlns:shiro=
"http://www.pollix.at/thymeleaf/shiro"
>
<head>
<th:block
th:include=
"include :: header('积分明细')"
/>
<style>
body
.layui-layer-btn
{
display
:
none
!important
;
}
</style>
</head>
<body
class=
"gray-bg"
>
<div
class=
"container-div"
>
<div
class=
"row"
>
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<a
class=
"btn btn-warning"
onclick=
"exportSelected()"
>
<i
class=
"fa fa-download"
></i>
导出
</a>
</div>
<div
class=
"col-sm-12 select-table table-striped"
>
<table
id=
"bootstrap-table"
></table>
</div>
</div>
</div>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
var
prefix
=
ctx
+
"stone/logs"
;
var
prefix2
=
ctx
+
"local"
;
var
couType
=
[[
$
{
couType
}]];
let
id
=
''
$
(
function
()
{
var
options
=
{
url
:
'/kylin-acitve/pageActiveTicket'
,
pagination
:
true
,
modalName
:
"积分"
,
queryParams
:
queryParams
,
columns
:
[
{
checkbox
:
false
},
{
field
:
'code'
,
title
:
'券码'
},
{
field
:
'state'
,
title
:
'券状态'
},
{
field
:
'createdAt'
,
title
:
'创建时间'
}]
};
$
.
table
.
init
(
options
);
});
function
queryParams
(
params
)
{
let
name
=
'id'
;
var
reg
=
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
id
=
unescape
(
r
[
2
]);
var
search
=
$
.
table
.
queryParams
(
params
);
search
.
activeId
=
id
;
return
search
;
}
function
opendTicketList
(
id
)
{
var
url
=
prefix2
+
'activityTicketList?id='
+
id
;
$
.
modal
.
openTab
(
"活动券列表"
,
url
);
}
// 导出数据
function
exportSelected
()
{
$
.
ajax
({
type
:
'post'
,
url
:
'/kylin-acitve/exportTicket'
,
data
:
{
activeId
:
id
,
activeName
:
'dasdas'
},
success
:
function
(
res
)
{
console
.
log
(
res
,
'????'
)
window
.
location
.
href
=
ctx
+
"common/download?fileName="
+
encodeURI
(
res
.
msg
)
+
"&delete="
+
true
;
}
})
}
</script>
</body>
</html>
\ No newline at end of file
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