Browse Source

巡园记录 修改页面显示

master
邓宏 11 months ago
parent
commit
41be828781
  1. 8
      pages/home/app.vue
  2. 7
      pages/patrolGarden/detail.vue
  3. 7
      pages/patrolGarden/record.vue

8
pages/home/app.vue

@ -52,14 +52,6 @@
<image :src="`${host}/${v.icon}`"/> <image :src="`${host}/${v.icon}`"/>
<text class="name">{{v.name}}</text> <text class="name">{{v.name}}</text>
</view> </view>
<!-- <view @click="$u.route({url:'pages/purchase/apply'})">
<image src="/static/patrolGarden/procure.svg"/>
<text class="name">采购</text>
</view>
<view @click="$u.route({url:'/pages/patrolGarden/record'})">
<image src="/static/patrolGarden/tour.svg"/>
<text class="name">巡园</text>
</view> -->
</view> </view>
</view> </view>
</view> </view>

7
pages/patrolGarden/detail.vue

@ -137,6 +137,10 @@ export default {
} }
}, },
async onReady(){ async onReady(){
/* #ifdef APP-PLUS */
this.maps=uni.createMapContext("amap",this).$getAppMap()
/* #endif */
this.eventChannel=this.getOpenerEventChannel() this.eventChannel=this.getOpenerEventChannel()
this.eventChannel.on("detail",e=>{ this.eventChannel.on("detail",e=>{
this.detail=e this.detail=e
@ -162,9 +166,6 @@ export default {
} }
/* #endif */ /* #endif */
}) })
/* #ifdef APP-PLUS */
this.maps=uni.createMapContext("amap",this).$getAppMap()
/* #endif */
}, },
methods:{ methods:{
async submit(){ async submit(){

7
pages/patrolGarden/record.vue

@ -4,8 +4,10 @@
background:#f6f6f6; background:#f6f6f6;
scroll-view{ scroll-view{
flex-grow: 1;
height:1rpx;
.card{ .card{
margin-top:0; margin-top:0rpx;
&>.title{ &>.title{
display: flex; display: flex;
align-items: center; align-items: center;
@ -89,7 +91,7 @@
} }
</style> </style>
<template> <template>
<view class="container"> <view class="container flex">
<d-navbar text="巡园记录" isBack style="--bg:#10C176;--c:#fff;"> <d-navbar text="巡园记录" isBack style="--bg:#10C176;--c:#fff;">
<text slot="right" class="plant-xinjian" @click="toAddPage"/> <text slot="right" class="plant-xinjian" @click="toAddPage"/>
</d-navbar> </d-navbar>
@ -113,6 +115,7 @@
<text>{{v.userName}}</text> <text>{{v.userName}}</text>
</view> </view>
</view> </view>
<view style="border:1rpx solid transparent;"/>
<u-empty :show="list.length<=0" text="未查询到相关信息" width="50%" icon="/static/noData.png"/> <u-empty :show="list.length<=0" text="未查询到相关信息" width="50%" icon="/static/noData.png"/>
</scroll-view> </scroll-view>
</view> </view>

Loading…
Cancel
Save