Merge branch 'new' of https://gitea.lihaink.cn/mkm/nk-shop2.0 into new
This commit is contained in:
commit
22aacdfcdd
@ -69,8 +69,10 @@
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-content" :style="{height:isOpen[0]?'0':'700rpx',padding: isOpen[0]?'0':'20rpx' } "
|
||||
<!-- :style="{height:isOpen[0]?'0':getFormHeight('#formheight')+'px',padding: isOpen[0]?'0':'20rpx' } " -->
|
||||
<view class="card-content" :style="{height:isOpen[0]?'0':domHeight[0],padding: isOpen[0]?'0':'20rpx' } "
|
||||
style="height: 0;padding: 0;">
|
||||
<view id="formheight1">
|
||||
<view class="form-tit">
|
||||
<view class="" :style="{color:SaveList[0]?'#FF5E0C':'' }">
|
||||
房子出租需求
|
||||
@ -88,8 +90,8 @@
|
||||
面积
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.house_rent_info.area" :readonly='SaveList[0]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.house_rent_info.area" :readonly='SaveList[0]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -106,8 +108,8 @@
|
||||
出租要求
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.house_rent_info.request" :readonly='SaveList[0]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.house_rent_info.request" :readonly='SaveList[0]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -124,11 +126,15 @@
|
||||
是否允许装修
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input :readonly='SaveList[0]' v-model="formData.house_rent_info.fitment" color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input :readonly='SaveList[0]' v-model="formData.house_rent_info.fitment"
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- content -->
|
||||
@ -154,8 +160,9 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-content" :style="{height:isOpen[1]?'0':'980rpx',padding: isOpen[1]?'0':'20rpx' } "
|
||||
<view class="card-content" :style="{height:isOpen[1]?'0':domHeight[1],padding: isOpen[1]?'0':'20rpx' } "
|
||||
style="height: 0;padding: 0;">
|
||||
<view id="formheight2">
|
||||
<view class="form-tit">
|
||||
<view class="">
|
||||
空闲土地出租需求
|
||||
@ -191,8 +198,8 @@
|
||||
种养要求
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.land_rent_info.request" :readonly='SaveList[1]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.land_rent_info.request" :readonly='SaveList[1]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -200,8 +207,8 @@
|
||||
租金和支付方式
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.land_rent_info.payInfo" :readonly='SaveList[1]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.land_rent_info.payInfo" :readonly='SaveList[1]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -227,8 +234,8 @@
|
||||
闲置原因
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.land_rent_info.reson" color='#7A7A7A' :readonly='SaveList[1]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.land_rent_info.reson" color='#7A7A7A'
|
||||
:readonly='SaveList[1]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -236,11 +243,14 @@
|
||||
使用年限
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.land_rent_info.ageLimit" :readonly='SaveList[1]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.land_rent_info.ageLimit" :readonly='SaveList[1]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- content -->
|
||||
@ -265,9 +275,9 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-content" :style="{height:isOpen[2]?'0':'1880rpx',padding: isOpen[2]?'0':'20rpx' } "
|
||||
<view class="card-content" :style="{height:isOpen[2]?'0':domHeight[2],padding: isOpen[2]?'0':'20rpx' } "
|
||||
style="height: 0;padding: 0;">
|
||||
|
||||
<view id='formheight3'>
|
||||
<view class="form-tit">
|
||||
<view class="">
|
||||
农副产品出售需求
|
||||
@ -303,8 +313,8 @@
|
||||
土地性质
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.product_info.quality" :readonly='SaveList[2]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.product_info.quality" :readonly='SaveList[2]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -348,8 +358,8 @@
|
||||
自己消化/市场销售
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.product_info.sellType" color='#7A7A7A' :readonly='SaveList[2]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.product_info.sellType" color='#7A7A7A'
|
||||
:readonly='SaveList[2]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -384,8 +394,8 @@
|
||||
优势
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.product_info.advantage" :readonly='SaveList[2]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.product_info.advantage" :readonly='SaveList[2]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -393,8 +403,8 @@
|
||||
产品有无品牌
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input :readonly='SaveList[2]' v-model="formData.product_info.isBrand" color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input :readonly='SaveList[2]' v-model="formData.product_info.isBrand"
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -411,8 +421,8 @@
|
||||
产品诉求
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.product_info.isDemands" color='#7A7A7A' :readonly='SaveList[2]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.product_info.isDemands" color='#7A7A7A'
|
||||
:readonly='SaveList[2]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -420,13 +430,15 @@
|
||||
急需解决的问题
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.product_info.quesition" color='#7A7A7A' :readonly='SaveList[2]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.product_info.quesition" color='#7A7A7A'
|
||||
:readonly='SaveList[2]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- content -->
|
||||
|
||||
@ -451,9 +463,9 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-content" :style="{height:isOpen[3]?'0':'770rpx',padding: isOpen[3]?'0':'20rpx' } "
|
||||
<view class="card-content" :style="{height:isOpen[3]?'0':domHeight[3],padding: isOpen[3]?'0':'20rpx' } "
|
||||
style="height: 0;padding: 0;">
|
||||
|
||||
<view id='formheight4'>
|
||||
<view class="form-tit">
|
||||
<view class="">
|
||||
空闲资产出租/出售需求
|
||||
@ -512,6 +524,10 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- content -->
|
||||
@ -537,8 +553,9 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-content" :style="{height:isOpen[4]?'0':'790rpx',padding: isOpen[4]?'0':'20rpx' } "
|
||||
<view class="card-content" :style="{height:isOpen[4]?'0':domHeight[4],padding: isOpen[4]?'0':'20rpx' } "
|
||||
style="height: 0;padding: 0;">
|
||||
<view id='formheight5'>
|
||||
<view class="form-tit">
|
||||
<view class="">
|
||||
房屋装饰建设/出售
|
||||
@ -606,6 +623,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- content -->
|
||||
@ -646,6 +666,7 @@
|
||||
showOverly: false,
|
||||
isOpen: [true, true, true, true, true],
|
||||
SaveList: [false, false, false, false, false],
|
||||
domHeight: [],
|
||||
columns: [
|
||||
['是', '否']
|
||||
],
|
||||
@ -741,6 +762,12 @@
|
||||
return this.SaveList.filter(item => item === true).length;
|
||||
},
|
||||
},
|
||||
onReady() {
|
||||
for (let i = 1; i < 6; i++) {
|
||||
this.domHeight[i - 1] = this.getFormHeight(`#formheight` + i)
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
let user = this.$store.state.app.userInfo;
|
||||
if (typeof user == 'string') user = JSON.parse(user);
|
||||
@ -781,6 +808,18 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
getFormHeight(dom) {
|
||||
let height
|
||||
const query = uni.createSelectorQuery().in(this);
|
||||
query
|
||||
.select(dom)
|
||||
.boundingClientRect((data) => {
|
||||
height = (data.height + 20)
|
||||
})
|
||||
.exec()
|
||||
return height + 'px'
|
||||
|
||||
},
|
||||
back() {
|
||||
uni.navigateBack();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user