shengxuefei 4 سال پیش
والد
کامیت
f7afb19b9e
54فایلهای تغییر یافته به همراه219 افزوده شده و 194 حذف شده
  1. 1 1
      app.js
  2. BIN
      img/1588080030(1).png
  3. BIN
      img/1588087782(1).png
  4. BIN
      img/1588844851(1).png
  5. BIN
      img/1588844912.png
  6. BIN
      img/1588845396(1).png
  7. BIN
      img/1588845621(1).png
  8. BIN
      img/1588849129(1).png
  9. BIN
      img/1588849223(1).png
  10. BIN
      img/1588849331(1).png
  11. BIN
      img/1588849503(1).png
  12. BIN
      img/1588919246(1).png
  13. BIN
      img/1589003625(1).png
  14. BIN
      img/1589098708(1).png
  15. BIN
      img/1589098788(1).png
  16. BIN
      img/1589098981(1).png
  17. BIN
      img/1589100950(1).png
  18. BIN
      img/1589870549(1).png
  19. BIN
      img/1589872199(1).png
  20. BIN
      img/1589873011(1).png
  21. BIN
      img/1589874352(1).png
  22. BIN
      img/1590388079(1).png
  23. BIN
      img/1590388107(1).png
  24. BIN
      img/1590388136(1).png
  25. BIN
      img/1590388154(1).png
  26. BIN
      img/1590389272(1).png
  27. BIN
      img/1590389286(1).png
  28. BIN
      img/_20200525140545.png
  29. BIN
      img/_20200525140606.png
  30. BIN
      img/file.png
  31. BIN
      img/member1.png
  32. BIN
      img/member2.png
  33. BIN
      img/shouji.png
  34. BIN
      img/tel.png
  35. BIN
      img/timg(1).jpg
  36. BIN
      img/timg.jpg
  37. BIN
      img/tmp_02548416ae11366aaf8b2b4f2ed40f2cd30c5c4d6eeca0a6.png
  38. BIN
      img/tmp_54e2c067012d4cba26c781e5d4f6306bf584779f3cbaf08b.png
  39. BIN
      img/tmp_711d6f8635b877fef8915b296d6e5757fc77ef77ca1d8e00.png
  40. BIN
      img/tmp_9de2b8a4f8e8c0542b1dd6c23e0477ebbcf12fe76ebc1c34.png
  41. BIN
      img/tmp_ac727b5b2be27683176c5594b172215d6e1a02c411807ebf.png
  42. BIN
      img/tmp_f48652bc3d018ee81fc25d2f7eab5045383326cbcf9fca55.png
  43. 0 1
      img/u217.svg
  44. 0 6
      img/u87.svg
  45. 16 5
      pages/baoxiu/baoxiu.js
  46. 1 1
      pages/baoxiu/baoxiu.json
  47. 5 5
      pages/bxjl/bxjl.js
  48. 1 0
      pages/index/index.wxml
  49. 6 6
      pages/jfjl/jfjl.js
  50. 100 53
      pages/user/user.js
  51. 10 7
      pages/user/user.wxml
  52. 14 44
      pages/wyjf/wyjf.js
  53. 1 1
      pages/wyjf/wyjf.json
  54. 64 64
      project.config.json

+ 1 - 1
app.js

