Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wandouchengzhang_coach
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
石盼盼
wandouchengzhang_coach
Commits
e6e94808
Commit
e6e94808
authored
Nov 18, 2020
by
吴颖
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wuying' into 'master'
Wuying See merge request
!21
parents
c7015f20
885f0058
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
19 deletions
+19
-19
app.js
app.js
+3
-7
circle.png
images/circle.png
+0
-0
classDetail.wxml
pages/index/classDetail/classDetail.wxml
+3
-2
class.js
pages/tabbar/class/class.js
+1
-0
index.js
pages/tabbar/index/index.js
+12
-7
index.wxml
pages/tabbar/index/index.wxml
+0
-3
No files found.
app.js
View file @
e6e94808
App
({
onLaunch
:
function
()
{
console
.
log
(
'
222222222
'
)
this
.
isReload
()
// 小程序是否有新版本
//
this.getLogin()
this
.
getLogin
()
this
.
getToken
()
},
// 小程序是否有新版本
...
...
@@ -44,7 +43,6 @@ App({
if
(
userInfo
)
{
this
.
globalData
.
userInfo
=
userInfo
}
console
.
log
(
userInfo
)
if
(
userInfo
)
{
wx
.
switchTab
({
url
:
'
/pages/tabbar/index/index
'
,
...
...
@@ -143,14 +141,12 @@ App({
fail
:
function
()
{}
})
},
fail
()
{
// session_key 已经失效,需要重新执行登录流程
fail
()
{
// session_key 已经失效,需要重新执行登录流程
that
.
getSessionKey
(()
=>
that
.
saveUserInfo
(
info
,
cb
))
}
})
},
globalData
:
{
extAppid
:
'
wx6e6eaca9cc1c406d
'
,
// 当前appid
userInfo
:
''
,
//微信user信息
...
...
images/circle.png
deleted
100644 → 0
View file @
c7015f20
594 Bytes
pages/index/classDetail/classDetail.wxml
View file @
e6e94808
...
...
@@ -17,14 +17,15 @@
<view class="item flex-h flex-vc flex-hb" wx:for="{{stuList}}" wx:key="index" data-id="{{item.id}}">
<view class="flex-h flex-vc">
<image src="/images/default_head.png" wx:if="{{item.child.thumb == null}}"></image>
<image src="{{item.child.thumb}}" wx:else></image>
<image src="{{item.child.thumb}}" wx:else></image>
<view>
<view class="name">{{item.child.nick_name !=null ? item.child.nick_name : ''}}</view>
<view class="big_name">{{item.child.child_name}}</view>
</view>
</view>
<view class="status">
<view class="evaluation" data-id="{{item.id}}" catchtap="goperformance" wx:if="{{item.is_leave == 0}}">运动评价</view>
<view class="evaluation" data-id="{{item.id}}" catchtap="goperformance" wx:if="{{item.is_leave == 0}}">运动评价
</view>
<view class="leave" wx:else>已请假</view>
<view class="unread" wx:if="{{ !item.class_moment }}"></view>
</view>
...
...
pages/tabbar/class/class.js
View file @
e6e94808
...
...
@@ -76,6 +76,7 @@ Page({
callback
:
(
data
)
=>
{
base
.
toast
(
'
抢班成功
'
)
console
.
log
(
data
)
console
.
log
(
'
1111111111111
'
)
this
.
setData
({
datalList
:
[]
...
...
pages/tabbar/index/index.js
View file @
e6e94808
...
...
@@ -17,7 +17,8 @@ Page({
today
:
''
,
// 今天日期
curDate
:
''
,
list
:
[],
allList
:
[]
allList
:
[],
month
:
''
},
/**
...
...
@@ -27,21 +28,26 @@ Page({
wx
.
showLoading
({
title
:
'
加载中...
'
,
})
console
.
log
(
app
.
globalData
)
let
year
=
new
Date
().
getFullYear
()
let
month
=
util
.
formatNumber
(
new
Date
().
getMonth
()
+
1
)
this
.
setData
({
// coach_id: app.globalData.userInfo.id,
today
:
util
.
formatTime
(
new
Date
()),
curDate
:
util
.
formatTime
(
new
Date
())
curDate
:
util
.
formatTime
(
new
Date
()),
month
:
year
+
month
})
console
.
log
(
this
.
data
.
today
==
this
.
data
.
curDate
)
this
.
getAllList
()
this
.
getList
()
},
getAllList
()
{
wx
.
showLoading
({
title
:
'
加载中...
'
,
})
let
params
=
{
url
:
'
coach/timetable
'
,
data
:
{
coach_id
:
this
.
data
.
coach_id
,
month
:
this
.
data
.
month
},
callback
:
(
data
)
=>
{
console
.
log
(
data
)
...
...
@@ -80,20 +86,19 @@ Page({
}
}
base
.
newRequest
(
params
)
},
prev
:
function
(
event
)
{
let
currentMonth
=
util
.
formatNumber
(
event
.
detail
.
currentMonth
)
this
.
setData
({
month
:
event
.
detail
.
currentYear
+
'
-
'
+
currentMonth
month
:
event
.
detail
.
currentYear
+
currentMonth
})
this
.
getAllList
();
},
next
:
function
(
event
)
{
let
currentMonth
=
util
.
formatNumber
(
event
.
detail
.
currentMonth
)
this
.
setData
({
month
:
event
.
detail
.
currentYear
+
'
-
'
+
currentMonth
month
:
event
.
detail
.
currentYear
+
currentMonth
})
this
.
getAllList
();
},
...
...
pages/tabbar/index/index.wxml
View file @
e6e94808
...
...
@@ -15,9 +15,6 @@
var hour = getDate().getHours()
var minute = getDate().getMinutes()
var time = hour + ':' + minute
console.log(hour)
console.log(minute)
return time
}
module.exports = {
...
...
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