Browse Source

联调 应用接口

master
邓宏 11 months ago
parent
commit
548649b984
  1. 31
      pages/home/app.vue

31
pages/home/app.vue

@ -48,28 +48,47 @@
<view class="card"> <view class="card">
<view class="_title">所有应用</view> <view class="_title">所有应用</view>
<view class="content"> <view class="content">
<view @click="$u.route({url:'pages/stock/mana'})"> <view v-for="(v,k) in list" :key="k" @click="$u.route({url:v.url})">
<image src="/static/patrolGarden/inventory.svg"/> <image :src="`${host}/${v.icon}`"/>
<text class="name">库存</text> <text class="name">{{v.name}}</text>
</view> </view>
<view @click="$u.route({url:'pages/purchase/apply'})"> <!-- <view @click="$u.route({url:'pages/purchase/apply'})">
<image src="/static/patrolGarden/procure.svg"/> <image src="/static/patrolGarden/procure.svg"/>
<text class="name">采购</text> <text class="name">采购</text>
</view> </view>
<view @click="$u.route({url:'/pages/patrolGarden/record'})"> <view @click="$u.route({url:'/pages/patrolGarden/record'})">
<image src="/static/patrolGarden/tour.svg"/> <image src="/static/patrolGarden/tour.svg"/>
<text class="name">巡园</text> <text class="name">巡园</text>
</view> </view> -->
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import request,{host} from '@/common/request'
export default { export default {
data(){ data(){
return{ return{
list:[],
host:host('imgUrl'),
}
},
onLoad(){
this.search()
},
methods:{
async search(){
var res=await request("/api/application/queryRoleApplication")
if(res.statu){
this.list=res.data
}else{
uni.showModal({
title:"提示",
content:res.msg||"保存失败!",
showCancel:false,
})
} }
},
} }
} }
</script> </script>
Loading…
Cancel
Save