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 78db1967
authored
Feb 18, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加企微接入模式
1 parent
dfae7f74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
205 additions
and
1 deletions
html/merchant/accessModeForm.html
html/merchant/index.html
html/merchant/accessModeForm.html
0 → 100644
View file @
78db196
<!--
* @Author: huyue
-->
<!DOCTYPE html>
<html
lang=
"zh"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"description"
content=
"修改有效期"
/>
<meta
name=
"author"
content=
"GLSX Web Team"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,商户管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<style>
#app
{
padding
:
0
;
}
.valid-period
{
/* width: 560px;
height: 230px; */
text-align
:
center
;
padding
:
20px
10px
;
background-color
:
#ffffff
;
}
.valid-period
.layui-form-radio
{
padding-right
:
0
;
margin-right
:
0
;
}
.access-form
{
margin-top
:
20px
;
}
.layui-form-label
{
position
:
relative
;
}
.layui-form-label.required
::before
{
position
:
absolute
;
left
:
12px
;
top
:
55%
;
transform
:
translateY
(
-50%
);
}
.layui-form-item
{
margin-bottom
:
0
;
}
.layui-word-text
{
line-height
:
32px
;
}
.layui-tips-text
{
display
:
inline-block
;
color
:
#999
;
line-height
:
28px
;
margin
:
6px
10px
0
0
;
vertical-align
:
middle
;
}
.form-tips
{
color
:
#F56C6C
;
font-size
:
12px
;
}
.hide
{
display
:
none
;
}
.valid-period
{
text-align
:
left
;
border-bottom
:
1px
solid
#E6E6E6
;
}
</style>
<title>
接入模式
</title>
</head>
<body>
<div
id=
"app"
>
<main
class=
"valid-period"
>
<form
class=
"layui-form access-form"
lay-filter=
"accessModeFilter"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
商户名称:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-word-text"
id=
"merchantName"
></div>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label required"
>
接入模式:
</label>
<div
class=
"layui-input-block"
>
<div>
<input
type=
"radio"
name=
"accessMode"
lay-filter=
"radio"
value=
"3"
title=
"应用代开发模式"
>
<span
class=
"layui-tips-text"
>
(SCRM非独立部署)
</span>
</div>
<div>
<input
type=
"radio"
name=
"accessMode"
lay-filter=
"radio"
value=
"0"
title=
"自建应用模式"
>
<span
class=
"layui-tips-text"
>
(SCRM需独立部署,且生成独立接口域名)
</span>
</div>
<div
id=
"modeError"
class=
"form-tips hide"
>
请选择企微接入模式
</div>
</div>
</div>
<button
id=
"accessModeBtn"
lay-submit
lay-filter=
"accessMode"
style=
"display: none"
></button>
</form>
</main>
</div>
<script
src=
"https://img02.glsx.com.cn/layui/layui.js"
></script>
<script
src=
"/js/load.js"
></script>
<script>
layui
.
use
([
'form'
,
'helper'
,
'request'
,
'laydate'
],
function
()
{
var
form
=
layui
.
form
var
request
=
layui
.
request
var
$
=
layui
.
$
var
helper
=
layui
.
helper
var
currLayerIdx
=
parent
.
layer
.
getFrameIndex
(
window
.
name
)
var
merchantInfo
=
{
id
:
qs
(
'id'
),
merchantName
:
decodeURI
(
qs
(
'merchantName'
))
}
var
merchantName
=
$
(
'#merchantName'
)
merchantName
.
html
(
merchantInfo
.
merchantName
)
var
modeError
=
$
(
'#modeError'
)
form
.
on
(
'submit(accessMode)'
,
function
(
data
)
{
if
(
!
data
.
field
.
accessMode
)
{
modeError
.
removeClass
(
'hide'
)
return
false
}
request
({
id
:
merchantInfo
.
id
,
accessMode
:
data
.
field
.
accessMode
,
method
:
'merchants.api.merchant.updateAccessMode'
},
function
(
res
)
{
if
(
res
.
code
==
'0'
&&
res
.
data
)
{
helper
.
store
.
set
(
'isRefresh'
,
true
)
parent
.
layer
.
close
(
currLayerIdx
)
}
})
return
false
})
form
.
on
(
'radio(radio)'
,
function
(
data
)
{
modeError
.
addClass
(
'hide'
)
})
})
</script>
</body>
</html>
\ No newline at end of file
\ No newline at end of file
html/merchant/index.html
View file @
78db196
...
@@ -266,6 +266,16 @@
...
@@ -266,6 +266,16 @@
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleVaildPeriod"
>
修改账户有效期
<
/a
>
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleVaildPeriod"
>
修改账户有效期
<
/a
>
{{
#
}
}}
{{
#
}
}}
<
/div
>
<
/div
>
<
div
>
{{
#
if
((
d
.
hasAccessMode
)){
}}
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleAccessMode"
>
接入模式
<
/a
>
{{
#
}
}}
<
/div
>
<!--
<
div
>
{{
#
if
((
d
.
merchantModel
==
2
&&
d
.
merchantAccountLevel
!=
4
)){
}}
<
a
class
=
"layui-btn-xs"
lay
-
event
=
"handleAccessMode"
>
接入模式
<
/a
>
{{
#
}
}}
<
/div> --
>
</script>
</script>
<script>
<script>
layui
.
use
([
'gtree'
,
'request'
,
'helper'
,
'table'
,
'laypage'
,
'layer'
],
function
()
{
layui
.
use
([
'gtree'
,
'request'
,
'helper'
,
'table'
,
'laypage'
,
'layer'
],
function
()
{
...
@@ -333,6 +343,12 @@
...
@@ -333,6 +343,12 @@
width
:
130
width
:
130
},
},
{
{
field
:
'accessModeName'
,
title
:
'企微接入模式'
,
align
:
'center'
,
width
:
130
},
{
field
:
'accountTypeNames'
,
field
:
'accountTypeNames'
,
title
:
'账户类型'
,
title
:
'账户类型'
,
align
:
'left'
,
align
:
'left'
,
...
@@ -621,6 +637,44 @@
...
@@ -621,6 +637,44 @@
}
}
})
})
break
break
case
'handleAccessMode'
:
console
.
log
(
'merchantName'
,
row
.
merchantName
)
layer
.
open
({
type
:
2
,
title
:
''
,
closeBtn
:
0
,
area
:
[
'547px'
,
'230px'
],
fixed
:
false
,
//不固定
// maxmin: true,
btn
:
[
'确定'
,
'取消'
],
content
:
'accessModeForm.html?id='
+
row
.
id
+
'&merchantName='
+
row
.
merchantName
,
// '&expireDate=' +
// row.expireDate +
// '&status=' +
// row.status +
// '&merchantAccountLevel=' +
// row.merchantAccountLevel,
yes
:
function
(
index
,
layero
)
{
var
body
=
layer
.
getChildFrame
(
'body'
,
index
)
helper
.
store
.
set
(
'isRefresh'
,
false
)
body
.
find
(
'#accessModeBtn'
).
click
()
},
end
:
function
()
{
var
isRefresh
=
helper
.
store
.
get
(
'isRefresh'
)
if
(
isRefresh
)
{
getTabelList
()
layer
.
msg
(
'修改成功'
,
{
icon
:
1
})
}
helper
.
store
.
remove
(
'isRefresh'
)
}
})
break
}
}
})
})
...
@@ -687,7 +741,7 @@
...
@@ -687,7 +741,7 @@
* check - 查看(无需判断,均有)
* check - 查看(无需判断,均有)
* edit - 修改
* edit - 修改
* createSubMerchant - 创建子商户/门店
* createSubMerchant - 创建子商户/门店
* createStaff - 创建员工
* createStaff - 创建员工
* editPeriod - 修改账户有效期
* editPeriod - 修改账户有效期
* **/
* **/
// status(账户状态 - 列表):1-草稿;2-正常;3-注销;4-过期
// status(账户状态 - 列表):1-草稿;2-正常;3-注销;4-过期
...
...
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