优化细节问题

This commit is contained in:
905166056 2021-07-19 08:08:37 +08:00
parent 556b9c9dd3
commit 312654fbd9
10 changed files with 50 additions and 16 deletions

View File

@ -73,7 +73,9 @@
let _objData = {
page: 1,
row: 15,
communityId: this.communityId
communityId: this.communityId,
defaultShow: 'Y',
clientType: 'H5'
};
loadActivites(_objData)
.then((_acts) => {

View File

@ -183,9 +183,10 @@
});
},
deleteImage: function(e) {
console.log(e);
let imageArr = this.$data.imgList;
let photoArr = this.$data.photos;
imageArr.splice(e, 1);
photoArr.splice(e, 1);
},
_changeComplaint:function(e){
this.typeName = this.columns[e.detail.value];

View File

@ -15,7 +15,7 @@
</view>
<view class="cu-form-group">
<view class="title">年龄</view>
<input v-model="age" placeholder="请输入年龄"></input>
<input type="number" v-model="age" placeholder="请输入年龄"></input>
</view>
<view class="cu-form-group">
<view class="title">身份证</view>

View File

@ -35,7 +35,7 @@
</view>
<view class="button_up_blank"></view>
<view class=" bg-white border flex justify-end" style="position: fixed;width: 100%;bottom: 0;">
<view v-if="ownerTypeCd == '1001'" class="bg-white border flex justify-end" style="position: fixed;width: 100%;bottom: 0;">
<view class="action text-orange margin-right line-height">
</view>
@ -80,7 +80,8 @@
loading: false,
communityId: '',
ownerId: '',
curOwnerMember:{}
curOwnerMember:{},
ownerTypeCd: '',
};
},
components: {
@ -115,9 +116,9 @@
let that = this;
that.owners = [];
context.getOwner(function(_owner) {
console.log(_owner.communityId, 99999999);
that.communityId = _owner.communityId;
that.ownerId = _owner.memberId;
that.ownerTypeCd = _owner.ownerTypeCd;
that.getTable(1);
});
},

View File

@ -221,7 +221,9 @@
page: this.page,
row: this.row,
communityId: this.communityId,
typeCd: this.curTypeCd
typeCd: this.curTypeCd,
defaultShow: 'Y',
clientType: 'H5'
};
//
loadActivites(_objData)

View File

@ -55,7 +55,8 @@
communityId: that.communityId,
page: 1,
row: 10,
noticeTypeCd:1000
noticeTypeCd:1000,
clientType: 'H5'
},
success: function(res) {
// TODO

View File

@ -2,15 +2,15 @@
<view>
<view>
<view class="header_fixed">
<scroll-view v-if="parkingSpaces.length <5 && parkingSpaces.length >1" class="bg-white nav">
<!-- <scroll-view v-if="parkingSpaces.length <5 && parkingSpaces.length >1" class="bg-white nav">
<view class="flex text-center">
<view class="cu-item flex-sub" :class="item.psId==curParkingSpace.psId?'text-green cur':''" v-for="(item,index) in parkingSpaces"
:key="index" @tap="switchParkingSpace(item)" :data-id="index">
{{item.carNum}}({{item.num}}车位)
</view>
</view>
</scroll-view>
<scroll-view v-if="parkingSpaces.length >4" scroll-x class="bg-white nav" scroll-with-animation scroll-left="true">
</scroll-view> -->
<scroll-view v-if="parkingSpaces.length >1" scroll-x class="bg-white nav" scroll-with-animation scroll-left="true">
<view class="cu-item flex-sub" :class="item.psId==curParkingSpace.psId?'text-green cur':''" v-for="(item,index) in parkingSpaces"
:key="index" @tap="switchParkingSpace(item)" :data-id="index">
{{item.carNum}}({{item.num}}车位)
@ -19,7 +19,7 @@
</view>
<view v-if="parkingSpaces.length == 1" class="block__title">{{parkingSpaces[0].carNum}}({{parkingSpaces[0].num}}车位)</view>
<view v-if="parkingSpaces.length > 1" class="margin-header-top"></view>
<view v-if="noData == false" >
<view v-if="noData == false" class="margin-bottom-100">
<view v-for="(item,index) in moreParkingSpaces" :key="index" class="bg-white margin-bottom margin-right-xs radius margin-left-xs padding-top padding-left padding-right">
<view class="flex padding-bottom-xs solid-bottom justify-between">
<view>{{item.feeName}}</view>
@ -237,6 +237,21 @@
.margin-header-top {
height: 100upx;
}
.line-height {
line-height: 100rpx;
}
.cu-btn.lgplus {
padding: 0 20px;
font-size: 18px;
height: 100rpx;
}
.cu-btn.sharp {
border-radius: 0rpx;
}
.margin-bottom-100{
margin-bottom: 100rpx;
}
/* #ifdef APP-PLUS || MP-WEIXIN */
.header_fixed {

View File

@ -64,7 +64,7 @@
})
.then(_data=>{
_data.data.forEach(function(item, index) {
item.endTime = item.endTime.replaceAll("-","/");
item.endTime = item.endTime.replace("-","/");
let _endTime = new Date(item.endTime);
if(_endTime.getTime() > new Date().getTime()){
item.state = '1';

View File

@ -112,16 +112,28 @@
sendMsgCode: function() {
var _that = this;
let obj = {
tel: this.link
tel: this.link,
communityId: this.communityId,
appUserName: this.appUserName,
captchaType: 'ownerBinding'
};
let msg = "";
if (obj.tel == '') {
msg = '请输入手机号';
} else if (!obj.communityId) {
msg = "请填写小区名称";
} else if (!obj.appUserName) {
msg = "请填写业主名称";
}
if (msg != "") {
wx.showToast({
title: '请输入手机号',
title: msg,
icon: 'none',
duration: 2000
});
return;
}
console.log(obj);
uni.showLoading({
title: '加载中',
mask: true

View File

@ -320,7 +320,7 @@
} else if (obj.bindTime == "请选择") {
msg = "请选择预约时间";
} else if (obj.context == "") {
msg = "请填写投诉内容";
msg = "请填写报修内容";
} else if (obj.repairObjId == '') {
msg = "请选择报修位置";
}