| 
					
				 | 
			
			
				@@ -194,41 +194,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <el-dialog title="承诺书" class="fc tc" :visible.sync="commitmentDialog"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-dialog :title="promiseType[promise.showType]" class="fc tc" :visible.sync="commitmentDialog"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <div v-if="type=='施工现场专业人员'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <div class="commitment-header"> 致:三明市城市建设项目服务中心 </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <div class="commitment-header"> {{promise.title}} </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div class="tl commitment"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                {{promise.promise_edu}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                {{promise.content}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div class="commitment-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              特此诺书! 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <div v-else-if="type=='建筑施工企业特种作业人员'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <div class="tl commitment"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              {{promise.promise_special}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <div v-else-if="type=='园林绿化技术工人'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <div class="tl commitment"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              {{promise.promise_plant}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <div v-else> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <div class="tl commitment"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              {{promise.promise_other}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              {{promise.footer}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <div class="tl commitment-content mt20"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div class="tl commitment-content mt20" v-if="promise.showType==2"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-radio-group v-model="isCommitment"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <el-row class="mt10"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <el-radio :label="true">本人作出上述承诺</el-radio> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -239,12 +217,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </el-radio-group> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <span slot="footer" class="dialog-footer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span slot="footer" class="dialog-footer" v-if="promise.showType==2"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-button @click="commitmentDialog = false">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <el-button type="primary" :disabled="isCommitment?false:true" @click="buyCourseDialog=true">确 定</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div slot="footer" class="dialog-footer mt20" v-else> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button @click="commitmentDialog = false">取 消</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-button type="primary"  @click="buyCourseDialog=true">继续购买</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </el-dialog> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-dialog append-to-body close-on-click-modal :visible.sync="showImgDialog" style="margin-top: 0px;" :width="width"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -288,6 +270,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         width: "", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         type: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         list: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        promiseType:{1:'温馨提示', 2:'承诺书',  3:'委 托 书'}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        promiseList:[], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         nd: new Date().getFullYear()+'', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ndList:[], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         allList:[], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -407,6 +391,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    created(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 获取所有承诺书 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      httpServer("course.GetAllCoursePromise", {}).then((res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.code != 200) return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.promiseList = res.data.list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     beforeDestroy() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.timer) window.clearInterval(this.timer); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -483,13 +474,27 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       uploadBuyImg(url) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.buyForm.buyImg = url; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      matchPromise( name ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let type = this.type; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let isMatch = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for( let i in this.promiseList){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          let item = this.promiseList[i]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if( name == item.type || item.type == type ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.promise = Object.assign( this.promise, item); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log("promise", this.promise); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            isMatch = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } else if( !isMatch && item.type == '默认类型'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.promise = Object.assign( this.promise, item); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       goPay( item ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.buyForm = Object.assign(this.buyForm, item) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.buyForm.company = this.userInfo.company; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.buyForm.temp = item; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.buyForm.courseName = item.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let isEdu = this.type == '施工现场专业人员'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.matchPromise(item.name); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 绕开检查 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // this.stage = 2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // this.isCompanyPay = 1; 
			 |