소스 검색

提交服务标准

gaoyognxing 4 년 전
부모
커밋
7a93cfa307
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      client/pages/customer/servantsettings/servantsettings.js

+ 6 - 4
client/pages/customer/servantsettings/servantsettings.js

@@ -1,5 +1,6 @@
 import request from '../../../util/http'
-import apiUrl from '../../../util/apiUrl1'
+import apiUrl1 from '../../../util/apiUrl1'
+import apiUr from '../../../util/apiUrl'
 import util from '../../../util/util'
 import moment from 'moment'
 var app = getApp();
@@ -13,7 +14,7 @@ Page({
   },
   ///加载绑定数据
   getservantlist(subjectType){
-     request.httpServiceGet(apiUrl.servantappletservicePath,{subjectType:subjectType}).then(data=>{
+     request.httpServiceGet(apiUrl1.servantappletservicePath,{subjectType:subjectType}).then(data=>{
         //console.log(data);
         let servantlist = data;
         var that = this;
@@ -52,8 +53,9 @@ Page({
           servantselectedlist.push({answer: [answerstr],customAnswer: this.data.servantlist[i].subjectList[j].subject,subjectId: this.data.servantlist[i].subjectList[j].subjectId});
         }
     }
-        //console.log(servantselectedlist);
-      request.httpServicePost(apiUrl.employerServiceStandard,{employRelationNo:employRelationNo,subjectList:servantselectedlist,subjectType:"SN000001"}).then(data=>{
+        console.log("1111111111" + servantselectedlist);
+      request.httpServicePost(apiUr.employerServiceStandard,{employRelationNo:employRelationNo,subjectList:servantselectedlist,subjectType:"SN000001"}).then(data=>{
+        console.log("asasfsd" + data)
         my.alert({
           title: data,
         });