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 6ca3964a
authored
Dec 06, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
弹窗样式暂改
1 parent
c3f2a154
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
12 deletions
html/merchant/index.html
html/merchant/validPeriodForm.html
html/merchant/index.html
View file @
6ca3964
...
...
@@ -562,16 +562,17 @@
break
// 修改账户有效期
case
'handleVaildPeriod'
:
var
area
=
[
'5
6
0px'
,
'230px'
]
var
area
=
[
'5
8
0px'
,
'230px'
]
if
(
row
.
merchantAccountLevel
==
4
)
{
area
=
[
'750px'
,
'450px'
]
// area = ['750px', '480px']
area
=
[
'700px'
,
'480px'
]
}
layer
.
open
({
type
:
2
,
title
:
''
,
closeBtn
:
0
,
area
:
area
,
fixed
:
false
,
//不固定
fixed
:
false
,
//不固定
// maxmin: true,
btn
:
[
'确定'
,
'取消'
],
content
:
...
...
html/merchant/validPeriodForm.html
View file @
6ca3964
...
...
@@ -23,12 +23,53 @@
}
.layui-form-label
{
width
:
1
2
0px
;
width
:
1
8
0px
;
}
.hide
{
display
:
none
;
}
.valid-period
{
text-align
:
left
;
border-bottom
:
1px
solid
#E6E6E6
;
}
.layui-form-mid
{
margin-right
:
5px
;
margin-left
:
5px
;
}
#storeEl
{
margin-top
:
50px
;
}
#merchantEl
{
margin-top
:
50px
;
padding-left
:
55px
;
}
.btn-three
{
display
:
flex
;
justify-content
:
flex-end
;
margin-right
:
94px
;
}
.newBlueBtn
{
width
:
65px
;
height
:
32px
;
background
:
#FFFFFF
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.15
);
}
.newBlueBtn
:hover
{
border
:
1px
solid
#5850FF
;
color
:
#5850FF
;
}
.btn1
{
border-radius
:
2px
0px
0px
2px
;
}
.btn3
{
border-radius
:
0
2px
2px
0
;
}
/* .hide .layui-form-item .layui-input-inline{
width: 150px;
} */
</style>
<title>
修改有效期
</title>
</head>
...
...
@@ -37,9 +78,9 @@
<div
id=
"app"
>
<main
class=
"valid-period"
>
<form
class=
"layui-form"
lay-filter=
"periodFilter"
>
<div
id=
"merchantEl"
>
<div
id=
"merchantEl"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
账户有效期:
</label>
<label
class=
"layui-form-label"
>
修改
账户有效期:
</label>
<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=
"4"
title=
"禁用"
/>
...
...
@@ -50,8 +91,8 @@
<p
class=
"input-downtips"
id=
"tips"
></p>
</div>
</div>
<div
id=
"storeEl"
class=
"layui-form-item hide
"
>
<label
class=
"layui-form-label"
>
账户有效期:
</label>
<div
id=
"storeEl"
class=
"layui-form-item hide storeElClass
"
>
<label
class=
"layui-form-label"
>
修改
账户有效期:
</label>
<div
class=
"layui-inline"
>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"effectiveStarttime"
disabled
class=
"layui-input"
name=
"effectiveStarttime"
...
...
@@ -62,10 +103,11 @@
<input
type=
"text"
id=
"expireDate"
class=
"layui-input"
name=
"expireDate"
placeholder=
"结束时间"
/>
</div>
</div>
<div>
<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=
"twoyears"
type=
"button"
class=
"layui-btn btn-no-border"
>
续2年
</button>
<div
class=
"btn-three"
>
<!-- layui-btn btn-no-border -->
<button
id=
"sevenday"
type=
"button"
class=
"newBlueBtn btn1"
>
续7天
</button>
<button
id=
"oneyear"
type=
"button"
class=
"newBlueBtn btn2"
>
续1年
</button>
<button
id=
"twoyears"
type=
"button"
class=
"newBlueBtn btn3"
>
续2年
</button>
</div>
</div>
</form>
...
...
@@ -136,7 +178,16 @@
min
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()
+
1
}
`
})
// $('#expireDate').on('click',function(){
// // document.querySelector(".valid-period").style.height=300+'px'
// // document.querySelector(".layui-layer .layui-layer-iframe").style.height=480+'px'
// document.querySelector(".layui-layui-iframe").style.height= 423+'px'
// })
// $('#expireDate').on('blur',function(){
// })
$
(
'#sevenday'
).
on
(
'click'
,
function
()
{
const
startDate
=
getStartTime
(
vaildData
.
expireDate
).
startDate
const
overdue
=
getStartTime
(
vaildData
.
expireDate
).
overdue
...
...
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