Commit f1a0bb95 authored by 王向前's avatar 王向前

设置界面

parent 572fba7c
...@@ -50,6 +50,13 @@ const routes = [ ...@@ -50,6 +50,13 @@ const routes = [
title: '个人编辑', title: '个人编辑',
}, },
}, },
{
path: '/pages/user/setting',
name: 'setting',
meta: {
title: '设置',
},
},
{ {
path: '/pages/common/exit', path: '/pages/common/exit',
name: 'exit', name: 'exit',
......
...@@ -50,6 +50,13 @@ ...@@ -50,6 +50,13 @@
"navigationBarTitleText" : "" "navigationBarTitleText" : ""
} }
}, },
{
"path" : "pages/user/setting",
"style" :
{
"navigationBarTitleText" : ""
}
},
{ {
"path": "pages/user/modifyPw", "path": "pages/user/modifyPw",
"style": { "style": {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<text class="text-grey">个人信息</text> <text class="text-grey">个人信息</text>
</view> </view>
</view> </view>
<view class="cu-item " url="/pages/user/setting" style="margin-top: 10px;"> <view class="cu-item " @tap="gotoSettingPage()" style="margin-top: 10px;">
<view class="content"> <view class="content">
<text class=" "></text> <text class=" "></text>
<text class="text-grey">系统设置</text> <text class="text-grey">系统设置</text>
...@@ -138,6 +138,11 @@ ...@@ -138,6 +138,11 @@
name: "userdetail" name: "userdetail"
}) })
}, },
gotoSettingPage(){
this.$Router.push({
name: "setting"
})
},
toMessage() { toMessage() {
this.$Router.push({ this.$Router.push({
......
<template> <template>
<view class="bg-white" style="height: 100vh;"> <view class="bg-white" style="height: 100vh;">
<cu-header bgColor="bg-blue" :isBack="true"> <cu-custom bgColor="bg-blue" :isBack="true">
<block slot="content"> <block slot="content">
{{title}} {{title}}
</block> </block>
</cu-header> </cu-custom>
<view> <view>
<view class=" flex bg-white cu-list menu card-menu margin-top-xl margin-bottom-xl shadow-lg radius"> <view class=" flex bg-white cu-list menu card-menu margin-top-xl margin-bottom-xl shadow-lg radius">
<view class="cu-item arrow animation-slide-bottom"> <view class="cu-item arrow animation-slide-bottom">
......
...@@ -96,10 +96,11 @@ ...@@ -96,10 +96,11 @@
uni.getStorage({ uni.getStorage({
key:'userinfo', key:'userinfo',
success:function(e){ success:function(e){
that.userid=e.data.userkey that.userid=e.data.userkey
that.$http.post(that.apiUser,{id:that.userid}).then(e=>{ that.$http.post(that.apiUser,{id:that.userid}).then(e=>{
if(e.data.success){ if(e.data){
that.userinfo=e.data.data.records[0] that.userinfo=e.data.records[0]
}else{ }else{
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment