he2802 4 лет назад
Родитель
Сommit
f43d365488
1 измененных файлов с 7 добавлено и 11 удалено
  1. 7 11
      pages2/course/detail.vue

+ 7 - 11
pages2/course/detail.vue

@@ -696,9 +696,13 @@ export default {
 					url: '/pages/login/login'
 				});
 			} else {
-				if(this.payStatus==0){
-					this.jumpBuy()
-					return
+				if (this.payStatus === 0) {
+					uni.showToast({
+						title: '暂未购买该课程',
+						icon: 'none',
+						duration: 2000
+					});
+					return;
 				}
 				if (this.userInfo.certified != 1) {
 					uni.showModal({
@@ -720,14 +724,6 @@ export default {
 					this.certification();
 					return;
 				}
-				if (this.payStatus === 0) {
-					uni.showToast({
-						title: '暂未购买该课程',
-						icon: 'none',
-						duration: 2000
-					});
-					return;
-				}
 				if (this.vid === null) {
 					uni.showToast({
 						title: '视频加载失败',