记得上下班打卡 | 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
5ffcbdb8
Commit
5ffcbdb8
authored
Oct 09, 2022
by
xuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改小家伙
parent
6d329c90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
2 deletions
+42
-2
list.html
...ain/resources/templates/zhengzai/smile/userList/list.html
+42
-2
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/smile/userList/list.html
View file @
5ffcbdb8
...
@@ -35,6 +35,11 @@
...
@@ -35,6 +35,11 @@
</div>
</div>
<th:block
th:include=
"include :: footer"
/>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
<script
th:inline=
"javascript"
>
let
uid
=
null
let
perId
=
null
let
hostname
=
null
var
title
=
null
let
dialog
=
`<div class="dialog" style="height:200px;width:500px;display: flex;flex-direction: column;justify-content: space-around;align-items: center;">
let
dialog
=
`<div class="dialog" style="height:200px;width:500px;display: flex;flex-direction: column;justify-content: space-around;align-items: center;">
<div class="title">请输入拉黑原因</div>
<div class="title">请输入拉黑原因</div>
<textarea name="" id="" cols="50" rows="10"></textarea>
<textarea name="" id="" cols="50" rows="10"></textarea>
...
@@ -50,6 +55,7 @@
...
@@ -50,6 +55,7 @@
</select>
</select>
<input id="ticket" type="text" placeholder="票提设置%" style="width:200px;height: 30px;">
<input id="ticket" type="text" placeholder="票提设置%" style="width:200px;height: 30px;">
</div>`
</div>`
var
detailFlag
=
[[
$
{@
permission
.
hasPermi
(
'smile:performances:detail'
)}]];
var
detailFlag
=
[[
$
{@
permission
.
hasPermi
(
'smile:performances:detail'
)}]];
var
smilePrefix
=
ctx
+
"smile/user"
;
var
smilePrefix
=
ctx
+
"smile/user"
;
console
.
log
(
smilePrefix
);
console
.
log
(
smilePrefix
);
...
@@ -152,13 +158,14 @@
...
@@ -152,13 +158,14 @@
var
actions
=
[];
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="goDetail(
\'
'
+
row
.
type
+
'
\'
,
\'
'
+
row
.
uid
+
'
\'
)"><i class="fa fa-edit"></i>查看</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="goDetail(
\'
'
+
row
.
type
+
'
\'
,
\'
'
+
row
.
uid
+
'
\'
)"><i class="fa fa-edit"></i>查看</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="updateUserStateById(
\'
'
+
row
.
uid
+
'
\'
,
\'
'
+
1
+
'
\'
)"><i class="fa fa-edit"></i>加入黑名单</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="updateUserStateById(
\'
'
+
row
.
uid
+
'
\'
,
\'
'
+
1
+
'
\'
)"><i class="fa fa-edit"></i>加入黑名单</a> '
);
if
(
row
.
type
===
5
){
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="showQRcode(
\'
'
+
row
.
uid
+
'
\'
)"><i class="fa fa-edit"></i>查看二维码</a> '
);
}
return
actions
.
join
(
''
);
return
actions
.
join
(
''
);
}
}
}]
}]
};
};
$
.
table
.
init
(
options
);
$
.
table
.
init
(
options
);
console
.
log
(
options
)
});
});
function
goDetail
(
type
,
id
)
{
function
goDetail
(
type
,
id
)
{
if
(
type
===
'5'
){
if
(
type
===
'5'
){
...
@@ -223,6 +230,39 @@
...
@@ -223,6 +230,39 @@
})
})
})
})
}
}
function
showQRcode
(
id
){
if
(
window
.
location
.
hostname
.
indexOf
(
'dev'
)
!==
-
1
){
hostname
=
'https://devm.zhengzai.tv'
}
else
if
(
window
.
location
.
hostname
.
indexOf
(
'test'
)
!==
-
1
){
hostname
=
'https://testm.zhengzai.tv'
}
else
{
hostname
=
'https://testm.zhengzai.tv'
}
uid
=
id
$
.
ajax
({
type
:
'post'
,
url
:
smilePrefix
+
"/getUserById"
,
data
:
{
uid
:
id
},
success
:
function
(
res
){
perId
=
res
.
data
.
perId
title
=
res
.
data
.
title
}
})
setTimeout
(()
=>
{
let
qrCode
=
`<div style="height:300px;display: flex;flex-direction: column;justify-content: space-around;align-items: center;">
<p style="width: 100%;text-align: center;">查看二维码</p>
<img src="https://api.qrserver.com/v1/create-qr-code?data=
${
hostname
}
/%23/ticket/detail?id=
${
perId
}
&agentId=
${
uid
}
" style="width: 200px;height: 200px;">
<p>地址链接:'https://api.qrserver.com/v1/create-qr-code?data=
${
hostname
}
/%23/ticket/detail?id=
${
perId
}
&agentId=
${
uid
}
'</p>
<p>演出名称:
${
title
}
</p>
</div>`
$
.
modal
.
confirm
(
qrCode
,()
=>
{
})
},
100
)
}
// 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')}]];
...
...
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