he2802 4 лет назад
Родитель
Сommit
af2b849bdd
3 измененных файлов с 24 добавлено и 15 удалено
  1. 8 5
      pages2/bank/detail.vue
  2. 8 5
      pages2/course/detail.vue
  3. 8 5
      pages2/course/keynote.vue

+ 8 - 5
pages2/bank/detail.vue

@@ -326,11 +326,14 @@ export default {
 				possessId: this.id,
 				possessId: this.id,
 				typeId: 2
 				typeId: 2
 			}
 			}
-			this.$api.systemuserowner(data).then(res => {
-				if(res.data.code === 200){
-				self.payStatus = res.data.data.payStatus
-				}
-			})
+			if (this.$method.isLogin()) {
+				this.$api.systemuserowner(data).then(res => {
+					if(res.data.code === 200){
+					self.payStatus = res.data.data.payStatus
+					}
+				})
+			}
+			
 		},
 		},
 		//提交订单
 		//提交订单
 		getorder(){
 		getorder(){

+ 8 - 5
pages2/course/detail.vue

@@ -385,11 +385,14 @@ export default {
 				possessId: this.id,
 				possessId: this.id,
 				typeId: 1
 				typeId: 1
 			};
 			};
-			this.$api.systemuserowner(data).then(res => {
-				if (res.data.code === 200) {
-					self.payStatus = res.data.data.payStatus;
-				}
-			});
+			if (this.$method.isLogin()) {
+				this.$api.systemuserowner(data).then(res => {
+					if (res.data.code === 200) {
+						self.payStatus = res.data.data.payStatus;
+					}
+				});
+			}
+			
 		},
 		},
 		//提交订单
 		//提交订单
 		getorder() {
 		getorder() {

+ 8 - 5
pages2/course/keynote.vue

@@ -226,11 +226,14 @@
 					possessId: this.id,
 					possessId: this.id,
 					typeId: 3
 					typeId: 3
 				}
 				}
-				this.$api.systemuserowner(data).then(res => {
-					if(res.data.code === 200){
-					self.payStatus = res.data.data.payStatus
-					}
-				})
+				if (this.$method.isLogin()) {
+					this.$api.systemuserowner(data).then(res => {
+						if(res.data.code === 200){
+						self.payStatus = res.data.data.payStatus
+						}
+					})
+				}
+				
 			},
 			},
 			//提交订单
 			//提交订单
 			getorder(){
 			getorder(){