Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sport-train
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
tangjiale
sport-train
Commits
b2561f1b
Commit
b2561f1b
authored
Jun 24, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改Bug
parent
65a3ec3e
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
45 additions
and
24 deletions
+45
-24
stu-info-popup.js
components/sport/stu-info-popup/stu-info-popup.js
+1
-1
stu-info-popup.wxml
components/sport/stu-info-popup/stu-info-popup.wxml
+1
-1
stu-info-popup.wxss
components/sport/stu-info-popup/stu-info-popup.wxss
+1
-1
index.js
pages/index/index.js
+2
-2
my.wxml
pages/my/my.wxml
+2
-2
organ-index.wxml
pages/organ-index/organ-index.wxml
+1
-1
sport.js
pages/sport/sport.js
+1
-1
sport.wxml
pages/sport/sport.wxml
+2
-1
project.private.config.json
project.private.config.json
+7
-0
attempt-list.js
subPages/course/attempt-list/attempt-list.js
+7
-1
attempt-list.wxml
subPages/course/attempt-list/attempt-list.wxml
+1
-1
collect-list.js
subPages/course/collect-list/collect-list.js
+1
-1
collect-list.wxml
subPages/course/collect-list/collect-list.wxml
+2
-2
detail.js
subPages/course/detail/detail.js
+2
-2
join-list.js
subPages/course/join-list/join-list.js
+7
-1
join-list.wxml
subPages/course/join-list/join-list.wxml
+1
-1
list.wxss
subPages/course/list/list.wxss
+1
-0
sales-list.json
subPages/course/sales-list/sales-list.json
+2
-1
destory-student.wxml
subPages/organ/destory-student/destory-student.wxml
+1
-1
destroy-list.js
subPages/organ/destroy-list/destroy-list.js
+2
-2
myData.wxss
subPages/sport/myData/myData.wxss
+0
-1
No files found.
components/sport/stu-info-popup/stu-info-popup.js
View file @
b2561f1b
...
@@ -90,7 +90,7 @@ Component({
...
@@ -90,7 +90,7 @@ Component({
}
}
API
.
requestAll
(
"/px/user/bindStu"
,
param
,(
res
)
=>
{
API
.
requestAll
(
"/px/user/bindStu"
,
param
,(
res
)
=>
{
if
(
res
.
code
==
200
){
if
(
res
.
code
==
200
){
wx
.
showToast
({
title
:
'保
持
成功'
,
icon
:
'none'
,});
wx
.
showToast
({
title
:
'保
存
成功'
,
icon
:
'none'
,});
that
.
wxGetUserInfo
()
that
.
wxGetUserInfo
()
that
.
triggerEvent
(
'closePopup'
)
that
.
triggerEvent
(
'closePopup'
)
}
}
...
...
components/sport/stu-info-popup/stu-info-popup.wxml
View file @
b2561f1b
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<view class="input-item">
<view class="input-item">
<view class="input-t">出生日期</view>
<view class="input-t">出生日期</view>
<view class="input-bg">
<view class="input-bg">
<picker class="name" disabled="{{stuinfo.
birthday
}}" mode="date" bindchange="pinkerDate">
<picker class="name" disabled="{{stuinfo.
stuId
}}" mode="date" bindchange="pinkerDate">
<view class="flex-s">
<view class="flex-s">
<view class="sex {{!stuinfo.birthday ? 'placeholder-c':''}}">{{stuinfo.birthday || '请选择出孩子出生日期'}}</view>
<view class="sex {{!stuinfo.birthday ? 'placeholder-c':''}}">{{stuinfo.birthday || '请选择出孩子出生日期'}}</view>
<xb-icon type="icon-icon_pull-down" class="change-icon" size="32" color="#000000"></xb-icon>
<xb-icon type="icon-icon_pull-down" class="change-icon" size="32" color="#000000"></xb-icon>
...
...
components/sport/stu-info-popup/stu-info-popup.wxss
View file @
b2561f1b
.flex-c{display: flex;align-items: center;}
.flex-c{display: flex;align-items: center;}
.popup-bg{
.popup-bg{
position: relative;
position: relative;
padding: 44rpx 40rpx
112rpx
40rpx;
padding: 44rpx 40rpx
calc(112rpx + env(safe-area-inset-bottom))
40rpx;
width: calc(100% - 80rpx);
width: calc(100% - 80rpx);
height: 974rpx;
height: 974rpx;
background: linear-gradient(180deg, #FFF2E8 0%, #FFFFFF 100%);
background: linear-gradient(180deg, #FFF2E8 0%, #FFFFFF 100%);
...
...
pages/index/index.js
View file @
b2561f1b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-06 14:11:05
* @Date: 2022-06-06 14:11:05
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
2 10:20:56
* @LastEditTime: 2022-06-2
3 09:46:10
*/
*/
const
app
=
getApp
()
const
app
=
getApp
()
var
API
=
require
(
"../../utils/request.js"
);
var
API
=
require
(
"../../utils/request.js"
);
...
@@ -45,7 +45,7 @@ Page({
...
@@ -45,7 +45,7 @@ Page({
//因为小程序会有个默认启动页/index/index,当初始化时,身份不同则需要重定向到指定配置的身份首页
//因为小程序会有个默认启动页/index/index,当初始化时,身份不同则需要重定向到指定配置的身份首页
app
.
checkUserType
()
app
.
checkUserType
()
//
this.aiUrl()
this
.
aiUrl
()
},
},
queryRecomdList
(){
queryRecomdList
(){
...
...
pages/my/my.wxml
View file @
b2561f1b
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
<image class="mine-bg" src="https://cdn.xiaobentiyu.cn/sport_minapp_img/home/mine_bg.png"></image>
<image class="mine-bg" src="https://cdn.xiaobentiyu.cn/sport_minapp_img/home/mine_bg.png"></image>
<view class="sport-main-bg"></view>
<view class="sport-main-bg"></view>
<view class="mine-top-content">
<view class="mine-top-content">
<view class="user-info">
<view class="user-info"
bindtap="handleTab" type="login"
>
<image class="user-avatar" wx:if="{{userInfo.gender == 1}}" src="https://ttxs01-10066525.cos.ap-shanghai.myqcloud.com/headImgs/boy_default.png"></image>
<image class="user-avatar" wx:if="{{userInfo.gender == 1}}" src="https://ttxs01-10066525.cos.ap-shanghai.myqcloud.com/headImgs/boy_default.png"></image>
<image class="user-avatar" wx:elif="{{userInfo.gender == 2}}" src="https://ttxs01-10066525.cos.ap-shanghai.myqcloud.com/headImgs/girl_default.png"></image>
<image class="user-avatar" wx:elif="{{userInfo.gender == 2}}" src="https://ttxs01-10066525.cos.ap-shanghai.myqcloud.com/headImgs/girl_default.png"></image>
<image class="user-avatar" wx:else src="https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"></image>
<image class="user-avatar" wx:else src="https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"></image>
<view class="info-content">
<view class="info-content">
<view class="info-name-msg">
<view class="info-name-msg">
<view class="info-name">{{userInfo.
name || '游客
'}}
<view class="info-name">{{userInfo.
peopleType ? userInfo.name || '游客' : '请登录
'}}
</view>
</view>
<!-- <view class="update-info" catchtap="setAvartar" id="edit" wx:if="{{!isManagement}}">编辑资料</view> -->
<!-- <view class="update-info" catchtap="setAvartar" id="edit" wx:if="{{!isManagement}}">编辑资料</view> -->
</view>
</view>
...
...
pages/organ-index/organ-index.wxml
View file @
b2561f1b
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</view>
</view>
<view class="tabs-item" data-link="3" bindtap="goJump">
<view class="tabs-item" data-link="3" bindtap="goJump">
<image class="tabs-img" src="/images/organ/index-tab3.png"/>
<image class="tabs-img" src="/images/organ/index-tab3.png"/>
<view class="tabs-text">教练
消
课</view>
<view class="tabs-text">教练
销
课</view>
</view>
</view>
<view class="tabs-item" data-link="4" bindtap="goJump">
<view class="tabs-item" data-link="4" bindtap="goJump">
<image class="tabs-img" src="/images/organ/index-tab4.png"/>
<image class="tabs-img" src="/images/organ/index-tab4.png"/>
...
...
pages/sport/sport.js
View file @
b2561f1b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-06 16:45:35
* @Date: 2022-06-06 16:45:35
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
2 10:30:08
* @LastEditTime: 2022-06-2
3 10:28:50
*/
*/
var
API
=
require
(
"../../utils/request"
);
var
API
=
require
(
"../../utils/request"
);
var
App
=
getApp
();
var
App
=
getApp
();
...
...
pages/sport/sport.wxml
View file @
b2561f1b
...
@@ -40,6 +40,6 @@
...
@@ -40,6 +40,6 @@
<!-- 若登录者未绑定小孩 -->
<!-- 若登录者未绑定小孩 -->
<t-popup show="{{popupShow}}" closeOnClickOverlay="{{false}}" type="bottom" bindclose="onClose">
<t-popup show="{{popupShow}}" closeOnClickOverlay="{{false}}" type="bottom" bindclose="onClose">
<stu-info id="userInput" bindclosePopup="closePopup"></stu-info>
<stu-info id="userInput"
wx:if="{{popupShow}}"
bindclosePopup="closePopup"></stu-info>
</t-popup>
</t-popup>
</view>
</view>
\ No newline at end of file
project.private.config.json
View file @
b2561f1b
...
@@ -16,6 +16,13 @@
...
@@ -16,6 +16,13 @@
"name"
:
""
,
"name"
:
""
,
"pathName"
:
"subPages/organ/destory-student/destory-student"
,
"pathName"
:
"subPages/organ/destory-student/destory-student"
,
"query"
:
"stuId=16&schId="
,
"query"
:
"stuId=16&schId="
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
""
,
"pathName"
:
"pages/sport/sport"
,
"query"
:
""
,
"scene"
:
null
,
"scene"
:
null
,
"launchMode"
:
"default"
"launchMode"
:
"default"
}
}
...
...
subPages/course/attempt-list/attempt-list.js
View file @
b2561f1b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-15 19:42:49
* @Date: 2022-06-15 19:42:49
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
2 14:34:27
* @LastEditTime: 2022-06-2
4 11:10:39
*/
*/
var
API
=
require
(
"../../../utils/request.js"
);
var
API
=
require
(
"../../../utils/request.js"
);
Page
({
Page
({
...
@@ -68,6 +68,12 @@ Page({
...
@@ -68,6 +68,12 @@ Page({
})
})
});
});
},
},
gotoDetail
(
e
){
let
{
id
}
=
e
.
currentTarget
.
dataset
wx
.
navigateTo
({
url
:
'/subPages/course/detail/detail?id='
+
id
,
})
},
payCourse
(
e
){
payCourse
(
e
){
let
{
data
}
=
e
.
currentTarget
.
dataset
let
{
data
}
=
e
.
currentTarget
.
dataset
let
that
=
this
let
that
=
this
...
...
subPages/course/attempt-list/attempt-list.wxml
View file @
b2561f1b
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<view class="course-state {{['red-c','gree-c','yell-c','grey-c','grey-c'][item.orderStatus]}}">{{['待支付','已订购','待退款','已退款','已关闭'][item.orderStatus]}}</view>
<view class="course-state {{['red-c','gree-c','yell-c','grey-c','grey-c'][item.orderStatus]}}">{{['待支付','已订购','待退款','已退款','已关闭'][item.orderStatus]}}</view>
</view>
</view>
<view class="course-ctn flex-c">
<view class="course-ctn flex-c"
bindtap="gotoDetail" data-id="{{item.courseId}}"
>
<view class="course-img">
<view class="course-img">
<image class="course-img" mode="aspectFill" src="{{item.poster}}" />
<image class="course-img" mode="aspectFill" src="{{item.poster}}" />
</view>
</view>
...
...
subPages/course/collect-list/collect-list.js
View file @
b2561f1b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-15 19:42:49
* @Date: 2022-06-15 19:42:49
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
2 14:37:13
* @LastEditTime: 2022-06-2
4 11:08:38
*/
*/
var
API
=
require
(
"../../../utils/request.js"
);
var
API
=
require
(
"../../../utils/request.js"
);
Page
({
Page
({
...
...
subPages/course/collect-list/collect-list.wxml
View file @
b2561f1b
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
<view class="page-bg">
<view class="page-bg">
<block wx:if="{{list && list.length}}">
<block wx:if="{{list && list.length}}">
<view class="course" wx:for="{{list}}"
bindtap="gotoDetail" data-id="{{item.id}}"
>
<view class="course" wx:for="{{list}}">
<van-swipe-cell right-width="{{ 80 }}">
<van-swipe-cell right-width="{{ 80 }}">
<view class="course-ctn flex-c">
<view class="course-ctn flex-c"
bindtap="gotoDetail" data-id="{{item.id}}"
>
<view class="course-img">
<view class="course-img">
<view class="course-type {{item.type==1?'gree-c':'yell-c'}}">{{item.type==1?'正式班课':'体验课'}}</view>
<view class="course-type {{item.type==1?'gree-c':'yell-c'}}">{{item.type==1?'正式班课':'体验课'}}</view>
<image class="course-img" mode="aspectFill" src="{{item.poster}}" />
<image class="course-img" mode="aspectFill" src="{{item.poster}}" />
...
...
subPages/course/detail/detail.js
View file @
b2561f1b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-13 08:57:51
* @Date: 2022-06-13 08:57:51
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
2 10:20:31
* @LastEditTime: 2022-06-2
3 16:36:25
*/
*/
var
API
=
require
(
"../../../utils/request.js"
);
var
API
=
require
(
"../../../utils/request.js"
);
Page
({
Page
({
...
@@ -75,7 +75,7 @@ Page({
...
@@ -75,7 +75,7 @@ Page({
},
},
callSchool
(){
callSchool
(){
wx
.
makePhoneCall
({
wx
.
makePhoneCall
({
phoneNumber
:
this
.
data
.
detail
.
schoolList
[
schoolActive
].
tel
phoneNumber
:
this
.
data
.
detail
.
schoolList
[
this
.
data
.
schoolActive
].
tel
})
})
},
},
gotoPay
(){
gotoPay
(){
...
...
subPages/course/join-list/join-list.js
View file @
b2561f1b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-15 19:42:49
* @Date: 2022-06-15 19:42:49
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
2 14:35:45
* @LastEditTime: 2022-06-2
4 11:12:17
*/
*/
var
API
=
require
(
"../../../utils/request.js"
);
var
API
=
require
(
"../../../utils/request.js"
);
Page
({
Page
({
...
@@ -68,6 +68,12 @@ Page({
...
@@ -68,6 +68,12 @@ Page({
})
})
});
});
},
},
gotoDetail
(
e
){
let
{
id
}
=
e
.
currentTarget
.
dataset
wx
.
navigateTo
({
url
:
'/subPages/course/detail/detail?id='
+
id
,
})
},
cannalJoin
(
e
){
cannalJoin
(
e
){
let
{
data
}
=
e
.
currentTarget
.
dataset
let
{
data
}
=
e
.
currentTarget
.
dataset
let
that
=
this
let
that
=
this
...
...
subPages/course/join-list/join-list.wxml
View file @
b2561f1b
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<view class="course-state {{['yell-c','gree-c','red-c','grey-c'][item.bmStatus]}}">{{['待确认','已报名','待取消','已取消'][item.bmStatus]}}</view>
<view class="course-state {{['yell-c','gree-c','red-c','grey-c'][item.bmStatus]}}">{{['待确认','已报名','待取消','已取消'][item.bmStatus]}}</view>
</view>
</view>
<view class="course-ctn flex-c">
<view class="course-ctn flex-c"
bindtap="gotoDetail" data-id="{{item.courseId}}"
>
<view class="course-img">
<view class="course-img">
<image class="course-img" mode="aspectFill" src="{{item.poster}}" />
<image class="course-img" mode="aspectFill" src="{{item.poster}}" />
</view>
</view>
...
...
subPages/course/list/list.wxss
View file @
b2561f1b
...
@@ -114,6 +114,7 @@
...
@@ -114,6 +114,7 @@
}
}
.waterfall-flex{
.waterfall-flex{
width: 100%;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
}
}
...
...
subPages/course/sales-list/sales-list.json
View file @
b2561f1b
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
"usingComponents"
:
{
"usingComponents"
:
{
"empty"
:
"/components/empty/empty"
"empty"
:
"/components/empty/empty"
},
},
"navigationBarTitleText"
:
"
消
课记录"
,
"navigationBarTitleText"
:
"
销
课记录"
,
"enablePullDownRefresh"
:
true
"enablePullDownRefresh"
:
true
}
}
\ No newline at end of file
subPages/organ/destory-student/destory-student.wxml
View file @
b2561f1b
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<view class="course-info">
<view class="course-info">
<view class="course-title">{{item.courseName}}</view>
<view class="course-title">{{item.courseName}}</view>
<view class="course-hour">课时:{{item.classHour || 0}}</view>
<view class="course-hour">课时:{{item.classHour || 0}}</view>
<view class="course-use">已
消
课: {{item.usedHour || 0}}课时</view>
<view class="course-use">已
销
课: {{item.usedHour || 0}}课时</view>
</view>
</view>
</view>
</view>
...
...
subPages/organ/destroy-list/destroy-list.js
View file @
b2561f1b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-20 11:16:04
* @Date: 2022-06-20 11:16:04
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
2 16:46:44
* @LastEditTime: 2022-06-2
3 08:31:11
*/
*/
var
API
=
require
(
"../../../utils/request"
);
var
API
=
require
(
"../../../utils/request"
);
var
tool
=
require
(
"../../../utils/util.js"
)
var
tool
=
require
(
"../../../utils/util.js"
)
...
@@ -50,7 +50,7 @@ Page({
...
@@ -50,7 +50,7 @@ Page({
gotoDetails
(
e
){
gotoDetails
(
e
){
let
{
data
}
=
e
.
currentTarget
.
dataset
let
{
data
}
=
e
.
currentTarget
.
dataset
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/subPages/organ/
early-warning/early-warning
?courseId='
+
data
.
courseId
+
'&peopleNum='
+
data
.
peopleNum
+
'&schId='
+
(
this
.
data
.
areaActive
!=
0
?
this
.
data
.
areaList
[
this
.
data
.
areaActive
].
value
:
''
)
url
:
'/subPages/organ/
destory-course/destory-course
?courseId='
+
data
.
courseId
+
'&peopleNum='
+
data
.
peopleNum
+
'&schId='
+
(
this
.
data
.
areaActive
!=
0
?
this
.
data
.
areaList
[
this
.
data
.
areaActive
].
value
:
''
)
});
});
},
},
gotoSudDetail
(
e
){
gotoSudDetail
(
e
){
...
...
subPages/sport/myData/myData.wxss
View file @
b2561f1b
...
@@ -11,7 +11,6 @@ page{
...
@@ -11,7 +11,6 @@ page{
margin-right: 23rpx;
margin-right: 23rpx;
display: inline-block;
display: inline-block;
margin-left: 10px;
margin-left: 10px;
background-color: blue;
text-align: center;
text-align: center;
font-size: 24rpx;
font-size: 24rpx;
color: #333;
color: #333;
...
...
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