修改
This commit is contained in:
parent
43747af11c
commit
54bc83080d
@ -1411,6 +1411,7 @@ const publicJump = path => router.push(path)
|
||||
flex-direction: column;
|
||||
|
||||
.same-brand-title {
|
||||
user-select: none;
|
||||
margin-bottom: 20px;
|
||||
font-size: 18px;
|
||||
color: #000000;
|
||||
|
@ -66,8 +66,9 @@
|
||||
<div class="modeTwo-item flexcenter" :class="{ 'pitch': info['leasetime'] == 0 }" ref="leasetime"
|
||||
@click="setValue('leasetime', 0)">随时</div>
|
||||
<div class="modeTwo-item flexacenter" :class="{ 'pitch': info['leasetime'] }" ref="leasetime">
|
||||
<el-date-picker prefix-icon="" clear-icon="" v-model="info.leasetime" type="date"
|
||||
placeholder="选择日期" :locale="locale"></el-date-picker>
|
||||
<el-date-picker prefix-icon="" clear-icon="" :disabled-date="disabledDate"
|
||||
v-model="info.leasetime" type="date" placeholder="选择日期" :locale="locale"></el-date-picker>
|
||||
<!-- {{ locale }} -->
|
||||
<img class="arrows-icon rotate0" src="@/assets/img/edit/arrows.svg" />
|
||||
<img class="arrows-icon-pitch rotate0" src="@/assets/img/edit/blue-arrow.svg" />
|
||||
</div>
|
||||
@ -676,7 +677,7 @@ export default {
|
||||
name: 'ZufangEdit',
|
||||
data() {
|
||||
return {
|
||||
locale: zhCn,
|
||||
locale: zhCn.el.datepicker,
|
||||
value: '',
|
||||
user: {},
|
||||
userIntermediary: 0, // 用户是否是 认证中介,需要全局获取
|
||||
@ -1375,6 +1376,19 @@ export default {
|
||||
this.$router.push(`/detail?id=${this.uniqid}`)
|
||||
},
|
||||
|
||||
// 起租日期的不选中判断
|
||||
disabledDate(date) {
|
||||
var currentDate = new Date();
|
||||
currentDate.setDate(currentDate.getDate() - 1);
|
||||
|
||||
// 获取两年后的日期
|
||||
var twoYearsLater = new Date(currentDate.getFullYear() + 2, currentDate.getMonth(), currentDate.getDate());
|
||||
// 比较给定的日期是否在两年后之后
|
||||
if (date > twoYearsLater) return true; // 返回 true 表示日期被禁用
|
||||
if (date < currentDate) return true; // 返回 true 表示日期被禁用
|
||||
|
||||
return false; // 返回 false 表示日期未被禁用
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
|
@ -14,6 +14,7 @@
|
||||
</div>
|
||||
|
||||
<div class="bottom-tps" v-if="list.length != 0 && page == 0">- 到底了 -</div>
|
||||
<div class="bottom-tps" v-if="page != 0">- 下拉加载更多 -</div>
|
||||
|
||||
<have-questions></have-questions>
|
||||
|
||||
|
@ -214,6 +214,7 @@ const getPublishData = () => {
|
||||
}).then(res => {
|
||||
if (res.code != 200) return
|
||||
let data = res.data
|
||||
// data.data[0]['verifiedstatus'] = 1
|
||||
stat.value = data['stat']
|
||||
publishData.value['page'] = data['page'] * data['limit'] >= data['count'] ? 0 : data['page'] + 1
|
||||
publishData.value['list'] = publishData.value['list'].concat(data['data'] || [])
|
||||
|
Loading…
x
Reference in New Issue
Block a user