zzp 2 years ago
parent
commit
db5c74f223

+ 1 - 0
config/api.js

@@ -37,6 +37,7 @@ module.exports = {
 	getVideoList: API_BASE + '/v2/home/getCourseShowNearbyList',
 	
 	
+	
 	//  获取可报名学员列表
 	getEnlistAbleStudent: API_BASE + '/v2/class/selectApplyList',
 	//  获取会员服务班级详情

+ 1 - 1
pages/user/index.vue

@@ -26,7 +26,7 @@
 							<view>剩余&nbsp;{{item.days}}&nbsp;天到期</view>
 						</view>
 					</view>
-					<view class="member-handle">{{item.days === 0 ? '立即开通' : '立即续费'}}&nbsp;<u-icon name="arrow-right"></u-icon>
+					<view class="member-handle">{{item.days == 0 ? '立即开通' : '立即续费'}}&nbsp;<u-icon name="arrow-right"></u-icon>
 					</view>
 				</view>
 			</template>

+ 0 - 6
pagesMain/studentList.vue

@@ -86,12 +86,6 @@
 					this.triggered = false
 					this.tableList = this.tableList.concat(res.data.row)
 					this.isOver = res.data.row.length != 10
-				}).catch(error => {
-					this.triggered = false
-					this.$refs.uTips.show({
-						title: error.message,
-						type: 'warning',
-					})
 				})
 			},
 			// 修改学员信息

+ 2 - 2
pagesMain/subscribeInfo.vue

@@ -104,7 +104,7 @@
 		onLoad(options) {
 			const item = JSON.parse(decodeURIComponent(options.item));
 			this.venueId = options.venueId
-			this.subscribelForm = { ...item, id: item.classId, sex:item.sex == 1 ? '男' : '女' }
+			this.subscribelForm = { ...item, id: item.classId, sex:item.sex == 1 ? '男' : '女', coachName: item.coachId != -1 ? item.coachName : ''}
 		},
 		onReady() {
 			this.$refs.subscribelForm.setRules(this.rules);
@@ -178,7 +178,7 @@
 			},
 			//  提交表单
 			submitForm() {
-				if(!this.subscribelForm.coachId) {
+				if(!this.subscribelForm.coachId || !this.subscribelForm.coachName) {
 					this.$refs.uTips.show({
 						title: '请选择教练',
 						type: 'warning',

+ 1 - 1
pagesMain/subscribeList.vue

@@ -54,7 +54,7 @@
 		onLoad(options) {
 			console.log(options);
 			// 二维码中场馆id
-			this.venueId = options.venueId || 34
+			this.venueId = options.venueId
 		},
 		onShow() {
 			this.tableList = []

+ 0 - 21
pagesMember/venueDetail.vue

@@ -174,19 +174,9 @@
 		onShow() {
 			NET.request(API.getEnlistAbleStudent, {}, 'POST').then(res => {
 				this.studentList1 = res.data.row
-			}).catch(error => {
-				this.$refs.uTips.show({
-					title: error.message,
-					type: 'warning',
-				})
 			})
 			NET.request(API.getSubscribeAbleList, {}, 'POST').then(res => {
 				this.studentList2 = res.data.row
-			}).catch(error => {
-				this.$refs.uTips.show({
-					title: error.message,
-					type: 'warning',
-				})
 			})
 		},
 		onReady() {
@@ -205,11 +195,6 @@
 					id: this.venueId
 				}, 'POST').then(res => {
 					this.venueInfo = res.data
-				}).catch(error => {
-					this.$refs.uTips.show({
-						title: error.message,
-						type: 'warning',
-					})
 				})
 				// 会员卡
 				NET.request(API.getMemberCardList, {venueId:this.venueId}, 'POST').then(res => {
@@ -225,12 +210,6 @@
 							checked: false
 						}
 					})
-
-				}).catch(error => {
-					this.$refs.uTips.show({
-						title: error.message,
-						type: 'warning',
-					})
 				})
 			},
 			checkBox(item){