Bläddra i källkod

微信投诉功能客户端

shengxuefei 3 år sedan
förälder
incheckning
32785e55dc
5 ändrade filer med 21 tillägg och 16 borttagningar
  1. 4 2
      app.js
  2. 1 0
      pages/bxjl/bxjl.js
  3. 6 6
      pages/tousu/tousu.js
  4. 5 2
      pages/user/user.js
  5. 5 6
      project.config.json

+ 4 - 2
app.js

@@ -14,8 +14,10 @@
 // const con = require('./utils/con.js')//调用方法
 // con.sayy(' world')
 App({
-  coreUrl: 'https://yqj.365wy.top/wxcore/api/Values/',//调用后台地址
-  webUrl:'https://yqj.365wy.top/pm/Webservice.asmx',//调用web接口地址
+  //coreUrl: 'https://yqj.365wy.top/wxcore/api/Values/',//调用后台地址
+  coreUrl: 'http://localhost/wxcore/api/Values/',//调用后台地址
+  //webUrl:'https://yqj.365wy.top/pm/Webservice.asmx',//调用web接口地址
+  webUrl:'http://localhost:85/webservice.asmx',//调用web接口地址
   UserName:'admin',//web接口验证账号
   PassWord:'admin123',//web接口验证密码
   userFileUrl:'https://yqj.365wy.top/wxcore/wwwroot/Upload',//客户上传报事图片地址

+ 1 - 0
pages/bxjl/bxjl.js

@@ -48,6 +48,7 @@ Page({
                     'SOAPAction':targetNamespace+method,
                 }, 
                 success:function(res){
+                    console.info("保修res",res.data);
                     var XMLParser = new Parser.DOMParser();
                     var doc = XMLParser.parseFromString(res.data);
                     var Getfdc_pm_ownerResult = JSON.parse(doc.getElementsByTagName("Getfdc_pm_repairapplyByowneridResult")[0].firstChild.nodeValue);

+ 6 - 6
pages/tousu/tousu.js

@@ -111,7 +111,7 @@ Page({
                 }
             }    
         }
-        var method='Insertfdc_pm_repair ';
+        var method='Insertfdc_pm_repairByTousu';
         var wsdlurl= app.webUrl;
         var targetNamespace='http://tempuri.org/';
         var datacopy= '<?xml version="1.0" encoding="utf-8"?>';
@@ -121,7 +121,7 @@ Page({
         datacopy += `<PassWord>${app.PassWord}</PassWord>`;
         datacopy += '</MySoapHeader></soap:Header>';
         datacopy += '<soap:Body>';
-        datacopy += '<Insertfdc_pm_repair xmlns="http://tempuri.org/">';
+        datacopy += '<Insertfdc_pm_repairByTousu xmlns="http://tempuri.org/">';
         datacopy += `<dfdapplydate>${this.data.dfdapplydate}</dfdapplydate>`;
         datacopy += `<txtdrequiredate>${this.data.txtdrequiredate}</txtdrequiredate>`;
         datacopy += `<hddhcode>${this.data.hddhcode}</hddhcode>`;
@@ -130,7 +130,7 @@ Page({
         datacopy += `<txtvplace>${this.data.txtvplace}</txtvplace>`;
         datacopy += `<txtvtel>${this.data.txtvtel}</txtvtel>`;
         datacopy += `<fileurl>${fileurl}</fileurl>`;
-        datacopy += '</Insertfdc_pm_repair>';
+        datacopy += '</Insertfdc_pm_repairByTousu>';
         datacopy += '</soap:Body>';
         datacopy += '</soap:Envelope>';
         wx.request({
@@ -142,11 +142,11 @@ Page({
                 'SOAPAction':targetNamespace+method,
             }, 
             success:function(res){
-                console.warn('Insertfdc_pm_repair',res);
+                console.warn('Insertfdc_pm_repairByTousu',res);
                 var XMLParser = new Parser.DOMParser();
                 var doc = XMLParser.parseFromString(res.data);
-                var Insertfdc_pm_repairResult = doc.getElementsByTagName("Insertfdc_pm_repairResult")[0].firstChild.nodeValue;
-                console.warn('Insertfdc_pm_repairResult',Insertfdc_pm_repairResult);
+                var Insertfdc_pm_repairResult = doc.getElementsByTagName("Insertfdc_pm_repairByTousuResult")[0].firstChild.nodeValue;
+                console.warn('Insertfdc_pm_repairByTousuResult',Insertfdc_pm_repairResult);
                 if(Insertfdc_pm_repairResult=='保存成功!'){
                     wx.showToast({
                         title: '提交成功!',

+ 5 - 2
pages/user/user.js

@@ -140,6 +140,7 @@ Page({
             phone:resphone.data.phoneNumber
           });
           if(resphone.data.phoneNumber!=undefined&&resphone.data.phoneNumber!=''&&resphone.data.phoneNumber!=null){
+            console.info("req",that.data.phone+","+that.data.avatarRell+","+that.data.openid);
             wx.request({
               url: app.coreUrl+'updateOwnerUrl',
               data:{
@@ -149,7 +150,7 @@ Page({
               },             
               method: "post",
               success:function(e){
-                console.warn('updateOwnerUrl',e.data);
+                console.warn('updateOwnerUrl',e);
                 if(e.data=='微信头像更新失败,查询不到当前客户'||e.data=='参数有误'){
                   that.setData({
                     isPone:false,
@@ -158,6 +159,7 @@ Page({
                 }
                 else{    //绑定成功
                   var arr=e.data.split(',');
+                  console.info("arr",arr);
                   that.setData({
                     isPone:false,
                     isLogin:false,
@@ -263,6 +265,7 @@ Page({
   baoXiuJiLuURL:function(){
     // 跳转报修记录
     if(this.data.phone!=''){
+      console.info('ownerid',this.data.ownerid);
       wx.navigateTo({
         url: `../bxjl/bxjl?ownerid=${this.data.ownerid}`,
       })
@@ -283,7 +286,7 @@ Page({
     // 跳转报修记录
     if(this.data.phone!=''){
       wx.navigateTo({
-        url: `../tsjl/tsjl?ownerid=${this.data.ownerid}`,
+        url: `../bxjl/bxjl?ownerid=${this.data.ownerid}`,
       })
     }
     else{

+ 5 - 6
project.config.json

@@ -21,9 +21,10 @@
     "checkSiteMap": true,
     "uploadWithSourceMap": true,
     "compileHotReLoad": false,
-    "useMultiFrameRuntime": false,
-    "useApiHook": false,
-    "useApiHostProcess": false,
+    "lazyloadPlaceholderEnable": false,
+    "useMultiFrameRuntime": true,
+    "useApiHook": true,
+    "useApiHostProcess": true,
     "babelSetting": {
       "ignore": [],
       "disablePlugins": [],
@@ -35,9 +36,7 @@
     "packNpmManually": false,
     "packNpmRelationList": [],
     "minifyWXSS": true,
-    "disableUseStrict": false,
-    "showES6CompileOption": false,
-    "useCompilerPlugins": false
+    "showES6CompileOption": false
   },
   "compileType": "miniprogram",
   "libVersion": "2.11.0",