页面修改

This commit is contained in:
zmj 2023-11-29 18:45:48 +08:00
parent 1f0ea2fe29
commit d18961e965
2 changed files with 46 additions and 36 deletions

View File

@ -5,45 +5,51 @@
lineWidth='100' inactiveStyle='color:white' activeStyle="color:white"></u-tabs>
<view class="" style="height: 20rpx;">
</view>
<view class="card" v-for="(item,index) in gatherList.planting" :key="item.id" v-if="page==1"
@click="navgo(`/subpkg/townTask/townGather?type=plant&task_id=${task_id}&index=${index}`)">
<view class="" v-if="gatherList">
<view class="card" v-for="(item,index) in gatherList.planting" :key="item.id" v-if="page==1"
@click="navgo(`/subpkg/townTask/townGather?type=plant&task_id=${task_id}&index=${index}`)">
<view class="card_head">
<view class="">
养植信息
<view class="card_head">
<view class="">
养植信息
</view>
<view class="">
点击查看
</view>
</view>
<view class="">
点击查看
<view class="card_content">
<view class="" style="margin-bottom: 20rpx;">
法人姓名: {{item.entityName}}
</view>
<view class="">
联系电话: {{item.phone}}
</view>
</view>
</view>
<view class="card_content">
<view class="" style="margin-bottom: 20rpx;">
法人姓名: {{item.entityName}}
<view class="card" v-for="(item,index) in gatherList.supply" :key="index" v-if="page==2"
@click="navgo(`/subpkg/townTask/townGather?type=supply&task_id=${task_id}&index=${index}`)">
<view class="card_head">
<view class="">
批发商信息
</view>
<view class="">
点击查看
</view>
</view>
<view class="">
联系电话: {{item.phone}}
</view>
</view>
</view>
<view class="card" v-for="(item,index) in gatherList.supply" :key="index" v-if="page==2"
@click="navgo(`/subpkg/townTask/townGather?type=supply&task_id=${task_id}&index=${index}`)">
<view class="card_head">
<view class="">
批发商信息
</view>
<view class="">
点击查看
</view>
</view>
<view class="card_content">
<view class="" style="margin-bottom: 20rpx;">
店主姓名: {{item.storeName}}
</view>
<view class="">
联系电话: {{item.shopkeeperPhone}}
<view class="card_content">
<view class="" style="margin-bottom: 20rpx;">
店主姓名: {{item.storeName}}
</view>
<view class="">
联系电话: {{item.shopkeeperPhone}}
</view>
</view>
</view>
</view>
<!-- <u-popup :show="show" @close="close" :round="10" mode="center" @open="open">
<view style="padding: 20rpx;">
<u-button type="primary" @click="navgo(`/subpkg/townTask/townGather?type=plant&task_id=${task_id}`)"

View File

@ -381,7 +381,12 @@
taskId: "",
readonly: false,
landPlanList: ['自己养', '出租', '代养', '租更多地扩大养殖'],
pas_Info: {},
pas_Info: {
planting: [],
supply: []
},
breedingTypeList: [{
id: 1,
name: "水产"
@ -396,8 +401,8 @@
},
],
formData: {
"entityName": "",
phone: "",
"entityName": "5",
phone: "15884967539",
employee: "",
arableLand: "",
"breeding_training": 1, //
@ -595,10 +600,9 @@
this.formData[data.value] = e.detail.value;
},
async commit() {
console.log(this.pas_Info)
if (this.page) {
this.pas_Info.planting.push(this.formData)
await townMasterTask3Commit({
id: Number(this.taskId),
purchase_sales_info: this.pas_Info