修复bug,修改图片路径地址
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 地址选择弹窗 -->
|
||||
<uni-popup ref="addressModalRef" type="bottom" :mask-click="false" @change="onAddressModalChange">
|
||||
<uni-popup ref="addressModalRef" type="bottom" :mask-click="true" @change="onAddressModalChange">
|
||||
<view class="modal-wrap">
|
||||
<view class="modal-title">选择来访地址</view>
|
||||
<view class="address-list">
|
||||
@@ -121,13 +121,13 @@
|
||||
</uni-popup>
|
||||
|
||||
<!-- 性别选择弹窗 -->
|
||||
<uni-popup ref="genderModalRef" type="bottom" :mask-click="false" @change="onGenderModalChange">
|
||||
<uni-popup ref="genderModalRef" type="bottom" :mask-click="true" @change="onGenderModalChange">
|
||||
<view class="modal-wrap">
|
||||
<view class="gender-list">
|
||||
<view class="gender-item" :class="{ active: item === form.gender }" v-for="item in genderList"
|
||||
:key="item" @click="selectGender(item)">
|
||||
{{ item }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
@@ -333,6 +333,16 @@ const pageFixed = ref(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
// 离开时间与来访时间间隔不能少于30分钟
|
||||
const diffMinutes = leaveMoment.diff(visitMoment, 'minutes');
|
||||
if (diffMinutes < 30) {
|
||||
uni.showToast({
|
||||
title: '离开时间与来访时间间隔不能少于30分钟',
|
||||
icon: 'none'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
// 不能超过24小时
|
||||
const diffHours = leaveMoment.diff(visitMoment, 'hours', true);
|
||||
if (diffHours > 24) {
|
||||
|
||||
Reference in New Issue
Block a user