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 6917401a
authored
Oct 17, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整
1 parent
36c43770
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
100 additions
and
36 deletions
css/layui.css
html/employee/index.html
html/merchant/detail.html
html/merchant/index.html
html/role/add.html
html/role/index.html
css/layui.css
View file @
6917401
...
@@ -233,3 +233,52 @@ border-color: var(--borderBlue)!important;
...
@@ -233,3 +233,52 @@ border-color: var(--borderBlue)!important;
.layui-form-item
.layui-input-inline
{
.layui-form-item
.layui-input-inline
{
margin-right
:
0
;
margin-right
:
0
;
}
}
/*滚动条样式 layui-table-body layui-table-main */
.layui-table-body
::-webkit-scrollbar
{
width
:
10px
;
height
:
10px
;
/* display: none; */
}
/*正常情况下滑块的样式*/
.layui-table-body
::-webkit-scrollbar-thumb
{
background-color
:
rgba
(
0
,
0
,
0
,
0.05
);
border-radius
:
10px
;
box-shadow
:
inset
1px
1px
0
rgba
(
0
,
0
,
0
,
0.1
);
}
/*鼠标悬浮在该类指向的控件上时滑块的样式*/
.layui-table-body
::-webkit-scrollbar-thumb
{
/* background-color: rgba(0, 0, 0, 0.2); */
background
:
#e9e8ff
;
border-radius
:
10px
;
box-shadow
:
inset
1px
1px
0
rgba
(
0
,
0
,
0
,
0.1
);
}
/*鼠标悬浮在滑块上时滑块的样式*/
/* &::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.4);
box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1);
} */
/*正常时候的主干部分*/
.layui-table-body
::-webkit-scrollbar-track
{
border-radius
:
10px
;
box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0
);
background-color
:
white
;
}
/*鼠标悬浮在滚动条上的主干部分*/
/* .el-table__body-wrapper::-webkit-scrollbar-track:hover {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
background-color: rgba(0, 0, 0, 0.01);
} */
\ No newline at end of file
\ No newline at end of file
html/employee/index.html
View file @
6917401
...
@@ -129,6 +129,7 @@
...
@@ -129,6 +129,7 @@
var
employeeTable
=
table
.
render
({
var
employeeTable
=
table
.
render
({
elem
:
'#employeeTable'
,
elem
:
'#employeeTable'
,
skin
:
'nob'
,
skin
:
'nob'
,
height
:
'full-300'
,
cols
:
accountInfo
?
[
colums
]
:
[
cols
],
cols
:
accountInfo
?
[
colums
]
:
[
cols
],
done
:
function
(
res
,
curr
,
count
)
{
done
:
function
(
res
,
curr
,
count
)
{
$
(
'.switch'
).
hover
(
$
(
'.switch'
).
hover
(
...
@@ -380,7 +381,9 @@
...
@@ -380,7 +381,9 @@
</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}}"
data
-
id
=
"{{d.id}}"
lay
-
skin
=
"switch"
lay
-
text
=
"开|关"
lay
-
filter
=
"sexDemo"
{{
d
.
status
==
0
?
'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/detail.html
View file @
6917401
...
@@ -512,7 +512,8 @@
...
@@ -512,7 +512,8 @@
{
{
field
:
'userName'
,
field
:
'userName'
,
title
:
'操作人'
,
title
:
'操作人'
,
align
:
'center'
align
:
'center'
,
width
:
180
},
},
{
{
field
:
'createdTime'
,
field
:
'createdTime'
,
...
@@ -707,7 +708,7 @@
...
@@ -707,7 +708,7 @@
{
{
field
:
'createdTime'
,
field
:
'createdTime'
,
title
:
'创建时间'
,
title
:
'创建时间'
,
width
:
18
0
,
width
:
26
0
,
align
:
'center'
align
:
'center'
}
}
]
]
...
...
html/merchant/index.html
View file @
6917401
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
</div>
</div>
</div>
</div>
<!-- </div> -->
<!-- </div> -->
<div
id=
"channelBox"
class=
"hide"
style=
"display: inline-block
;
"
>
<div
id=
"channelBox"
class=
"hide"
style=
"display: inline-block"
>
<div
class=
"layui-inline channel"
>
<div
class=
"layui-inline channel"
>
<label
class=
"layui-form-label"
>
渠道:
</label>
<label
class=
"layui-form-label"
>
渠道:
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
</div>
</div>
<div
class=
"layui-inline customerStatus"
>
<div
class=
"layui-inline customerStatus"
>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<input
class=
"layui-input"
style=
"width: 380px
;
"
name=
"merchantName"
placeholder=
"请输入商户名称/关联的企业微信名"
/>
<input
class=
"layui-input"
style=
"width: 380px"
name=
"merchantName"
placeholder=
"请输入商户名称/关联的企业微信名"
/>
</div>
</div>
</div>
</div>
<div
class=
"layui-inline searchInputBtn"
>
<div
class=
"layui-inline searchInputBtn"
>
...
@@ -191,14 +191,13 @@
...
@@ -191,14 +191,13 @@
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleAddStaff"
>
创建员工
<
/a
>
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleAddStaff"
>
创建员工
<
/a
>
{{
#
}
}}
{{
#
if
((
d
.
btn
.
createSubMerchant
)){
}}
{{
#
}
}}
{{
#
if
((
d
.
btn
.
createSubMerchant
)){
}}
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleAddMerchant"
>
创建子商户
/
门店
<
/a
>
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleAddMerchant"
>
创建子商户
/
门店
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
((
d
.
btn
.
editPeriod
&&
window
.
isDxternal
!=
1
)){
}}
{{
#
if
((
d
.
btn
.
editPeriod
&&
window
.
isDxternal
!=
1
)){
}}
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleVaildPeriod"
>
修改账户有效期
<
/a
>
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleVaildPeriod"
>
修改账户有效期
<
/a
>
{{
#
}
}}
{{
#
}
}}
<
/div
>
<
/div
>
</script>
</script>
<script>
<script>
layui
.
use
([
'gtree'
,
'request'
,
'helper'
,
'table'
,
'laypage'
,
'layer'
],
function
()
{
layui
.
use
([
'gtree'
,
'request'
,
'helper'
,
'table'
,
'laypage'
,
'layer'
],
function
()
{
var
tree
=
layui
.
gtree
var
tree
=
layui
.
gtree
var
request
=
layui
.
request
var
request
=
layui
.
request
var
table
=
layui
.
table
var
table
=
layui
.
table
...
@@ -225,7 +224,7 @@
...
@@ -225,7 +224,7 @@
elem
:
'merchantPage'
,
elem
:
'merchantPage'
,
groups
:
5
,
groups
:
5
,
layout
:
[
'count'
,
'page'
,
'skip'
],
layout
:
[
'count'
,
'page'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
jump
:
function
(
obj
,
first
)
{
//obj包含了当前分页的所有参数,比如:
//obj包含了当前分页的所有参数,比如:
// console.log(obj.curr); //得到当前页,以便向服务端请求对应页的数据。
// console.log(obj.curr); //得到当前页,以便向服务端请求对应页的数据。
// console.log(obj.limit); //得到每页显示的条数
// console.log(obj.limit); //得到每页显示的条数
...
@@ -417,37 +416,38 @@
...
@@ -417,37 +416,38 @@
elem
:
'#merchantTable'
,
elem
:
'#merchantTable'
,
page
:
false
,
page
:
false
,
skin
:
'nob'
,
skin
:
'nob'
,
height
:
'full-300'
,
cols
:
window
.
isDxternal
!=
1
?
[
cols
]
:
[
colums
],
cols
:
window
.
isDxternal
!=
1
?
[
cols
]
:
[
colums
],
done
:
function
()
{
done
:
function
()
{
$
(
"[data-field='lowerHairPath']"
).
css
(
'display'
,
'none'
)
$
(
"[data-field='lowerHairPath']"
).
css
(
'display'
,
'none'
)
$
(
'.layui-table-main tr'
).
each
(
function
(
index
,
val
)
{
$
(
'.layui-table-main tr'
).
each
(
function
(
index
,
val
)
{
$
(
$
(
'.layui-table-fixed-l .layui-table-body tbody tr'
)[
index
]).
height
(
$
(
val
).
height
())
$
(
$
(
'.layui-table-fixed-l .layui-table-body tbody tr'
)[
index
]).
height
(
$
(
val
).
height
())
$
(
$
(
'.layui-table-fixed-r .layui-table-body tbody tr'
)[
index
]).
height
(
$
(
val
).
height
())
$
(
$
(
'.layui-table-fixed-r .layui-table-body tbody tr'
)[
index
]).
height
(
$
(
val
).
height
())
})
})
//动态监听表头高度变化,冻结行跟着改变高度
//动态监听表头高度变化,冻结行跟着改变高度
$
(
'.layui-table-header tr'
).
resize
(
function
()
{
$
(
'.layui-table-header tr'
).
resize
(
function
()
{
$
(
'.layui-table-header tr'
).
each
(
function
(
index
,
val
)
{
$
(
'.layui-table-header tr'
).
each
(
function
(
index
,
val
)
{
$
(
$
(
'.layui-table-fixed .layui-table-header table tr'
)[
index
]).
height
(
$
(
val
).
height
())
$
(
$
(
'.layui-table-fixed .layui-table-header table tr'
)[
index
]).
height
(
$
(
val
).
height
())
})
})
})
})
//初始化高度,使得冻结行表头高度一致
//初始化高度,使得冻结行表头高度一致
$
(
'.layui-table-header tr'
).
each
(
function
(
index
,
val
)
{
$
(
'.layui-table-header tr'
).
each
(
function
(
index
,
val
)
{
$
(
$
(
'.layui-table-fixed .layui-table-header table tr'
)[
index
]).
height
(
$
(
val
).
height
())
$
(
$
(
'.layui-table-fixed .layui-table-header table tr'
)[
index
]).
height
(
$
(
val
).
height
())
})
})
//动态监听表体高度变化,冻结行跟着改变高度
//动态监听表体高度变化,冻结行跟着改变高度
$
(
'.layui-table-body tr'
).
resize
(
function
()
{
$
(
'.layui-table-body tr'
).
resize
(
function
()
{
$
(
'.layui-table-body tr'
).
each
(
function
(
index
,
val
)
{
$
(
'.layui-table-body tr'
).
each
(
function
(
index
,
val
)
{
$
(
$
(
'.layui-table-fixed .layui-table-body table tr'
)[
index
]).
height
(
$
(
val
).
height
())
$
(
$
(
'.layui-table-fixed .layui-table-body table tr'
)[
index
]).
height
(
$
(
val
).
height
())
})
})
})
})
//初始化高度,使得冻结行表体高度一致
//初始化高度,使得冻结行表体高度一致
$
(
'.layui-table-body tr'
).
each
(
function
(
index
,
val
)
{
$
(
'.layui-table-body tr'
).
each
(
function
(
index
,
val
)
{
$
(
$
(
'.layui-table-fixed .layui-table-body table tr'
)[
index
]).
height
(
$
(
val
).
height
())
$
(
$
(
'.layui-table-fixed .layui-table-body table tr'
)[
index
]).
height
(
$
(
val
).
height
())
})
})
}
}
})
})
table
.
on
(
'tool(merchant-table-filter)'
,
function
(
obj
)
{
table
.
on
(
'tool(merchant-table-filter)'
,
function
(
obj
)
{
var
eventName
=
obj
.
event
var
eventName
=
obj
.
event
var
row
=
obj
.
data
var
row
=
obj
.
data
console
.
log
(
row
.
merchantAccountLevel
)
console
.
log
(
row
.
merchantAccountLevel
)
...
@@ -519,13 +519,23 @@
...
@@ -519,13 +519,23 @@
fixed
:
false
,
//不固定
fixed
:
false
,
//不固定
// maxmin: true,
// maxmin: true,
btn
:
[
'确定'
,
'取消'
],
btn
:
[
'确定'
,
'取消'
],
content
:
'validPeriodForm.html?id='
+
row
.
id
+
'&effectiveStarttime='
+
row
.
effectiveStarttime
+
'&expireDate='
+
row
.
expireDate
+
'&status='
+
row
.
status
+
'&merchantAccountLevel='
+
row
.
merchantAccountLevel
,
content
:
yes
:
function
(
index
,
layero
)
{
'validPeriodForm.html?id='
+
row
.
id
+
'&effectiveStarttime='
+
row
.
effectiveStarttime
+
'&expireDate='
+
row
.
expireDate
+
'&status='
+
row
.
status
+
'&merchantAccountLevel='
+
row
.
merchantAccountLevel
,
yes
:
function
(
index
,
layero
)
{
var
body
=
layer
.
getChildFrame
(
'body'
,
index
)
var
body
=
layer
.
getChildFrame
(
'body'
,
index
)
helper
.
store
.
set
(
'isRefresh'
,
false
)
helper
.
store
.
set
(
'isRefresh'
,
false
)
body
.
find
(
'#periodVerifyBtn'
).
click
()
body
.
find
(
'#periodVerifyBtn'
).
click
()
},
},
end
:
function
()
{
end
:
function
()
{
var
isRefresh
=
helper
.
store
.
get
(
'isRefresh'
)
var
isRefresh
=
helper
.
store
.
get
(
'isRefresh'
)
if
(
isRefresh
)
{
if
(
isRefresh
)
{
getTabelList
()
getTabelList
()
...
@@ -542,7 +552,7 @@
...
@@ -542,7 +552,7 @@
init
()
init
()
$
(
'#addBtn'
).
on
(
'click'
,
function
()
{
$
(
'#addBtn'
).
on
(
'click'
,
function
()
{
// 1-创建新商户;2-创建子商户;3-修改
// 1-创建新商户;2-创建子商户;3-修改
go
(
'merchant'
,
'add'
,
{
go
(
'merchant'
,
'add'
,
{
editLevel
:
1
,
editLevel
:
1
,
...
@@ -552,11 +562,11 @@
...
@@ -552,11 +562,11 @@
return
false
return
false
})
})
$
(
'#relevancyBtn'
).
on
(
'click'
,
function
()
{
$
(
'#relevancyBtn'
).
on
(
'click'
,
function
()
{
$messenger
.
emit
(
'route-to'
,
{
path
:
'/settings/baseInfo/relevance'
})
$messenger
.
emit
(
'route-to'
,
{
path
:
'/settings/baseInfo/relevance'
})
})
})
// 搜索绑定事件
// 搜索绑定事件
form
.
on
(
'submit(searchSubmit)'
,
function
()
{
form
.
on
(
'submit(searchSubmit)'
,
function
()
{
getTabelList
(
true
)
getTabelList
(
true
)
return
false
return
false
})
})
...
@@ -575,7 +585,7 @@
...
@@ -575,7 +585,7 @@
}
}
var
searchData
=
$
(
'#searchForm [name]'
).
serializeArray
()
var
searchData
=
$
(
'#searchForm [name]'
).
serializeArray
()
// console.log(searchData)
// console.log(searchData)
$
.
each
(
searchData
,
function
()
{
$
.
each
(
searchData
,
function
()
{
if
(
this
.
name
==
'merchantLoginAccount'
)
{
if
(
this
.
name
==
'merchantLoginAccount'
)
{
var
attrName
=
params
.
accountOrPhone
==
'0'
?
'merchantLoginAccount'
:
'merchantLegalPersonPhone'
var
attrName
=
params
.
accountOrPhone
==
'0'
?
'merchantLoginAccount'
:
'merchantLegalPersonPhone'
params
[
attrName
]
=
this
.
value
params
[
attrName
]
=
this
.
value
...
@@ -584,9 +594,9 @@
...
@@ -584,9 +594,9 @@
}
}
})
})
// console.log(params)
// console.log(params)
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
var
data
=
helper
.
formateNullFieldData
(
res
.
data
)
var
data
=
helper
.
formateNullFieldData
(
res
.
data
)
$
.
each
(
data
.
data
,
function
(
index
,
item
)
{
$
.
each
(
data
.
data
,
function
(
index
,
item
)
{
item
.
index
=
index
+
1
+
page
.
pageSize
*
(
page
.
pageNum
-
1
)
item
.
index
=
index
+
1
+
page
.
pageSize
*
(
page
.
pageNum
-
1
)
item
.
btn
=
{
item
.
btn
=
{
edit
:
false
,
edit
:
false
,
...
@@ -712,7 +722,7 @@
...
@@ -712,7 +722,7 @@
method
:
'cn.com.glsx.merchants.menu.findAllDictData'
,
method
:
'cn.com.glsx.merchants.menu.findAllDictData'
,
dictType
:
dictType
dictType
:
dictType
},
},
function
(
res
)
{
function
(
res
)
{
fn
&&
fn
(
res
)
fn
&&
fn
(
res
)
}
}
)
)
...
@@ -721,7 +731,7 @@
...
@@ -721,7 +731,7 @@
// 设置option
// 设置option
function
setSelectOption
(
elName
,
listName
,
optionId
,
optionLabel
)
{
function
setSelectOption
(
elName
,
listName
,
optionId
,
optionLabel
)
{
var
el
=
$
(
elName
)
var
el
=
$
(
elName
)
$
.
each
(
baseData
[
listName
],
function
(
index
,
item
)
{
$
.
each
(
baseData
[
listName
],
function
(
index
,
item
)
{
el
.
append
(
new
Option
(
item
[
optionLabel
],
item
[
optionId
]))
el
.
append
(
new
Option
(
item
[
optionLabel
],
item
[
optionId
]))
})
})
form
.
render
(
'select'
)
form
.
render
(
'select'
)
...
@@ -729,7 +739,7 @@
...
@@ -729,7 +739,7 @@
// 获取有效期
// 获取有效期
function
getVaildPeriod
()
{
function
getVaildPeriod
()
{
getDictData
(
'merchant_status'
,
function
(
res
)
{
getDictData
(
'merchant_status'
,
function
(
res
)
{
baseData
.
statusList
=
res
.
data
baseData
.
statusList
=
res
.
data
setSelectOption
(
'#searchStatusEl'
,
'statusList'
,
'dictValue'
,
'dictLabel'
)
setSelectOption
(
'#searchStatusEl'
,
'statusList'
,
'dictValue'
,
'dictLabel'
)
})
})
...
@@ -737,7 +747,7 @@
...
@@ -737,7 +747,7 @@
// 获取渠道
// 获取渠道
function
getChannel
()
{
function
getChannel
()
{
getDictData
(
'channel'
,
function
(
res
)
{
getDictData
(
'channel'
,
function
(
res
)
{
baseData
.
channelList
=
res
.
data
baseData
.
channelList
=
res
.
data
setSelectOption
(
'#channelIdEl'
,
'channelList'
,
'dictValue'
,
'dictLabel'
)
setSelectOption
(
'#channelIdEl'
,
'channelList'
,
'dictValue'
,
'dictLabel'
)
})
})
...
@@ -745,7 +755,7 @@
...
@@ -745,7 +755,7 @@
// 获取账户等级
// 获取账户等级
function
getAccountLevel
()
{
function
getAccountLevel
()
{
getDictData
(
'account_level'
,
function
(
res
)
{
getDictData
(
'account_level'
,
function
(
res
)
{
baseData
.
accountLevelList
=
res
.
data
baseData
.
accountLevelList
=
res
.
data
setSelectOption
(
'#accountLevelEl'
,
'accountLevelList'
,
'dictValue'
,
'dictLabel'
)
setSelectOption
(
'#accountLevelEl'
,
'accountLevelList'
,
'dictValue'
,
'dictLabel'
)
})
})
...
@@ -753,7 +763,7 @@
...
@@ -753,7 +763,7 @@
// 获取账户类型
// 获取账户类型
function
getAccountType
()
{
function
getAccountType
()
{
getDictData
(
'account_type'
,
function
(
res
)
{
getDictData
(
'account_type'
,
function
(
res
)
{
baseData
.
accountTypeList
=
res
.
data
baseData
.
accountTypeList
=
res
.
data
setSelectOption
(
'#accountTypeIdEl'
,
'accountTypeList'
,
'dictValue'
,
'dictLabel'
)
setSelectOption
(
'#accountTypeIdEl'
,
'accountTypeList'
,
'dictValue'
,
'dictLabel'
)
})
})
...
@@ -761,7 +771,7 @@
...
@@ -761,7 +771,7 @@
// 获取模式
// 获取模式
function
getModel
()
{
function
getModel
()
{
getDictData
(
'merchant_model'
,
function
(
res
)
{
getDictData
(
'merchant_model'
,
function
(
res
)
{
baseData
.
modelList
=
res
.
data
baseData
.
modelList
=
res
.
data
setSelectOption
(
'#searchModelEl'
,
'modelList'
,
'dictValue'
,
'dictLabel'
)
setSelectOption
(
'#searchModelEl'
,
'modelList'
,
'dictValue'
,
'dictLabel'
)
})
})
...
...
html/role/add.html
View file @
6917401
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
font-weight
:
600
;
font-weight
:
600
;
}
}
.Wrap
{
.Wrap
{
margin
:
8px
20px
0
;
margin
:
8px
0
0
;
height
:
100%
;
height
:
100%
;
}
}
#roleTitle
{
#roleTitle
{
...
...
html/role/index.html
View file @
6917401
...
@@ -103,6 +103,7 @@
...
@@ -103,6 +103,7 @@
var
roleTable
=
table
.
render
({
var
roleTable
=
table
.
render
({
elem
:
'#roleTable'
,
elem
:
'#roleTable'
,
skin
:
'nob'
,
skin
:
'nob'
,
height
:
'full-300'
,
cols
:
gl
?
[
cols
]
:
[
colums
]
cols
:
gl
?
[
cols
]
:
[
colums
]
})
})
...
...
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