Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3602e96f
authored
Oct 14, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
df3057dd
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
119 additions
and
42 deletions
css/main.css
html/employee/index.html
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/detail.html
html/merchant/edit.html
html/merchant/index.html
html/merchant/validPeriodForm.html
js/load.js
css/main.css
View file @
3602e96
...
@@ -11,7 +11,7 @@ html, body {
...
@@ -11,7 +11,7 @@ html, body {
flex-direction
:
column
;
flex-direction
:
column
;
height
:
100%
;
height
:
100%
;
background-color
:
#F4F5FA
;
background-color
:
#F4F5FA
;
padding
:
0
20px
20px
40px
;
padding
:
0
20px
0
40px
;
}
}
header
{
header
{
...
@@ -100,9 +100,9 @@ main {
...
@@ -100,9 +100,9 @@ main {
/* -ms-scroll-chaining: chained;
/* -ms-scroll-chaining: chained;
-ms-overflow-style: none; */
-ms-overflow-style: none; */
}
}
.context-block
{
/*
.context-block {
height: 100%;
height: 100%;
}
}
*/
.search-block
{
.search-block
{
/* padding: 8px 20px; */
/* padding: 8px 20px; */
position
:
relative
;
position
:
relative
;
...
@@ -158,3 +158,46 @@ footer {
...
@@ -158,3 +158,46 @@ footer {
height
:
64px
;
height
:
64px
;
line-height
:
64px
;
line-height
:
64px
;
}
}
.layui-tab-title
{
background-color
:
#F4F6FC
;
border-radius
:
4px
;
border
:
none
;
}
.layui-tab-title
.layui-this
:after
{
border
:
none
;
}
.layui-tab-brief
>
.layui-tab-title
.layui-this
,
.layui-tab-title
.layui-this
{
color
:
#5850FF
;
background-color
:
#fff
;
}
.layui-tab-title
.layui-this
{
transform
:
scale
(
0.97
,
0.9
);
}
.layui-tab-title
,
.layui-tree-box
.layui-this
{
transform
:
scale
(
1
);
}
.layui-tab-title
li
{
width
:
180px
;
}
.layui-tab-content
{
/* margin-top: 20px; */
background-color
:
#fff
;
}
.layui-tab-content
.layui-form-pane
.layui-form-label
{
background-color
:
#fff
;
border
:
none
!important
;
}
.layui-tree-box
{
padding
:
10px
;
background-color
:
#F4F6FC
;
}
.layui-tab-form
{
margin-top
:
20px
;
}
.layui-top-tab.layui-tab-brief
>
.layui-tab-title
.layui-this
{
background-color
:
#F4F6FC
;
}
.m-t-md
{
margin-top
:
20px
;
}
\ No newline at end of file
\ No newline at end of file
html/employee/index.html
View file @
3602e96
...
@@ -90,6 +90,8 @@
...
@@ -90,6 +90,8 @@
// if (isDxternal) {
// if (isDxternal) {
// $('#addEl').remove()
// $('#addEl').remove()
// }
// }
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
console
.
log
(
'accountInfo'
,
accountInfo
)
// 商户名称列表
// 商户名称列表
var
merchantName
=
$
(
'#merchantName'
)
var
merchantName
=
$
(
'#merchantName'
)
var
status
=
$
(
'#status'
)
var
status
=
$
(
'#status'
)
...
@@ -123,12 +125,11 @@
...
@@ -123,12 +125,11 @@
{
fixed
:
'right'
,
title
:
'操作'
,
width
:
220
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
fixed
:
'right'
,
title
:
'操作'
,
width
:
220
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
]
]
var
gl
=
false
//创建table实例
//创建table实例
var
employeeTable
=
table
.
render
({
var
employeeTable
=
table
.
render
({
elem
:
'#employeeTable'
,
elem
:
'#employeeTable'
,
skin
:
'nob'
,
skin
:
'nob'
,
cols
:
gl
?
[
cols
]
:
[
colum
s
],
cols
:
accountInfo
?
[
colums
]
:
[
col
s
],
done
:
function
(
res
,
curr
,
count
)
{
done
:
function
(
res
,
curr
,
count
)
{
$
(
'.switch'
).
hover
(
$
(
'.switch'
).
hover
(
function
()
{
function
()
{
...
@@ -234,11 +235,27 @@
...
@@ -234,11 +235,27 @@
//监听性别操作
//监听性别操作
form
.
on
(
'switch(sexDemo)'
,
function
(
obj
)
{
form
.
on
(
'switch(sexDemo)'
,
function
(
obj
)
{
console
.
log
(
obj
,
obj
.
elem
.
checked
)
if
(
this
.
value
==
'-'
)
{
if
(
this
.
value
==
'-'
)
{
obj
.
elem
.
checked
=
false
obj
.
elem
.
checked
=
!
obj
.
elem
.
checked
form
.
render
(
'checkbox'
)
form
.
render
(
'checkbox'
)
layer
.
msg
(
'您还未给该员工设置“角色”!\n\
layer
.
msg
(
'您还未给该员工设置“角色”!\n\
设置角色:员工账户管理-修改-角色权限'
,
{
time
:
2000
})
设置角色:员工账户管理-修改-角色权限'
,
{
time
:
2000
})
}
else
{
const
param
=
{
id
:
obj
.
elem
.
dataset
.
id
,
status
:
obj
.
elem
.
checked
?
0
:
2
}
var
params
=
helper
.
clone
(
false
,
{
method
:
'cn.com.glsx.merchants.staff.updateStatus'
},
param
)
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
layer
.
msg
(
'操作成功'
,
{
icon
:
1
})
var
searchData
=
getSearch
()
getTabelList
(
employeeTable
,
searchData
,
true
)
}
})
}
}
})
})
...
@@ -363,7 +380,7 @@
...
@@ -363,7 +380,7 @@
</script>
</script>
<script
type=
"text/html"
id=
"switchTpl"
>
<script
type=
"text/html"
id=
"switchTpl"
>
<!--
这里的
checked
的状态只是演示
-->
<!--
这里的
checked
的状态只是演示
-->
<
div
class
=
"switch"
><
input
type
=
"checkbox"
name
=
"sex"
value
=
"{{d.roleName}}"
lay
-
skin
=
"switch"
lay
-
text
=
"开|关"
lay
-
filter
=
"sexDemo"
{{
d
.
statusName
==
'1'
?
'checked'
:
''
}}
><
/div
>
<
div
class
=
"switch"
><
input
type
=
"checkbox"
name
=
"sex"
value
=
"{{d.roleName}}"
data
-
id
=
"{{d.id}}"
lay
-
skin
=
"switch"
lay
-
text
=
"开|关"
lay
-
filter
=
"sexDemo"
{{
d
.
status
==
0
?
'checked'
:
''
}}
><
/div
>
</script>
</script>
</body>
</body>
</html>
</html>
html/merchant/add.html
View file @
3602e96
...
@@ -134,12 +134,15 @@
...
@@ -134,12 +134,15 @@
.edit-box
#accountTypeEl
.layui-form-checked
span
,
.edit-box
#accountTypeEl
.layui-form-checked
span
,
#accountTypeEl
.layui-form-checked
:hover
span
{
#accountTypeEl
.layui-form-checked
:hover
span
{
background-color
:
#
1989fa
!important
;
background-color
:
#
5850FF
!important
;
}
}
.edit-box
#accountTypeEl
.layui-form-checked
i
,
.edit-box
#accountTypeEl
.layui-form-checked
i
,
#accountTypeEl
.layui-form-checked
:hover
i
{
#accountTypeEl
.layui-form-checked
:hover
i
{
color
:
#1989fa
!important
;
color
:
#5850FF
!important
;
}
.layui-form-radio
:hover
*,
.layui-form-radioed
,
.layui-form-radioed
>
i
{
color
:
#5850FF
!important
;
}
}
.pageTitle
{
.pageTitle
{
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -186,7 +189,7 @@
...
@@ -186,7 +189,7 @@
line-height
:
28px
;
line-height
:
28px
;
}
}
#basicForm
{
#basicForm
{
margin-bottom
:
50
px
;
margin-bottom
:
87
px
;
}
}
</style>
</style>
<title>
商户编辑
</title>
<title>
商户编辑
</title>
...
@@ -701,6 +704,7 @@
...
@@ -701,6 +704,7 @@
})
})
form
.
on
(
'submit(handleFirstSubmit)'
,
function
(
data
)
{
form
.
on
(
'submit(handleFirstSubmit)'
,
function
(
data
)
{
console
.
log
(
data
)
var
formData
=
data
.
field
var
formData
=
data
.
field
var
params
=
{
var
params
=
{
isloginName
:
0
isloginName
:
0
...
@@ -717,7 +721,8 @@
...
@@ -717,7 +721,8 @@
'merchantLoginAccount'
,
'merchantLoginAccount'
,
'merchantLoginPassword'
,
'merchantLoginPassword'
,
'merchantAccountLevel'
,
'merchantAccountLevel'
,
'effectiveTime'
'effectiveTime'
,
'merchantModel'
]
]
if
(
formData
.
isloginName
==
'on'
)
{
if
(
formData
.
isloginName
==
'on'
)
{
params
.
isloginName
=
1
params
.
isloginName
=
1
...
@@ -1442,14 +1447,15 @@
...
@@ -1442,14 +1447,15 @@
id
:
id
id
:
id
})
})
var
getTpl
=
var
getTpl
=
`<form class="layui-form layui-form-pane" action="">
`<form class="layui-form layui-form-pane
layui-tab-form
" action="">
<div class="layui-form-item" pane>
<div class="layui-form-item" pane>
<label class="layui-form-label">选择产品:</label>
<label class="layui-form-label">选择产品:</label>
<div class="layui-input-block" id="project
${
id
}
">
<div class="layui-input-block" id="project
${
id
}
">
</div>
</div>
</div>
</div>
</form>
</form>
<div class="layui-tab layui-tab-brief" lay-filter="treeTab{{d.id}}">
<div>请选择产品权限</div>
<div class="layui-tab layui-tree-box" lay-filter="treeTab{{d.id}}">
<ul class="layui-tab-title"></ul>
<ul class="layui-tab-title"></ul>
<div class="layui-tab-content">
<div class="layui-tab-content">
<div class="layui-no-data show" id="nodata
${
id
}
">
<div class="layui-no-data show" id="nodata
${
id
}
">
...
...
html/merchant/addSubMerchant.html
0 → 100644
View file @
3602e96
This diff is collapsed.
Click to expand it.
html/merchant/detail.html
View file @
3602e96
...
@@ -151,19 +151,20 @@
...
@@ -151,19 +151,20 @@
width
:
100%
;
width
:
100%
;
height
:
1px
;
height
:
1px
;
}
}
</style>
</style>
</head>
</head>
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
<main
class=
"bg-white wrapper detail"
>
<main
class=
"bg-white wrapper detail"
>
<div
class=
"layui-tab layui-tab-brief bg-detail"
>
<div
class=
"layui-tab layui-t
op-tab layui-t
ab-brief bg-detail"
>
<ul
class=
"layui-tab-title"
>
<ul
class=
"layui-tab-title"
>
<li
class=
"layui-this"
>
商户信息
</li>
<li
class=
"layui-this"
style=
"padding: 0;width: 90px;margin-right: 20px;"
>
商户信息
</li>
<li>
上级/下级商户
</li>
<li
style=
"padding: 0;width: 90px;margin-right: 20px;"
>
上级/下级商户
</li>
<li>
修改记录
</li>
<li
style=
"padding: 0;width: 90px;"
>
修改记录
</li>
</ul>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-content
m-t-md
"
>
<div
class=
"layui-tab-item layui-show"
>
<div
class=
"layui-tab-item layui-show"
>
<div
class=
"MsgWrap"
get
>
<div
class=
"MsgWrap"
get
>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
...
@@ -484,6 +485,7 @@
...
@@ -484,6 +485,7 @@
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
&&
res
.
data
&&
res
.
data
.
length
!=
0
)
{
if
(
res
.
code
==
'0'
&&
res
.
data
&&
res
.
data
.
length
!=
0
)
{
var
authList
=
res
.
data
var
authList
=
res
.
data
console
.
log
(
authList
)
$
.
each
(
authList
,
function
(
index
,
item
)
{
$
.
each
(
authList
,
function
(
index
,
item
)
{
treeTab
.
tabAdd
(
treeTab
.
tabAdd
(
{
{
...
@@ -507,6 +509,8 @@
...
@@ -507,6 +509,8 @@
var
filterName
=
'treeTab'
+
item
.
accounttypeId
var
filterName
=
'treeTab'
+
item
.
accounttypeId
var
productId
=
'tab_'
+
item
.
accounttypeId
+
'_'
+
item
.
products
[
0
].
productId
var
productId
=
'tab_'
+
item
.
accounttypeId
+
'_'
+
item
.
products
[
0
].
productId
treeTab
.
tabChange
(
filterName
,
productId
)
treeTab
.
tabChange
(
filterName
,
productId
)
}
else
{
}
}
})
})
treeTab
.
tabChange
(
'roleAuth'
,
authList
[
0
].
accounttypeId
)
treeTab
.
tabChange
(
'roleAuth'
,
authList
[
0
].
accounttypeId
)
...
...
html/merchant/edit.html
View file @
3602e96
...
@@ -127,12 +127,15 @@
...
@@ -127,12 +127,15 @@
.edit-box
#accountTypeEl
.layui-form-checked
span
,
.edit-box
#accountTypeEl
.layui-form-checked
span
,
#accountTypeEl
.layui-form-checked
:hover
span
{
#accountTypeEl
.layui-form-checked
:hover
span
{
background-color
:
#
1989fa
!important
;
background-color
:
#
5850FF
!important
;
}
}
.edit-box
#accountTypeEl
.layui-form-checked
i
,
.edit-box
#accountTypeEl
.layui-form-checked
i
,
#accountTypeEl
.layui-form-checked
:hover
i
{
#accountTypeEl
.layui-form-checked
:hover
i
{
color
:
#1989fa
!important
;
color
:
#5850FF
!important
;
}
.layui-form-radio
:hover
*,
.layui-form-radioed
,
.layui-form-radioed
>
i
{
color
:
#5850FF
!important
;
}
}
.layui-tab-content
{
.layui-tab-content
{
position
:
relative
;
position
:
relative
;
...
@@ -165,7 +168,7 @@
...
@@ -165,7 +168,7 @@
line-height
:
28px
;
line-height
:
28px
;
}
}
#basicForm
{
#basicForm
{
margin-bottom
:
50
px
;
margin-bottom
:
87
px
;
}
}
</style>
</style>
<title>
商户编辑
</title>
<title>
商户编辑
</title>
...
@@ -174,12 +177,12 @@
...
@@ -174,12 +177,12 @@
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
<main>
<main>
<div
class=
"layui-tab layui-tab-brief"
lay-filter=
"editTab"
>
<div
class=
"layui-tab layui-t
op-tab layui-t
ab-brief"
lay-filter=
"editTab"
>
<ul
class=
"layui-tab-title"
>
<ul
class=
"layui-tab-title"
>
<li
lay-id=
"2"
id=
"functional"
>
修改功能权限
</li>
<li
lay-id=
"2"
id=
"functional"
style=
"padding: 0;width: 90px;margin-right: 20px;"
>
修改功能权限
</li>
<li
lay-id=
"1"
id=
"basic"
class=
"layui-this"
>
修改基本信息
</li>
<li
lay-id=
"1"
id=
"basic"
style=
"padding: 0;width: 90px;"
class=
"layui-this"
>
修改基本信息
</li>
</ul>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-content
m-t-md
"
>
<!-- 权限树 -->
<!-- 权限树 -->
<div
class=
"layui-tab-item edit-box"
>
<div
class=
"layui-tab-item edit-box"
>
<div
id=
"authorityTree"
>
<div
id=
"authorityTree"
>
...
@@ -1387,14 +1390,15 @@
...
@@ -1387,14 +1390,15 @@
// 选项卡标题的lay-id属性值
// 选项卡标题的lay-id属性值
id
:
id
id
:
id
})
})
var
getTpl
=
`<form class="layui-form layui-form-pane" action="">
var
getTpl
=
`<form class="layui-form layui-form-pane
layui-tab-form
" action="">
<div class="layui-form-item" pane>
<div class="layui-form-item" pane>
<label class="layui-form-label">选择产品:</label>
<label class="layui-form-label">选择产品:</label>
<div class="layui-input-block" id="project
${
id
}
">
<div class="layui-input-block" id="project
${
id
}
">
</div>
</div>
</div>
</div>
</form>
</form>
<div class="layui-tab layui-tab-brief" lay-filter="treeTab{{d.id}}">
<div>请选择产品权限</div>
<div class="layui-tab layui-tree-box" lay-filter="treeTab{{d.id}}">
<ul class="layui-tab-title"></ul>
<ul class="layui-tab-title"></ul>
<div class="layui-tab-content">
<div class="layui-tab-content">
<div class="layui-no-data show" id="nodata
${
id
}
">
<div class="layui-no-data show" id="nodata
${
id
}
">
...
...
html/merchant/index.html
View file @
3602e96
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
<div
class=
"layui-inline customerStatus"
>
<div
class=
"layui-inline customerStatus"
>
<label
class=
"layui-form-label"
>
模式:
</label>
<label
class=
"layui-form-label"
>
模式:
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<select
name=
"
status
"
id=
"searchModelEl"
>
<select
name=
"
merchantModel
"
id=
"searchModelEl"
>
<option
value=
""
>
全部
</option>
<option
value=
""
>
全部
</option>
</select>
</select>
</div>
</div>
...
@@ -320,7 +320,7 @@
...
@@ -320,7 +320,7 @@
align
:
'left'
,
align
:
'left'
,
title
:
'操作'
,
title
:
'操作'
,
toolbar
:
'#merchantBtns'
,
toolbar
:
'#merchantBtns'
,
width
:
22
0
,
width
:
15
0
,
fixed
:
'right'
fixed
:
'right'
// },
// },
// {
// {
...
@@ -483,7 +483,7 @@
...
@@ -483,7 +483,7 @@
// 创建子商户/门店
// 创建子商户/门店
case
'handleAddMerchant'
:
case
'handleAddMerchant'
:
// 1-创建新商户;2-创建子商户;3-修改
// 1-创建新商户;2-创建子商户;3-修改
go
(
'merchant'
,
'add'
,
{
go
(
'merchant'
,
'add
SubMerchant
'
,
{
editLevel
:
2
,
editLevel
:
2
,
parentId
:
row
.
id
,
parentId
:
row
.
id
,
isFactory
:
'false'
,
isFactory
:
'false'
,
...
...
html/merchant/validPeriodForm.html
View file @
3602e96
...
@@ -82,10 +82,10 @@
...
@@ -82,10 +82,10 @@
$
(
'#merchantEl'
).
show
()
$
(
'#merchantEl'
).
show
()
$
(
'#storeEl'
).
hide
()
$
(
'#storeEl'
).
hide
()
setText
(
2
)
setText
(
2
)
console
.
log
(
getQueryString
(
'
effectiveTime
'
))
console
.
log
(
getQueryString
(
'
status
'
))
vaildData
.
effectiveTime
=
getQueryString
(
'
effectiveTime
'
)
vaildData
.
effectiveTime
=
getQueryString
(
'
status
'
)
form
.
val
(
'periodFilter'
,
{
form
.
val
(
'periodFilter'
,
{
effectiveTime
:
'2'
effectiveTime
:
getQueryString
(
'status'
)
})
})
}
}
...
...
js/load.js
View file @
3602e96
...
@@ -38,19 +38,20 @@ function loadHeaderFooter() {
...
@@ -38,19 +38,20 @@ function loadHeaderFooter() {
layui
.
use
([
'store'
],
function
()
{
layui
.
use
([
'store'
],
function
()
{
var
isExternal
=
isAppend
()
var
isExternal
=
isAppend
()
var
store
=
layui
.
store
var
store
=
layui
.
store
console
.
log
(
qs
(
'merchantId'
),
qs
(
'merchantAccountLevel'
))
console
.
log
(
qs
(
'merchantId'
),
qs
(
'accountLevel'
))
if
(
qs
(
'merchantAccountLevel'
))
{
if
(
isExternal
){
//运营平台外部系统
append
()
}
else
{
//嵌入运营平台 或者是登录页面
if
(
qs
(
'sessionId'
))
{
// SCRM 系统
store
.
set
(
'accountInfo'
,
{
store
.
set
(
'accountInfo'
,
{
merchantAccountLevel
:
qs
(
'merchantA
ccountLevel'
),
merchantAccountLevel
:
qs
(
'a
ccountLevel'
),
merchantId
:
qs
(
'merchantId'
),
merchantId
:
qs
(
'merchantId'
),
model
:
qs
(
'model'
)
model
:
qs
(
'model'
)
})
})
// } else {
store
.
set
(
'token'
,
qs
(
'sessionId'
))
// store.set('accountInfo', null)
}
else
{
}
// 运营平台
if
(
isExternal
){
//运营平台外部系统
append
()
}
else
{
//嵌入运营平台 或者是登录页面
if
(
isLoginPage
()){
//如果是登陆页面 直接返回 登录成功会设置token
if
(
isLoginPage
()){
//如果是登陆页面 直接返回 登录成功会设置token
return
return
}
}
...
@@ -59,6 +60,7 @@ function loadHeaderFooter() {
...
@@ -59,6 +60,7 @@ function loadHeaderFooter() {
store
.
set
(
'token'
,
t
)
store
.
set
(
'token'
,
t
)
}
}
}
}
}
})
})
}
}
function
append
()
{
function
append
()
{
...
@@ -68,6 +70,7 @@ function append() {
...
@@ -68,6 +70,7 @@ function append() {
$
(
header
).
load
(
'/html/components/header.html'
)
$
(
header
).
load
(
'/html/components/header.html'
)
$
(
footer
).
load
(
'/html/components/footer.html'
)
$
(
footer
).
load
(
'/html/components/footer.html'
)
$
(
'main'
).
before
(
header
).
after
(
footer
)
$
(
'main'
).
before
(
header
).
after
(
footer
)
}
}
function
isAppend
()
{
function
isAppend
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment