Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴贤德
SooonerHotel
Commits
e425d76b
Commit
e425d76b
authored
Jul 29, 2019
by
wangjiangze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置中心修改BUG更新
parent
81053f9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
add.html
SooonerHotel/App/Tpl/System/zh-cn/CenterConfig/add.html
+6
-9
No files found.
SooonerHotel/App/Tpl/System/zh-cn/CenterConfig/add.html
View file @
e425d76b
...
@@ -60,18 +60,16 @@ body{padding:20px}
...
@@ -60,18 +60,16 @@ body{padding:20px}
</form>
</form>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
function
submitForm
(){
function
submitForm
(){
var
sp_id
=
$
(
"select[name='sp_id'] option:selected"
).
val
();
var
name_v
=
$
(
"input[name='name']"
).
val
();
var
name_v
=
$
(
"input[name='name']"
).
val
();
var
code_v
=
$
(
"input[name='type_code']"
).
val
();
var
k_v
=
$
(
"input[name='k']"
).
val
();
var
v_v
=
$
(
"input[name='v']"
).
val
();
if
(
sp_id
==
0
){
alert
(
"请选择合作方"
);
return
;
}
if
(
!
name_v
){
if
(
!
name_v
){
alert
(
"请输入配置名称"
);
return
;
alert
(
"请输入配置名称"
);
return
;
}
}
if
(
!
code_v
){
if
(
!
k_v
){
alert
(
"请输入配置类型code"
);
return
;
alert
(
"请输入配置键"
);
return
;
}
if
(
!
v_v
){
alert
(
"请输入配置值"
);
return
;
}
}
$
(
'#ff'
).
form
(
'submit'
,
{
$
(
'#ff'
).
form
(
'submit'
,
{
url
:
'/System/CenterConfig/addHandle/'
,
url
:
'/System/CenterConfig/addHandle/'
,
...
@@ -95,7 +93,6 @@ function submitForm(){
...
@@ -95,7 +93,6 @@ function submitForm(){
}
}
$
().
ready
(
function
(){
$
().
ready
(
function
(){
<
if
condition
=
"$info"
>
<
if
condition
=
"$info"
>
$
(
"select[name='sp_id'] option[value='{$info.sp_id}']"
).
attr
(
"selected"
,
true
);
$
(
"input[name='status'][value='{$info.status}']"
).
attr
(
"checked"
,
true
);
$
(
"input[name='status'][value='{$info.status}']"
).
attr
(
"checked"
,
true
);
<
/if
>
<
/if
>
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment