优化代码

This commit is contained in:
Your Name 2023-03-09 04:35:58 +08:00
parent 58f3804f4c
commit e2dbf9af00
3 changed files with 60 additions and 6 deletions

View File

@ -124,11 +124,6 @@
name: "投票问卷",
src: this.imgUrl + "/h5/images/serve/my2.png",
href: "/pages/questionAnswer/questionAnswer"
}, {
name: "返省上报",
src: this.imgUrl + "/h5/images/serve/my3.png",
href: "/pages/reportInfoBack/reportInfoBack",
needLogin: 'N'
},
{
name: '空置房申请',
@ -155,6 +150,18 @@
src: this.imgUrl + '/h5/images/serve/order4.png',
href: '/pages/itemRelease/itemRelease'
},
{
name: '智能充电',
src: this.imgUrl + '/h5/images/serve/my3.png',
href: '/pages/machine/chargeMachines'
},
// {
// name: "",
// src: this.imgUrl + "/h5/images/serve/my3.png",
// href: "/pages/reportInfoBack/reportInfoBack",
// needLogin: 'N'
// },
// {
// name: '',

View File

@ -757,6 +757,15 @@
}
}
,{
"path" : "pages/machine/chargeMachines",
"style" :
{
"navigationBarTitleText": "智能充电",
"enablePullDownRefresh": false
}
}
],
"tabBar": {
"color": "#272636",

View File

@ -0,0 +1,38 @@
<template>
<view>
<view>
<image :src="topImg" class="heard-location-icon"></image>
</view>
<view class="cu-list grid" :class="'col-2'">
<view class="cu-item" @click="showOpenDoor(item);"
v-for="(item,index) in machines" :key="index">
<view :class="['cuIcon-command','text-red']"></view>
<text>{{item.machineName}}</text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
topImg:this.imgUrl+'/h5/images/chargeMachine.png'
}
},
methods: {
}
}
</script>
<style>
.heard-location-icon{
width: 100%;
height: 300rpx;
}
text {
text-align: center;
}
</style>