mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化代码
This commit is contained in:
parent
4ce58506ed
commit
f425366407
@ -375,3 +375,13 @@ export function getUserName(){
|
|||||||
return _userInfo.userName;
|
return _userInfo.userName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getUserTel(){
|
||||||
|
let _userInfo = uni.getStorageSync("userInfo");
|
||||||
|
if(!_userInfo){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return _userInfo.ownerTel;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -82,7 +82,8 @@
|
|||||||
formatDate,
|
formatDate,
|
||||||
date2String,
|
date2String,
|
||||||
dateSubOneDay
|
dateSubOneDay
|
||||||
} from '../../lib/java110/utils/DateUtil.js'
|
} from '../../lib/java110/utils/DateUtil.js';
|
||||||
|
import {getUserName,getUserTel} from '../../api/user/userApi.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -307,8 +308,8 @@
|
|||||||
"tradeType": _tradeType,
|
"tradeType": _tradeType,
|
||||||
"communityId": this.ownerInfo.communityId,
|
"communityId": this.ownerInfo.communityId,
|
||||||
"spaces": JSON.stringify(spacesList),
|
"spaces": JSON.stringify(spacesList),
|
||||||
"personName": this.ownerInfo.appUserName,
|
"personName": getUserName(),
|
||||||
"personTel": this.ownerInfo.link,
|
"personTel": getUserTel(),
|
||||||
"payWay": "2",
|
"payWay": "2",
|
||||||
"state": "S",
|
"state": "S",
|
||||||
"remark": "",
|
"remark": "",
|
||||||
|
|||||||
@ -86,7 +86,7 @@
|
|||||||
import {getCurOwner} from '@/api/owner/ownerApi.js';
|
import {getCurOwner} from '@/api/owner/ownerApi.js';
|
||||||
|
|
||||||
import {payFeeWechat} from '../../api/fee/feeApi.js';
|
import {payFeeWechat} from '../../api/fee/feeApi.js';
|
||||||
import {getUserId} from '../../api/user/userApi.js';
|
import {getUserId,getUserName} from '../../api/user/userApi.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -113,9 +113,10 @@
|
|||||||
let _selectdGoods = uni.getStorageSync('/pages/reserve/reserveOrder');
|
let _selectdGoods = uni.getStorageSync('/pages/reserve/reserveOrder');
|
||||||
this.selectdGoods = _selectdGoods;
|
this.selectdGoods = _selectdGoods;
|
||||||
let _that = this;
|
let _that = this;
|
||||||
|
_that.personName = getUserName();
|
||||||
getCurOwner()
|
getCurOwner()
|
||||||
.then(_ownerInfo=>{
|
.then(_ownerInfo=>{
|
||||||
_that.personName = _ownerInfo.appUserName;
|
//_that.personName = _ownerInfo.appUserName;
|
||||||
_that.personTel = _ownerInfo.link;
|
_that.personTel = _ownerInfo.link;
|
||||||
_that.communityId = _ownerInfo.communityId;
|
_that.communityId = _ownerInfo.communityId;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user