Browse Source

我的页面 添加关于我们

master
邓宏 2 years ago
parent
commit
3ce9505b34
  1. 49
      pages/home/aboutMy.vue
  2. 3
      pages/home/my.vue
  3. 11
      router/home.js

49
pages/home/aboutMy.vue

@ -0,0 +1,49 @@
<style lang="less">
.container{
&>view{
margin:30rpx;
padding-bottom:20rpx;
border-bottom:1rpx solid rgba(216, 216, 216, 0.2);
color:#777;
&>view:first-child{
margin-bottom:5rpx;
}
}
}
</style>
<template>
<view class="container">
<view>
<view>当前最新版本号</view>
<view>{{detail.currentVersion}}</view>
</view>
<view>
<view>PC(管理)端访问地址</view>
<view style="color:#10C176;">{{detail.pcUrl}}</view>
</view>
</view>
</template>
<script>
import request from '@/common/request'
export default {
data(){
return{
detail:{}
}
},
async onLoad(){
var res=await request("/api/appAbout/queryAppAbout",{
params:{type:1}
})
if(res.statu){
this.detail=res.data
}else{
uni.showModal({
title:"提示",
content:res.msg||"获取详情失败!",
showCancel:false,
})
}
},
}
</script>

3
pages/home/my.vue

@ -79,6 +79,9 @@
<view class="item" @click="$u.route({url:'pages/home/personalInfo'})">
<text class="plant-gerenzhongxinwode"/> <text>个人信息</text> <text class="plant-youbian"/>
</view>
<view class="item" @click="$u.route({url:'/pages/home/aboutMy'})">
<text class="plant-tuichu"/> <text>关于我们</text> <text class="plant-youbian"/>
</view>
<view class="item" @click="outLogin">
<text class="plant-tuichu"/> <text>退出</text> <text class="plant-youbian"/>
</view>

11
router/home.js

@ -88,4 +88,15 @@ module.exports=[
}
}
},
{
path:"plantPages/home/aboutMy",
style:{
navigationBarTitleText:"关于我们",
navigationBarBackgroundColor:"#10C176",
navigationBarTextStyle:"white",
"app-plus":{
titleNView:true
}
}
},
]
Loading…
Cancel
Save