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 86ebc704
authored
Oct 21, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/h5/account
2 parents
de2803a5
19c8da02
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
32 deletions
css/main.css
html/employee/index.html
html/merchant/addSubMerchant.html
html/merchant/detail.html
html/merchant/edit.html
html/merchant/validPeriodForm.html
css/main.css
View file @
86ebc70
...
@@ -244,3 +244,6 @@ footer {
...
@@ -244,3 +244,6 @@ footer {
.layui-no-data
.no-data
div
{
.layui-no-data
.no-data
div
{
margin-top
:
12px
;
margin-top
:
12px
;
}
}
.layui-form-checked
span
,
.layui-form-checked
:hover
span
{
background-color
:
#fff
;
}
\ No newline at end of file
\ No newline at end of file
html/employee/index.html
View file @
86ebc70
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
{
field
:
'roleName'
,
title
:
'角色'
,
align
:
'center'
},
{
field
:
'roleName'
,
title
:
'角色'
,
align
:
'center'
},
{
field
:
'staffPhone'
,
title
:
'登录手机号'
,
align
:
'center'
,
width
:
125
},
{
field
:
'staffPhone'
,
title
:
'登录手机号'
,
align
:
'center'
,
width
:
125
},
{
field
:
'merchantName'
,
title
:
'所属门店'
,
align
:
'center'
,
width
:
125
},
{
field
:
'merchantName'
,
title
:
'所属门店'
,
align
:
'center'
,
width
:
125
},
{
field
:
'
merchantUserRespons
e'
,
title
:
'所属企微'
,
align
:
'center'
,
width
:
125
},
{
field
:
'
belongingEntmicroNam
e'
,
title
:
'所属企微'
,
align
:
'center'
,
width
:
125
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
180
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
180
},
{
title
:
'操作'
,
width
:
160
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
{
title
:
'操作'
,
width
:
160
,
align
:
'left'
,
toolbar
:
'#employeeBar'
},
...
...
html/merchant/addSubMerchant.html
View file @
86ebc70
...
@@ -535,6 +535,12 @@
...
@@ -535,6 +535,12 @@
// 是否工厂
// 是否工厂
var
isFactory
=
true
var
isFactory
=
true
var
merchantAccountLevel
=
qs
(
'merchantAccountLevel'
)
var
merchantAccountLevel
=
qs
(
'merchantAccountLevel'
)
if
(
merchantAccountLevel
==
3
)
{
// 上级是市代,子商户为门店,显示 有效期
$
(
'#effectiveShowEl'
).
removeClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
addClass
(
'show'
)
$
(
'#effectiveStarttime'
).
attr
(
'lay-verify'
,
'required'
)
}
var
parentInfo
=
{}
var
parentInfo
=
{}
var
isFreshSecond
=
true
var
isFreshSecond
=
true
var
scopeNum
=
1
var
scopeNum
=
1
...
@@ -600,9 +606,10 @@
...
@@ -600,9 +606,10 @@
var
effectiveStarttime
=
laydate
.
render
({
var
effectiveStarttime
=
laydate
.
render
({
elem
:
'#effectiveStarttime'
,
elem
:
'#effectiveStarttime'
,
format
:
'yyyy-MM-dd'
,
format
:
'yyyy-MM-dd'
,
min
:
'
2021-09-30
'
,
min
:
''
,
done
:
function
(
value
,
date
)
{
done
:
function
(
value
,
date
)
{
console
.
log
(
value
,
date
)
console
.
log
(
value
,
date
)
effectiveStarttime
.
config
.
min
=
helper
.
dateFormat
(
new
Date
())
expireDate
.
config
.
min
=
date
expireDate
.
config
.
min
=
date
lay
(
'#effectiveStarttime'
).
html
(
value
)
lay
(
'#effectiveStarttime'
).
html
(
value
)
}
}
...
...
html/merchant/detail.html
View file @
86ebc70
...
@@ -588,7 +588,7 @@
...
@@ -588,7 +588,7 @@
if
(
basicArr
[
i
]
==
'businessScopName'
&&
roleData
.
businessScopeCustomize
)
{
if
(
basicArr
[
i
]
==
'businessScopName'
&&
roleData
.
businessScopeCustomize
)
{
roleData
.
businessScopName
=
roleData
.
businessScopName
?
roleData
.
businessScopName
+
','
+
roleData
.
businessScopeCustomize
:
roleData
.
businessScopeCustomize
roleData
.
businessScopName
=
roleData
.
businessScopName
?
roleData
.
businessScopName
+
','
+
roleData
.
businessScopeCustomize
:
roleData
.
businessScopeCustomize
}
}
$
(
'#'
+
[
basicArr
[
i
]]).
text
(
roleData
[
basicArr
[
i
]]
?
roleData
[
basicArr
[
i
]]
:
'
无
'
)
$
(
'#'
+
[
basicArr
[
i
]]).
text
(
roleData
[
basicArr
[
i
]]
?
roleData
[
basicArr
[
i
]]
:
'
-
'
)
}
}
if
(
roleData
.
merchantType
==
2
)
{
if
(
roleData
.
merchantType
==
2
)
{
$
(
'#orgTxt'
).
text
(
'组织机构代码:'
)
$
(
'#orgTxt'
).
text
(
'组织机构代码:'
)
...
@@ -736,8 +736,8 @@
...
@@ -736,8 +736,8 @@
align
:
'center'
align
:
'center'
},
},
{
{
field
:
'
createdAccount
'
,
field
:
'
entmicroName
'
,
title
:
'
创建者
'
,
title
:
'
企微号
'
,
width
:
200
,
width
:
200
,
align
:
'center'
align
:
'center'
},
},
...
...
html/merchant/edit.html
View file @
86ebc70
...
@@ -181,12 +181,12 @@
...
@@ -181,12 +181,12 @@
<main>
<main>
<div
class=
"layui-tab layui-top-tab layui-tab-brief"
lay-filter=
"editTab"
>
<div
class=
"layui-tab layui-top-tab layui-tab-brief"
lay-filter=
"editTab"
>
<ul
class=
"layui-tab-title"
>
<ul
class=
"layui-tab-title"
>
<li
lay-id=
"2"
id=
"functional"
style=
"padding: 0; width: 90px; margin-right: 20px"
>
修改功能权限
</li>
<li
lay-id=
"2"
id=
"functional"
class=
"layui-this"
style=
"padding: 0; width: 90px; margin-right: 20px"
>
修改功能权限
</li>
<li
lay-id=
"1"
id=
"basic"
style=
"padding: 0; width: 90px"
class=
"layui-this"
>
修改基本信息
</li>
<li
lay-id=
"1"
id=
"basic"
style=
"padding: 0; width: 90px"
>
修改基本信息
</li>
</ul>
</ul>
<div
class=
"layui-tab-content m-t-md"
>
<div
class=
"layui-tab-content m-t-md"
>
<!-- 权限树 -->
<!-- 权限树 -->
<div
class=
"layui-tab-item edit-box"
>
<div
class=
"layui-tab-item
layui-show
edit-box"
>
<div
id=
"authorityTree"
>
<div
id=
"authorityTree"
>
<!-- 树 -->
<!-- 树 -->
<!-- <div class="layui-form-item"> -->
<!-- <div class="layui-form-item"> -->
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-tab-item
layui-show
"
>
<div
class=
"layui-tab-item"
>
<!-- 基本信息 -->
<!-- 基本信息 -->
<div
id=
"basicForm"
>
<div
id=
"basicForm"
>
<form
class=
"layui-form"
lay-filter=
"merchantForm"
>
<form
class=
"layui-form"
lay-filter=
"merchantForm"
>
...
@@ -486,7 +486,7 @@
...
@@ -486,7 +486,7 @@
// 1-创建新商户;2-创建子商户;3-修改
// 1-创建新商户;2-创建子商户;3-修改
var
editLevel
=
1
var
editLevel
=
1
// 1-基本信息;2-权限树
// 1-基本信息;2-权限树
var
step
=
1
var
step
=
2
var
merchantId
=
null
var
merchantId
=
null
var
parentMerchantId
=
null
var
parentMerchantId
=
null
var
accountTypeVisible
=
false
var
accountTypeVisible
=
false
...
@@ -565,7 +565,6 @@
...
@@ -565,7 +565,6 @@
editLevel
=
qs
(
'editLevel'
)
editLevel
=
qs
(
'editLevel'
)
isFactory
=
qs
(
'isFactory'
)
==
'true'
isFactory
=
qs
(
'isFactory'
)
==
'true'
step
=
1
var
pwd
=
$
(
'#password'
)
// 密码输入框
var
pwd
=
$
(
'#password'
)
// 密码输入框
var
resetpsw
=
$
(
'#resetpsw'
)
var
resetpsw
=
$
(
'#resetpsw'
)
// pwd.attr('readonly', false)
// pwd.attr('readonly', false)
...
@@ -873,15 +872,16 @@
...
@@ -873,15 +872,16 @@
functionClick
=
true
functionClick
=
true
$
(
'#basicSumit'
).
click
()
$
(
'#basicSumit'
).
click
()
step
=
2
step
=
2
init
()
// init()
location
.
reload
()
layer
.
close
(
index
)
layer
.
close
(
index
)
},
},
function
()
{}
function
()
{
location
.
reload
()
}
)
)
}
else
{
}
else
{
element
.
tabChange
(
'editTab'
,
2
)
location
.
reload
()
step
=
2
init
()
}
}
}
}
return
false
return
false
...
@@ -903,15 +903,20 @@
...
@@ -903,15 +903,20 @@
basicClick
=
true
basicClick
=
true
step
=
1
step
=
1
submitAuth
()
submitAuth
()
location
.
reload
()
//
location.reload()
layer
.
close
(
index
)
layer
.
close
(
index
)
},
},
function
()
{}
function
()
{
console
.
log
(
'11111'
)
element
.
tabChange
(
'editTab'
,
1
)
step
=
1
}
)
)
}
else
{
}
else
{
console
.
log
(
'fou'
)
element
.
tabChange
(
'editTab'
,
1
)
element
.
tabChange
(
'editTab'
,
1
)
step
=
1
step
=
1
location
.
reload
()
//
location.reload()
}
}
}
}
return
false
return
false
...
...
html/merchant/validPeriodForm.html
View file @
86ebc70
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<label
class=
"layui-form-label"
>
账户有效期:
</label>
<label
class=
"layui-form-label"
>
账户有效期:
</label>
<div
class=
"layui-inline"
>
<div
class=
"layui-inline"
>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"effectiveStarttime"
class=
"layui-input"
name=
"effectiveStarttime"
placeholder=
"开始时间"
/>
<input
type=
"text"
id=
"effectiveStarttime"
disabled
class=
"layui-input"
name=
"effectiveStarttime"
placeholder=
"开始时间"
/>
</div>
</div>
<div
class=
"layui-form-mid"
>
-
</div>
<div
class=
"layui-form-mid"
>
-
</div>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
...
@@ -77,19 +77,27 @@
...
@@ -77,19 +77,27 @@
var
vaildData
=
{
var
vaildData
=
{
id
:
getQueryString
(
'id'
)
id
:
getQueryString
(
'id'
)
}
}
var
storeEl
=
$
(
'#storeEl'
)
var
merchantEl
=
$
(
'#merchantEl'
)
var
expireDateEl
=
$
(
'#expireDate'
)
var
effectiveStarttimeEl
=
$
(
'#effectiveStarttime'
)
var
overdue
=
false
if
(
merchantAccountLevel
==
4
)
{
if
(
merchantAccountLevel
==
4
)
{
$
(
'#storeEl'
)
.
show
()
storeEl
.
show
()
$
(
'#merchantEl'
)
.
hide
()
merchantEl
.
hide
()
vaildData
.
expireDate
=
getQueryString
(
'expireDate'
)
vaildData
.
expireDate
=
getQueryString
(
'expireDate'
)
vaildData
.
effectiveStarttime
=
getQueryString
(
'effectiveStarttime'
)
vaildData
.
effectiveStarttime
=
getQueryString
(
'effectiveStarttime'
)
console
.
log
(
vaildData
,
getQueryString
(
'expireDate'
))
overdue
=
getStartTime
(
vaildData
.
expireDate
).
overdue
if
(
overdue
)
{
$
(
'#effectiveStarttime'
).
removeAttr
(
'disabled'
)
}
form
.
val
(
'periodFilter'
,
{
form
.
val
(
'periodFilter'
,
{
expireDate
:
getQueryString
(
'expireDate'
),
expireDate
:
getQueryString
(
'expireDate'
),
effectiveStarttime
:
getQueryString
(
'effectiveStarttime'
)
effectiveStarttime
:
getQueryString
(
'effectiveStarttime'
)
})
})
}
else
{
}
else
{
$
(
'#merchantEl'
)
.
show
()
storeEl
.
show
()
$
(
'#storeEl'
)
.
hide
()
merchantEl
.
hide
()
setText
(
2
)
setText
(
2
)
console
.
log
(
getQueryString
(
'status'
))
console
.
log
(
getQueryString
(
'status'
))
vaildData
.
effectiveTime
=
getQueryString
(
'status'
)
vaildData
.
effectiveTime
=
getQueryString
(
'status'
)
...
@@ -101,8 +109,9 @@
...
@@ -101,8 +109,9 @@
var
effectiveStarttime
=
laydate
.
render
({
var
effectiveStarttime
=
laydate
.
render
({
elem
:
'#effectiveStarttime'
,
elem
:
'#effectiveStarttime'
,
format
:
'yyyy-MM-dd'
,
format
:
'yyyy-MM-dd'
,
min
:
'
2021-09-30
'
,
min
:
''
,
done
:
function
(
value
,
date
)
{
done
:
function
(
value
,
date
)
{
effectiveStarttime
.
config
.
min
=
helper
.
dateFormat
(
new
Date
())
console
.
log
(
value
,
date
)
console
.
log
(
value
,
date
)
expireDate
.
config
.
min
=
date
expireDate
.
config
.
min
=
date
lay
(
'#effectiveStarttime'
).
html
(
value
)
lay
(
'#effectiveStarttime'
).
html
(
value
)
...
@@ -120,8 +129,8 @@
...
@@ -120,8 +129,8 @@
var
startTime
=
new
Date
(
startDate
.
setHours
(
0
,
0
,
0
,
0
))
var
startTime
=
new
Date
(
startDate
.
setHours
(
0
,
0
,
0
,
0
))
var
endTime
=
startTime
*
1
+
86400
*
7
*
1000
var
endTime
=
startTime
*
1
+
86400
*
7
*
1000
console
.
log
(
helper
.
dateFormat
(
startTime
),
endTime
)
console
.
log
(
helper
.
dateFormat
(
startTime
),
endTime
)
if
(
overdue
)
$
(
'#effectiveStarttime'
)
.
val
(
helper
.
dateFormat
(
startTime
))
if
(
overdue
)
effectiveStarttimeEl
.
val
(
helper
.
dateFormat
(
startTime
))
$
(
'#expireDate'
)
.
val
(
helper
.
dateFormat
(
endTime
))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
})
})
$
(
'#oneyear'
).
on
(
'click'
,
function
()
{
$
(
'#oneyear'
).
on
(
'click'
,
function
()
{
...
@@ -130,8 +139,8 @@
...
@@ -130,8 +139,8 @@
var
startTime
=
new
Date
(
startDate
.
setHours
(
0
,
0
,
0
,
0
))
var
startTime
=
new
Date
(
startDate
.
setHours
(
0
,
0
,
0
,
0
))
var
endTime
=
startTime
.
setFullYear
(
startTime
.
getFullYear
()
+
1
)
var
endTime
=
startTime
.
setFullYear
(
startTime
.
getFullYear
()
+
1
)
console
.
log
(
helper
.
dateFormat
(
endTime
))
console
.
log
(
helper
.
dateFormat
(
endTime
))
if
(
overdue
)
$
(
'#effectiveStarttime'
)
.
val
(
helper
.
dateFormat
(
new
Date
(
new
Date
().
setHours
(
0
,
0
,
0
,
0
))))
if
(
overdue
)
effectiveStarttimeEl
.
val
(
helper
.
dateFormat
(
new
Date
(
new
Date
().
setHours
(
0
,
0
,
0
,
0
))))
$
(
'#expireDate'
)
.
val
(
helper
.
dateFormat
(
endTime
))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
})
})
$
(
'#twoyears'
).
on
(
'click'
,
function
()
{
$
(
'#twoyears'
).
on
(
'click'
,
function
()
{
...
@@ -140,8 +149,8 @@
...
@@ -140,8 +149,8 @@
var
startTime
=
new
Date
(
startDate
.
setHours
(
0
,
0
,
0
,
0
))
var
startTime
=
new
Date
(
startDate
.
setHours
(
0
,
0
,
0
,
0
))
var
endTime
=
startTime
.
setFullYear
(
startTime
.
getFullYear
()
+
2
)
var
endTime
=
startTime
.
setFullYear
(
startTime
.
getFullYear
()
+
2
)
console
.
log
(
helper
.
dateFormat
(
endTime
))
console
.
log
(
helper
.
dateFormat
(
endTime
))
if
(
overdue
)
$
(
'#effectiveStarttime'
)
.
val
(
helper
.
dateFormat
(
new
Date
(
new
Date
().
setHours
(
0
,
0
,
0
,
0
))))
if
(
overdue
)
effectiveStarttimeEl
.
val
(
helper
.
dateFormat
(
new
Date
(
new
Date
().
setHours
(
0
,
0
,
0
,
0
))))
$
(
'#expireDate'
)
.
val
(
helper
.
dateFormat
(
endTime
))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
})
})
// 1-草稿;2-正常;3-注销;4-过期
// 1-草稿;2-正常;3-注销;4-过期
...
...
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