| 
					
				 | 
			
			
				@@ -177,7 +177,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   v-if="item.goods_is_buy == 'false'" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   @click="reOrder(item)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                  {{ $t("Key72") }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  {{ item.goods_type == 201 ? "加入课程" : $t("Key72") }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <!-- 已购买 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <button class="goPay hasPay" v-if="item.goods_is_buy == 'true'"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -506,10 +506,31 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           duration: 2000, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.isConfirmorder = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.goods_Data = item; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (item.goods_type == 201) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.applyJoinCourse(item); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.isConfirmorder = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.goods_Data = item; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    applyJoinCourse(item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let _this = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let MethodName = "teaching-course_manager-ApplyJoinCourse"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let data = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        course_id: item.goods_id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        discount_code: "", // 优惠码 (目前暂时没有用到) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      getLearnWebContent(MethodName, data).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.is_audited == "false") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          _this.$message.warning("申请加入课程,被拒绝"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else if (res.is_audited == "true") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          _this.$message.success("申请加入课程,已通过,请去订单管理支付"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          _this.$message.success("申请加入课程,已提交"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     closeConfirmorder() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.isConfirmorder = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs.Confirmorder.clearData(); 
			 |