Commit 46dfb092 by tangjiale

1

parent 2095ac3e
......@@ -9,7 +9,7 @@
<view class="course-img">
<view class="course-type {{item.type==1?'gree-c':'yell-c'}}">{{item.type==1?'正式班课':'体验课'}}</view>
<image class="course-img" mode="aspectFill" src="{{item.poster}}" />
<view class="course-nums">{{item.type==1?'已购' + (item.peopleNum || 0) + '人': item.peopleNum || 0 + '已体验'}}</view>
<view class="course-nums">{{item.type == 1 ? '已购'+ (item.peopleNum || 0) +'人' : (item.peopleNum || 0)+'已体验'}}</view>
</view>
<view class="course-info">
<view class="course-h">
......
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-06-06 15:52:31
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-22 09:50:40
* @LastEditTime: 2022-06-29 10:39:56
*/
var API = require("../../../utils/request.js");
var postData = {};
......@@ -71,8 +71,6 @@ Page({
if(res.data.birthday && res.data.birthday.length){
res.data.birthday = res.data.birthday.slice(0,10)
}
//TODO 开发阶段写死身份
// res.data.peopleType = 'employ'
wx.setStorageSync('userInfo',res.data)
}
});
......@@ -145,8 +143,6 @@ Page({
}
})
}
//TODO 开发阶段写死身份
// res.data.peopleType = 'employ'
wx.setStorageSync('token',res.data.token)
wx.setStorageSync('peopleType',res.data.peopleType)
//获取用户微信相关的详细信息
......
......@@ -125,7 +125,7 @@ Page({
16:'ydtt', //原地踢腿
17:'ydp', //原地跑
}
// TODU 由于原生小程序受限,无法动态配置mixins和behaviors来做逻辑混淆,所以AI页面只能逐一列出
// TODO 由于原生小程序受限,无法动态配置mixins和behaviors来做逻辑混淆,所以AI页面只能逐一列出
if([1,2,3,11,13,14,15,16,17].includes(this.data.sportDetail.id)){
wx.navigateTo({
url:`../../../subPages/sport/ai-${sportName[this.data.sportDetail.id]}-sport/ai-${sportName[this.data.sportDetail.id]}-sport?sportTime=${time}`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment