优化
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
<van-button type="primary" color="#ec871e" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
<van-button type="primary" color="#ec871e" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
<view class="item_txt">
|
||||
<view class="pre_content">处方订单号:2023010510324649</view>
|
||||
<view class="end_content">
|
||||
<van-button type="primary" size="small">查看病例</van-button>
|
||||
<van-button type="primary" color="#ec871e" size="small">查看病例</van-button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
page{
|
||||
background-color: #F4F4F4;
|
||||
}
|
||||
.top{
|
||||
width: 100vw;
|
||||
background-color: cornflowerblue;
|
||||
background-color: rgb(255, 255, 255);
|
||||
height: 370rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
flex-direction: column;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.name{
|
||||
color: white;
|
||||
@@ -15,4 +19,5 @@
|
||||
text-justify:distribute-all-lines;
|
||||
text-align-last: justify;
|
||||
font-size: 28rpx;
|
||||
width: 180rpx;
|
||||
}
|
||||
|
||||
+26
-1
@@ -4,7 +4,7 @@ const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
navbarData: {
|
||||
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
showCapsule: 0, //是否显示左上角图标 1表示显示 0表示不显示
|
||||
title: '个人中心', //导航栏 中间的标题
|
||||
},
|
||||
height: app.globalData.height,
|
||||
@@ -25,5 +25,30 @@ Page({
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
},
|
||||
logOut(){
|
||||
console.log("退出登录");
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
wx.showModal({
|
||||
title: '确认退出登录',
|
||||
content: '退出登录后您需要重新登录',
|
||||
success (res) {
|
||||
if (res.confirm) {
|
||||
console.log('用户点击确定')
|
||||
wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
|
||||
wx.setStorageSync('user_id', "");
|
||||
wx.setStorageSync('client_user_id', "");
|
||||
app.go("/Pages/index/index");
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消')
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
go(e){
|
||||
console.log(e)
|
||||
let url = e.currentTarget.dataset.url;
|
||||
app.go(url);
|
||||
}
|
||||
|
||||
})
|
||||
@@ -2,7 +2,9 @@
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-avatar": "tdesign-miniprogram/avatar/avatar",
|
||||
"van-icon": "@vant/weapp/icon/index"
|
||||
"van-icon": "@vant/weapp/icon/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"te-nav-bar": "/commpents/te_navbar"
|
||||
},
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container">
|
||||
<view class="top">
|
||||
<t-avatar class="avatar" size="large" image="{{info.avatar}}" />
|
||||
<text class="name">{{info.user_name}}</text>
|
||||
</view>
|
||||
<view class="content">
|
||||
<navigator url="/Pages/yaoshi/info/info" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<view class="my">个人中心</view>
|
||||
</navigator>
|
||||
<view class="my" bindtap="go" data-url="/Pages/yaoshi/info/info">个人中心</view>
|
||||
<view class="item_list">
|
||||
<view class="item">
|
||||
<navigator url="/Pages/yaoshi/authentication/authentication" open-type="navigate" hover-class="other-navigator-hover">
|
||||
<van-icon name="user-o" size="50rpx" color="#55B0E5"/>
|
||||
<text class="item_name">实名认证</text>
|
||||
</navigator>
|
||||
<view class="item" bindtap="go" data-url="/Pages/yaoshi/authentication/authentication">
|
||||
<van-icon name="user-o" size="50rpx" color="#55B0E5"/>
|
||||
<text class="item_name">实名认证</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<van-button type="primary" block bindtap="logOut">退出登录</van-button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -12,9 +12,10 @@
|
||||
color: white;
|
||||
margin-top: 30rpx;
|
||||
text-align: justify;
|
||||
text-justify:distribute-all-lines;
|
||||
text-justify: inter-word;
|
||||
text-align-last: justify;
|
||||
font-size: 28rpx;
|
||||
width: 180rpx;
|
||||
}
|
||||
.my{
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user