记得上下班打卡 | 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
ed187d45
Commit
ed187d45
authored
Oct 26, 2021
by
dongchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增积分管理页面
parent
1faac76d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
169 additions
and
7 deletions
+169
-7
LocalAdminController.java
...t/admin/web/controller/zhengzai/LocalAdminController.java
+9
-4
add1.html
...n/resources/templates/zhengzai/candy/coupon/mgt/add1.html
+1
-1
LuckyDraw.html
...main/resources/templates/zhengzai/integral/LuckyDraw.html
+0
-1
integralStore.html
.../resources/templates/zhengzai/integral/integralStore.html
+0
-1
integralList.html
...main/resources/templates/zhengzai/stone/integralList.html
+159
-0
integralOrder.html
...ain/resources/templates/zhengzai/stone/integralOrder.html
+0
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/LocalAdminController.java
View file @
ed187d45
...
@@ -26,16 +26,16 @@ import java.util.List;
...
@@ -26,16 +26,16 @@ import java.util.List;
@RequestMapping
(
"local"
)
@RequestMapping
(
"local"
)
public
class
LocalAdminController
extends
BaseController
public
class
LocalAdminController
extends
BaseController
{
{
private
String
prefix
=
"zhengzai/
integral
"
;
private
String
prefix
=
"zhengzai/
stone
"
;
@Autowired
@Autowired
private
IAdamUserAdminService
adamUserService
;
private
IAdamUserAdminService
adamUserService
;
@GetMapping
(
"/integral
Detail
"
)
@GetMapping
(
"/integral
List
"
)
public
String
integral
Detail
()
public
String
integral
List
()
{
{
return
prefix
+
"/integral
Detail
"
;
return
prefix
+
"/integral
List
"
;
}
}
@GetMapping
(
"/integralStore"
)
@GetMapping
(
"/integralStore"
)
public
String
integralStore
()
public
String
integralStore
()
...
@@ -52,5 +52,10 @@ public class LocalAdminController extends BaseController
...
@@ -52,5 +52,10 @@ public class LocalAdminController extends BaseController
{
{
return
prefix
+
"/integralOrder"
;
return
prefix
+
"/integralOrder"
;
}
}
@GetMapping
(
"/integralDetail"
)
public
String
integralDetail
()
{
return
prefix
+
"/integralDetail"
;
}
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/candy/coupon/mgt/add1.html
View file @
ed187d45
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
</div>
</div>
<div
class=
"bottom_btn"
>
<div
class=
"bottom_btn"
>
<!-- <button type="button" class="layui-btn btn btn-primary" lay-filter="formDemo" onclick="create()">创建代金券</button> -->
<!-- <button type="button" class="layui-btn btn btn-primary" lay-filter="formDemo" onclick="create()">创建代金券</button> -->
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"create()"
>
创建代金券
111
</button>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"create()"
>
创建代金券
</button>
</div>
</div>
</div>
</div>
</form>
</form>
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/integral/LuckyDraw.html
deleted
100644 → 0
View file @
1faac76d
转盘抽奖
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/integral/integralStore.html
deleted
100644 → 0
View file @
1faac76d
积分商城
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/
integral/integralDetail
.html
→
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/
stone/integralList
.html
View file @
ed187d45
...
@@ -12,7 +12,15 @@
...
@@ -12,7 +12,15 @@
<ul>
<ul>
<input
type=
"hidden"
name=
"couType"
th:value=
"${couType}"
/>
<input
type=
"hidden"
name=
"couType"
th:value=
"${couType}"
/>
<li>
<li>
<input
type=
"text"
name=
"keyword"
placeholder=
"搜索"
/>
<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>
<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-primary btn-rounded btn-sm"
onclick=
"$.table.search()"
><i
class=
"fa fa-search"
></i>
搜索
</a>
...
@@ -24,7 +32,7 @@
...
@@ -24,7 +32,7 @@
</div>
</div>
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<a
class=
"btn btn-warning"
onclick=
"
$.table.exportExcel
()"
shiro:hasPermission=
"monitor:job:export"
>
<a
class=
"btn btn-warning"
onclick=
"
exportSelected
()"
shiro:hasPermission=
"monitor:job:export"
>
<i
class=
"fa fa-download"
></i>
导出
<i
class=
"fa fa-download"
></i>
导出
</a>
</a>
</div>
</div>
...
@@ -38,7 +46,8 @@
...
@@ -38,7 +46,8 @@
<script
th:inline=
"javascript"
>
<script
th:inline=
"javascript"
>
var
dicCouponBusiType
=
[[
$
{@
dict
.
getType
(
'zhengzai_coupon_busi_type'
)}]];
var
dicCouponBusiType
=
[[
$
{@
dict
.
getType
(
'zhengzai_coupon_busi_type'
)}]];
var
dicCouponBindType
=
[[
$
{@
dict
.
getType
(
'zhengzai_coupon_bind_type'
)}]];
var
dicCouponBindType
=
[[
$
{@
dict
.
getType
(
'zhengzai_coupon_bind_type'
)}]];
var
prefix
=
ctx
+
"candy/coupon/mgt"
;
var
prefix
=
ctx
+
"stone/logs"
;
var
prefix2
=
ctx
+
"local"
;
var
viewMgtCouponFlag
=
[[
$
{@
permission
.
hasPermi
(
'candy:coupon:mgt:detail'
)}]];
var
viewMgtCouponFlag
=
[[
$
{@
permission
.
hasPermi
(
'candy:coupon:mgt:detail'
)}]];
var
cancelMgtCouponFlag
=
[[
$
{@
permission
.
hasPermi
(
'candy:coupon:mgt:cancel'
)}]];
var
cancelMgtCouponFlag
=
[[
$
{@
permission
.
hasPermi
(
'candy:coupon:mgt:cancel'
)}]];
...
@@ -48,74 +57,101 @@
...
@@ -48,74 +57,101 @@
$
(
function
()
{
$
(
function
()
{
var
options
=
{
var
options
=
{
url
:
prefix
+
"/list"
,
url
:
prefix
+
"/list"
,
createUrl
:
prefix
+
"/add/{id}"
,
detailUrl
:
prefix
+
"/integralStoreEdit?id={id}"
,
detailUrl
:
prefix
+
"/detail/"
+
couType
+
"/{id}"
,
removeUrl
:
prefix
+
"/cancel/{id}"
,
removeUrl
:
prefix
+
"/cancel/{id}"
,
// updateUrl: prefix + "/edit/{id}",
// updateUrl: prefix + "/edit/{id}",
// exportUrl: prefix + "/export",
// exportUrl: prefix + "/export",
sortName
:
"createdAt"
,
sortName
:
"createdAt"
,
sortOrder
:
"desc"
,
sortOrder
:
"desc"
,
modalName
:
"
代金券
"
,
modalName
:
"
积分
"
,
columns
:
[
columns
:
[
{
{
checkbox
:
true
checkbox
:
true
},
},
{
{
field
:
'valFace'
,
field
:
'nickName'
,
title
:
'呢称'
,
title
:
'呢称'
formatter
:
function
(
value
,
row
,
index
)
{
return
'¥'
+
value
;
}
},
},
{
{
field
:
'
eventAmt
'
,
field
:
'
mobile
'
,
title
:
'手机号'
title
:
'手机号'
},
},
{
{
field
:
'bindType'
,
field
:
'scoreAll'
,
title
:
'总积分'
,
title
:
'总积分'
formatter
:
function
(
value
,
row
,
index
)
{
return
$
.
table
.
selectDictLabel
(
dicCouponBindType
,
value
);
}
},
},
{
{
field
:
'busiType'
,
field
:
'scoreUse'
,
title
:
'已使用积分'
,
title
:
'已使用积分'
formatter
:
function
(
value
,
row
,
index
)
{
return
$
.
table
.
selectDictLabel
(
dicCouponBusiType
,
value
);
}
},
},
{
{
field
:
'
title
'
,
field
:
'
scoreRest
'
,
title
:
'剩余积分'
title
:
'剩余积分'
},
},
{
{
field
:
'notice'
,
field
:
'status'
,
title
:
'积分状态'
title
:
'积分状态'
,
formatter
:
function
(
value
,
row
,
index
)
{
if
(
value
==
0
)
{
return
"全部"
}
else
if
(
value
==
1
)
{
return
"正常"
}
else
{
return
"冻结"
}
}
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
// align: 'center',
// align: 'center',
formatter
:
function
(
value
,
row
,
index
)
{
formatter
:
function
(
value
,
row
,
index
)
{
let
dataArr
=
[];
let
dataArr
=
[];
return
`<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openModal('
${
index
}
')"><i class="fa fa-search"></i>查看</span>
dataArr
.
push
(
`<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="$.operate.detailTab('
${
row
.
uid
}
')"><i class="fa fa-search"></i>查看</span>`
)
<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openModal('
${
index
}
')"><i class="fa fa-search"></i>加入黑名单</span>`
if
(
row
.
status
==
1
)
{
dataArr
.
push
(
`<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openModal('
${
row
.
uid
}
', 2, '冻结后,用户将不可使用积分功能')">冻结</span>`
)
}
else
if
(
row
.
status
==
2
)
{
dataArr
.
push
(
`<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openModal('
${
row
.
uid
}
', 1, '移除冻结后,用户积分账户立即恢复正常使用')">移除冻结</span>`
)
}
return
dataArr
.
join
(
' '
)
}
}
}]
}]
};
};
$
.
table
.
init
(
options
);
$
.
table
.
init
(
options
);
});
});
/* 查看码列表 */
function
openModal
(
uid
,
status
,
title
)
{
function
couponCodeList
(
couponId
)
{
$
.
modal
.
confirm
(
title
,
function
()
{
var
url
=
'candy/coupon/code?couponId='
+
couponId
;
let
data
=
{
$
.
modal
.
openTab
(
"积分明细列表"
,
url
);
status
,
uid
}
$
.
ajax
({
type
:
'put'
,
url
:
prefix
+
'/change/status'
,
data
,
success
:
function
(
e
)
{
console
.
log
(
e
)
}
})
});
}
// 导出数据
function
exportSelected
()
{
var
userIds
=
$
.
table
.
selectColumns
(
"uid"
);
var
dataParam
=
$
(
"#export-form"
).
serializeArray
();
var
tipMsg
=
"确定导出所有数据吗?"
;
if
(
$
.
common
.
isNotEmpty
(
userIds
)){
tipMsg
=
"确定导出勾选"
+
userIds
.
length
+
"条数据吗?"
;
dataParam
.
push
({
"name"
:
"uid"
,
"value"
:
userIds
});
}
}
function
openModal
(
id
)
{
$
.
modal
.
confirm
(
tipMsg
,
function
()
{
// console.log('111111')
$
.
post
(
'demo/table/exportData'
,
dataParam
,
function
(
result
)
{
$
.
modal
.
confirm
(
"加入黑名单后,用户将不可使用积分功能"
,
function
()
{
if
(
result
.
code
==
web_status
.
SUCCESS
)
{
console
.
log
(
12121212
)
window
.
location
.
href
=
ctx
+
"common/download?fileName="
+
encodeURI
(
result
.
msg
)
+
"&delete="
+
true
;
// $.operate.post(prefix + "/edit_onsale", { "memberId": memberId, "onsale": 2 });
}
else
{
$
.
modal
.
alertError
(
result
.
msg
);
}
});
});
});
}
}
</script>
</script>
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/
integral
/integralOrder.html
→
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/
stone
/integralOrder.html
View file @
ed187d45
File moved
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