@@ -18,7 +18,7 @@ App({
   webUrl:'https://yqj.365wy.top/pm/Webservice.asmx',//调用web接口地址
   UserName:'admin',//web接口验证账号
   PassWord:'admin123',//web接口验证密码
-  userFileUrl:'https://yqj.365wy.top/baodicore/Upload',//客户上传报事图片地址
+  userFileUrl:'https://yqj.365wy.top/wxcore/wwwroot/Upload',//客户上传报事图片地址
   onLaunch: function () {
     // 展示本地存储能力
     var logs = wx.getStorageSync('logs') || []

BIN
img/1588080030(1).png


BIN
img/1588087782(1).png


BIN
img/1588844851(1).png


BIN
img/1588844912.png


BIN
img/1588845396(1).png


BIN
img/1588845621(1).png


BIN
img/1588849129(1).png


BIN
img/1588849223(1).png


BIN
img/1588849331(1).png


BIN
img/1588849503(1).png


BIN
img/1588919246(1).png


BIN
img/1589003625(1).png


BIN
img/1589098708(1).png


BIN
img/1589098788(1).png


BIN
img/1589098981(1).png


BIN
img/1589100950(1).png


BIN
img/1589870549(1).png


BIN
img/1589872199(1).png


BIN
img/1589873011(1).png


BIN
img/1589874352(1).png


BIN
img/1590388079(1).png


BIN
img/1590388107(1).png


BIN
img/1590388136(1).png


BIN
img/1590388154(1).png


BIN
img/1590389272(1).png


BIN
img/1590389286(1).png


BIN
img/_20200525140545.png


BIN
img/_20200525140606.png


BIN
img/file.png


BIN
img/member1.png


BIN
img/member2.png


BIN
img/shouji.png


BIN
img/tel.png


BIN
img/timg(1).jpg


BIN
img/timg.jpg


BIN
img/tmp_02548416ae11366aaf8b2b4f2ed40f2cd30c5c4d6eeca0a6.png


BIN
img/tmp_54e2c067012d4cba26c781e5d4f6306bf584779f3cbaf08b.png


BIN
img/tmp_711d6f8635b877fef8915b296d6e5757fc77ef77ca1d8e00.png


BIN
img/tmp_9de2b8a4f8e8c0542b1dd6c23e0477ebbcf12fe76ebc1c34.png


BIN
img/tmp_ac727b5b2be27683176c5594b172215d6e1a02c411807ebf.png


BIN
img/tmp_f48652bc3d018ee81fc25d2f7eab5045383326cbcf9fca55.png


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 1
img/u217.svg


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 6
img/u87.svg


+ 16 - 5
pages/baoxiu/baoxiu.js

@@ -13,10 +13,10 @@ Page({
         txtdrequiredate:'',//完成时间
         txtvcontent:'',// 报事内容
         hddhcode:'',//房产编号
-        ownerid:'',
+        ownerid:'',  //房主ID
         txtvplace:'',//报事地址
-        txtvtel:'',
-        owername:'',
+        txtvtel:'',   //报事电话
+        owername:'',   //房主姓名
         table:[],//上传图片的对象
     },
 
@@ -24,6 +24,7 @@ Page({
      * 生命周期函数--监听页面加载
      */
     onLoad: function (options) {
+        console.warn('onload',options);
         var timestamp = Date.parse(new Date());
         var date = new Date(timestamp);
         var Y =date.getFullYear();
@@ -37,7 +38,7 @@ Page({
             datatimeend:Y + 2 + '-' + M + '-' + D,
             hname:options.hname,
             ownerid:options.ownerid,
-            txtvtel:options.tel,
+            txtvtel:options.phone,
             owername:options.ownername,
             hddhcode:options.hcode,
         })
@@ -140,9 +141,11 @@ Page({
                 'SOAPAction':targetNamespace+method,
             }, 
             success:function(res){
+                console.warn('Insertfdc_pm_repair',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);
                 if(Insertfdc_pm_repairResult=='保存成功!'){
                     wx.showToast({
                         title: '提交成功!',
@@ -160,11 +163,19 @@ Page({
                             },
                             name:'upload',
                             success:function(res){
-                                if(res.data=='true'){
+                                console.warn('上传图片',res.data);
+                                if(res.data=='"上传成功"'){
                                     wx.navigateBack({
                                         delta: 2
                                     })
                                 }
+                                else{
+                                    wx.showToast({       //上传失败,弹出错误提示
+                                        title: res.data,
+                                        icon: 'none',
+                                        duration: 3000
+                                    });
+                                }
                             },
                         })
                     }

+ 1 - 1
pages/baoxiu/baoxiu.json

@@ -1,5 +1,5 @@
 {
   "navigationBarBackgroundColor": "#298DF7",
-  "navigationBarTitleText": "提交报修",
+  "navigationBarTitleText": "我要报修",
   "navigationBarTextStyle":"white"
 }

+ 5 - 5
pages/bxjl/bxjl.js

@@ -13,7 +13,7 @@ Page({
     /**
      * 生命周期函数--监听页面加载
      */
-    onLoad: function (optitons) {
+    onLoad: function (options) {
         wx.showToast({
             title: '加载中',
             icon: 'loading',
@@ -21,8 +21,8 @@ Page({
         })
         var that = this;
         var tableBX = [];
-        var sum = optitons.sessionPhone.split(',');
-        for (let index = 0; index < sum.length-1; index++) {
+        
+        
             var method='Getfdc_pm_repairapplyByownerid';
             var wsdlurl=app.webUrl;
             var targetNamespace='http://tempuri.org/';
@@ -34,7 +34,7 @@ Page({
             datacopy += '</MySoapHeader></soap:Header>';
             datacopy += '<soap:Body>';
             datacopy += '<Getfdc_pm_repairapplyByownerid xmlns="http://tempuri.org/">';
-            datacopy += `<ownerid>${sum[index]}</ownerid>`;
+            datacopy += `<ownerid>${options.ownerid}</ownerid>`;
             datacopy += '</Getfdc_pm_repairapplyByownerid>';
             datacopy += '</soap:Body>';
             datacopy += '</soap:Envelope>';
@@ -60,7 +60,7 @@ Page({
                     }
                 }
             })
-        }
+         
     },
     bxjlDetail: function (e) {
         wx.navigateTo({

+ 1 - 0
pages/index/index.wxml

@@ -18,6 +18,7 @@
         <view class="bodyTableClass" wx:for="{{bodyTable}}" wx:for-item="i" wx:key="index" data-index="{{index}}" bindtap="jingQiQiDaiURL">
             <text style="vertical-align: middle;font-size:30rpx;">{{i.text}}</text>
             <image style="margin-left:30rpx;width:120rpx;height:100rpx;vertical-align: middle;" src="../../img/{{i.img}}"></image>
+            <image style="margin-left:30rpx;width:120rpx;height:100rpx;vertical-align: middle;" src="http://218.26.102.147:7000/pm/images/tel.png"></image>
         </view>
     </view>
 </view>

+ 6 - 6
pages/jfjl/jfjl.js

@@ -14,7 +14,7 @@ Page({
     /**
      * 生命周期函数--监听页面显示
      */
-    onLoad: function (optitons) {
+    onLoad: function (options) {
       wx.showToast({
         title: '加载中',
         icon: 'loading',
@@ -22,8 +22,8 @@ Page({
       })
       var that = this;
       var tableBX = [];
-      var sum = optitons.sessionPhone.split(',');
-      for (let index = 0; index < sum.length-1; index++) {
+      
+     
         var method='Getfdc_pm_revfare ';
         var wsdlurl=app.webUrl;
         var targetNamespace='http://tempuri.org/';
@@ -35,8 +35,8 @@ Page({
         datacopy += '</MySoapHeader></soap:Header>';
         datacopy += '<soap:Body>';
         datacopy += '<Getfdc_pm_revfare   xmlns="http://tempuri.org/">';
-        datacopy += `<weixinid>${optitons.openid}</weixinid>`;
-        datacopy += `<ownerid>${sum[index]}</ownerid>`;
+        datacopy += `<weixinid>${options.openid}</weixinid>`;
+        datacopy += `<ownerid>${options.ownerid}</ownerid>`;
         datacopy += '</Getfdc_pm_revfare  >';
         datacopy += '</soap:Body>';
         datacopy += '</soap:Envelope>';
@@ -62,7 +62,7 @@ Page({
             }
           }
         })
-      }
+      
     },
 
     /**

+ 100 - 53
pages/user/user.js

@@ -5,12 +5,17 @@ var app = getApp();
 Page({
   data: {
     ownerType:'',
-    ownerid:'',
-    phone:'',
-    openid:'',
-    avatarRell:'../../img/timg.jpg',
-    isPone:false,
-    ownerType:'',
+    ownerid:'',                      //业主id
+    ownername:'',                    //业主名
+    hname:'',                           //房名
+    hcode:'',                          //房号
+    phone:'',                           //微信手机号
+    openid:'',                           
+    session_key:'',
+    nickName:'',                         //微信昵称
+    avatarRell:'../../img/timg.jpg',     //微信头像
+    isPone:false ,                        //是否需要显示获取手机号权限
+    isLogin:false,                        //是否需要重新登录
   },
   /**
    * 生命周期函数--监听页面加载 
@@ -28,18 +33,51 @@ Page({
    */
   onShow: function (options) {
     var that = this;
-    // wx.getStorage({
-    //   key: 'ownerdatas',
-    //   success:function(res){
-    //     var sum = res.data.split(',');
-    //     that.setData({
-    //       openid:sum[1],
-    //       phone:sum[2],
-    //       avatarRell:sum[0],
-    //     })
-    //   },
-    // })
+    wx.getSetting({
+      success (res) {
+        console.log('获取用户的当前设置',res)
+       
+      }
+    })
+   
     try {
+    
+    wx.getStorage({
+      key: 'ownerdatas',
+      success:function(res){
+        console.warn('获取缓存数据',res.data);
+        if(res.data!=null&&res.data.length>0){
+          var sum = res.data.split(',');
+          if(sum.length!=8){            //若数组没有8个,则表明缓存数据不足,删除缓存,重新获取
+            wx.removeStorageSync('ownerdatas');
+            that.setData({isLogin:true});
+          }
+          else{       //若足够,则重新给data赋值
+            that.setData({
+              avatarRell:sum[0],
+              openid:sum[1],
+              nickName:sum[2],
+              phone:sum[3],
+              hcode:sum[4],   
+              hname:sum[5], 
+              ownerid:sum[6],   
+              ownername:sum[7],
+              isLogin:false         
+            })
+          }         
+        }        
+      },
+      fail:function(res){
+        console.warn('获取缓存失败',res);
+        that.setData({isLogin:true});
+      }
+    })
+     
+    if(that.data.phone!=undefined&&that.data.phone!=null&&that.data.phone!=''){
+      that.setData({isPone:false});
+      return;
+    }
+      //微信登录
       wx.login({
         complete: (res) => {
           console.warn('login',res);
@@ -51,44 +89,35 @@ Page({
                   console.warn('coreUrl',app.coreUrl);
                   console.warn('resopenid',resopenid);
                   var ownerData = resopenid.data.split(',');
-                  if(ownerData[1]=='无'){
-                    that.setData({
-                      openid:ownerData[0],
-                      ownerType:ownerData[1]
-                    })
-                  }
-                  else{
-                    var s = ownerData[0].length+ownerData[1].length+ownerData[2].length+3
-                    that.setData({
-                      openid:ownerData[0],
-                      phone:ownerData[1],
-                      avatarRell:ownerData[2],
-                      sessionPhone:resopenid.data.substring(s)
-                    })
-                  }
+                  that.setData({
+                    openid:ownerData[0],
+                    session_key:ownerData[1]
+                  })
+                  
               }
             })
         },
       })
   } catch(error) {
+      console.error('try失败',error);
   } 
     
   },
   sp:function(){
   },
   getUserInfo(e){
+    console.warn('getUserInfo',e);
     var that = this;
     that.setData({
-      avatarRell:e.detail.userInfo.avatarUrl
+      avatarRell:e.detail.userInfo.avatarUrl,
+      nickName:e.detail.userInfo.nickName,
+      isPone:true
     })
+    //获取的用户信息存入缓存
     wx.setStorageSync(
-      'ownerdatas',e.detail.userInfo.avatarUrl+','+that.data.openid+','+that.data.phone
+      'ownerdatas',e.detail.userInfo.avatarUrl+','+that.data.openid+','+that.data.nickName
     )
-    if(that.data.ownerType=='无'){
-      that.setData({
-        isPone:true,
-      })
-    }
+   
   },
   
  // 获取手机号
@@ -105,27 +134,45 @@ Page({
         },
         method: "post",
         success: function (resphone) {
+          console.log('getPhoneNumber',resphone);
+          that.setData({
+            phone:resphone.data.phoneNumber
+          });
           if(resphone.data.phoneNumber!=undefined&&resphone.data.phoneNumber!=''&&resphone.data.phoneNumber!=null){
             wx.request({
               url: app.coreUrl+'updateOwnerUrl',
               data:{
-                tel:resphone.data.phoneNumber,
+                tel:that.data.phone,
                 url:that.data.avatarRell,
                 weixinid:that.data.openid
-              },
+              },             
               method: "post",
               success:function(e){
-                if(e.data=='微信头像更新失败,查询不到当前客户'){
+                console.warn('updateOwnerUrl',e.data);
+                if(e.data=='微信头像更新失败,查询不到当前客户'||e.data=='参数有误'){
                   that.setData({
                     isPone:false,
                     phone:'绑定失败,查无业主'
                   })
                 }
-                else{
+                else{    //绑定成功
+                  var arr=e.data.split(',');
                   that.setData({
                     isPone:false,
+                    isLogin:false,
                     ownerType:'',
-                  })
+                    hcode:arr[0],
+                    hname:arr[1],
+                    ownerid:arr[2],
+                    ownername:arr[3]
+                  });
+                  var value=wx.getStorageSync('ownerdatas');
+                  console.warn('value',value);
+                  if(value!=null&&value.length>0){
+                    let value1=value+','+that.data.phone+','+e.data;
+                    console.warn('ownerdatas',value1);
+                    wx.setStorageSync('ownerdatas', value1);    //手机号存储入key为ownerdatas的缓存中
+                  }
                 }
               }
             })
@@ -138,9 +185,9 @@ Page({
 
   jiaoFeiJiLuURL:function(){
     // 跳转缴费记录
-    if(this.data.ownerType!=''){
+    if(this.data.phone!=''){
       wx.navigateTo({
-        url: `../jfjl/jfjl?openid=${this.data.openid}&phone=${this.data.phone}&sessionPhone=${this.data.sessionPhone}`,
+        url: `../jfjl/jfjl?openid=${this.data.openid}&ownerid=${this.data.ownerid}`,
       })
     }
     else{
@@ -157,9 +204,9 @@ Page({
   },
   woYaoBaoXiu:function(){
     // 跳转我要报修
-    if(this.data.ownerType!=''){
+    if(this.data.phone!=''){
       wx.navigateTo({
-        url: `../fcxx/fcxx?openid=${this.data.openid}&phone=${this.data.phone}&type=1`,
+        url: `../baoxiu/baoxiu?openid=${this.data.openid}&phone=${this.data.phone}&hname=${this.data.hname}&hcode=${this.data.hcode}&ownerid=${this.data.ownerid}&ownername=${this.data.ownername}`,
       })
     }
     else{
@@ -176,9 +223,9 @@ Page({
   },
   woYaoJiaoFei:function(){
     // 跳转我要缴费
-    if(this.data.ownerType!=''){
+    if(this.data.phone!=''){
       wx.navigateTo({
-        url: `../wyjf/wyjf?openid=${this.data.openid}&phone=${this.data.phone}&sessionPhone=${this.data.sessionPhone}`,
+        url: `../wyjf/wyjf?openid=${this.data.openid}&phone=${this.data.phone}`,
       })
     }
     else{
@@ -195,9 +242,9 @@ Page({
   },
   baoXiuJiLuURL:function(){
     // 跳转报修记录
-    if(this.data.ownerType!=''){
+    if(this.data.phone!=''){
       wx.navigateTo({
-        url: `../bxjl/bxjl?sessionPhone=${this.data.sessionPhone}`,
+        url: `../bxjl/bxjl?ownerid=${this.data.ownerid}`,
       })
     }
     else{
@@ -214,7 +261,7 @@ Page({
   },
   fanChanXinXiURL:function(){
     //跳转房产信息
-    if(this.data.ownerType!=''){
+    if(this.data.phone!=''){
       wx.navigateTo({
         url: `../fcxx/fcxx?openid=${this.data.openid}&phone=${this.data.phone}`,
       })

+ 10 - 7
pages/user/user.wxml

@@ -4,19 +4,22 @@
     <view class="diyi">
         <view bindtap="sp" style="padding-top:50px;text-align:center" class="diyi_yi">
         <image class="diyi_er"  src="{{avatarRell}}"></image>
-        <button size="mini" style='display:inline-block;width:150rpx;background-color:#298DF7;color:#FFF;font-size:30rpx;' wx:if="{{avatarRell=='../../img/timg.jpg'}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo">登录</button>
+        <button size="mini" style='display:inline-block;width:150rpx;background-color:#298DF7;color:#FFF;font-size:30rpx;' wx:if="{{isLogin}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo">登录</button>
+        <text>{{nickName}}</text>
         <text>{{phone}}</text>
         </view>
     </view>
+   
+     
     <view>
         <div wx:if="{{isPone}}" class="alert" >
-        <div class="auth">
-            <div class="apply">
-            <span class="">需要获取您的手机权限</span>
-            <p>(请开启手机权限)</p>
+            <div class="auth">
+                <div class="apply">
+                <span class="">需要获取您的手机权限</span>
+                <p>(请开启手机权限)</p>
+                </div>
+                <button class="confirm" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">确认</button>
             </div>
-            <button class="confirm" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">确认</button>
-        </div>
         </div>
     </view>
     <!-- 主题 -->

+ 14 - 44
pages/wyjf/wyjf.js

@@ -21,47 +21,15 @@ Page({
     })
   },
   btnJiaoFei:function(){
-    //缴费事件
-//     var method='Insertfdc_pm_owner';
-//     var wsdlurl= app.webUrl;
-//     var targetNamespace='http://tempuri.org/';
-//     var datacopy= '<?xml version="1.0" encoding="utf-8"?>';
-//     datacopy += '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">';
-//     // datacopy += '<soap:Header/>';
-//     datacopy += '<soap:Header><MySoapHeader xmlns="http://tempuri.org/">';
-//     datacopy += '<UserName>admin</UserName>';
-//     datacopy += '<PassWord>admin123</PassWord>';
-//     datacopy += '</MySoapHeader></soap:Header>';
-//     datacopy += '<soap:Body>';
-//     datacopy += '<Insertfdc_pm_owner xmlns="http://tempuri.org/">';
-//     datacopy += `<farwarid>${this.data.wyjfid}</farwarid>`;
-//     datacopy += `<money>${this.data.money}</money>`;
-//     datacopy += `<ownername>${this.data.ownername}</ownername>`;
-//     datacopy += `<hname>${this.data.hname}</hname>`;
-//     datacopy += '</Insertfdc_pm_owner>';
-//     datacopy += '</soap:Body>';
-//     datacopy += '</soap:Envelope>';
-//     wx.request({
-//       url: wsdlurl,
-//       data: datacopy, 
-//       method: 'POST', 
-//       header: { 
-//         'Content-Type':'text/xml; charset=utf-8',
-//         'SOAPAction':targetNamespace+method,
-//       }, 
-//       success:function(res){
-//         var XMLParser = new Parser.DOMParser();
-//         var doc = XMLParser.parseFromString(res.data);
-//         var Insertfdc_pm_ownerResult =doc.getElementsByTagName("Insertfdc_pm_ownerResult")[0].firstChild.nodeValue;
-//         console.log(Insertfdc_pm_ownerResult);
-//       }
-//     })
+   
   },
   onShow:function(options){
     
   },
-  onLoad:function(optitons){
-    var sum = optitons.sessionPhone.split(',');
+  onLoad:function(options){
+    console.log('onload',options);
+    var openid=options.openid;
+    var phone=options.phone;
     wx.showToast({
       title: '加载中',
       icon: 'loading',
@@ -69,20 +37,19 @@ Page({
     })
     var that = this;
     //页面初始化 optitons为页面跳转所带来的多参数
-    for (let index = 0; index < sum.length-1; index++) {
       var method='Getfdc_pm_unfare';
       var wsdlurl= app.webUrl;
       var targetNamespace='http://tempuri.org/';
       var datacopy= '<?xml version="1.0" encoding="utf-8"?>';
       datacopy += '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">';
       datacopy += '<soap:Header><MySoapHeader xmlns="http://tempuri.org/">';
-      datacopy += '<UserName>admin</UserName>';
-      datacopy += '<PassWord>admin123</PassWord>';
+      datacopy += `<UserName>${app.UserName}</UserName>`;
+      datacopy += `<PassWord>${app.PassWord}</PassWord>`;
       datacopy += '</MySoapHeader></soap:Header>';
       datacopy += '<soap:Body>';
       datacopy += '<Getfdc_pm_unfare xmlns="http://tempuri.org/">';
-      datacopy += `<weixinid>${optitons.openid}</weixinid>`;
-      datacopy += `<ownerid>${sum[index]}</ownerid>`;
+      datacopy += `<weixinid>${openid}</weixinid>`;
+      datacopy += `<ownerid>${phone}</ownerid>`;
       datacopy += '</Getfdc_pm_unfare >';
       datacopy += '</soap:Body>';
       datacopy += '</soap:Envelope>';
@@ -95,9 +62,12 @@ Page({
           'SOAPAction':targetNamespace+method,
         }, 
         success:function(res){
+          console.warn('Getfdc_pm_unfare',res);
           var XMLParser = new Parser.DOMParser();
           var doc = XMLParser.parseFromString(res.data);
-          var Getfdc_pm_unfareResult = JSON.parse(doc.getElementsByTagName("Getfdc_pm_unfareResult")[0].firstChild.nodeValue)
+          //console.warn('doc',doc);
+          var Getfdc_pm_unfareResult = JSON.parse(doc.getElementsByTagName("Getfdc_pm_unfareResult")[0].firstChild.nodeValue);
+          console.warn('Getfdc_pm_unfareResult',Getfdc_pm_unfareResult);
           if(Getfdc_pm_unfareResult.ok!=false){
             that.setData({
               table:Getfdc_pm_unfareResult.Table
@@ -105,7 +75,7 @@ Page({
           }
         }
       })
-    }
+   
   },
   onReady:function(options){
     //页面渲染完成

+ 1 - 1
pages/wyjf/wyjf.json

@@ -1,5 +1,5 @@
 {
   "navigationBarBackgroundColor": "#298DF7",
-  "navigationBarTitleText": "物业缴费",
+  "navigationBarTitleText": "我要缴费",
   "navigationBarTextStyle":"white"
 }

+ 64 - 64
project.config.json

@@ -1,66 +1,66 @@
 {
-	"description": "项目配置文件",
-	"packOptions": {
-		"ignore": []
-	},
-	"setting": {
-		"urlCheck": true,
-		"es6": true,
-		"enhance": false,
-		"postcss": true,
-		"preloadBackgroundData": false,
-		"minified": true,
-		"newFeature": false,
-		"coverView": true,
-		"nodeModules": false,
-		"autoAudits": false,
-		"showShadowRootInWxmlPanel": true,
-		"scopeDataCheck": false,
-		"uglifyFileName": false,
-		"checkInvalidKey": true,
-		"checkSiteMap": true,
-		"uploadWithSourceMap": true,
-		"compileHotReLoad": false,
-		"babelSetting": {
-			"ignore": [],
-			"disablePlugins": [],
-			"outputPath": ""
-		},
-		"bundle": false,
-		"useIsolateContext": true,
-		"useCompilerModule": false,
-		"userConfirmedUseCompilerModuleSwitch": false,
-		"useMultiFrameRuntime": true,
-		"useApiHook": true,
-		"useApiHostProcess": false,
-		"userConfirmedBundleSwitch": false,
-		"packNpmManually": false,
-		"packNpmRelationList": [],
-		"minifyWXSS": true
-	},
-	"compileType": "miniprogram",
-	"libVersion": "2.11.0",
-	"appid": "wxf68e02629cb7d397",
-	"projectname": "youqianjia",
-	"debugOptions": {
-		"hidedInDevtools": []
-	},
-	"isGameTourist": false,
-	"simulatorType": "wechat",
-	"simulatorPluginLibVersion": {},
-	"condition": {
-		"search": {
-			"list": []
-		},
-		"conversation": {
-			"list": []
-		},
-		"game": {
-			"currentL": -1,
-			"list": []
-		},
-		"miniprogram": {
-			"list": []
-		}
-	}
+  "description": "项目配置文件",
+  "packOptions": {
+    "ignore": []
+  },
+  "setting": {
+    "urlCheck": true,
+    "es6": true,
+    "enhance": false,
+    "postcss": true,
+    "preloadBackgroundData": false,
+    "minified": true,
+    "newFeature": false,
+    "coverView": true,
+    "nodeModules": false,
+    "autoAudits": false,
+    "showShadowRootInWxmlPanel": true,
+    "scopeDataCheck": false,
+    "uglifyFileName": false,
+    "checkInvalidKey": true,
+    "checkSiteMap": true,
+    "uploadWithSourceMap": true,
+    "compileHotReLoad": false,
+    "useMultiFrameRuntime": true,
+    "babelSetting": {
+      "ignore": [],
+      "disablePlugins": [],
+      "outputPath": ""
+    },
+    "bundle": false,
+    "useIsolateContext": true,
+    "useCompilerModule": false,
+    "userConfirmedUseCompilerModuleSwitch": false,
+    "userConfirmedBundleSwitch": false,
+    "packNpmManually": false,
+    "packNpmRelationList": [],
+    "minifyWXSS": true,
+    "useApiHook": true,
+    "useApiHostProcess": true
+  },
+  "compileType": "miniprogram",
+  "libVersion": "2.11.0",
+  "appid": "wxf68e02629cb7d397",
+  "projectname": "youqianjia",
+  "debugOptions": {
+    "hidedInDevtools": []
+  },
+  "isGameTourist": false,
+  "simulatorType": "wechat",
+  "simulatorPluginLibVersion": {},
+  "condition": {
+    "search": {
+      "list": []
+    },
+    "conversation": {
+      "list": []
+    },
+    "game": {
+      "currentL": -1,
+      "list": []
+    },
+    "miniprogram": {
+      "list": []
+    }
+  }
 }