Quellcode durchsuchen

提交服务标准

gaoyognxing vor 4 Jahren
Ursprung
Commit
7a93cfa307
1 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen
  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,
         });