Merge branch 'new' of https://gitea.lihaink.cn/mkm/nk-shop2.0 into new
This commit is contained in:
commit
eae451bf17
@ -56,20 +56,17 @@
|
||||
<view class="" :style="{color:SaveList[0]?'#FF5E0C':'' }">
|
||||
房子出租需求
|
||||
</view>
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/52556202401271437309444.png" width="36rpx"
|
||||
height="36rpx" style="margin-left: 5rpx;transform: translateY(2rpx);" @click='showFn(0)' />
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/52556202401271437309444.png"
|
||||
width="36rpx" height="36rpx" style="margin-left: 5rpx;transform: translateY(2rpx);"
|
||||
@click='showFn(0)' />
|
||||
</view>
|
||||
<view class="" style="display: flex;align-items: center;color: #7A7A7A;" @click='open(0)'>
|
||||
展开
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/bceaf202401271439428345.png" width="24rpx"
|
||||
height="24rpx" class='icon' :style=" {transform:isOpen[0]? 'rotate(180deg)' :'rotate(0)'} " />
|
||||
</view>
|
||||
<view class="finsh" v-if='!isOpen[0] && SaveList[0]'>
|
||||
<view class="finsh-top" />
|
||||
<view class="finsh-cont">
|
||||
已完成
|
||||
</view>
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/bceaf202401271439428345.png"
|
||||
width="24rpx" height="24rpx" class='icon'
|
||||
:style=" {transform:isOpen[0]? 'rotate(180deg)' :'rotate(0)'} " />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-content" :style="{height:isOpen[0]?'0':'620rpx',padding: isOpen[0]?'0':'20rpx' } "
|
||||
@ -78,9 +75,12 @@
|
||||
<view class="" :style="{color:SaveList[0]?'#FF5E0C':'' }">
|
||||
房子出租需求
|
||||
</view>
|
||||
<view class="submit" v-if='!SaveList[0]' @click="sava(0)">
|
||||
<view class="submit" v-if='!SaveList[0]' @click="sava(0,'house_rent_info')">
|
||||
保存
|
||||
</view>
|
||||
<view class="edit-btn" v-if='SaveList[0]' @click="edit(0)">
|
||||
编辑
|
||||
</view>
|
||||
</view>
|
||||
<view class="form">
|
||||
<view class="item">
|
||||
@ -97,8 +97,8 @@
|
||||
出租年限
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.house_rent_info.ageLimit" :readonly='SaveList[0]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.house_rent_info.ageLimit" :readonly='SaveList[0]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -115,16 +115,17 @@
|
||||
主题结构是否完整
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.house_rent_info.isFinish" :readonly='SaveList[0]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.house_rent_info.isFinish" :readonly='SaveList[0]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="lable">
|
||||
是否允许装修
|
||||
</view>
|
||||
<view class="value" :readonly='SaveList[0]'>
|
||||
<u--input readonly v-model="formData.house_rent_info.fitment" color='#7A7A7A' border="none"></u--input>
|
||||
<view class="value">
|
||||
<u--input :readonly='SaveList[0]' v-model="formData.house_rent_info.fitment" color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -139,20 +140,17 @@
|
||||
<view class="" :style="{color:SaveList[1]?'#FF5E0C':'' }">
|
||||
空闲土地出租需求
|
||||
</view>
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/52556202401271437309444.png" width="36rpx"
|
||||
height="36rpx" style="margin-left: 5rpx;transform: translateY(2rpx);" @click='showFn(1)' />
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/52556202401271437309444.png"
|
||||
width="36rpx" height="36rpx" style="margin-left: 5rpx;transform: translateY(2rpx);"
|
||||
@click='showFn(1)' />
|
||||
</view>
|
||||
<view class="" style="display: flex;align-items: center;color: #7A7A7A;" @click='open(1)'>
|
||||
展开
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/bceaf202401271439428345.png" width="24rpx"
|
||||
height="24rpx" class='icon' :style=" {transform:isOpen[1]? 'rotate(180deg)' :'rotate(0)'} " />
|
||||
</view>
|
||||
<view class="finsh" v-if='!isOpen[1] && SaveList[1]'>
|
||||
<view class="finsh-top" />
|
||||
<view class="finsh-cont">
|
||||
已完成
|
||||
</view>
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/bceaf202401271439428345.png"
|
||||
width="24rpx" height="24rpx" class='icon'
|
||||
:style=" {transform:isOpen[1]? 'rotate(180deg)' :'rotate(0)'} " />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -162,9 +160,12 @@
|
||||
<view class="">
|
||||
空闲土地出租需求
|
||||
</view>
|
||||
<view class="submit" v-if='!SaveList[1]' @click="sava(1)">
|
||||
<view class="submit" v-if='!SaveList[1]' @click="sava(1,'land_rent_info')">
|
||||
保存
|
||||
</view>
|
||||
<view class="submit" v-if='SaveList[1]' @click="edit(1)">
|
||||
编辑
|
||||
</view>
|
||||
</view>
|
||||
<view class="form">
|
||||
<view class="item">
|
||||
@ -172,8 +173,8 @@
|
||||
是否可以种养
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.land_rent_info.isBreeding" :readonly='SaveList[1]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.land_rent_info.isBreeding" :readonly='SaveList[1]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -208,8 +209,8 @@
|
||||
土地优势
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.land_rent_info.advantage" :readonly='SaveList[1]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.land_rent_info.advantage" :readonly='SaveList[1]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -217,8 +218,8 @@
|
||||
土地缺点
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.land_rent_info.shortcoming" color='#7A7A7A' :readonly='SaveList[1]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.land_rent_info.shortcoming" color='#7A7A7A'
|
||||
:readonly='SaveList[1]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -250,25 +251,19 @@
|
||||
<view class="" :style="{color:SaveList[2]?'#FF5E0C':'' }">
|
||||
农副产品出售需求
|
||||
</view>
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/52556202401271437309444.png" width="36rpx"
|
||||
height="36rpx" style="margin-left: 5rpx;transform: translateY(2rpx);" @click='showFn(2)' />
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/52556202401271437309444.png"
|
||||
width="36rpx" height="36rpx" style="margin-left: 5rpx;transform: translateY(2rpx);"
|
||||
@click='showFn(2)' />
|
||||
</view>
|
||||
<view class="" style="display: flex;align-items: center;color: #7A7A7A;" @click='open(2)'>
|
||||
展开
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/bceaf202401271439428345.png" width="24rpx"
|
||||
height="24rpx" class='icon' :style=" {transform:isOpen[2]? 'rotate(180deg)' :'rotate(0)'} " />
|
||||
</view>
|
||||
<view class="finsh" v-if='!isOpen[2] && SaveList[2]'>
|
||||
<view class="finsh-top">
|
||||
|
||||
</view>
|
||||
<view class="finsh-cont">
|
||||
已完成
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/bceaf202401271439428345.png"
|
||||
width="24rpx" height="24rpx" class='icon'
|
||||
:style=" {transform:isOpen[2]? 'rotate(180deg)' :'rotate(0)'} " />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-content" :style="{height:isOpen[2]?'0':'1620rpx',padding: isOpen[2]?'0':'20rpx' } "
|
||||
style="height: 0;padding: 0;">
|
||||
@ -277,9 +272,12 @@
|
||||
<view class="">
|
||||
农副产品出售需求
|
||||
</view>
|
||||
<view class="submit" v-if='!SaveList[2]' @click="sava(2)">
|
||||
<view class="submit" v-if='!SaveList[2]' @click="sava(2,'product_info')">
|
||||
保存
|
||||
</view>
|
||||
<view class="submit" v-if='SaveList[2]' @click="edit(2)">
|
||||
编辑
|
||||
</view>
|
||||
</view>
|
||||
<view class="form">
|
||||
<view class="item">
|
||||
@ -323,8 +321,8 @@
|
||||
成熟周期
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.product_info.maturationCycle" :readonly='SaveList[2]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.product_info.maturationCycle" :readonly='SaveList[2]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -332,8 +330,8 @@
|
||||
最近成熟时间
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.product_info.maturationTime" :readonly='SaveList[2]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.product_info.maturationTime" :readonly='SaveList[2]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -359,8 +357,8 @@
|
||||
销售方式
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.product_info.sellMethods" :readonly='SaveList[2]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.product_info.sellMethods" :readonly='SaveList[2]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -377,8 +375,8 @@
|
||||
产品名称
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.product_info.productName" :readonly='SaveList[2]' color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.product_info.productName" :readonly='SaveList[2]'
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -404,8 +402,8 @@
|
||||
是否进行粗加工
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input :readonly='SaveList[2]' v-model="formData.product_info.isProcessing" color='#7A7A7A'
|
||||
border="none"></u--input>
|
||||
<u--input :readonly='SaveList[2]' v-model="formData.product_info.isProcessing"
|
||||
color='#7A7A7A' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -439,25 +437,19 @@
|
||||
<view class="" :style="{color:SaveList[3]?'#FF5E0C':'' }">
|
||||
空闲资产出租/出售需求
|
||||
</view>
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/52556202401271437309444.png" width="36rpx"
|
||||
height="36rpx" style="margin-left: 5rpx;transform: translateY(2rpx);" @click='showFn(3)' />
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/52556202401271437309444.png"
|
||||
width="36rpx" height="36rpx" style="margin-left: 5rpx;transform: translateY(2rpx);"
|
||||
@click='showFn(3)' />
|
||||
</view>
|
||||
<view class="" style="display: flex;align-items: center;color: #7A7A7A;" @click='open(3)'>
|
||||
展开
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/bceaf202401271439428345.png" width="24rpx"
|
||||
height="24rpx" class='icon' :style=" {transform:isOpen[3]? 'rotate(180deg)' :'rotate(0)'} " />
|
||||
</view>
|
||||
<view class="finsh" v-if='!isOpen[3] && SaveList[3]'>
|
||||
<view class="finsh-top">
|
||||
|
||||
</view>
|
||||
<view class="finsh-cont">
|
||||
已完成
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/bceaf202401271439428345.png"
|
||||
width="24rpx" height="24rpx" class='icon'
|
||||
:style=" {transform:isOpen[3]? 'rotate(180deg)' :'rotate(0)'} " />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-content" :style="{height:isOpen[3]?'0':'690rpx',padding: isOpen[3]?'0':'20rpx' } "
|
||||
style="height: 0;padding: 0;">
|
||||
@ -466,9 +458,12 @@
|
||||
<view class="">
|
||||
空闲资产出租/出售需求
|
||||
</view>
|
||||
<view class="submit" v-if='!SaveList[3]' @click="sava(3)">
|
||||
<view class="submit" v-if='!SaveList[3]' @click="sava(3,'idle_asset_rent_info')">
|
||||
保存
|
||||
</view>
|
||||
<view class="submit" v-if='SaveList[3]' @click="edit(3)">
|
||||
编辑
|
||||
</view>
|
||||
</view>
|
||||
<view class="form">
|
||||
<view class="item">
|
||||
@ -476,8 +471,8 @@
|
||||
资产名称
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.idle_asset_rent_info.name" color='#7A7A7A' :readonly='SaveList[3]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.idle_asset_rent_info.area" color='#7A7A7A'
|
||||
:readonly='SaveList[3]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -485,8 +480,8 @@
|
||||
资产优势
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.idle_asset_rent_info.advantage" color='#7A7A7A' :readonly='SaveList[3]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.idle_asset_rent_info.advantage" color='#7A7A7A'
|
||||
:readonly='SaveList[3]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -494,8 +489,8 @@
|
||||
数量
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.idle_asset_rent_info.num" color='#7A7A7A' :readonly='SaveList[3]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.idle_asset_rent_info.num" color='#7A7A7A'
|
||||
:readonly='SaveList[3]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -503,8 +498,8 @@
|
||||
增收方式 <text style="font-size: 24rpx;">(出租、出售、置换、捐赠) </text>
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.idle_asset_rent_info.type" color='#7A7A7A' :readonly='SaveList[3]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.idle_asset_rent_info.type" color='#7A7A7A'
|
||||
:readonly='SaveList[3]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -512,8 +507,8 @@
|
||||
其他可变现
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.idle_asset_rent_info.other" color='#7A7A7A' :readonly='SaveList[3]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.idle_asset_rent_info.other" color='#7A7A7A'
|
||||
:readonly='SaveList[3]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -528,36 +523,32 @@
|
||||
<view class="" :style="{color:SaveList[4]?'#FF5E0C':'' }">
|
||||
房屋装饰建设
|
||||
</view>
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/52556202401271437309444.png" width="36rpx"
|
||||
height="36rpx" style="margin-left: 5rpx;transform: translateY(2rpx);" @click='showFn(4)' />
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/52556202401271437309444.png"
|
||||
width="36rpx" height="36rpx" style="margin-left: 5rpx;transform: translateY(2rpx);"
|
||||
@click='showFn(4)' />
|
||||
</view>
|
||||
<view class="" style="display: flex;align-items: center;color: #7A7A7A;" @click='open(4)'>
|
||||
展开
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/bceaf202401271439428345.png" width="24rpx"
|
||||
height="24rpx" class='icon' :style=" {transform:isOpen[4]? 'rotate(180deg)' :'rotate(0)'} " />
|
||||
</view>
|
||||
<view class="finsh" v-if='!isOpen[4] && SaveList[4]'>
|
||||
<view class="finsh-top">
|
||||
|
||||
</view>
|
||||
<view class="finsh-cont">
|
||||
已完成
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/bceaf202401271439428345.png"
|
||||
width="24rpx" height="24rpx" class='icon'
|
||||
:style=" {transform:isOpen[4]? 'rotate(180deg)' :'rotate(0)'} " />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="card-content" :style="{height:isOpen[4]?'0':'700rpx',padding: isOpen[4]?'0':'20rpx' } "
|
||||
style="height: 0;padding: 0;">
|
||||
|
||||
<view class="form-tit">
|
||||
<view class="">
|
||||
房屋装饰建设/出售
|
||||
</view>
|
||||
<view class="submit" v-if='!SaveList[4]' @click="sava(4)">
|
||||
<view class="submit" v-if='!SaveList[4]' @click="sava(4,'house_decoration_construction')">
|
||||
保存
|
||||
</view>
|
||||
<view class="submit" v-if='SaveList[4]' @click="edit(4)">
|
||||
编辑
|
||||
</view>
|
||||
</view>
|
||||
<view class="form">
|
||||
<view class="item">
|
||||
@ -565,8 +556,8 @@
|
||||
施工地点
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.house_decoration_construction.place" color='#7A7A7A' :readonly='SaveList[4]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.house_decoration_construction.area" color='#7A7A7A'
|
||||
:readonly='SaveList[4]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -592,8 +583,8 @@
|
||||
事主要求
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.house_decoration_construction.ask" color='#7A7A7A' :readonly='SaveList[4]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.house_decoration_construction.ask" color='#7A7A7A'
|
||||
:readonly='SaveList[4]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -601,8 +592,8 @@
|
||||
房屋建设时长
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.house_decoration_construction.time" color='#7A7A7A' :readonly='SaveList[4]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.house_decoration_construction.time" color='#7A7A7A'
|
||||
:readonly='SaveList[4]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
@ -610,8 +601,8 @@
|
||||
设计服务
|
||||
</view>
|
||||
<view class="value">
|
||||
<u--input v-model="formData.house_decoration_construction.serve" color='#7A7A7A' :readonly='SaveList[4]'
|
||||
border="none"></u--input>
|
||||
<u--input v-model="formData.house_decoration_construction.serve" color='#7A7A7A'
|
||||
:readonly='SaveList[4]' border="none"></u--input>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -633,19 +624,20 @@
|
||||
{{showText.content}}
|
||||
</view>
|
||||
<view class="off">
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/496fd202401271436368155.png" width="50rpx"
|
||||
height="50rpx" />
|
||||
<u--image src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/496fd202401271436368155.png"
|
||||
width="50rpx" height="50rpx" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-overlay>
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { HTTP_REQUEST_URL_SIX } from "@/config/app.js"
|
||||
import {
|
||||
HTTP_REQUEST_URL_SIX
|
||||
} from "@/config/app.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -657,17 +649,64 @@
|
||||
columns: [
|
||||
['是', '否']
|
||||
],
|
||||
mode: 'add',
|
||||
formData: {
|
||||
shop_user_id: 1, //用户id
|
||||
shop_user_id: 1,
|
||||
name: "",
|
||||
contact: "",
|
||||
family_count: "",
|
||||
address: "",
|
||||
house_rent_info: {},
|
||||
land_rent_info: {},
|
||||
product_info: {},
|
||||
idle_asset_rent_info: {},
|
||||
house_decoration_construction: {}
|
||||
house_rent_info: {
|
||||
area: "",
|
||||
ageLimit: "",
|
||||
request: "",
|
||||
isFinish: "",
|
||||
fitment: ""
|
||||
},
|
||||
land_rent_info: {
|
||||
isBreeding: "",
|
||||
area: "",
|
||||
request: "",
|
||||
payInfo: "",
|
||||
advantage: "",
|
||||
shortcoming: "",
|
||||
reson: "",
|
||||
ageLimit: "",
|
||||
},
|
||||
product_info: {
|
||||
type: "",
|
||||
area: "",
|
||||
quality: "",
|
||||
manner: "",
|
||||
maturationCycle: "",
|
||||
maturationTime: "",
|
||||
yield: "",
|
||||
sellType: "",
|
||||
sellMethods: "",
|
||||
Sales: "",
|
||||
productName: "",
|
||||
advantage: "",
|
||||
isBrand: "",
|
||||
isProcessing: "",
|
||||
isDemands: "",
|
||||
quesition: ""
|
||||
},
|
||||
idle_asset_rent_info: {
|
||||
area: "",
|
||||
advantage: "",
|
||||
num: "",
|
||||
type: "",
|
||||
other: ""
|
||||
|
||||
},
|
||||
house_decoration_construction: {
|
||||
area: "",
|
||||
startTime: "",
|
||||
standard: "",
|
||||
ask: "",
|
||||
time: "",
|
||||
serve: ""
|
||||
}
|
||||
},
|
||||
showText: {
|
||||
title: "",
|
||||
@ -706,6 +745,40 @@
|
||||
let user = this.$store.state.app.userInfo;
|
||||
if (typeof user == 'string') user = JSON.parse(user);
|
||||
this.formData.shop_user_id = user.uid;
|
||||
uni.request({
|
||||
url: HTTP_REQUEST_URL_SIX + '/api/index/getVillagerInfo', //仅为示例,并非真实接口地址。
|
||||
method: 'GET',
|
||||
data: {
|
||||
shop_user_id: user.uid
|
||||
},
|
||||
success: (res) => {
|
||||
if (res.data.data.length != 0) {
|
||||
this.mode = 'edit'
|
||||
this.formData = res.data.data
|
||||
this.formData.house_rent_info = JSON.parse(this.formData.house_rent_info)
|
||||
this.formData.land_rent_info = JSON.parse(this.formData.land_rent_info)
|
||||
this.formData.product_info = JSON.parse(this.formData.product_info)
|
||||
this.formData.idle_asset_rent_info = JSON.parse(this.formData.idle_asset_rent_info)
|
||||
this.formData.house_decoration_construction = JSON.parse(this.formData
|
||||
.house_decoration_construction)
|
||||
if (this.formData.house_rent_info.area) this.SaveList.splice(0, 1, true);
|
||||
if (this.formData.land_rent_info.area) this.SaveList.splice(1, 1, true);
|
||||
if (this.formData.product_info.area) this.SaveList.splice(2, 1, true);
|
||||
if (this.formData.idle_asset_rent_info.area) this.SaveList.splice(3, 1, true);
|
||||
if (this.formData.house_decoration_construction.area) this.SaveList.splice(4, 1, true);
|
||||
console.log(this.SaveList, "salist")
|
||||
console.log(this.saveNum, "num")
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: err.msg || err.message || err
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
back() {
|
||||
@ -729,13 +802,10 @@
|
||||
|
||||
async submit() {
|
||||
if (this.saveNum < 2) return
|
||||
this.formData.land_rent_info = JSON.stringify(this.formData.land_rent_info)
|
||||
this.formData.product_info = JSON.stringify(this.formData.product_info)
|
||||
this.formData.idle_asset_rent_info = JSON.stringify(this.formData.idle_asset_rent_info)
|
||||
this.formData.house_decoration_construction = JSON.stringify(this.formData
|
||||
.house_decoration_construction)
|
||||
let that = this
|
||||
uni.request({
|
||||
url: HTTP_REQUEST_URL_SIX + '/api/index/addVillagerInfo', //仅为示例,并非真实接口地址。
|
||||
url: HTTP_REQUEST_URL_SIX + (that.mode == 'add' ? '/api/index/addVillagerInfo' :
|
||||
'/api/index/editVillagerInfo'),
|
||||
method: 'POST',
|
||||
data: {
|
||||
...this.formData
|
||||
@ -762,10 +832,19 @@
|
||||
});
|
||||
},
|
||||
|
||||
sava(index) {
|
||||
sava(index, key) {
|
||||
for (let keys in this.formData[key]) {
|
||||
if (this.formData[key][keys] == '') {
|
||||
this.$u.toast('请填写完整')
|
||||
return
|
||||
}
|
||||
}
|
||||
this.SaveList.splice(index, 1, true);
|
||||
this.open(index)
|
||||
}
|
||||
},
|
||||
edit(index) {
|
||||
this.SaveList.splice(index, 1, false);
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
@ -917,6 +996,19 @@
|
||||
line-height: 58rpx;
|
||||
}
|
||||
|
||||
.edit-btn {
|
||||
width: 162rpx;
|
||||
height: 58rpx;
|
||||
// background: #FD7F4A;
|
||||
color: #FD7F4A !important;
|
||||
border: 1px solid #FD7F4A;
|
||||
border-radius: 48rpx 48rpx 48rpx 48rpx;
|
||||
opacity: 1;
|
||||
color: white;
|
||||
text-align: center;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
|
||||
.submit:active {
|
||||
background-color: grey;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user