记得上下班打卡 | 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
cb4bbe8a
Commit
cb4bbe8a
authored
Oct 26, 2021
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增积分管理页面
parent
ed187d45
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
868 additions
and
0 deletions
+868
-0
LuckyDraw.html
...rc/main/resources/templates/zhengzai/stone/LuckyDraw.html
+1
-0
integralDetail.html
...in/resources/templates/zhengzai/stone/integralDetail.html
+165
-0
integralStore.html
...ain/resources/templates/zhengzai/stone/integralStore.html
+163
-0
integralStoreEdit.html
...resources/templates/zhengzai/stone/integralStoreEdit.html
+539
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/stone/LuckyDraw.html
0 → 100644
View file @
cb4bbe8a
转盘抽奖
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/stone/integralDetail.html
0 → 100644
View file @
cb4bbe8a
<!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>
#toolbar
p
{
margin
:
0
;
padding
:
0
;
padding-bottom
:
12px
;
border-bottom
:
2px
solid
skyblue
;
}
.top_data
{
display
:
flex
;
padding
:
20px
;
}
.top_data_img
span
{
display
:
inline-block
;
width
:
70px
;
height
:
70px
;
background
:
#ccc
;
border-radius
:
50%
;
}
.top_data_right
{
margin-left
:
12px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
}
.top_data_right
.name
.nameSp
{
margin-left
:
12px
;
}
.userData
{
margin-top
:
14px
;
display
:
flex
;
}
.userData
p
{
margin-right
:
12px
;
}
</style>
</head>
<body
class=
"gray-bg"
>
<div
class=
"container-div"
>
<div
class=
"row"
>
<div
class=
"col-sm-12 search-collapse"
>
<div
class=
"top_data"
>
<div
class=
"top_data_img"
>
<span></span>
</div>
<div
class=
"top_data_right"
>
<div
class=
"name"
><span
id=
"name"
>
张三
</span><span
class=
"nameSp"
>
17788774478
</span></div>
<div
class=
"userData"
>
<p>
积分状态:
<span
id=
"status"
>
正常
</span></p>
<p>
总积分:
<span
id=
"scoreAll"
>
1000
</span></p>
<p>
已使用积分:
<span
id=
"scoreUse"
>
300
</span></p>
<p>
剩余积分:
<span
id=
"scoreRest"
>
700
</span></p>
</div>
</div>
</div>
</div>
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<p>
积分变更记录
</p>
</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
viewMgtCouponFlag
=
[[
$
{@
permission
.
hasPermi
(
'candy:coupon:mgt:detail'
)}]];
var
cancelMgtCouponFlag
=
[[
$
{@
permission
.
hasPermi
(
'candy:coupon:mgt:cancel'
)}]];
var
couType
=
[[
$
{
couType
}]];
$
(
function
()
{
var
options
=
{
url
:
prefix
+
"/list"
,
createUrl
:
prefix
+
"/add/{id}"
,
removeUrl
:
prefix
+
"/cancel/{id}"
,
// updateUrl: prefix + "/edit/{id}",
// exportUrl: prefix + "/export",
sortName
:
"createdAt"
,
sortOrder
:
"desc"
,
modalName
:
"积分"
,
columns
:
[
{
field
:
'valFace'
,
title
:
'时间'
,
formatter
:
function
(
value
,
row
,
index
)
{
return
'¥'
+
value
;
}
},
{
field
:
'eventAmt'
,
title
:
'类型'
},
{
field
:
'bindType'
,
title
:
'任务名称'
,
formatter
:
function
(
value
,
row
,
index
)
{
return
$
.
table
.
selectDictLabel
(
dicCouponBindType
,
value
);
}
},
{
field
:
'busiType'
,
title
:
'获得积分'
,
formatter
:
function
(
value
,
row
,
index
)
{
return
$
.
table
.
selectDictLabel
(
dicCouponBusiType
,
value
);
}
},
{
field
:
'title'
,
title
:
'变更原因'
}
]
};
$
.
table
.
init
(
options
);
});
getAllData
();
function
getAllData
()
{
let
uid
=
getUrlParms
(
'id'
);
let
data
=
{
uid
}
$
.
ajax
({
type
:
'get'
,
url
:
prefix
+
'/details'
,
data
,
success
:
function
(
e
)
{
console
.
log
(
e
)
if
(
e
.
code
==
0
)
{
const
{
dto
}
=
e
.
data
;
$
(
'#name'
).
text
(
dto
.
nickName
);
let
statusName
=
''
;
$
(
'#scoreAll'
).
text
(
dto
.
scoreAll
);
$
(
'#scoreUse'
).
text
(
dto
.
scoreUse
);
$
(
'#scoreRest'
).
text
(
dto
.
scoreRest
);
if
(
dto
.
status
==
1
)
{
statusName
=
'正常'
}
else
{
statusName
=
'冻结'
}
$
(
'#status'
).
text
(
statusName
);
}
}
})
}
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
;
}
/* 查看码列表 */
function
couponCodeList
(
couponId
)
{
var
url
=
'candy/coupon/code?couponId='
+
couponId
;
$
.
modal
.
openTab
(
"积分明细列表"
,
url
);
}
</script>
</body>
</html>
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/stone/integralStore.html
0 → 100644
View file @
cb4bbe8a
<!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('积分明细')"
/>
</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=
"title"
placeholder=
"请输入商品名称"
/>
</li>
<li>
状态:
<select
name=
"state"
id=
""
>
<option
value=
""
>
全部
</option>
<option
value=
""
>
上架中
</option>
<option
value=
""
>
待上架
</option>
<option
value=
""
>
已下架
</option>
</select>
</li>
<li>
类型:
<select
name=
"type"
id=
""
>
<option
value=
""
>
全部
</option>
<option
value=
""
>
券
</option>
<option
value=
""
>
商品
</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-warning"
th:onclick=
"$.operate.addTab(1)"
>
<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
dicCouponBusiType
=
[[
$
{@
dict
.
getType
(
'zhengzai_coupon_busi_type'
)}]];
var
dicCouponBindType
=
[[
$
{@
dict
.
getType
(
'zhengzai_coupon_bind_type'
)}]];
var
prefix
=
ctx
+
"stone/item"
;
var
prefix2
=
ctx
;
var
couType
=
[[
$
{
couType
}]];
$
(
function
()
{
var
options
=
{
url
:
prefix2
+
"stone/item/list"
,
createUrl
:
prefix
+
"/integralStoreEdit"
,
detailUrl
:
prefix
+
"/integralStoreEdit/${id}"
,
removeUrl
:
prefix2
+
"cancel/{id}"
,
updateUrl
:
prefix
+
"/integralStoreEdit?id={id}"
,
// exportUrl: prefix + "/export",
sortName
:
"createdAt"
,
sortOrder
:
"desc"
,
modalName
:
"商品"
,
columns
:
[
{
field
:
''
,
title
:
'序号'
,
formatter
:
function
(
value
,
row
,
index
)
{
return
index
+
1
}
},
{
field
:
'targetTitle'
,
title
:
'商品名称'
},
{
field
:
'status'
,
title
:
'状态'
,
formatter
:
function
(
value
,
row
,
index
)
{
if
(
value
==
1
)
{
return
"不限"
}
else
if
(
value
==
2
)
{
return
"定时"
}
else
{
return
"下线"
}
}
},
{
field
:
'busiType'
,
title
:
'类型'
,
formatter
:
function
(
value
,
row
,
index
)
{
return
'券'
}
},
{
field
:
'score'
,
title
:
'所需积分'
},
{
field
:
'limitCount'
,
title
:
'每人限兑次数'
},
{
field
:
'generalSurplus'
,
title
:
'已兑换数量'
},
{
field
:
'generalTotal'
,
title
:
'剩余库存'
},
{
field
:
'createdAt'
,
title
:
'创建时间'
},
{
title
:
'操作'
,
// align: 'center',
formatter
:
function
(
value
,
row
,
index
)
{
let
dataArr
=
[];
return
`<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="$.operate.editTab('
${
row
.
itemId
}
')">编辑</span>
<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openShelvesModal('
${
row
.
itemId
}
', 7, '确定下架此商品吗?')">下架</span>
<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openShelvesModal('
${
row
.
itemId
}
', '-1', '确定删除此商品吗?')">删除</span>`
}
}]
};
$
.
table
.
init
(
options
);
});
/* 查看码列表 */
function
couponCodeList
(
couponId
)
{
var
url
=
'candy/coupon/code?couponId='
+
couponId
;
$
.
modal
.
openTab
(
"积分明细列表"
,
url
);
}
function
openShelvesModal
(
id
,
status
,
notice
)
{
// console.log('111111')
$
.
modal
.
confirm
(
notice
,
function
()
{
console
.
log
(
id
,
status
)
$
.
ajax
({
type
:
'put'
,
url
:
'/stone/item/change/status'
,
data
:
{
itemId
:
id
,
status
},
success
:
function
(
e
)
{
console
.
log
(
e
)
layer
.
msg
(
"操作成功!"
)
$
(
"button[name=refresh]"
).
click
()
}
})
});
}
</script>
</body>
</html>
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/stone/integralStoreEdit.html
0 → 100644
View file @
cb4bbe8a
This diff is collapsed.
Click to expand it.
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