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
2095ac3e
Commit
2095ac3e
authored
Jun 28, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
b2561f1b
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
48 additions
and
21 deletions
+48
-21
index.wxss
pages/index/index.wxss
+3
-1
my.js
pages/my/my.js
+17
-1
organ-index.wxml
pages/organ-index/organ-index.wxml
+3
-3
sport.js
pages/sport/sport.js
+6
-6
project.private.config.json
project.private.config.json
+7
-0
attempt-list.wxml
subPages/course/attempt-list/attempt-list.wxml
+1
-1
detail.wxml
subPages/course/detail/detail.wxml
+1
-1
detail.wxss
subPages/course/detail/detail.wxss
+3
-0
role-list.js
subPages/login/role-list/role-list.js
+2
-7
early-warning.wxss
subPages/organ/early-warning/early-warning.wxss
+5
-1
No files found.
pages/index/index.wxss
View file @
2095ac3e
...
@@ -133,7 +133,9 @@
...
@@ -133,7 +133,9 @@
.flex-item:nth-child(2n){
.flex-item:nth-child(2n){
margin-left: 22rpx;
margin-left: 22rpx;
}
}
.flex-item .w-course:first-child{
margin-top: 20rpx !important;
}
.w-course{
.w-course{
position: relative;
position: relative;
width: 100%;
width: 100%;
...
...
pages/my/my.js
View file @
2095ac3e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-06 16:44:43
* @Date: 2022-06-06 16:44:43
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
2 14:31:33
* @LastEditTime: 2022-06-2
8 10:57:46
*/
*/
var
app
=
getApp
();
var
app
=
getApp
();
var
API
=
require
(
"../../utils/request.js"
);
var
API
=
require
(
"../../utils/request.js"
);
...
@@ -103,6 +103,7 @@ Page({
...
@@ -103,6 +103,7 @@ Page({
title
:
'切换成功'
,
title
:
'切换成功'
,
icon
:
'none'
icon
:
'none'
})
})
that
.
wxGetUserInfo
()
}
else
{
}
else
{
wx
.
showToast
({
wx
.
showToast
({
icon
:
"none"
,
icon
:
"none"
,
...
@@ -178,6 +179,21 @@ Page({
...
@@ -178,6 +179,21 @@ Page({
break
break
}
}
},
},
wxGetUserInfo
(){
let
that
=
this
API
.
getData
(
'/px/user/getUserInfo'
,
{
},
function
(
res
)
{
if
(
res
.
code
==
200
){
if
(
res
.
data
.
birthday
&&
res
.
data
.
birthday
.
length
){
res
.
data
.
birthday
=
res
.
data
.
birthday
.
slice
(
0
,
10
)
}
wx
.
setStorageSync
(
'peopleType'
,
res
.
data
.
peopleType
)
wx
.
setStorageSync
(
'userInfo'
,
res
.
data
)
that
.
setData
({
userInfo
:
res
.
data
||
{}})
}
},
function
()
{
// wx.hideLoading()
});
},
queryPeopleList
(){
queryPeopleList
(){
API
.
getData
(
'/px/user/getUserPeopleList'
,
{},
(
res
)
=>
{
API
.
getData
(
'/px/user/getUserPeopleList'
,
{},
(
res
)
=>
{
let
list
=
[]
let
list
=
[]
...
...
pages/organ-index/organ-index.wxml
View file @
2095ac3e
...
@@ -32,15 +32,15 @@
...
@@ -32,15 +32,15 @@
</view>
</view>
<!-- 统计数据 -->
<!-- 统计数据 -->
<view class="count-flex">
<view class="count-flex">
<view class="count-item">
<view class="count-item"
data-link="1" bindtap="goJump"
>
<view class="count-title">体验课订购</view>
<view class="count-title">体验课订购</view>
<view class="count-value">{{courseNums.expNum || 0}}</view>
<view class="count-value">{{courseNums.expNum || 0}}</view>
</view>
</view>
<view class="count-item">
<view class="count-item"
data-link="2" bindtap="goJump"
>
<view class="count-title">班课报名</view>
<view class="count-title">班课报名</view>
<view class="count-value">{{courseNums.normalNum || 0}}</view>
<view class="count-value">{{courseNums.normalNum || 0}}</view>
</view>
</view>
<view class="count-item">
<view class="count-item"
data-link="4" bindtap="goJump"
>
<view class="count-title">预警学生</view>
<view class="count-title">预警学生</view>
<view class="count-value">{{courseNums.warnNum || 0}}</view>
<view class="count-value">{{courseNums.warnNum || 0}}</view>
</view>
</view>
...
...
pages/sport/sport.js
View file @
2095ac3e
...
@@ -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
3 10:28:50
* @LastEditTime: 2022-06-2
8 10:49:54
*/
*/
var
API
=
require
(
"../../utils/request"
);
var
API
=
require
(
"../../utils/request"
);
var
App
=
getApp
();
var
App
=
getApp
();
...
@@ -145,11 +145,11 @@ nextType() {
...
@@ -145,11 +145,11 @@ nextType() {
}
}
}
}
},
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
:
function
()
{
onShow
:
function
()
{
let
that
=
this
if
(
typeof
this
.
getTabBar
===
'function'
&&
this
.
getTabBar
())
{
if
(
typeof
this
.
getTabBar
===
'function'
&&
this
.
getTabBar
())
{
this
.
getTabBar
().
upDateBar
()
this
.
getTabBar
().
upDateBar
()
this
.
getTabBar
().
setData
({
this
.
getTabBar
().
setData
({
...
@@ -159,10 +159,11 @@ nextType() {
...
@@ -159,10 +159,11 @@ nextType() {
let
userInfo
=
wx
.
getStorageSync
(
"userInfo"
)
let
userInfo
=
wx
.
getStorageSync
(
"userInfo"
)
//如果没有绑定小孩 或者 绑定了小孩没有填写身高体重
//如果没有绑定小孩 或者 绑定了小孩没有填写身高体重
if
(
userInfo
&&
(
!
userInfo
.
stuId
||
!
userInfo
.
height
)){
if
(
userInfo
&&
(
!
userInfo
.
stuId
||
!
userInfo
.
height
)){
th
is
.
setData
({
popupShow
:
true
},()
=>
{
th
at
.
setData
({
popupShow
:
true
},()
=>
{
th
is
.
selectComponent
(
"#userInput"
).
checkUserChild
()
th
at
.
selectComponent
(
"#userInput"
).
checkUserChild
()
})
})
}
}
this
.
setData
({
this
.
setData
({
stuInfo
:{
stuInfo
:{
name
:
userInfo
.
stuName
||
''
,
name
:
userInfo
.
stuName
||
''
,
...
@@ -233,14 +234,13 @@ nextType() {
...
@@ -233,14 +234,13 @@ nextType() {
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
*/
*/
onHide
:
function
()
{
onHide
:
function
()
{
this
.
setData
({
popupShow
:
false
})
},
},
/**
/**
* 生命周期函数--监听页面卸载
* 生命周期函数--监听页面卸载
*/
*/
onUnload
:
function
()
{
onUnload
:
function
()
{
},
},
/**
/**
...
...
project.private.config.json
View file @
2095ac3e
...
@@ -23,6 +23,13 @@
...
@@ -23,6 +23,13 @@
"name"
:
""
,
"name"
:
""
,
"pathName"
:
"pages/sport/sport"
,
"pathName"
:
"pages/sport/sport"
,
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
""
,
"pathName"
:
"subPages/course/detail/detail"
,
"query"
:
"id=17118"
,
"scene"
:
null
,
"scene"
:
null
,
"launchMode"
:
"default"
"launchMode"
:
"default"
}
}
...
...
subPages/course/attempt-list/attempt-list.wxml
View file @
2095ac3e
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<view class="btm-line flex-s">
<view class="btm-line flex-s">
<view class="flex-c">
<view class="flex-c">
<text class="t1">
支付金额
:</text><text class="unit">¥</text><text class="course-price">{{item.orderAmt ? item.orderAmt / 100 : 0}}</text>
<text class="t1">
{{item.orderStatus==3?'退款金额':'支付金额'}}
:</text><text class="unit">¥</text><text class="course-price">{{item.orderAmt ? item.orderAmt / 100 : 0}}</text>
</view>
</view>
<view class="flex-c">
<view class="flex-c">
<!-- orderStatus (0:待支付,1:已订购,2:待退款,3:已退款,4:已关闭) -->
<!-- orderStatus (0:待支付,1:已订购,2:待退款,3:已退款,4:已关闭) -->
...
...
subPages/course/detail/detail.wxml
View file @
2095ac3e
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<view>
<view>
<!-- <view class="detail-num">{{detail.peopleNum || 0}}人已体验</view> -->
<!-- <view class="detail-num">{{detail.peopleNum || 0}}人已体验</view> -->
<view class="course-tag">
<view class="course-tag">
<view class="tag-item {{detail.courseStep==1?'xx-color':detail.courseStep==2?'cz-color':'gz-color'}}">{{detail.courseStep==1?'小学':
item
.courseStep==2?'初中':'高中'}}组</view>
<view class="tag-item {{detail.courseStep==1?'xx-color':detail.courseStep==2?'cz-color':'gz-color'}}">{{detail.courseStep==1?'小学':
detail
.courseStep==2?'初中':'高中'}}组</view>
<view class="tag-item">{{detail.classHour}}课时</view>
<view class="tag-item">{{detail.classHour}}课时</view>
<view class="tag-item">{{['','基础班','提高班','精英班','赛事班'][detail.leveId]}}</view>
<view class="tag-item">{{['','基础班','提高班','精英班','赛事班'][detail.leveId]}}</view>
</view>
</view>
...
...
subPages/course/detail/detail.wxss
View file @
2095ac3e
...
@@ -106,6 +106,9 @@
...
@@ -106,6 +106,9 @@
color: rgba(0, 0, 0, 0.5);
color: rgba(0, 0, 0, 0.5);
}
}
.call-bg{
.call-bg{
display: flex;
justify-content: center;
align-items: center;
padding-left: 24rpx;
padding-left: 24rpx;
height: 48rpx;
height: 48rpx;
border-left: 1rpx solid rgba(0, 0, 0, 0.1);
border-left: 1rpx solid rgba(0, 0, 0, 0.1);
...
...
subPages/login/role-list/role-list.js
View file @
2095ac3e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @eMail: 932055106@qq.com
* @Date: 2022-06-14 08:36:57
* @Date: 2022-06-14 08:36:57
* @LastEditors: tangjiale
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-2
2 09:26:57
* @LastEditTime: 2022-06-2
8 10:40:51
*/
*/
var
API
=
require
(
"../../../utils/request.js"
);
var
API
=
require
(
"../../../utils/request.js"
);
...
@@ -76,12 +76,7 @@ Page({
...
@@ -76,12 +76,7 @@ Page({
}
}
wx
.
setStorageSync
(
'peopleType'
,
res
.
data
.
peopleType
)
wx
.
setStorageSync
(
'peopleType'
,
res
.
data
.
peopleType
)
wx
.
setStorageSync
(
'userInfo'
,
res
.
data
)
wx
.
setStorageSync
(
'userInfo'
,
res
.
data
)
wx
.
navigateBack
()
if
(
res
.
data
.
peopleType
==
'employ'
){
wx
.
switchTab
({
url
:
'/pages/organ-index/organ-index'
})
}
else
{
wx
.
switchTab
({
url
:
'/pages/index/index'
})
}
}
}
},
function
()
{
},
function
()
{
// wx.hideLoading()
// wx.hideLoading()
...
...
subPages/organ/early-warning/early-warning.wxss
View file @
2095ac3e
...
@@ -61,7 +61,10 @@
...
@@ -61,7 +61,10 @@
color: #FF811E !important;
color: #FF811E !important;
border-color: #FF811E !important;
border-color: #FF811E !important;
}
}
.active-c{
font-weight: bold;
color: #FF811E !important;
}
.search-ctn-bg{
.search-ctn-bg{
padding: 20rpx 30rpx 30rpx 30rpx;
padding: 20rpx 30rpx 30rpx 30rpx;
width: calc(100% - 60rpx);
width: calc(100% - 60rpx);
...
@@ -95,6 +98,7 @@
...
@@ -95,6 +98,7 @@
background: #FFFFFF;
background: #FFFFFF;
box-shadow: 0px 0px 16rpx 2rpx rgba(0, 0, 0, 0.12);
box-shadow: 0px 0px 16rpx 2rpx rgba(0, 0, 0, 0.12);
border-radius: 16rpx;
border-radius: 16rpx;
z-index: 99;
}
}
.type-item{
.type-item{
margin: 0rpx auto;
margin: 0rpx auto;
...
...
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