mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-11 06:07:24 +08:00
优化罗志反馈bug
This commit is contained in:
parent
894c96c36f
commit
89d90be40a
@ -15,9 +15,7 @@ import {
|
|||||||
} from '../../lib/java110/utils/DateUtil.js'
|
} from '../../lib/java110/utils/DateUtil.js'
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
import WexinPayFactory from '../../factory/WexinPayFactory.js'
|
import WexinPayFactory from '../../factory/WexinPayFactory.js'
|
||||||
import {
|
|
||||||
wechatRefreshToken
|
|
||||||
} from '../../auth/H5Login.js'
|
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -80,6 +80,10 @@
|
|||||||
feeId: _feeId,
|
feeId: _feeId,
|
||||||
communityId: _communityId
|
communityId: _communityId
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
|
if(!data){
|
||||||
|
_that.accounts = [];
|
||||||
|
return;
|
||||||
|
}
|
||||||
_that.accounts = data;
|
_that.accounts = data;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@ -43,6 +43,10 @@ export function navigateTo(_param, callback = () => {}) {
|
|||||||
_newUrl = _url + ('?wAppId=' + getWAppId());
|
_newUrl = _url + ('?wAppId=' + getWAppId());
|
||||||
_tempUrl = _url;
|
_tempUrl = _url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(_tempUrl.startsWith("/")){
|
||||||
|
_tempUrl = _tempUrl.substring(1)
|
||||||
|
}
|
||||||
|
|
||||||
if (_url.indexOf('wAppId') < 0) {
|
if (_url.indexOf('wAppId') < 0) {
|
||||||
_param.url = _newUrl;
|
_param.url = _newUrl;
|
||||||
|
|||||||
@ -83,7 +83,7 @@ export function pageCheckSession(_pageUrl,_call) {
|
|||||||
_call();
|
_call();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wechatRefreshToken('', 0, '/#'+_pageUrl);
|
wechatRefreshToken('', 0, location.origin+'/#'+_pageUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function wechatRefreshToken(errorUrl, _login, _redirectUrl) {
|
export function wechatRefreshToken(errorUrl, _login, _redirectUrl) {
|
||||||
@ -168,7 +168,7 @@ export function pageUserLogin(_obj) {
|
|||||||
*/
|
*/
|
||||||
export function getPageLoginCode(options) {
|
export function getPageLoginCode(options) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let code = option.code;
|
let code = options.code;
|
||||||
if (code == '' || code == undefined) {
|
if (code == '' || code == undefined) {
|
||||||
//跳转鉴权 //1标识登录页面 请下发code 不要下发key
|
//跳转鉴权 //1标识登录页面 请下发code 不要下发key
|
||||||
wechatRefreshToken('', 1, window.location.href);
|
wechatRefreshToken('', 1, window.location.href);
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "益掌通",
|
"name" : "益掌通",
|
||||||
"appid" : "__UNI__D5E7505",
|
"appid" : "__UNI__CC7D9A9",
|
||||||
"description" : "hc智慧家园小程序 是 HC小区开源项目的一个分支项目,主要给业主使用,其中包括缴物业费,缴停车费,投诉建议,家庭成员维护,房屋保修\r 房屋出租,公告查看,小区圈等功能。",
|
"description" : "hc智慧家园小程序 是 HC小区开源项目的一个分支项目,主要给业主使用,其中包括缴物业费,缴停车费,投诉建议,家庭成员维护,房屋保修\r 房屋出租,公告查看,小区圈等功能。",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.0",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
|
|||||||
@ -34,7 +34,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
accounts: ""
|
accounts: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -108,6 +108,10 @@
|
|||||||
link: _ownerInfo.link,
|
link: _ownerInfo.link,
|
||||||
communityId: _ownerInfo.communityId
|
communityId: _ownerInfo.communityId
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
|
if(!data){
|
||||||
|
_that.accounts=[];
|
||||||
|
return ;
|
||||||
|
}
|
||||||
_that.accounts = data;
|
_that.accounts = data;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,6 +145,7 @@
|
|||||||
let _couponUsers = [];
|
let _couponUsers = [];
|
||||||
getCouponUsers(_objData, _couponUsers)
|
getCouponUsers(_objData, _couponUsers)
|
||||||
.then((_couponList) => {
|
.then((_couponList) => {
|
||||||
|
|
||||||
_couponList.data.forEach(items => {
|
_couponList.data.forEach(items => {
|
||||||
items.createTime = items.createTime.replaceAll('-', '/');
|
items.createTime = items.createTime.replaceAll('-', '/');
|
||||||
items.endTime= items.endTime.replaceAll('-', '/');
|
items.endTime= items.endTime.replaceAll('-', '/');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user