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 8302017d
authored
Oct 23, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整
1 parent
c67c9ed1
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
141 additions
and
60 deletions
css/layui.css
css/main.css
html/employee/detail.html
html/employee/validPeriod.html
html/merchant/add.html
html/merchant/detail.html
html/merchant/index.html
html/merchant/validPeriodForm.html
index.html
css/layui.css
View file @
8302017
...
@@ -322,4 +322,13 @@ border-color: var(--borderBlue)!important;
...
@@ -322,4 +322,13 @@ border-color: var(--borderBlue)!important;
box-shadow
:
none
;
box-shadow
:
none
;
/* 0 2px 5px 0 rgb(0 0 0 / 10%) */
/* 0 2px 5px 0 rgb(0 0 0 / 10%) */
}
}
/* layui时间选择器 */
.laydate-footer-btns
span
:hover
{
color
:
var
(
--btnBlue
)
!important
;
}
.laydate-set-ym
span
:hover
{
color
:
var
(
--btnBlue
)
!important
;
}
.layui-laydate-header
i
:hover
,
.layui-laydate-header
span
:hover
{
color
:
var
(
--btnBlue
)
!important
;
}
css/main.css
View file @
8302017
...
@@ -121,10 +121,7 @@ main {
...
@@ -121,10 +121,7 @@ main {
height
:
100%
;
height
:
100%
;
}
}
main
.table-page
{
main
.table-page
{
/* background-color: #ffffff; */
margin-top
:
16px
;
margin-top
:
16px
;
/* margin:15px 20px; */
/* padding: 5px; */
}
}
main
.table-page
tr
th
:last-child
.layui-table-cell
{
main
.table-page
tr
th
:last-child
.layui-table-cell
{
text-align
:
center
;
text-align
:
center
;
...
@@ -262,6 +259,11 @@ footer {
...
@@ -262,6 +259,11 @@ footer {
border-bottom-left-radius
:
0
;
border-bottom-left-radius
:
0
;
border-left
:
none
;
border-left
:
none
;
}
}
#updateCircleAngle
{
border-top-left-radius
:
0
;
border-bottom-left-radius
:
0
;
border-left
:
none
;
}
.updateSelectAngle
.layui-select-title
.layui-input
{
.updateSelectAngle
.layui-select-title
.layui-input
{
border-top-right-radius
:
0
;
border-top-right-radius
:
0
;
border-bottom-right-radius
:
0
;
border-bottom-right-radius
:
0
;
...
@@ -310,3 +312,51 @@ footer {
...
@@ -310,3 +312,51 @@ footer {
background-color
:
white
;
background-color
:
white
;
}
}
/*ztree*/
.ztree
::-webkit-scrollbar
{
width
:
10px
;
height
:
10px
;
/* display: none; */
}
/*正常情况下滑块的样式*/
.ztree
::-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
);
}
/*鼠标悬浮在该类指向的控件上时滑块的样式*/
.ztree
::-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);
} */
/*正常时候的主干部分*/
.ztree
::-webkit-scrollbar-track
{
border-radius
:
10px
;
box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0
);
background-color
:
white
;
}
\ No newline at end of file
\ No newline at end of file
html/employee/detail.html
View file @
8302017
...
@@ -106,9 +106,9 @@
...
@@ -106,9 +106,9 @@
<main
class=
"wrapper detail"
>
<main
class=
"wrapper detail"
>
<div
class=
"layui-tab layui-tab-brief"
lay-filter=
"editTab"
>
<div
class=
"layui-tab layui-tab-brief"
lay-filter=
"editTab"
>
<ul
class=
"layui-tab-title employeeDetail"
>
<ul
class=
"layui-tab-title employeeDetail"
>
<li
lay-id=
"1"
class=
"layui-this"
>
基本信息
</li>
<li
lay-id=
"1"
style=
"padding: 0; width: 90px; margin-right: 20px"
class=
"layui-this"
>
基本信息
</li>
<li
lay-id=
"2"
>
账户权限
</li>
<li
lay-id=
"2"
style=
"padding: 0; width: 90px; margin-right: 20px"
>
账户权限
</li>
<li
lay-id=
"3"
>
修改记录
</li>
<li
lay-id=
"3"
style=
"padding: 0; width: 90px"
>
修改记录
</li>
</ul>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-item layui-show"
>
<div
class=
"layui-tab-item layui-show"
>
...
@@ -176,12 +176,14 @@
...
@@ -176,12 +176,14 @@
</div>
</div>
</div>
</div>
<div
class=
"layui-tab-item"
>
<div
class=
"layui-tab-item"
>
<div
class=
"bottomwrap"
style=
"margin-bottom: 80px"
>
<div
class=
"bottomwrap"
style=
"margin-bottom: 80px
; padding: 0 20px
"
>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title sub-title"
id=
"record"
>
修改记录
</h3>
<h3
class=
"content-title sub-title"
id=
"record"
>
修改记录
</h3>
<div
class=
"layui-tab tabmutiple-content"
>
<div
class=
"layui-tab tabmutiple-content"
>
<table
class=
"layui-table"
id=
"recordTable"
style=
"padding-left: 20px"
></table>
<div
class=
"table-page"
>
<div
id=
"recordPage"
class=
"align-left"
style=
"margin-top: 20px; padding-left: 20px"
></div>
<table
class=
"layui-table"
id=
"recordTable"
></table>
<div
id=
"recordPage"
class=
"align-left"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -261,24 +263,25 @@
...
@@ -261,24 +263,25 @@
{
{
field
:
'ip'
,
field
:
'ip'
,
title
:
'登录IP'
,
title
:
'登录IP'
,
align
:
'center'
,
align
:
'center'
width
:
120
},
},
{
{
field
:
'modifyContent'
,
field
:
'modifyContent'
,
title
:
'修改内容'
,
title
:
'修改内容'
,
align
:
'center'
align
:
'center'
,
width
:
220
},
},
{
{
field
:
'userName'
,
field
:
'userName'
,
title
:
'操作人'
,
title
:
'操作人'
,
align
:
'center'
align
:
'center'
,
width
:
180
},
},
{
{
field
:
'createdTime'
,
field
:
'createdTime'
,
title
:
'操作时间'
,
title
:
'操作时间'
,
align
:
'center'
,
align
:
'center'
,
width
:
18
0
width
:
20
0
}
}
]
]
]
]
...
...
html/employee/validPeriod.html
View file @
8302017
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"zh"
>
<html
lang=
"zh"
>
<head>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<meta
content=
"IE=edge"
/>
<meta
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
...
@@ -17,21 +16,21 @@
...
@@ -17,21 +16,21 @@
}
}
</style>
</style>
<title>
修改有效期
</title>
<title>
修改有效期
</title>
</head>
</head>
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
<main
class=
"valid-period"
>
<main
class=
"valid-period"
>
<form
class=
"layui-form"
lay-filter=
"periodFilter"
>
<form
class=
"layui-form"
lay-filter=
"periodFilter"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-label required"
style=
"width: 120px;
"
>
账户有效期:
</div>
<div
class=
"layui-form-label required"
style=
"width: 120px
"
>
账户有效期:
</div>
<div
class=
"layui-input-inline"
style=
"width: auto;
"
>
<div
class=
"layui-input-inline"
style=
"width: auto
"
>
<select
name=
"effectiveTime"
id=
"periodSelect"
required
lay-verify=
"required"
>
<select
name=
"effectiveTime"
id=
"periodSelect"
required
lay-verify=
"required"
>
<option
value=
""
>
请选择
</option>
<option
value=
""
>
请选择
</option>
</select>
</select>
<p
class=
"input-downtips"
>
(注:永久有效不超过所属工厂商户的有效期)
</p>
<p
class=
"input-downtips"
>
(注:永久有效不超过所属工厂商户的有效期)
</p>
</div>
</div>
<button
id=
"periodVerifyBtn"
lay-submit
lay-filter=
"periodSubmit"
style=
"display: none;
"
></button>
<button
id=
"periodVerifyBtn"
lay-submit
lay-filter=
"periodSubmit"
style=
"display: none
"
></button>
<!-- <div class="layui-form-item" style="padding: 40px 20px;">
<!-- <div class="layui-form-item" style="padding: 40px 20px;">
<div class="layui-input-inline">
<div class="layui-input-inline">
<button class="layui-btn layui-btn-sm" lay-submit lay-filter="validSubmit">立即提交</button>
<button class="layui-btn layui-btn-sm" lay-submit lay-filter="validSubmit">立即提交</button>
...
@@ -88,10 +87,12 @@
...
@@ -88,10 +87,12 @@
// 获取有效期
// 获取有效期
function
getVaildPeriod
()
{
function
getVaildPeriod
()
{
request
({
request
(
{
method
:
'cn.com.glsx.merchants.menu.findAllDictData'
,
method
:
'cn.com.glsx.merchants.menu.findAllDictData'
,
dictType
:
'staff_validity_period'
dictType
:
'staff_validity_period'
},
function
(
res
)
{
},
function
(
res
)
{
if
(
res
.
code
===
'0'
)
{
if
(
res
.
code
===
'0'
)
{
baseData
.
effectiveTimeList
=
res
.
data
baseData
.
effectiveTimeList
=
res
.
data
var
periodSelect
=
$
(
'#periodSelect'
)
var
periodSelect
=
$
(
'#periodSelect'
)
...
@@ -104,10 +105,10 @@
...
@@ -104,10 +105,10 @@
console
.
log
(
vaildData
.
effectiveTime
)
console
.
log
(
vaildData
.
effectiveTime
)
form
.
render
(
'select'
)
form
.
render
(
'select'
)
}
}
})
}
)
}
}
})
})
</script>
</script>
</body>
</body>
</html>
</html>
html/merchant/add.html
View file @
8302017
...
@@ -319,7 +319,7 @@
...
@@ -319,7 +319,7 @@
</div>
</div>
<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-inline"
id=
"busiScopeEl"
></div>
<div
class=
"layui-input-inline
removeCheckBg
"
id=
"busiScopeEl"
></div>
</div>
</div>
<div
class=
"layui-form-item"
id=
"custom-scope"
>
<div
class=
"layui-form-item"
id=
"custom-scope"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
@@ -344,7 +344,7 @@
...
@@ -344,7 +344,7 @@
<label
class=
"layui-form-label"
>
主营品牌:
</label>
<label
class=
"layui-form-label"
>
主营品牌:
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<input
class=
"layui-input"
placeholder=
"车型品牌"
id=
"brand"
/>
<input
class=
"layui-input"
placeholder=
"车型品牌"
id=
"brand"
/>
<div
id=
"carBrandTree"
style=
"height: 200px; overflow-y: scroll"
></div>
<div
id=
"carBrandTree"
class=
"wrapper-tree"
style=
"height: 200px; overflow-y: scroll"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
html/merchant/detail.html
View file @
8302017
...
@@ -210,6 +210,12 @@
...
@@ -210,6 +210,12 @@
width
:
100%
;
width
:
100%
;
height
:
1px
;
height
:
1px
;
}
}
.companyMsg
.layui-word-aux
{
color
:
#999
!important
;
padding-left
:
20px
!important
;
padding-right
:
5px
!important
;
padding-top
:
6px
;
}
.account-type-span
{
.account-type-span
{
display
:
inline-block
;
display
:
inline-block
;
/* width: 100px; */
/* width: 100px; */
...
@@ -318,7 +324,7 @@
...
@@ -318,7 +324,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"MsgWrap clearfix"
style=
"margin-bottom: 100px"
>
<div
class=
"MsgWrap c
ompanyMsg c
learfix"
style=
"margin-bottom: 100px"
>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title"
>
企业信息
</h3>
<h3
class=
"content-title"
>
企业信息
</h3>
<div
class=
"detail-content clearfix"
>
<div
class=
"detail-content clearfix"
>
...
@@ -326,7 +332,7 @@
...
@@ -326,7 +332,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=
"merchantName"
></div>
<div
class=
"layui-word-aux"
id=
"merchantName"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -334,7 +340,8 @@
...
@@ -334,7 +340,8 @@
<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=
"merchantAbbreviation"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantAbbreviation"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -342,7 +349,8 @@
...
@@ -342,7 +349,8 @@
<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=
"merchantTypeName"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantTypeName"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -351,7 +359,8 @@
...
@@ -351,7 +359,8 @@
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
id=
"orgTxt"
>
身份证:
</label>
<label
class=
"layui-form-label"
id=
"orgTxt"
>
身份证:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantOrgcode"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantOrgcode"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -360,7 +369,8 @@
...
@@ -360,7 +369,8 @@
<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=
"merchantAddress"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantAddress"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -369,7 +379,8 @@
...
@@ -369,7 +379,8 @@
<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=
"merchantLegalPerson"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantLegalPerson"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -378,7 +389,8 @@
...
@@ -378,7 +389,8 @@
<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=
"merchantLegalPersonPhone"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantLegalPersonPhone"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -387,7 +399,8 @@
...
@@ -387,7 +399,8 @@
<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=
"businessScopName"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"businessScopName"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -396,7 +409,8 @@
...
@@ -396,7 +409,8 @@
<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=
"merchantBrandName"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantBrandName"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
html/merchant/index.html
View file @
8302017
...
@@ -294,7 +294,7 @@
...
@@ -294,7 +294,7 @@
field
:
'accountTypeNames'
,
field
:
'accountTypeNames'
,
title
:
'账户类型'
,
title
:
'账户类型'
,
align
:
'left'
,
align
:
'left'
,
width
:
1
0
0
,
width
:
1
4
0
,
templet
:
'#accountTypeTpl'
templet
:
'#accountTypeTpl'
},
},
{
{
...
...
html/merchant/validPeriodForm.html
View file @
8302017
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"zh"
>
<html
lang=
"zh"
>
<head>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<meta
content=
"IE=edge"
/>
<meta
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
...
@@ -10,9 +9,14 @@
...
@@ -10,9 +9,14 @@
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,商户管理"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,商户管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<style>
<style>
#app
{
padding
:
0
;
}
.valid-period
{
.valid-period
{
/* width: 560px;
height: 230px; */
text-align
:
center
;
text-align
:
center
;
padding
:
20px
20px
;
/* padding: 20px 20px; */
background-color
:
#ffffff
;
background-color
:
#ffffff
;
}
}
.layui-form-label
{
.layui-form-label
{
...
@@ -23,9 +27,9 @@
...
@@ -23,9 +27,9 @@
}
}
</style>
</style>
<title>
修改有效期
</title>
<title>
修改有效期
</title>
</head>
</head>
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
<main
class=
"valid-period"
>
<main
class=
"valid-period"
>
<form
class=
"layui-form"
lay-filter=
"periodFilter"
>
<form
class=
"layui-form"
lay-filter=
"periodFilter"
>
...
@@ -33,10 +37,10 @@
...
@@ -33,10 +37,10 @@
<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-inline"
>
<div
class=
"layui-input-inline"
>
<input
type=
"radio"
name=
"effectiveTime"
lay-filter=
"radio"
value=
"2"
title=
"启用"
>
<input
type=
"radio"
name=
"effectiveTime"
lay-filter=
"radio"
value=
"2"
title=
"启用"
/
>
<input
type=
"radio"
name=
"effectiveTime"
lay-filter=
"radio"
value=
"4"
title=
"禁用"
>
<input
type=
"radio"
name=
"effectiveTime"
lay-filter=
"radio"
value=
"4"
title=
"禁用"
/
>
</div>
</div>
<button
id=
"periodVerifyBtn"
lay-submit
lay-filter=
"periodSubmit"
style=
"display: none;
"
></button>
<button
id=
"periodVerifyBtn"
lay-submit
lay-filter=
"periodSubmit"
style=
"display: none
"
></button>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<p
class=
"input-downtips"
id=
"tips"
></p>
<p
class=
"input-downtips"
id=
"tips"
></p>
...
@@ -123,33 +127,33 @@
...
@@ -123,33 +127,33 @@
format
:
'yyyy-MM-dd'
format
:
'yyyy-MM-dd'
})
})
$
(
'#sevenday'
).
on
(
'click'
,
function
()
{
$
(
'#sevenday'
).
on
(
'click'
,
function
()
{
const
startDate
=
getStartTime
(
vaildData
.
expireDate
).
startDate
const
startDate
=
getStartTime
(
vaildData
.
expireDate
).
startDate
const
overdue
=
getStartTime
(
vaildData
.
expireDate
).
overdue
const
overdue
=
getStartTime
(
vaildData
.
expireDate
).
overdue
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
)
effectiveStarttimeEl
.
val
(
helper
.
dateFormat
(
startTime
))
if
(
overdue
)
effectiveStarttimeEl
.
val
(
helper
.
dateFormat
(
startTime
))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
})
})
$
(
'#oneyear'
).
on
(
'click'
,
function
()
{
$
(
'#oneyear'
).
on
(
'click'
,
function
()
{
const
startDate
=
getStartTime
(
vaildData
.
expireDate
).
startDate
const
startDate
=
getStartTime
(
vaildData
.
expireDate
).
startDate
const
overdue
=
getStartTime
(
vaildData
.
expireDate
).
overdue
const
overdue
=
getStartTime
(
vaildData
.
expireDate
).
overdue
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
)
effectiveStarttimeEl
.
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
))))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
})
})
$
(
'#twoyears'
).
on
(
'click'
,
function
()
{
$
(
'#twoyears'
).
on
(
'click'
,
function
()
{
const
startDate
=
getStartTime
(
vaildData
.
expireDate
).
startDate
const
startDate
=
getStartTime
(
vaildData
.
expireDate
).
startDate
const
overdue
=
getStartTime
(
vaildData
.
expireDate
).
overdue
const
overdue
=
getStartTime
(
vaildData
.
expireDate
).
overdue
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
)
effectiveStarttimeEl
.
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
))))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
expireDateEl
.
val
(
helper
.
dateFormat
(
endTime
))
})
})
...
@@ -200,9 +204,9 @@
...
@@ -200,9 +204,9 @@
})
})
// 触发单选框
// 触发单选框
form
.
on
(
'radio(radio)'
,
function
(
data
)
{
form
.
on
(
'radio(radio)'
,
function
(
data
)
{
setText
(
data
.
value
)
setText
(
data
.
value
)
});
})
function
setText
(
value
)
{
function
setText
(
value
)
{
if
(
value
==
2
)
{
if
(
value
==
2
)
{
...
@@ -239,6 +243,5 @@
...
@@ -239,6 +243,5 @@
}
}
})
})
</script>
</script>
</body>
</body>
</html>
</html>
index.html
View file @
8302017
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
/>
<meta
name=
"description"
content=
"广联帐户管理中心"
/>
<meta
name=
"description"
content=
"广联帐户管理中心"
/>
<meta
http-equiv=
"Content-Security-Policy"
content=
"upgrade-insecure-requests"
/>
<title>
广联帐户管理中心
</title>
<title>
广联帐户管理中心
</title>
</head>
</head>
...
...
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