From 5a5f357d8d7eb320f92e73c58c6ac2f18446c573 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Mon, 22 Jun 2020 18:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=8C=BAID=E6=9B=BF=E6=8D=A2=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/components/property/addOwner/addOwner.js | 3 --- public/components/property/weChatAttr/weChatAttr.js | 12 ++++++++---- .../publicWeChatManage/publicWeChatManage.js | 3 ++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/public/components/property/addOwner/addOwner.js b/public/components/property/addOwner/addOwner.js index 493f1fc61..8818a0629 100644 --- a/public/components/property/addOwner/addOwner.js +++ b/public/components/property/addOwner/addOwner.js @@ -213,9 +213,6 @@ reader.readAsDataURL(file); //读取为base64 reader.onloadend = function (e) { vc.component.addOwnerInfo.ownerPhoto = reader.result; - - let obj = document.getElementById('uploadOwnerPhoto') ; - obj.outerHTML=obj.outerHTML } } }, diff --git a/public/components/property/weChatAttr/weChatAttr.js b/public/components/property/weChatAttr/weChatAttr.js index d4f6a1330..33d02f05f 100644 --- a/public/components/property/weChatAttr/weChatAttr.js +++ b/public/components/property/weChatAttr/weChatAttr.js @@ -15,20 +15,23 @@ }, wechatServerUrl: '', wechatId: '', + wId:'' } }, _initMethod: function () { //生成微信服务端访问地址 - $that.wechatAttrInfo.wechatServerUrl = window.location.protocol - + "//" + window.location.host - + '/app/wechat/gateway?java110AppId=992019111758490006&communityId=' - + vc.getCurrentCommunity().communityId; + }, _initEvent: function () { vc.on('wechatAttrInfo', 'getWechatAttrInfo', function (_param) { $that.wechatAttrInfo.wechatId = _param.wechatId; + $that.wechatAttrInfo.wId = _param.wId; + $that.wechatAttrInfo.wechatServerUrl = window.location.protocol + + "//" + window.location.host + + '/app/wechat/gateway?java110AppId=992019111758490006&wId=' + + $that.wechatAttrInfo.wId; $that._listListWechatAttrs(DEFAULT_PAGE, DEFAULT_ROWS); }); }, @@ -46,6 +49,7 @@ function (json, res) { var _listWechatAttrManageInfo = JSON.parse(json); vc.component.wechatAttrInfo.attrs = _listWechatAttrManageInfo.data; + }, function (errInfo, error) { console.log('请求失败处理'); } diff --git a/public/pages/property/publicWeChatManage/publicWeChatManage.js b/public/pages/property/publicWeChatManage/publicWeChatManage.js index 317f81613..853a1eba6 100644 --- a/public/pages/property/publicWeChatManage/publicWeChatManage.js +++ b/public/pages/property/publicWeChatManage/publicWeChatManage.js @@ -47,7 +47,8 @@ vc.component.smallWeChatManageInfo.smallWeChats = _smallWeChatManageInfo.smallWeChats; if (_smallWeChatManageInfo.smallWeChats.length > 0) { vc.emit('wechatAttrInfo', 'getWechatAttrInfo', { - wechatId:_smallWeChatManageInfo.smallWeChats[0].weChatId + wechatId: _smallWeChatManageInfo.smallWeChats[0].weChatId, + wId: _smallWeChatManageInfo.smallWeChats[0].wId }); }