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

设置界面

parent 572fba7c
......@@ -50,6 +50,13 @@ const routes = [
title: '个人编辑',
},
},
{
path: '/pages/user/setting',
name: 'setting',
meta: {
title: '设置',
},
},
{
path: '/pages/common/exit',
name: 'exit',
......
......@@ -50,6 +50,13 @@
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/user/setting",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path": "pages/user/modifyPw",
"style": {
......
......@@ -22,7 +22,7 @@
<text class="text-grey">个人信息</text>
</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">
<text class=" "></text>
<text class="text-grey">系统设置</text>
......@@ -137,6 +137,11 @@
this.$Router.push({
name: "userdetail"
})
},
gotoSettingPage(){
this.$Router.push({
name: "setting"
})
},
toMessage() {
......
<template>
<view class="bg-white" style="height: 100vh;">
<cu-header bgColor="bg-blue" :isBack="true">
<cu-custom bgColor="bg-blue" :isBack="true">
<block slot="content">
{{title}}
</block>
</cu-header>
</cu-custom>
<view>
<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">
......
......@@ -96,10 +96,11 @@
uni.getStorage({
key:'userinfo',
success:function(e){
that.userid=e.data.userkey
that.$http.post(that.apiUser,{id:that.userid}).then(e=>{
if(e.data.success){
that.userinfo=e.data.data.records[0]
if(e.data){
that.userinfo=e.data.records[0]
}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