优化手机端bug

This commit is contained in:
wuxw 2023-12-13 21:16:23 +08:00
parent 7fb026d120
commit a9fc54e79a
2 changed files with 27 additions and 116 deletions

View File

@ -7,15 +7,15 @@
</view> --> </view> -->
<view class="cu-form-group"> <view class="cu-form-group">
<view class="title">名称</view> <view class="title">名称</view>
{{ownerInfo.appUserName}} {{userName}}
</view> </view>
<view class="cu-form-group"> <!-- <view class="cu-form-group">
<view class="title">身份证</view> <view class="title">身份证</view>
{{ownerInfo.idCard}} {{ownerInfo.idCard}}
</view> </view> -->
<view class="cu-form-group"> <view class="cu-form-group">
<view class="title">联系方式</view> <view class="title">联系方式</view>
{{ownerInfo.link}} {{userTel}}
</view> </view>
<view class="block__title">房屋信息</view> <view class="block__title">房屋信息</view>
@ -114,6 +114,8 @@
import {compareDate,addDay,date2String} from '../../lib/java110/utils/DateUtil.js' import {compareDate,addDay,date2String} from '../../lib/java110/utils/DateUtil.js'
import {queryApplyRoomDiscountType,saveApplyRoomDiscount,listRoomFee} from '../../api/applyRoom/applyRoomApi.js' import {queryApplyRoomDiscountType,saveApplyRoomDiscount,listRoomFee} from '../../api/applyRoom/applyRoomApi.js'
import uploadImageAsync from "../../components/vc-upload-async/vc-upload-async.vue"; import uploadImageAsync from "../../components/vc-upload-async/vc-upload-async.vue";
import {getUserId,getUserName,getUserTel} from '../../api/user/userApi.js';
import {getCommunityId} from '@/api/community/communityApi.js'
export default { export default {
data() { data() {
return { return {
@ -133,6 +135,8 @@
feeTypeCd: '', feeTypeCd: '',
photos: [], photos: [],
communityId: '', communityId: '',
userName:'',
userTel:'',
uploadImage: { uploadImage: {
maxPhotoNum: 4, maxPhotoNum: 4,
imgTitle: '图片上传', imgTitle: '图片上传',
@ -157,38 +161,10 @@
_that.loadApplyRoomDiscountType(); _that.loadApplyRoomDiscountType();
_that.loadOwenrInfo(); _that.loadOwenrInfo();
_that.loadRoomFee(); _that.loadRoomFee();
this.userName = getUserName();
this.userTel = getUserTel();
}, },
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
@ -314,9 +290,9 @@
endTime: this.bindEndDate, endTime: this.bindEndDate,
roomName: this.roomDetail.floorNum + '-' + this.roomDetail.unitNum + '-' + this.roomDetail.roomNum, roomName: this.roomDetail.floorNum + '-' + this.roomDetail.unitNum + '-' + this.roomDetail.roomNum,
roomId: this.roomDetail.roomId, roomId: this.roomDetail.roomId,
communityId: this.ownerInfo.communityId, communityId: getCommunityId(),
createUserName: this.ownerInfo.appUserName, createUserName: this.userName,
createUserTel: this.ownerInfo.link, createUserTel: this.userTel,
createRemark: this.createRemark, createRemark: this.createRemark,
ardId: '', ardId: '',
applyType: this.applyType, applyType: this.applyType,

View File

@ -3,15 +3,11 @@
<view class="block__title">业主信息</view> <view class="block__title">业主信息</view>
<view class="cu-form-group"> <view class="cu-form-group">
<view class="title">名称</view> <view class="title">名称</view>
{{ownerInfo.appUserName}} {{userName}}
</view>
<view class="cu-form-group">
<view class="title">身份证</view>
{{ownerInfo.idCard}}
</view> </view>
<view class="cu-form-group"> <view class="cu-form-group">
<view class="title">联系方式</view> <view class="title">联系方式</view>
{{ownerInfo.link}} {{userTel}}
</view> </view>
<view class="block__title">房屋信息</view> <view class="block__title">房屋信息</view>
@ -88,7 +84,9 @@
// const factory = context.factory; // const factory = context.factory;
import {compareDate} from '../../lib/java110/utils/DateUtil.js' import {compareDate} from '../../lib/java110/utils/DateUtil.js'
import {checkPhoneNumber} from '../../lib/java110/utils/StringUtil.js' import {checkPhoneNumber} from '../../lib/java110/utils/StringUtil.js'
import {saveRoomRenovation} from '../../api/roomRenovation/roomRenovationApi.js' import {saveRoomRenovation} from '../../api/roomRenovation/roomRenovationApi.js';
import {getUserId,getUserName,getUserTel} from '../../api/user/userApi.js';
import {getCommunityId} from '../../api/community/communityApi.js'
export default { export default {
data() { data() {
return { return {
@ -104,11 +102,11 @@
personMainTel: '', personMainTel: '',
// admin: {}, // admin: {},
property: {}, property: {},
userName:'',
userTel:''
}; };
}, },
components: {},
props: {},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
@ -118,37 +116,10 @@
context.onLoad(options); context.onLoad(options);
_that.roomDetail = JSON.parse(options.room); _that.roomDetail = JSON.parse(options.room);
_that.loadOwenrInfo(); _that.loadOwenrInfo();
this.userName = getUserName();
this.userTel = getUserTel()
}, },
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function() {},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function() {},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
@ -157,53 +128,17 @@
methods: { methods: {
loadOwenrInfo: function() { loadOwenrInfo: function() {
let _that = this; let _that = this;
context.getOwner(function(_ownerInfo) { context.getOwner(function(_ownerInfo) {
if (_ownerInfo) { if (_ownerInfo) {
_that.ownerFlag = true; _that.ownerFlag = true;
_that.ownerInfo = _ownerInfo; //_that.ownerInfo = _ownerInfo;
_that._loadProperty(); _that._loadProperty();
// _that._loadAdmin();
} else { } else {
_that.ownerFlag = false; _that.ownerFlag = false;
} }
}); });
}, },
// _loadAdmin:function(){
// let _that = this;
// let _objData = {
// page: 1,
// row: 1,
// communityId: this.ownerInfo.communityId,
// memberTypeCd: '390001200000'
// };
// context.request({
// url: constant.url.listStore,
// header: context.getHeaders(),
// method: "GET",
// data: _objData,
// //
// success: function(res) {
// if (res.statusCode == 200) {
// _that.admin = res.data.stores[0];
// return;
// }
// uni.showToast({
// title: "",
// icon: 'none',
// duration: 2000
// });
// },
// fail: function(e) {
// wx.showToast({
// title: "",
// icon: 'none',
// duration: 2000
// });
// }
// });
// },
_loadProperty: function() { _loadProperty: function() {
let _that = this; let _that = this;
context.getProperty() context.getProperty()
@ -252,9 +187,9 @@
endTime: this.endTime, endTime: this.endTime,
roomName: this.roomDetail.floorNum + '-' + this.roomDetail.unitNum + '-' + this.roomDetail.roomNum, roomName: this.roomDetail.floorNum + '-' + this.roomDetail.unitNum + '-' + this.roomDetail.roomNum,
roomId: this.roomDetail.roomId, roomId: this.roomDetail.roomId,
communityId: this.ownerInfo.communityId, communityId: getCommunityId(),
personName: this.ownerInfo.appUserName, personName: this.userName,
personTel: this.ownerInfo.link, personTel: this.userTel,
remark: this.remark, remark: this.remark,
rId: '', rId: '',
userId: '', userId: '',