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 6105e835
authored
Oct 26, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改账户有效期和商户详情
1 parent
8760ffbd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
html/merchant/addSubMerchant.html
html/merchant/detail.html
html/merchant/addSubMerchant.html
View file @
6105e83
...
@@ -419,7 +419,7 @@
...
@@ -419,7 +419,7 @@
</div>
</div>
<div
class=
"layui-form-mid"
>
-
</div>
<div
class=
"layui-form-mid"
>
-
</div>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"expireDate"
class=
"layui-input"
name=
"expireDate"
placeholder=
"结束时间"
/>
<input
type=
"text"
id=
"expireDate"
disabled
class=
"layui-input"
name=
"expireDate"
placeholder=
"结束时间"
/>
</div>
</div>
<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>
...
@@ -541,6 +541,7 @@
...
@@ -541,6 +541,7 @@
$
(
'#effectiveShowEl'
).
removeClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
removeClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
addClass
(
'show'
)
$
(
'#effectiveShowEl'
).
addClass
(
'show'
)
$
(
'#effectiveStarttime'
).
attr
(
'lay-verify'
,
'required'
)
$
(
'#effectiveStarttime'
).
attr
(
'lay-verify'
,
'required'
)
$
(
'#expireDate'
).
attr
(
'lay-verify'
,
'required'
)
}
}
var
parentInfo
=
{}
var
parentInfo
=
{}
var
isFreshSecond
=
true
var
isFreshSecond
=
true
...
@@ -608,13 +609,15 @@
...
@@ -608,13 +609,15 @@
var
effectiveStarttime
=
laydate
.
render
({
var
effectiveStarttime
=
laydate
.
render
({
elem
:
'#effectiveStarttime'
,
elem
:
'#effectiveStarttime'
,
format
:
'yyyy-MM-dd'
,
format
:
'yyyy-MM-dd'
,
min
:
''
,
min
:
helper
.
dateFormat
(
new
Date
())
,
done
:
function
(
value
,
date
)
{
done
:
function
(
value
,
date
)
{
console
.
log
(
value
,
date
,
helper
.
dateFormat
(
new
Date
()))
console
.
log
(
value
,
date
,
helper
.
dateFormat
(
new
Date
()))
effectiveStarttime
.
config
.
min
=
helper
.
dateFormat
(
new
Date
())
// $('#effectiveStarttime').change()
// effectiveStarttime.config.min = helper.dateFormat(new Date())
date
.
month
=
date
.
month
-
1
date
.
month
=
date
.
month
-
1
$
(
'#expireDate'
).
val
(
''
)
expireDate
.
config
.
min
=
date
expireDate
.
config
.
min
=
date
lay
(
'#effectiveStarttime'
).
html
(
value
)
$
(
'#expireDate'
).
removeAttr
(
'disabled'
)
}
}
})
})
...
@@ -709,11 +712,13 @@
...
@@ -709,11 +712,13 @@
$
(
'#effectiveShowEl'
).
removeClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
removeClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
addClass
(
'show'
)
$
(
'#effectiveShowEl'
).
addClass
(
'show'
)
$
(
'#effectiveStarttime'
).
attr
(
'lay-verify'
,
'required'
)
$
(
'#effectiveStarttime'
).
attr
(
'lay-verify'
,
'required'
)
$
(
'#expireDate'
).
attr
(
'lay-verify'
,
'required'
)
}
else
{
}
else
{
console
.
log
(
'jinlai'
)
console
.
log
(
'jinlai'
)
$
(
'#effectiveShowEl'
).
removeClass
(
'show'
)
$
(
'#effectiveShowEl'
).
removeClass
(
'show'
)
$
(
'#effectiveShowEl'
).
addClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
addClass
(
'hide'
)
$
(
'#effectiveStarttime'
).
removeAttr
(
'lay-verify'
)
$
(
'#effectiveStarttime'
).
removeAttr
(
'lay-verify'
)
$
(
'#expireDate'
).
removeAttr
(
'lay-verify'
,
'required'
)
}
}
}
}
})
})
...
...
html/merchant/detail.html
View file @
6105e83
...
@@ -494,7 +494,7 @@
...
@@ -494,7 +494,7 @@
'merchantLoginAccount'
,
'merchantLoginAccount'
,
'accountTypeNames'
,
'accountTypeNames'
,
'accountLevelName'
,
'accountLevelName'
,
'effectiveTimeName'
,
//
'effectiveTimeName',
'merchantName'
,
'merchantName'
,
'merchantAbbreviation'
,
'merchantAbbreviation'
,
'merchantTypeName'
,
'merchantTypeName'
,
...
@@ -610,7 +610,20 @@
...
@@ -610,7 +610,20 @@
if
(
roleData
.
merchantType
==
2
)
{
if
(
roleData
.
merchantType
==
2
)
{
$
(
'#orgTxt'
).
text
(
'组织机构代码:'
)
$
(
'#orgTxt'
).
text
(
'组织机构代码:'
)
}
}
console
.
log
(
roleData
)
var
effectiveTimeNameEl
=
$
(
'#effectiveTimeName'
)
if
(
roleData
.
merchantAccountLevel
==
4
)
{
// 门店
if
(
roleData
.
status
==
1
||
roleData
.
status
==
5
)
{
effectiveTimeNameEl
.
text
(
'-'
)
}
else
{
effectiveTimeNameEl
.
text
(
roleData
.
effectiveTimeName
)
}
}
else
{
// 工厂省代市代
if
(
roleData
.
status
==
1
||
roleData
.
status
==
4
)
{
effectiveTimeNameEl
.
text
(
'-'
)
}
else
{
effectiveTimeNameEl
.
text
(
roleData
.
effectiveTimeName
)
}
}
// callback(roleData.accountTypes)
// callback(roleData.accountTypes)
}
}
})
})
...
...
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