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 7c03bf2d
authored
Aug 07, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商户管理
1 parent
14d48b28
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
html/merchant/edit.html
html/merchant/index.html
html/merchant/edit.html
View file @
7c03bf2
This diff is collapsed.
Click to expand it.
html/merchant/index.html
View file @
7c03bf2
...
...
@@ -111,7 +111,10 @@
<script
type=
"text/html"
id=
"merchantBtns"
>
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleDetail"
>
查看
<
/a
>
{{
#
if
((
d
.
btn
.
edit
)){
}}
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleEdit"
>
修改
<
/a
>
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleEdit"
>
修改基本信息
<
/a
>
{{
#
}
}}
{{
#
if
((
d
.
btn
.
edit
)){
}}
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleAuthority"
>
修改权限
<
/a
>
{{
#
}
}}
{{
#
if
((
d
.
btn
.
createSubMerchant
)){
}}
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleAddMerchant"
>
创建子商户
/
门店
<
/a
>
...
...
@@ -219,11 +222,21 @@
break
// 修改
case
'handleEdit'
:
// 1-创建新商户;2-创建子商户;3-修改
// editLevel - 1-创建新商户;2-创建子商户;3-修改
// step - 1-基本信息;2-权限树
go
(
'merchant'
,
'edit'
,
{
editLevel
:
3
,
id
:
row
.
id
// merchantName: row.merchantName
id
:
row
.
id
,
step
:
1
})
break
case
'handleAuthority'
:
// editLevel - 1-创建新商户;2-创建子商户;3-修改
// step - 1-基本信息;2-权限树
go
(
'merchant'
,
'edit'
,
{
editLevel
:
3
,
id
:
row
.
id
,
step
:
2
})
break
// 创建子商户/门店
...
...
@@ -236,7 +249,9 @@
break
// 创建员工
case
'handleAddStaff'
:
go
(
'employee'
,
'add'
)
go
(
'employee'
,
'add'
,
{
merchantId
:
row
.
id
})
break
// 修改账户有效期
case
'handleVaildPeriod'
:
...
...
@@ -440,7 +455,8 @@
function
init
()
{
// 运营系统
if
(
!
isDxternal
)
{
// if (!isDxternal) {
if
(
isDxternal
)
{
getChannel
()
getAccountLevel
()
getAccountType
()
...
...
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