Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-promise
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
90567237
authored
Mar 11, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
4611c855
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
Application/Home/Controller/IndexController.class.php
+13
-1
Public/static/js/common.js
+6
-2
No files found.
Application/Home/Controller/IndexController.class.php
View file @
90567237
...
...
@@ -42,6 +42,17 @@ class IndexController extends Controller
header
(
"HTTP/1.0 404 Not Found"
);
exit
;
}
M
(
'num'
)
->
where
(
'id=1'
)
->
setInc
(
'num'
);
$name
=
$_POST
[
'name'
];
$business
=
$_POST
[
'business'
];
if
(
$name
)
{
M
(
'num'
)
->
where
(
'id=1'
)
->
setInc
(
'num'
);
M
(
'info'
)
->
add
(
array
(
'name'
=>
$name
,
'business'
=>
$business
,
'addtime'
=>
time
()
));
}
}
}
\ No newline at end of file
Public/static/js/common.js
View file @
90567237
...
...
@@ -64,11 +64,11 @@ let noInfo = {
width
:
24
,
height
:
12
}
$
(
'.page1'
).
show
();
let
createPosterLock
=
false
;
preloadimages
(
preloadImageList
,
function
()
{
$
(
'.page1'
).
show
();
$
(
'input[name=name]'
).
attr
(
'placeholder'
,
'姓名'
).
attr
(
'id'
,
'name'
);;
$
(
'input[name=business]'
).
attr
(
'placeholder'
,
'业务号'
).
attr
(
'type'
,
'tel'
).
attr
(
'maxlength'
,
10
);
$
(
'.page1 .num'
).
html
(
'已有<span class="numbig">'
+
window
.
num
+
'</span>人发起承诺'
);
...
...
@@ -167,6 +167,10 @@ function createPoster(name, business) {
$
.
ajax
({
url
:
'/index/addNum'
,
data
:
{
name
:
name
,
business
:
business
},
type
:
'POST'
});
...
...
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