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 d1468367
authored
Aug 04, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商户编辑,地图
1 parent
9b43f185
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
html/merchant/edit.html
html/merchant/index.html
html/merchant/map.html
html/merchant/edit.html
View file @
d146836
This diff is collapsed.
Click to expand it.
html/merchant/index.html
View file @
d146836
...
...
@@ -83,7 +83,9 @@
<script
type=
"text/html"
id=
"merchantBtns"
>
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleDetail"
>
查看
<
/a
>
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleEdit"
>
修改
<
/a
>
{{
#
if
((
d
.
merchantAccountLevel
!=
4
)
||
(
d
.
status
==
2
&&
d
.
merchantAccountLevel
!=
4
)){
}}
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleAddMerchant"
>
创建子商户
/
门店
<
/a
>
{{
#
}
}}
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleAddStaff"
>
创建员工
<
/a
>
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleVaildPeriod"
>
修改账户有效期
<
/a
>
</script>
...
...
@@ -252,6 +254,7 @@
console
.
log
(
obj
)
var
eventName
=
obj
.
event
var
row
=
obj
.
data
console
.
log
(
row
)
switch
(
eventName
)
{
// 查看
case
'handleDetail'
:
...
...
@@ -259,14 +262,24 @@
break
// 修改
case
'handleEdit'
:
// 1-创建新商户;2-创建子商户;3-修改
go
(
'merchant'
,
'edit'
,
{
editLevel
:
3
,
id
:
row
.
id
// merchantName: row.merchantName
})
break
// 创建子商户/门店
case
'handleAddMerchant'
:
go
(
'merchant'
,
'edit'
)
// 1-创建新商户;2-创建子商户;3-修改
go
(
'merchant'
,
'edit'
,
{
editLevel
:
2
,
id
:
row
.
id
})
break
// 创建员工
case
'handleAddStaff'
:
go
(
'
merchant'
,
'edit
'
)
go
(
'
employee'
,
'add
'
)
break
// 修改账户有效期
case
'handleVaildPeriod'
:
...
...
@@ -311,8 +324,11 @@
// console.log('00000')
// return false
// })
$
(
'#addBtn'
).
on
(
'click'
,
function
()
{
go
(
'merchant'
,
'edit'
)
$
(
'#addBtn'
).
on
(
'click'
,
function
()
{
// 1-创建新商户;2-创建子商户;3-修改
go
(
'merchant'
,
'edit'
,
{
editLevel
:
1
})
})
// 搜索绑定事件
form
.
on
(
'submit(searchSubmit)'
,
function
()
{
...
...
html/merchant/map.html
View file @
d146836
...
...
@@ -67,7 +67,7 @@
</button>
</div>
<div
class=
"layui-form-item"
>
<div
align=
"center"
class=
"layui-input-inline"
style=
"width: 400px; height: 300px;"
>
<div
class=
"layui-input-inline"
style=
"width: 400px; height: 300px;"
>
<div
id=
"container"
></div>
</div>
<div
class=
"poi-list layui-input-inline poi-list"
id=
"pois"
></div>
...
...
@@ -128,9 +128,9 @@
function
init
()
{
var
__pos
=
null
mapData
=
helper
.
store
.
get
(
'merchantMapObj'
)
// console.log(mapData)
if
(
mapData
.
lat
&&
mapData
.
lng
)
{
__pos
=
[
mapData
.
lat
,
mapData
.
lng
]
__pos
=
[
mapData
.
lng
,
mapData
.
lat
]
modelVal
(
'merchantAddress'
,
mapData
.
merchantAddress
)
}
marker
=
new
AMap
.
Marker
({
...
...
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