页面功能修改
This commit is contained in:
+33
-25
@@ -1,24 +1,28 @@
|
||||
<template>
|
||||
<view class="contents">
|
||||
<view class="navbar">{{$t('mine.title')}}</view>
|
||||
<!-- <uni-nav-bar leftText=" " :fixed="true" :border="false" @clickLeft="leftClick" color="#fff" backgroundColor="#4579ff" :statusBar="true" :title="$t('mine.title')"></uni-nav-bar> -->
|
||||
|
||||
<!-- <view class="navbar">{{$t('mine.title')}}</view> -->
|
||||
<view class="navbar"></view>
|
||||
<view class="content">
|
||||
<view class="contop">
|
||||
<view class="">
|
||||
<!-- <image class="userimg" :src="userinfo.avatar" mode=""></image> -->
|
||||
<image class="userimg" src="/static/image/mine/user.png" mode=""></image>
|
||||
</view>
|
||||
<view class="right" @click="changinfo">
|
||||
<!-- <view class="right" @click="changinfo"> -->
|
||||
<view class="right">
|
||||
<view class="">
|
||||
<text>迪士尼公主</text>
|
||||
<image src="/static/image/mine/edit.png" mode=""></image>
|
||||
<text>{{userinfo.email}}</text>
|
||||
<!-- <image src="/static/image/mine/edit.png" mode=""></image> -->
|
||||
</view>
|
||||
<view class="mineid">
|
||||
ID:080427
|
||||
ID:{{userinfo.id}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottomCon">
|
||||
<view class="sonContent" @click="navTo('/pages/mine/massege')">
|
||||
<!-- <view class="sonContent" @click="navTo('/pages/mine/massege')">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon1.png"></image>
|
||||
<span>{{$t('mine.msg')}}</span>
|
||||
<view class="">
|
||||
@@ -27,33 +31,33 @@
|
||||
</view>
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
<view class="sonContent" @click="navTo('/pages/mine/resetPwd')">
|
||||
</view> -->
|
||||
<!-- <view class="sonContent" @click="navTo('/pages/mine/resetPwd')">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon2.png"></image>
|
||||
<span>{{$t('mine.cpassword')}}</span>
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="sonContent" @click="show=true">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon3.png"></image>
|
||||
<span>{{$t('mine.contact')}}</span>
|
||||
<uni-icons type="right" size="18" class="icon"></uni-icons>
|
||||
</view>
|
||||
<view class="sonContent" @click="navTo('/pages/mine/feedback')">
|
||||
<!-- <view class="sonContent" @click="navTo('/pages/mine/feedback')">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon4.png"></image>
|
||||
<span>{{$t('mine.feedback')}}</span>
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="sonContent" @click="navTo('/pages/mine/about')">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon5.png"></image>
|
||||
<span>{{$t('mine.about')}}</span>
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view>
|
||||
<view class="sonContent" @click="navTo('/pages/mine/logoff')">
|
||||
<!-- <view class="sonContent" @click="navTo('/pages/mine/logoff')">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon6.png"></image>
|
||||
<span>{{$t('mine.logoff')}}</span>
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
</view>
|
||||
<view class="sonContent" @click="navTo('/pages/login/index')">
|
||||
</view> -->
|
||||
<view class="sonContent" @click="logout">
|
||||
<image class="son-img-bg" src="/static/image/mine/icon7.png"></image>
|
||||
<span>{{$t('mine.logout')}}</span>
|
||||
<uni-icons type="right" class="icon" size="18"></uni-icons>
|
||||
@@ -67,8 +71,8 @@
|
||||
<view class="popupcontent">
|
||||
<image class="log1" src="/static/image/mine/kefu.png"></image>
|
||||
<view class="title">{{$t('mine.kfphone')}}</view>
|
||||
<view class="calls">13545678952</view>
|
||||
<button class="btn" @click="callPhone()">{{$t('call')}}</button>
|
||||
<view class="calls">18137110386</view>
|
||||
<button class="btn" @click="callPhone('18137110386')">{{$t('call')}}</button>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
@@ -84,7 +88,7 @@
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
this.userinfo =JSON.parse(uni.getStorageSync('userinfo'))
|
||||
},
|
||||
onShow() {
|
||||
},
|
||||
@@ -122,6 +126,13 @@
|
||||
},
|
||||
});
|
||||
},
|
||||
//退出登录
|
||||
logout(){
|
||||
uni.clearStorageSync();
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/index',// 替换为你要跳转的页面路径
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -148,19 +159,17 @@
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.navbar{
|
||||
padding-top: 30px;
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 32rpx;
|
||||
/* #ifdef APP-PLUS */
|
||||
height:44px;
|
||||
/* #endif */
|
||||
height:30px;
|
||||
}
|
||||
.content{
|
||||
padding:10px 15px 15px;
|
||||
.contop{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 15px 0px 30px;
|
||||
margin: 0px 0px 30px;
|
||||
font-size: 34rpx;
|
||||
color: white;
|
||||
.right{
|
||||
@@ -198,7 +207,6 @@
|
||||
height: 220rpx;
|
||||
}
|
||||
.bottomCon {
|
||||
margin-top: 40rpx;
|
||||
color: #000;
|
||||
font-weight: 400;
|
||||
// padding: 0 24rpx 20rpx;
|
||||
|
||||
Reference in New Issue
Block a user