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 df3057dd
authored
Oct 13, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of 192.168.3.233:h5/account
2 parents
0f2a72b9
a9ac28af
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
57 deletions
css/commonResetIndex.css
css/layui.css
html/employee/detail.html
html/employee/index.html
html/merchant/detail.html
html/role/index.html
css/commonResetIndex.css
View file @
df3057d
...
@@ -14,14 +14,16 @@
...
@@ -14,14 +14,16 @@
}
}
.creater
,
.status
{
.creater
,
.status
{
margin-top
:
40px
;
/* margin-top: 40px; */
margin-right
:
20px
;
margin-right
:
20px
;
}
}
.status
{
.status
{
margin-top
:
40px
;
/* margin-top: 40px; */
margin-right
:
90px
;
margin-right
:
90px
;
}
}
.secondInput
{
margin-top
:
40px
;
}
.selector
{
.selector
{
width
:
110px
;
width
:
110px
;
...
@@ -48,9 +50,7 @@
...
@@ -48,9 +50,7 @@
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
100%
;
height
:
20px
;
height
:
20px
;
background-color
:
var
(
--bgColor
);
background-color
:
var
(
--bgColor
);
}
}
...
...
css/layui.css
View file @
df3057d
...
@@ -151,6 +151,9 @@ border-color: var(--borderBlue)!important;
...
@@ -151,6 +151,9 @@ border-color: var(--borderBlue)!important;
color
:
#666666
;
color
:
#666666
;
}
}
.layui-laypage
a
:hover
{
color
:
#5850FF
;
}
/* 开关颜色 */
/* 开关颜色 */
.layui-form-onswitch
{
.layui-form-onswitch
{
...
@@ -223,4 +226,7 @@ border-color: var(--borderBlue)!important;
...
@@ -223,4 +226,7 @@ border-color: var(--borderBlue)!important;
.layui-tab-content
{
.layui-tab-content
{
padding
:
0
;
padding
:
0
;
}
.layui-form-item
.layui-input-inline
{
margin-right
:
0
;
}
}
\ No newline at end of file
\ No newline at end of file
html/employee/detail.html
View file @
df3057d
...
@@ -44,6 +44,10 @@
...
@@ -44,6 +44,10 @@
/* margin: 0 20px 0; */
/* margin: 0 20px 0; */
background-color
:
#fff
;
background-color
:
#fff
;
position
:
relative
;
position
:
relative
;
min-height
:
238px
;
}
.topbottomwrap
{
min-height
:
calc
(
100vh
-
200px
);
}
}
.grayLine
{
.grayLine
{
position
:
absolute
;
position
:
absolute
;
...
@@ -149,7 +153,7 @@
...
@@ -149,7 +153,7 @@
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"/js/load.js"
></script>
<script
src=
"/js/load.js"
></script>
<script>
<script>
layui
.
use
([
'request'
,
'helper'
,
'treeTab'
,
'table'
,
'laypage'
],
function
()
{
layui
.
use
([
'request'
,
'helper'
,
'treeTab'
,
'table'
,
'laypage'
],
function
()
{
/** 变量 */
/** 变量 */
var
$
=
layui
.
$
var
$
=
layui
.
$
var
request
=
layui
.
request
var
request
=
layui
.
request
...
@@ -171,7 +175,7 @@
...
@@ -171,7 +175,7 @@
elem
:
'recordPage'
,
elem
:
'recordPage'
,
groups
:
5
,
groups
:
5
,
layout
:
[
'count'
,
'page'
,
'skip'
],
layout
:
[
'count'
,
'page'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
jump
:
function
(
obj
,
first
)
{
recordPage
.
pageNum
=
obj
.
curr
recordPage
.
pageNum
=
obj
.
curr
recordPage
.
pageSize
=
obj
.
limit
recordPage
.
pageSize
=
obj
.
limit
//首次不执行
//首次不执行
...
@@ -235,7 +239,7 @@
...
@@ -235,7 +239,7 @@
getRecordTable
()
getRecordTable
()
/** 触发事件 */
/** 触发事件 */
$
(
'#return'
).
on
(
'click'
,
function
()
{
$
(
'#return'
).
on
(
'click'
,
function
()
{
if
(
window
.
location
.
hash
)
{
if
(
window
.
location
.
hash
)
{
window
.
history
.
back
(
-
1
)
window
.
history
.
back
(
-
1
)
window
.
location
.
hash
=
''
window
.
location
.
hash
=
''
...
@@ -243,15 +247,15 @@
...
@@ -243,15 +247,15 @@
window
.
history
.
back
(
-
1
)
window
.
history
.
back
(
-
1
)
})
})
$
(
'#basicBtn'
).
on
(
'click'
,
function
()
{
$
(
'#basicBtn'
).
on
(
'click'
,
function
()
{
document
.
querySelector
(
'#basic'
).
scrollIntoView
(
true
)
document
.
querySelector
(
'#basic'
).
scrollIntoView
(
true
)
})
})
$
(
'#accountAuthBtn'
).
on
(
'click'
,
function
()
{
$
(
'#accountAuthBtn'
).
on
(
'click'
,
function
()
{
document
.
querySelector
(
'#accountAuth'
).
scrollIntoView
(
true
)
document
.
querySelector
(
'#accountAuth'
).
scrollIntoView
(
true
)
})
})
$
(
'#recordBtn'
).
on
(
'click'
,
function
()
{
$
(
'#recordBtn'
).
on
(
'click'
,
function
()
{
document
.
querySelector
(
'#record'
).
scrollIntoView
(
true
)
document
.
querySelector
(
'#record'
).
scrollIntoView
(
true
)
})
})
...
@@ -259,7 +263,7 @@
...
@@ -259,7 +263,7 @@
// 查询员工详情
// 查询员工详情
function
getById
()
{
function
getById
()
{
var
params
=
{
id
:
id
,
method
:
'cn.com.glsx.merchants.staff.staffSearchRequest'
}
var
params
=
{
id
:
id
,
method
:
'cn.com.glsx.merchants.staff.staffSearchRequest'
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
employeeData
=
helper
.
clone
(
true
,
res
.
data
)
employeeData
=
helper
.
clone
(
true
,
res
.
data
)
for
(
var
i
in
basicArr
)
{
for
(
var
i
in
basicArr
)
{
...
@@ -267,7 +271,7 @@
...
@@ -267,7 +271,7 @@
}
}
if
(
employeeData
.
visibleInferiorMerName
)
{
if
(
employeeData
.
visibleInferiorMerName
)
{
var
visibleName
=
employeeData
.
visibleInferiorMerName
.
split
(
','
)
var
visibleName
=
employeeData
.
visibleInferiorMerName
.
split
(
','
)
$
.
each
(
visibleName
,
function
(
idx
,
i
)
{
$
.
each
(
visibleName
,
function
(
idx
,
i
)
{
visibleInferiorMerName
.
append
(
'<li class="visibleMerchant">'
+
i
+
'</li>'
)
visibleInferiorMerName
.
append
(
'<li class="visibleMerchant">'
+
i
+
'</li>'
)
})
})
}
}
...
@@ -275,7 +279,7 @@
...
@@ -275,7 +279,7 @@
var
authList
=
employeeData
.
accountTypeTreeResponseList
var
authList
=
employeeData
.
accountTypeTreeResponseList
console
.
log
(
authList
)
console
.
log
(
authList
)
if
(
authList
&&
authList
.
length
!=
0
)
{
if
(
authList
&&
authList
.
length
!=
0
)
{
$
.
each
(
authList
,
function
(
index
,
item
)
{
$
.
each
(
authList
,
function
(
index
,
item
)
{
treeTab
.
tabAdd
(
treeTab
.
tabAdd
(
{
{
title
:
item
.
accounttypeName
,
title
:
item
.
accounttypeName
,
...
@@ -286,7 +290,7 @@
...
@@ -286,7 +290,7 @@
var
menuData
=
[]
var
menuData
=
[]
// for (var i = 0; i < item.products)
// for (var i = 0; i < item.products)
if
(
item
.
products
&&
item
.
products
.
length
!=
0
)
{
if
(
item
.
products
&&
item
.
products
.
length
!=
0
)
{
$
.
each
(
item
.
products
,
function
(
idx
,
m
)
{
$
.
each
(
item
.
products
,
function
(
idx
,
m
)
{
treeTab
.
treeTabDetail
(
treeTab
.
treeTabDetail
(
{
{
name
:
m
.
productName
,
name
:
m
.
productName
,
...
@@ -317,9 +321,9 @@
...
@@ -317,9 +321,9 @@
pageSize
:
recordPage
.
pageSize
,
pageSize
:
recordPage
.
pageSize
,
method
:
'cn.com.glsx.merchants.menu.findLog'
method
:
'cn.com.glsx.merchants.menu.findLog'
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
var
data
=
res
.
data
var
data
=
res
.
data
$
.
each
(
data
.
data
,
function
(
index
,
item
)
{
$
.
each
(
data
.
data
,
function
(
index
,
item
)
{
item
.
index
=
index
+
1
+
recordPage
.
pageSize
*
(
recordPage
.
pageNum
-
1
)
item
.
index
=
index
+
1
+
recordPage
.
pageSize
*
(
recordPage
.
pageNum
-
1
)
data
.
data
[
index
].
modifyContent
=
item
.
module
+
'-'
+
item
.
action
data
.
data
[
index
].
modifyContent
=
item
.
module
+
'-'
+
item
.
action
})
})
...
...
html/employee/index.html
View file @
df3057d
...
@@ -37,33 +37,35 @@
...
@@ -37,33 +37,35 @@
</div>
</div>
</div>
</div>
<div
class=
"divideLine"
></div>
<div
class=
"divideLine"
></div>
<div
class=
"layui-inline creater"
>
<div
class=
"layui-form-item secondInput"
>
<label
class=
"layui-form-label"
>
创建者
</label>
<div
class=
"layui-inline creater"
>
<div
class=
"layui-input-block"
>
<label
class=
"layui-form-label"
>
创建者
</label>
<input
type=
"text"
name=
"createdName"
required
lay-verify=
"required"
placeholder=
"请输入创建者"
autocomplete=
"off"
class=
"layui-input"
/>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"createdName"
required
lay-verify=
"required"
placeholder=
"请输入创建者"
autocomplete=
"off"
class=
"layui-input"
/>
</div>
</div>
</div>
</div
>
<div
class=
"layui-inline status"
pane
>
<div
class=
"layui-inline status"
pane
>
<label
class=
"layui-form-label"
>
状态
</label
>
<label
class=
"layui-form-label"
>
状态
</label
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<select
name=
"status"
id=
"status"
lay-verify=
"required"
placeholder=
"请选择状态"
></select
>
<
select
name=
"status"
id=
"status"
lay-verify=
"required"
placeholder=
"请选择状态"
></select
>
<
/div
>
</div>
</div>
</div>
<div
class=
"layui-inline"
pane
>
<div
class=
"layui-inline mt40"
pane
>
<div
class=
"layui-input-inline selector"
>
<div
class=
"layui-input-inline selector"
>
<select
name=
"type"
lay-verify=
"required"
placeholder=
"员工姓名/手机号"
>
<select
name=
"type"
lay-verify=
"required"
placeholder=
"员工姓名/手机号"
>
<option
value=
"0"
>
员工姓名
</option>
<option
value=
"0"
>
员工姓名
</option>
<option
value=
"1"
>
手机号
</option>
<option
value=
"1"
>
手机号
</option>
</select>
</select>
</div>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"keywords"
required
lay-verify=
"required"
placeholder=
"请输入"
autocomplete=
"off"
class=
"layui-input"
/>
</div>
</div>
</div>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-inline"
style=
"float: right"
pane
>
<input
type=
"text"
name=
"keywords"
required
lay-verify=
"required"
placeholder=
"请输入"
autocomplete=
"off"
class=
"layui-input"
/>
<button
type=
"button"
class=
"layui-btn layui-btn-normal searchInputBtn"
id=
"employeeSearch"
>
查询
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal exportInputBtn"
id=
"employeeExport"
>
导出
</button>
</div>
</div>
</div>
</div>
<div
class=
"layui-inline mt40"
style=
"float: right"
pane
>
<button
type=
"button"
class=
"layui-btn layui-btn-normal searchInputBtn"
id=
"employeeSearch"
>
查询
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal exportInputBtn"
id=
"employeeExport"
>
导出
</button>
</div>
</form>
</form>
<!-- 表格 -->
<!-- 表格 -->
<div
class=
"table-page"
>
<div
class=
"table-page"
>
...
...
html/merchant/detail.html
View file @
df3057d
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
}
}
.merchant-left
{
.merchant-left
{
padding-top
:
15px
;
padding-top
:
15px
;
height
:
calc
(
100vh
-
200px
);
min-
height
:
calc
(
100vh
-
200px
);
background-color
:
#fff
;
background-color
:
#fff
;
width
:
340px
;
width
:
340px
;
margin-right
:
20px
;
margin-right
:
20px
;
...
...
html/role/index.html
View file @
df3057d
...
@@ -36,26 +36,27 @@
...
@@ -36,26 +36,27 @@
</div>
</div>
<div
class=
"divideLine"
></div>
<div
class=
"divideLine"
></div>
<div
class=
"layui-form-item secondInput"
>
<div
class=
"layui-inline mt40"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
状态
</label>
<label
class=
"layui-form-label"
>
状态
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<select
name=
"status"
id=
"status"
lay-verify=
"required"
>
<select
name=
"status"
id=
"status"
lay-verify=
"required"
>
<option
value=
""
>
全部
</option>
<option
value=
""
>
全部
</option>
<option
value=
"0"
>
草稿
</option>
<option
value=
"0"
>
草稿
</option>
<option
value=
"1"
>
启用
</option>
<option
value=
"1"
>
启用
</option>
</select>
</select>
</div>
</div>
</div>
</div
>
<div
class=
"layui-inline"
>
<div
class=
"layui-inline mt40"
>
<label
class=
"layui-form-label"
>
角色名称
</label
>
<label
class=
"layui-form-label"
>
角色名称
</label
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"roleName"
placeholder=
"请输入角色名称"
autocomplete=
"off"
class=
"layui-input"
/
>
<
input
type=
"text"
name=
"roleName"
placeholder=
"请输入角色名称"
autocomplete=
"off"
class=
"layui-input"
/
>
<
/div
>
</div>
</div>
</div>
<div
class=
"layui-inline mt40"
style=
"float: right"
pane
>
<div
class=
"layui-inline"
style=
"float: right"
pane
>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"roleSearch"
>
查询
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"roleSearch"
>
查询
</button>
</div>
</div>
</div>
</form>
</form>
<div
class=
"table-page"
>
<div
class=
"table-page"
>
...
...
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