Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
Kindergarten
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
张杰
Kindergarten
Commits
6355ce27
Commit
6355ce27
authored
6 years ago
by
张杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
4ee9204e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
request.js
api/request.js
+2
-2
index.js
pages/add_record/index.js
+7
-0
index.js
pages/home/sign/index.js
+7
-4
No files found.
api/request.js
View file @
6355ce27
...
...
@@ -11,8 +11,8 @@ const ERR_NOT_ACCESS_TOKEN = 21;
var
DEF_APP_CONFIG
=
{
appId
:
"wxfc3355043e579968"
,
// 勾芒小程序测试号
// 开发环境
domain
:
'http://dev.gomoretech.com/preschool'
,
baseUrl
:
"http://dev.gomoretech.com/preschool"
domain
:
'http
s
://dev.gomoretech.com/preschool'
,
baseUrl
:
"http
s
://dev.gomoretech.com/preschool"
// 川哥本地环境
// domain: 'http://192.168.199.230:8080/preschool',
// baseUrl: "http://192.168.199.230:8080/preschool",
...
...
This diff is collapsed.
Click to expand it.
pages/add_record/index.js
View file @
6355ce27
...
...
@@ -151,6 +151,13 @@ Page({
}
var
arrRecordList
=
[]
var
item
=
arrRecord
[
0
].
recordItems
[
0
]
if
(
item
==
null
)
{
wx
.
showToast
({
title
:
'该记录已经删除'
,
icon
:
'none'
})
return
}
req
.
deleteRecord
(
item
.
id
).
then
(
res
=>
{
console
.
log
(
res
)
...
...
This diff is collapsed.
Click to expand it.
pages/home/sign/index.js
View file @
6355ce27
...
...
@@ -17,6 +17,11 @@ Page({
*/
onLoad
:
function
(
options
)
{
let
classId
=
options
.
classId
this
.
getAllStudent
(
classId
)
},
getAllStudent
:
function
(
classId
)
{
req
.
getAllStudent
(
classId
).
then
(
res
=>
{
console
.
log
(
res
)
for
(
var
i
=
0
;
i
<
res
.
length
;
i
++
)
{
...
...
@@ -35,9 +40,6 @@ Page({
classId
:
classId
})
})
},
tapBox
:
function
(
e
)
{
console
.
log
(
e
)
...
...
@@ -53,7 +55,7 @@ Page({
operateTap
:
function
(
event
)
{
console
.
log
(
event
.
_relatedInfo
.
anchorTargetText
)
let
records
=
this
.
data
.
records
let
that
=
this
var
studentIds
=
[]
for
(
var
i
=
0
;
i
<
records
.
length
;
i
++
)
{
let
item
=
records
[
i
]
...
...
@@ -91,6 +93,7 @@ Page({
})
},
1500
)
}).
catch
(
function
(
err
)
{
that
.
getAllStudent
(
that
.
data
.
classId
)
wx
.
showToast
({
title
:
err
.
message
,
icon
:
'none'
,
...
...
This diff is collapsed.
Click to expand it.
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