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 8f83cd57
authored
Oct 25, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
963b7ebd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
15 deletions
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/edit.html
html/merchant/validPeriodForm.html
html/role/index.html
html/merchant/add.html
View file @
8f83cd5
...
...
@@ -199,7 +199,7 @@
<!-- <div class="edit-box"> -->
<!-- 基本信息 -->
<div
id=
"basicForm"
>
<form
class=
"layui-form layui-row"
lay-filter=
"merchantForm"
>
<form
class=
"layui-form layui-row"
autocomplete=
"off"
lay-filter=
"merchantForm"
>
<div
class=
"edit-box clearfix"
>
<div
class=
"grayLine"
></div>
<div
class=
"layui-form-item edit-title"
style=
"position: relative"
>
...
...
html/merchant/addSubMerchant.html
View file @
8f83cd5
...
...
@@ -210,7 +210,7 @@
<!-- <div class="edit-box"> -->
<!-- 基本信息 -->
<div
id=
"basicForm"
>
<form
class=
"layui-form layui-row"
lay-filter=
"merchantForm"
>
<form
class=
"layui-form layui-row"
autocomplete=
"off"
lay-filter=
"merchantForm"
>
<div
class=
"edit-box clearfix"
>
<div
class=
"grayLine"
></div>
<div
class=
"layui-form-item edit-title"
style=
"position: relative"
>
...
...
@@ -534,8 +534,9 @@
var
accountTypeVisible
=
false
// 是否工厂
var
isFactory
=
true
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
var
merchantAccountLevel
=
qs
(
'merchantAccountLevel'
)
if
(
merchantAccountLevel
==
3
)
{
if
(
merchantAccountLevel
==
3
&&
!
accountInfo
)
{
// 上级是市代,子商户为门店,显示 有效期
$
(
'#effectiveShowEl'
).
removeClass
(
'hide'
)
$
(
'#effectiveShowEl'
).
addClass
(
'show'
)
...
...
@@ -597,19 +598,21 @@
if
(
value
!=
''
)
{
date
.
month
=
date
.
month
-
1
startDate
.
config
.
max
=
date
}
else
{
}
else
{
k
startDate
.
config
.
max
=
endDate
.
config
.
max
}
lay
(
'#endDate'
).
html
(
value
)
}
})
var
effectiveStarttime
=
laydate
.
render
({
elem
:
'#effectiveStarttime'
,
format
:
'yyyy-MM-dd'
,
min
:
''
,
min
:
'
nowTime
'
,
done
:
function
(
value
,
date
)
{
console
.
log
(
value
,
date
)
console
.
log
(
value
,
date
,
helper
.
dateFormat
(
new
Date
())
)
effectiveStarttime
.
config
.
min
=
helper
.
dateFormat
(
new
Date
())
date
.
month
=
date
.
month
-
1
expireDate
.
config
.
min
=
date
lay
(
'#effectiveStarttime'
).
html
(
value
)
}
...
...
@@ -617,7 +620,11 @@
var
expireDate
=
laydate
.
render
({
elem
:
'#expireDate'
,
format
:
'yyyy-MM-dd'
format
:
'yyyy-MM-dd'
,
min
:
''
,
done
:
function
(
value
,
date
)
{
effectiveStarttime
.
config
.
min
=
helper
.
dateFormat
(
new
Date
())
}
})
editLevel
=
qs
(
'editLevel'
)
...
...
@@ -700,7 +707,6 @@
// select 选择触发
form
.
on
(
'select(accountLevel)'
,
function
(
data
)
{
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
console
.
log
(
data
.
value
,
accountInfo
)
if
(
!
accountInfo
)
{
if
(
data
.
value
==
4
)
{
...
...
@@ -734,7 +740,9 @@
'merchantLoginAccount'
,
'merchantLoginPassword'
,
'merchantAccountLevel'
,
'effectiveTime'
'effectiveTime'
,
'effectiveStarttime'
,
'expireDate'
]
if
(
formData
.
isloginName
==
'on'
)
{
params
.
isloginName
=
1
...
...
@@ -756,6 +764,8 @@
merchantForm
[
item
]
=
formData
[
item
]
||
''
params
[
item
]
=
formData
[
item
]
||
''
})
params
.
effectiveStarttime
=
new
Date
(
params
.
effectiveStarttime
)
params
.
expireDate
=
new
Date
(
params
.
expireDate
)
if
(
merchantId
)
{
params
.
effectiveTime
=
merchantForm
.
effectiveTime
}
...
...
html/merchant/edit.html
View file @
8f83cd5
...
...
@@ -211,7 +211,7 @@
<div
class=
"layui-tab-item"
>
<!-- 基本信息 -->
<div
id=
"basicForm"
>
<form
class=
"layui-form"
lay-filter=
"merchantForm"
>
<form
class=
"layui-form"
autocomplete=
"off"
lay-filter=
"merchantForm"
>
<div
class=
"edit-box"
>
<p
class=
"edit-title"
>
修改账户基本信息
</p>
<!-- <div id="subMerchantEl">
...
...
@@ -358,11 +358,11 @@
<label
class=
"layui-form-label"
>
营业时间:
</label>
<div
class=
"layui-inline"
>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"startDate"
class=
"layui-input"
name=
"bussinessBegintime"
placeholder=
"开始时间"
/>
<input
type=
"text"
id=
"startDate"
autocomplete=
"off"
class=
"layui-input"
name=
"bussinessBegintime"
placeholder=
"开始时间"
/>
</div>
<div
class=
"layui-form-mid"
>
-
</div>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"endDate"
class=
"layui-input"
name=
"bussinessEndtime"
placeholder=
"结束时间"
/>
<input
type=
"text"
id=
"endDate"
class=
"layui-input"
name=
"bussinessEndtime"
placeholder=
"结束时间"
/>
</div>
</div>
</div>
...
...
html/merchant/validPeriodForm.html
View file @
8f83cd5
...
...
@@ -96,8 +96,8 @@
effectiveStarttime
:
getQueryString
(
'effectiveStarttime'
)
})
}
else
{
storeEl
.
show
()
merchantEl
.
hide
()
//
storeEl.show()
//
merchantEl.hide()
setText
(
2
)
console
.
log
(
getQueryString
(
'status'
))
vaildData
.
effectiveTime
=
getQueryString
(
'status'
)
...
...
html/role/index.html
View file @
8f83cd5
...
...
@@ -41,7 +41,7 @@
<!-- <label class="layui-form-label">状态</label> -->
<label
class=
"layui-form-label"
>
状态
</label>
<div
class=
"layui-input-inline"
style=
"margin-left: 0"
>
<select
name=
"
status
"
id=
"status"
lay-verify=
"required"
>
<select
name=
"
delFlag
"
id=
"status"
lay-verify=
"required"
>
<option
value=
""
>
全部
</option>
<option
value=
"0"
>
草稿
</option>
<option
value=
"1"
>
启用
</option>
...
...
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