优化代码

This commit is contained in:
wuxw 2024-05-08 11:56:53 +08:00
parent 3450506f04
commit 2b6fed74ec
4 changed files with 16 additions and 3 deletions

View File

@ -104,6 +104,16 @@ export function getCommunityTel() {
} }
export function getCommunityQrCode() {
let _currentCommunity = uni.getStorageSync("currentCommunityInfo")
if (_currentCommunity) {
return _currentCommunity.communityQrCode;
}
return '';
}
/** /**
* 查询当前小区 * 查询当前小区
* *

View File

@ -309,7 +309,8 @@ export function ownerLogin(_that, _data) {
uni.setStorageSync("currentCommunityInfo",{ uni.setStorageSync("currentCommunityInfo",{
communityId:_json.data.communityId, communityId:_json.data.communityId,
communityName:_json.data.communityName, communityName:_json.data.communityName,
sCommunityTel:_json.data.communityTel sCommunityTel:_json.data.communityTel,
communityQrCode:_json.data.communityQrCode
}); });
resolve(_json.data); resolve(_json.data);
}, },

View File

@ -78,7 +78,8 @@
import { import {
getCommunityName, getCommunityName,
getCommunityTel getCommunityTel,
getCommunityQrCode
} from '../../api/community/communityApi.js'; } from '../../api/community/communityApi.js';
export default { export default {
@ -199,6 +200,7 @@
this.property.sCommunityTel = getCommunityTel(); this.property.sCommunityTel = getCommunityTel();
this.property.communityName = getCommunityName(); this.property.communityName = getCommunityName();
this.property.communityQrCode = getCommunityQrCode();
_that.callPropertyModal = true; _that.callPropertyModal = true;
}, },

View File

@ -171,7 +171,7 @@
carNum: this.carNum, carNum: this.carNum,
remark: this.remark, remark: this.remark,
communityId:this.communityId, communityId:this.communityId,
passTime:this.todayDate+" "+this.todayDateTime+":00", passTime:this.bindDate+" "+this.bindTime+":00",
audit: { audit: {
staffId: this.audit.assignee, staffId: this.audit.assignee,
}, },