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
efecb7d9
Commit
efecb7d9
authored
Nov 19, 2020
by
吴颖
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wuying' into 'master'
Wuying See merge request
!24
parents
0638fde5
89e69734
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
42 deletions
+49
-42
app.js
app.js
+3
-4
classDetail.js
pages/index/classDetail/classDetail.js
+2
-1
class.js
pages/tabbar/class/class.js
+30
-29
class.wxml
pages/tabbar/class/class.wxml
+1
-1
financial.js
pages/tabbar/financial/financial.js
+4
-1
index.js
pages/tabbar/index/index.js
+2
-2
personal.js
pages/tabbar/personal/personal.js
+4
-3
transalte.js
pages/transalte/transalte.js
+3
-1
No files found.
app.js
View file @
efecb7d9
...
...
@@ -36,9 +36,6 @@ App({
})
}
},
getToken
()
{
var
that
=
this
try
{
...
...
@@ -109,6 +106,7 @@ App({
})
that
.
globalData
.
hasTel
=
res
.
data
.
data
.
hasTel
that
.
globalData
.
userInfo
=
res
.
data
.
data
;
console
.
log
(
that
.
globalData
.
userInfo
)
wx
.
setStorageSync
(
'
userInfo
'
,
res
.
data
.
data
)
if
(
res
.
data
.
data
.
userTel
)
{
wx
.
setStorageSync
(
'
userTel
'
,
res
.
data
.
data
.
userTel
)
...
...
@@ -136,6 +134,7 @@ App({
userInfo
:
''
,
//微信user信息
userTel
:
''
,
// 手机号
token
:
''
,
backurl
:
''
// 全局跳转页面路径
backurl
:
''
,
// 全局跳转页面路径
coach_id
:
''
,
// 教练id
}
})
\ No newline at end of file
pages/index/classDetail/classDetail.js
View file @
efecb7d9
...
...
@@ -18,6 +18,7 @@ Page({
onLoad
:
function
(
options
)
{
this
.
setData
({
coach_id
:
app
.
globalData
.
coach_id
,
class_id
:
options
.
class_id
,
lesson_id
:
options
.
lesson_id
,
...
...
@@ -32,7 +33,7 @@ Page({
let
params
=
{
url
:
'
coach/lessondetail
'
,
data
:
{
coach_id
:
5
,
coach_id
:
this
.
data
.
coach_id
,
class_id
:
this
.
data
.
class_id
,
lesson_id
:
this
.
data
.
lesson_id
},
...
...
pages/tabbar/class/class.js
View file @
efecb7d9
const
app
=
getApp
()
import
{
Base
...
...
@@ -6,10 +5,11 @@ import {
const
base
=
new
Base
()
Page
({
data
:
{
coach_id
:
-
1
,
activeIndex
:
1
,
datalList
:
[],
locked
:
false
,
classList
:
[],
locked
:
false
,
classList
:
[],
},
...
...
@@ -17,6 +17,9 @@ Page({
wx
.
showLoading
({
title
:
'
加载中...
'
,
})
this
.
setData
({
coach_id
:
app
.
globalData
.
coach_id
})
this
.
getList
()
this
.
getMyclasslist
();
},
...
...
@@ -28,14 +31,14 @@ Page({
let
params
=
{
url
:
'
coach/roblist
'
,
data
:
{
coach_id
:
5
coach_id
:
this
.
data
.
coach_id
},
callback
:
(
data
)
=>
{
callback
:
(
data
)
=>
{
console
.
log
(
data
)
wx
.
hideLoading
();
this
.
setData
({
datalList
:
data
,
locked
:
false
locked
:
false
})
}
}
...
...
@@ -47,34 +50,32 @@ Page({
title
:
'
加载中...
'
,
})
let
params
=
{
url
:
'
coach/myclasses
'
,
data
:
{
coach_id
:
5
url
:
'
coach/myclasses
'
,
data
:
{
coach_id
:
this
.
data
.
coach_id
},
callback
:
(
data
)
=>
{
callback
:
(
data
)
=>
{
console
.
log
(
data
)
wx
.
hideLoading
();
this
.
setData
({
classList
:
data
,
locked
:
false
locked
:
false
})
}
}
base
.
newRequest
(
params
)
},
// 抢班-我的班级列表
getrobclass
:
function
(
)
{
const
{
coach_id
,
class_id
}
=
this
.
data
getrobclass
:
function
(
e
)
{
let
class_id
=
e
.
currentTarget
.
dataset
.
id
let
params
=
{
url
:
'
coach/robclass
'
,
data
:
{
coach_id
:
5
,
class_id
:
16
url
:
'
coach/robclass
'
,
data
:
{
coach_id
:
this
.
data
.
coach_id
,
class_id
:
class_id
},
callback
:
(
data
)
=>
{
callback
:
(
data
)
=>
{
base
.
toast
(
'
抢班成功
'
)
console
.
log
(
data
)
console
.
log
(
'
1111111111111
'
)
this
.
setData
({
datalList
:
[]
...
...
@@ -92,23 +93,23 @@ Page({
})
}
},
goteamDetail
(
e
)
{
goteamDetail
(
e
)
{
var
class_id
=
e
.
currentTarget
.
dataset
.
id
wx
.
navigateTo
({
url
:
'
../../team/teamDetail/teamDetail?class_id=
'
+
class_id
,
})
},
initData
:
function
()
{
initData
:
function
()
{
this
.
setData
({
datalList
:[],
locked
:
false
datalList
:
[],
locked
:
false
})
},
onPullDownRefresh
:
function
()
{
this
.
initData
()
if
(
!
this
.
data
.
locked
)
{
if
(
!
this
.
data
.
locked
)
{
this
.
setData
({
locked
:
true
locked
:
true
})
this
.
onLoadFun
();
}
...
...
pages/tabbar/class/class.wxml
View file @
efecb7d9
...
...
@@ -13,7 +13,7 @@
<text>上课场馆:{{item.stadium.name}}</text>
<text>上课时间:{{item.course_time.name}}</text>
</view>
<view class="goclass" bindtap="getrobclass">我要上课</view>
<view class="goclass" bindtap="getrobclass"
data-id="{{item.id}}"
>我要上课</view>
</view>
</view>
</block>
...
...
pages/tabbar/financial/financial.js
View file @
efecb7d9
...
...
@@ -8,7 +8,7 @@ Page({
data
:
{
activeIndex
:
1
,
coach_id
:
'
5
'
,
coach_id
:
''
,
role_id
:
'
2
'
,
detail
:
''
,
...
...
@@ -27,6 +27,9 @@ Page({
onLoad
:
function
(
options
)
{
this
.
setData
({
coach_id
:
app
.
globalData
.
coach_id
,
})
this
.
getMoney
()
this
.
getList
(
1
)
this
.
getList
(
2
)
...
...
pages/tabbar/index/index.js
View file @
efecb7d9
...
...
@@ -11,7 +11,7 @@ Page({
* 页面的初始数据
*/
data
:
{
coach_id
:
'
5
'
,
coach_id
:
''
,
isOpen
:
false
,
daysColor
:
[],
today
:
''
,
// 今天日期
...
...
@@ -31,7 +31,7 @@ Page({
let
year
=
new
Date
().
getFullYear
()
let
month
=
util
.
formatNumber
(
new
Date
().
getMonth
()
+
1
)
this
.
setData
({
// coach_id: app.globalData.userInfo.
id,
coach_id
:
app
.
globalData
.
coach_
id
,
today
:
util
.
formatTime
(
new
Date
()),
curDate
:
util
.
formatTime
(
new
Date
()),
month
:
year
+
month
...
...
pages/tabbar/personal/personal.js
View file @
efecb7d9
const
app
=
getApp
()
import
{
Base
}
from
'
../../..//utils/base.js
'
;
import
{
Base
}
from
'
../../..//utils/base.js
'
;
const
base
=
new
Base
()
Page
({
...
...
@@ -37,7 +39,6 @@ Page({
},
onLoad
:
function
(
options
)
{
this
.
getSubjectlist
()
},
...
...
pages/transalte/transalte.js
View file @
efecb7d9
...
...
@@ -21,6 +21,7 @@ Page({
}
else
if
(
data
.
status
==
2
)
{
status
=
2
}
else
{
// 通过
app
.
globalData
.
coach_id
=
data
.
wxuser
.
coach
.
id
status
=
1
}
that
.
getLogin
(
status
)
...
...
@@ -31,6 +32,7 @@ Page({
getLogin
(
status
)
{
let
userInfo
=
wx
.
getStorageSync
(
'
userInfo
'
)
if
(
userInfo
)
{
app
.
globalData
.
userInfo
=
userInfo
if
(
status
==
1
)
{
wx
.
switchTab
({
url
:
'
/pages/tabbar/index/index
'
,
...
...
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