Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-program
Overview
Overview
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
陈玉桐
wx-program
Commits
3ae73f54
Commit
3ae73f54
authored
Oct 16, 2019
by
陈玉桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
004c0538
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
1 deletions
+22
-1
app.json
app.json
+1
-1
trainReport.js
pages/trainReport/trainReport.js
+12
-0
trainReport.wxml
pages/trainReport/trainReport.wxml
+1
-0
trainReport.wxss
pages/trainReport/trainReport.wxss
+8
-0
No files found.
app.json
View file @
3ae73f54
{
"pages"
:
[
"pages/index/index"
,
"pages/trainReport/trainReport"
,
"pages/historyDetail/historyDetail"
,
"pages/updatePlan/updatePlan"
,
"pages/eyesight/eyesight"
,
"pages/childInfo/childInfo"
,
"pages/trainReport/trainReport"
,
"pages/setting/setting"
,
"pages/plan/plan"
,
"pages/message/message"
,
...
...
pages/trainReport/trainReport.js
View file @
3ae73f54
...
...
@@ -107,6 +107,8 @@ Page({
},
currentPage
:
1
,
isLoading
:
false
,
hasCon
:
true
,
},
onLoad
()
{
let
me
=
this
;
...
...
@@ -125,6 +127,16 @@ Page({
// 请求成功后关闭Loading
wx
.
hideLoading
();
if
(
res
.
data
.
errno
==
200
){
if
(
res
.
data
.
data
.
length
==
0
){
me
.
setData
({
hasCon
:
false
})
return
}
else
{
me
.
setData
({
hasCon
:
true
})
}
me
.
setData
({
trainList
:
res
.
data
.
data
.
list
})
...
...
pages/trainReport/trainReport.wxml
View file @
3ae73f54
<view id="reportBox">
<view id="noReport" wx:if="{{!hasCon}}">暂无训练报告~</view>
<view class="reportItem" wx:for="{{trainList}}" wx:key="{{index}}" data-id="{{item.historyId}}" bindtap="detail">
<view class="reportItemTop">
<view class="reportItemTopTime">
...
...
pages/trainReport/trainReport.wxss
View file @
3ae73f54
...
...
@@ -5,6 +5,14 @@ page{
#reportBox{
padding: 40rpx 20rpx 0;
}
#noReport{
margin-top: 50%;
text-align: center;
font-size: 28rpx;
color: #999;
}
.reportItem{
padding-bottom: 40rpx;
}
...
...
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