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 eff76f85
authored
Aug 12, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
9777157d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
34 deletions
html/merchant/detail.html
html/merchant/edit.html
html/merchant/index.html
js/request.js
html/merchant/detail.html
View file @
eff76f8
...
@@ -491,7 +491,7 @@
...
@@ -491,7 +491,7 @@
})
})
// 获取table列表接口
// 获取table列表接口
function
getSecondTable
(
table
,
search
,
isResetPageNum
=
false
)
{
function
getSecondTable
(
table
,
search
,
isResetPageNum
)
{
var
search
=
search
||
{}
var
search
=
search
||
{}
var
params
=
helper
.
clone
(
false
,
{
var
params
=
helper
.
clone
(
false
,
{
method
:
'cn.com.glsx.merchants.staff.findMerchantStaffList'
,
method
:
'cn.com.glsx.merchants.staff.findMerchantStaffList'
,
...
...
html/merchant/edit.html
View file @
eff76f8
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label required"
>
商户名称:
</label>
<label
class=
"layui-form-label required"
>
商户名称:
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<input
class=
"layui-input"
maxlength=
"
15
"
name=
"merchantName"
required
lay-verify=
"required"
<input
class=
"layui-input"
maxlength=
"
50
"
name=
"merchantName"
required
lay-verify=
"required"
placeholder=
"请输入商户名称"
>
placeholder=
"请输入商户名称"
>
</div>
</div>
</div>
</div>
...
@@ -266,17 +266,17 @@
...
@@ -266,17 +266,17 @@
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label required"
>
登
陆
账户名:
</label>
<label
class=
"layui-form-label required"
>
登
录
账户名:
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<input
class=
"layui-input"
name=
"merchantLoginAccount"
maxlength=
"15"
placeholder=
"请输入登
陆
账户名"
required
<input
class=
"layui-input"
name=
"merchantLoginAccount"
maxlength=
"15"
placeholder=
"请输入登
录
账户名"
required
lay-verify=
"required"
>
lay-verify=
"required"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label required"
>
登
陆
密码:
</label>
<label
class=
"layui-form-label required"
>
登
录
密码:
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<input
class=
"layui-input"
type=
"password"
name=
"merchantLoginPassword"
maxlength=
"15"
<input
class=
"layui-input"
type=
"password"
name=
"merchantLoginPassword"
maxlength=
"15"
placeholder=
"请输入登
陆
密码"
required
lay-verify=
"required"
>
placeholder=
"请输入登
录
密码"
required
lay-verify=
"required"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
@@ -306,7 +306,7 @@
...
@@ -306,7 +306,7 @@
</div>
</div>
<!-- 权限树 -->
<!-- 权限树 -->
<div
id=
"authorityTree"
>
<div
id=
"authorityTree"
>
<!-- 树
--
-->
<!-- 树 -->
<!-- <div class="layui-form-item">
<!-- <div class="layui-form-item">
<label class="layui-form-label required">角色权限:</label>
<label class="layui-form-label required">角色权限:</label>
<div class="layui-input-block" id="accountType"> -->
<div class="layui-input-block" id="accountType"> -->
...
@@ -597,7 +597,7 @@
...
@@ -597,7 +597,7 @@
})
})
},
},
// 添加范围
// 添加范围
handleAddScope
(
txt
)
{
handleAddScope
:
function
(
txt
)
{
var
parent
=
$
(
'#custom-scope'
)
var
parent
=
$
(
'#custom-scope'
)
var
subParent
=
$
(
'<div class="layui-form-item"><label class="layui-form-label"></label></div>'
)
var
subParent
=
$
(
'<div class="layui-form-item"><label class="layui-form-label"></label></div>'
)
var
child1
=
$
(
var
child1
=
$
(
...
@@ -632,7 +632,7 @@
...
@@ -632,7 +632,7 @@
subParent
.
append
(
child2
)
subParent
.
append
(
child2
)
parent
.
append
(
subParent
)
parent
.
append
(
subParent
)
},
},
handleCancel
()
{
handleCancel
:
function
()
{
go
(
'merchant'
,
'index'
)
go
(
'merchant'
,
'index'
)
return
false
return
false
}
}
...
@@ -657,12 +657,13 @@
...
@@ -657,12 +657,13 @@
reader
.
readAsDataURL
(
fileInfo
)
reader
.
readAsDataURL
(
fileInfo
)
reader
.
onload
=
function
(
e
)
{
reader
.
onload
=
function
(
e
)
{
if
(
e
)
{
if
(
e
)
{
const
imgFile
=
e
.
target
.
result
var
imgFile
=
e
.
target
.
result
const
base64
=
fileInfo
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
var
base64
=
fileInfo
.
name
.
split
(
'.'
)[
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
request
(
{
var
params
=
{
method
:
'glsx.accounts.biz.common.pictureUpload'
,
method
:
'glsx.accounts.biz.common.pictureUpload'
,
file
:
base64
file
:
base64
},
function
(
result
)
{
}
request
(
params
,
function
(
result
)
{
merchantForm
.
merchantFiles
[
idx
]
=
{
merchantForm
.
merchantFiles
[
idx
]
=
{
fileUrl
:
result
.
data
,
fileUrl
:
result
.
data
,
fileName
:
''
fileName
:
''
...
@@ -772,10 +773,11 @@
...
@@ -772,10 +773,11 @@
}
}
function
getMerchantApi
(
id
,
fn
)
{
function
getMerchantApi
(
id
,
fn
)
{
request
(
{
var
params
=
{
method
:
'cn.com.glsx.merchants.merchant.findMerchantDetail'
,
method
:
'cn.com.glsx.merchants.merchant.findMerchantDetail'
,
id
:
id
id
:
id
},
function
(
res
)
{
}
request
(
params
,
function
(
res
)
{
fn
&&
fn
(
res
)
fn
&&
fn
(
res
)
})
})
}
}
...
@@ -835,9 +837,10 @@
...
@@ -835,9 +837,10 @@
// 品牌
// 品牌
function
getCarBrandTree
()
{
function
getCarBrandTree
()
{
request
(
{
var
params
=
{
method
:
'cn.com.glsx.merchants.merchantCommon.getCarbrandTree'
method
:
'cn.com.glsx.merchants.merchantCommon.getCarbrandTree'
},
function
(
res
)
{
}
request
(
params
,
function
(
res
)
{
baseData
.
carBrandTreeList
=
res
.
data
baseData
.
carBrandTreeList
=
res
.
data
var
checkedList
=
[]
var
checkedList
=
[]
if
(
editLevel
==
3
&&
merchantForm
.
merchantBrand
)
{
if
(
editLevel
==
3
&&
merchantForm
.
merchantBrand
)
{
...
@@ -855,10 +858,11 @@
...
@@ -855,10 +858,11 @@
}
}
// 获取字典数据
// 获取字典数据
function
getDictData
(
dictType
,
fn
)
{
function
getDictData
(
dictType
,
fn
)
{
request
(
{
var
params
=
{
method
:
'cn.com.glsx.merchants.menu.findAllDictData'
,
method
:
'cn.com.glsx.merchants.menu.findAllDictData'
,
dictType
:
dictType
dictType
:
dictType
},
function
(
res
)
{
}
request
(
params
,
function
(
res
)
{
fn
&&
fn
(
res
)
fn
&&
fn
(
res
)
})
})
}
}
...
...
html/merchant/index.html
View file @
eff76f8
...
@@ -10,13 +10,12 @@
...
@@ -10,13 +10,12 @@
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<style>
<style>
/*
/*
.merchant .layui-table-view {
.merchant .layui-table-view {
margin: -5px 20px;
margin: -5px 20px;
} */
} */
.merchant
.layui-table
{
.merchant
.layui-table
{
margin
:
0
;
margin
:
0
;
}
}
.merchant
#searchForm
.layui-inline
{
.merchant
#searchForm
.layui-inline
{
...
@@ -26,10 +25,13 @@
...
@@ -26,10 +25,13 @@
.layui-btn-xs
{
.layui-btn-xs
{
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.channel
,
.accountLevel
,
.accountType
,
.customerStatus
{
.channel
,
.accountLevel
,
.accountType
,
.customerStatus
{
margin-left
:
20px
;
margin-left
:
20px
;
}
}
</style>
</style>
<title>
商户管理
</title>
<title>
商户管理
</title>
</head>
</head>
...
@@ -71,7 +73,7 @@
...
@@ -71,7 +73,7 @@
<div
class=
"layui-inline loginName"
pane
>
<div
class=
"layui-inline loginName"
pane
>
<div
class=
"layui-input-inline"
style=
"width: 120px;"
>
<div
class=
"layui-input-inline"
style=
"width: 120px;"
>
<select
name=
"name"
lay-filter=
"nameFilter"
>
<select
name=
"name"
lay-filter=
"nameFilter"
>
<option
value=
"0"
>
账号登
陆
名
</option>
<option
value=
"0"
>
账号登
录
名
</option>
<option
value=
"1"
>
手机号
</option>
<option
value=
"1"
>
手机号
</option>
</select>
</select>
</div>
</div>
...
@@ -249,8 +251,8 @@
...
@@ -249,8 +251,8 @@
align
:
'left'
,
align
:
'left'
,
title
:
'操作'
,
title
:
'操作'
,
toolbar
:
'#merchantBtns'
,
toolbar
:
'#merchantBtns'
,
width
:
220
,
width
:
220
fixed
:
'right'
//
fixed: 'right'
}]
}]
]
]
})
})
...
@@ -419,12 +421,12 @@
...
@@ -419,12 +421,12 @@
}
}
}
else
if
(
item
.
status
!=
3
)
{
}
else
if
(
item
.
status
!=
3
)
{
item
.
btn
.
edit
=
true
item
.
btn
.
edit
=
true
if
(
item
.
status
==
4
)
{
if
(
item
.
status
==
4
)
{
item
.
btn
.
editPeriod
=
true
item
.
btn
.
editPeriod
=
true
}
}
}
}
}
else
{
}
else
{
// 超管登
陆
// 超管登
录
if
(
item
.
status
!=
3
)
{
if
(
item
.
status
!=
3
)
{
item
.
btn
.
edit
=
true
item
.
btn
.
edit
=
true
}
}
...
@@ -520,7 +522,6 @@
...
@@ -520,7 +522,6 @@
getTabelList
()
getTabelList
()
}
}
})
})
</script>
</script>
</body>
</body>
...
...
js/request.js
View file @
eff76f8
...
@@ -74,7 +74,7 @@ layui.define(['sha1', 'md5', 'helper'], function (exports) {
...
@@ -74,7 +74,7 @@ layui.define(['sha1', 'md5', 'helper'], function (exports) {
success
&&
success
(
result
)
success
&&
success
(
result
)
}
else
{
}
else
{
msg
(
result
.
message
)
msg
(
result
.
message
)
if
(
result
.
errId
==
'21'
)
{
//TGT失效
if
(
result
.
errId
==
'21'
)
{
//TGT失效
goLogin
&&
goLogin
()
goLogin
&&
goLogin
()
}
}
}
}
...
@@ -112,8 +112,8 @@ layui.define(['sha1', 'md5', 'helper'], function (exports) {
...
@@ -112,8 +112,8 @@ layui.define(['sha1', 'md5', 'helper'], function (exports) {
}
}
}
}
arr
.
sort
()
arr
.
sort
()
for
(
var
key
in
arr
)
{
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
var
val
=
arr
[
key
]
var
val
=
arr
[
i
]
secretArr
.
push
(
val
+
params
[
val
])
secretArr
.
push
(
val
+
params
[
val
])
}
}
var
str
=
secretArr
.
join
(
''
)
var
str
=
secretArr
.
join
(
''
)
...
...
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