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 25ba82e1
authored
May 17, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.38-0425' into 'master'
上线合并 See merge request
!66
2 parents
9b6487d9
d35be384
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
21 deletions
html/employee/detail.html
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/validPeriodForm.html
html/employee/detail.html
View file @
25ba82e
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
所属部门:
</label>
<label
class=
"layui-form-label"
>
所属部门:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"department"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"department
Name
"
></div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
'roleCode'
,
'roleCode'
,
'merchantName'
,
'merchantName'
,
'createdAccount'
,
'createdAccount'
,
'department'
,
'department
Name
'
,
'staffLabel'
,
'staffLabel'
,
'weChatNickName'
,
'weChatNickName'
,
'weChatPhone'
,
'weChatPhone'
,
...
@@ -383,26 +383,31 @@
...
@@ -383,26 +383,31 @@
$
(
'#'
+
[
basicArr
[
i
]]).
text
(
employeeData
[
basicArr
[
i
]]
?
employeeData
[
basicArr
[
i
]]
:
'无'
)
$
(
'#'
+
[
basicArr
[
i
]]).
text
(
employeeData
[
basicArr
[
i
]]
?
employeeData
[
basicArr
[
i
]]
:
'无'
)
}
}
// 所属部门
// 所属部门
const
text
=
employeeData
.
departmentName
?
employeeData
.
departmentName
:
'无'
$
(
'#departmentName'
).
text
(
text
)
// if (employeeData.department) {
// if (employeeData.department) {
switch
(
employeeData
.
department
)
{
// switch (employeeData.department) {
case
0
:
// case 0:
$
(
'#department'
).
text
(
'其他'
)
// $('#department').text('其他')
break
// break
case
1
:
// case 1:
$
(
'#department'
).
text
(
'销售部'
)
// $('#department').text('销售部')
break
// break
case
2
:
// case 2:
$
(
'#department'
).
text
(
'售后部'
)
// $('#department').text('售后部')
break
// break
case
3
:
// case 3:
$
(
'#department'
).
text
(
'客服部'
)
// $('#department').text('客服部')
break
// break
case
4
:
// case 4:
$
(
'#department'
).
text
(
'续保部'
)
// $('#department').text('续保部')
break
// break
default
:
// case 5:
$
(
'#department'
).
text
(
'无'
)
// $('#department').text('交付部')
}
// break
// default:
// $('#department').text('无')
// }
// }
// }
// 员工标签
// 员工标签
if
(
employeeData
.
staffLabel
)
{
if
(
employeeData
.
staffLabel
)
{
...
...
html/merchant/add.html
View file @
25ba82e
...
@@ -531,6 +531,7 @@
...
@@ -531,6 +531,7 @@
maxlength=
"15"
maxlength=
"15"
placeholder=
"请输入登录账户名"
placeholder=
"请输入登录账户名"
required
required
autocomplete=
"off"
lay-verify=
"required|merchantLoginAccount"
lay-verify=
"required|merchantLoginAccount"
/>
/>
</div>
</div>
...
@@ -548,6 +549,7 @@
...
@@ -548,6 +549,7 @@
maxlength=
"20"
maxlength=
"20"
placeholder=
"请输入密码(必须包含6-20个字母+数字)"
placeholder=
"请输入密码(必须包含6-20个字母+数字)"
required
required
autocomplete=
"off"
lay-verify=
"required|merchantLoginPassword"
lay-verify=
"required|merchantLoginPassword"
/>
/>
<!-- <button type="button" class="layui-btn form-right hide" id="resetpsw">重置密码</button> -->
<!-- <button type="button" class="layui-btn form-right hide" id="resetpsw">重置密码</button> -->
...
...
html/merchant/addSubMerchant.html
View file @
25ba82e
...
@@ -504,6 +504,7 @@
...
@@ -504,6 +504,7 @@
maxlength=
"15"
maxlength=
"15"
placeholder=
"请输入登录账户名"
placeholder=
"请输入登录账户名"
required
required
autocomplete=
"off"
lay-verify=
"required|merchantLoginAccount"
lay-verify=
"required|merchantLoginAccount"
/>
/>
</div>
</div>
...
@@ -521,6 +522,7 @@
...
@@ -521,6 +522,7 @@
maxlength=
"20"
maxlength=
"20"
placeholder=
"请输入密码(必须包含6-20个字母+数字)"
placeholder=
"请输入密码(必须包含6-20个字母+数字)"
required
required
autocomplete=
"off"
lay-verify=
"required|merchantLoginPassword"
lay-verify=
"required|merchantLoginPassword"
/>
/>
<!-- <button type="button" class="layui-btn form-right hide" id="resetpsw">重置密码</button> -->
<!-- <button type="button" class="layui-btn form-right hide" id="resetpsw">重置密码</button> -->
...
@@ -547,6 +549,8 @@
...
@@ -547,6 +549,8 @@
<button
id=
"sevenday"
type=
"button"
class=
"layui-btn btn-no-border"
>
续7天
</button>
<button
id=
"sevenday"
type=
"button"
class=
"layui-btn btn-no-border"
>
续7天
</button>
<button
id=
"oneyear"
type=
"button"
class=
"layui-btn btn-no-border"
>
续1年
</button>
<button
id=
"oneyear"
type=
"button"
class=
"layui-btn btn-no-border"
>
续1年
</button>
<button
id=
"twoyears"
type=
"button"
class=
"layui-btn btn-no-border"
>
续2年
</button>
<button
id=
"twoyears"
type=
"button"
class=
"layui-btn btn-no-border"
>
续2年
</button>
<button
id=
"fiveyears"
type=
"button"
class=
"layui-btn btn-no-border"
>
续5年
</button>
<button
id=
"tenyears"
type=
"button"
class=
"layui-btn btn-no-border"
>
续10年
</button>
</div>
</div>
</div>
</div>
<!-- <div class="layui-form-item" id="effectiveShowEl">
<!-- <div class="layui-form-item" id="effectiveShowEl">
...
@@ -1345,6 +1349,20 @@
...
@@ -1345,6 +1349,20 @@
$
(
'#expireDate'
).
removeAttr
(
'disabled'
)
$
(
'#expireDate'
).
removeAttr
(
'disabled'
)
})
})
$
(
'#fiveyears'
).
on
(
'click'
,
function
()
{
var
startTime
=
new
Date
(
new
Date
().
setHours
(
0
,
0
,
0
,
0
))
var
endTime
=
startTime
.
setFullYear
(
startTime
.
getFullYear
()
+
5
)
$
(
'#effectiveStarttime'
).
val
(
helper
.
dateFormat
(
new
Date
(
new
Date
().
setHours
(
0
,
0
,
0
,
0
))))
$
(
'#expireDate'
).
val
(
helper
.
dateFormat
(
endTime
))
})
$
(
'#tenyears'
).
on
(
'click'
,
function
()
{
var
startTime
=
new
Date
(
new
Date
().
setHours
(
0
,
0
,
0
,
0
))
var
endTime
=
startTime
.
setFullYear
(
startTime
.
getFullYear
()
+
10
)
$
(
'#effectiveStarttime'
).
val
(
helper
.
dateFormat
(
new
Date
(
new
Date
().
setHours
(
0
,
0
,
0
,
0
))))
$
(
'#expireDate'
).
val
(
helper
.
dateFormat
(
endTime
))
})
function
baseIsShow
(
isShow
)
{
function
baseIsShow
(
isShow
)
{
if
(
isShow
)
{
if
(
isShow
)
{
$
(
'#basicForm'
).
show
()
$
(
'#basicForm'
).
show
()
...
...
html/merchant/validPeriodForm.html
View file @
25ba82e
...
@@ -108,6 +108,8 @@
...
@@ -108,6 +108,8 @@
<button
id=
"sevenday"
type=
"button"
class=
"newBlueBtn btn1"
>
续7天
</button>
<button
id=
"sevenday"
type=
"button"
class=
"newBlueBtn btn1"
>
续7天
</button>
<button
id=
"oneyear"
type=
"button"
class=
"newBlueBtn btn2"
>
续1年
</button>
<button
id=
"oneyear"
type=
"button"
class=
"newBlueBtn btn2"
>
续1年
</button>
<button
id=
"twoyears"
type=
"button"
class=
"newBlueBtn btn3"
>
续2年
</button>
<button
id=
"twoyears"
type=
"button"
class=
"newBlueBtn btn3"
>
续2年
</button>
<button
id=
"fiveyears"
type=
"button"
class=
"newBlueBtn btn3"
>
续5年
</button>
<button
id=
"tenyears"
type=
"button"
class=
"newBlueBtn btn3"
>
续10年
</button>
</div>
</div>
</div>
</div>
</form>
</form>
...
@@ -215,6 +217,24 @@
...
@@ -215,6 +217,24 @@
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
})
})
$
(
'#fiveyears'
).
on
(
'click'
,
function
()
{
const
startDate
=
getStartTime
(
vaildData
.
expireDate
).
startDate
const
overdue
=
getStartTime
(
vaildData
.
expireDate
).
overdue
var
startTime
=
new
Date
(
startDate
.
setHours
(
0
,
0
,
0
,
0
))
var
endTime
=
startTime
.
setFullYear
(
startTime
.
getFullYear
()
+
5
)
if
(
overdue
)
effectiveStarttimeEl
.
val
(
helper
.
dateFormat
(
new
Date
(
new
Date
().
setHours
(
0
,
0
,
0
,
0
))))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
})
$
(
'#tenyears'
).
on
(
'click'
,
function
()
{
const
startDate
=
getStartTime
(
vaildData
.
expireDate
).
startDate
const
overdue
=
getStartTime
(
vaildData
.
expireDate
).
overdue
var
startTime
=
new
Date
(
startDate
.
setHours
(
0
,
0
,
0
,
0
))
var
endTime
=
startTime
.
setFullYear
(
startTime
.
getFullYear
()
+
10
)
if
(
overdue
)
effectiveStarttimeEl
.
val
(
helper
.
dateFormat
(
new
Date
(
new
Date
().
setHours
(
0
,
0
,
0
,
0
))))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
})
// 1-草稿;2-正常;3-注销;4-过期
// 1-草稿;2-正常;3-注销;4-过期
form
.
on
(
'submit(periodSubmit)'
,
function
(
data
)
{
form
.
on
(
'submit(periodSubmit)'
,
function
(
data
)
{
if
(
merchantAccountLevel
==
4
)
{
if
(
merchantAccountLevel
==
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