123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <template>
- <view>
- <u-navbar :is-back="false" :border-bottom="false"><view class="navbar-tit">我的</view></u-navbar>
- <view class="userHead">
- <view class="userHead-left">
- <view class="userHead-name">
- <h2>孙祺芮</h2>
- <view class="userHead-icon">
- <u-icon custom-prefix="custom-icon" name="shield-user-fill" color="#fff"></u-icon>
- <span>认证会员</span>
- </view>
- </view>
- <p>查看/编辑个人资料</p>
- </view>
- <u-avatar src="/static/img/sexMan.png" size="120"></u-avatar>
- </view>
- <view class="user-data">
- <view class="user-data-tit">
- <h2>完善个人资料</h2><u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
- </view>
- <p>添加您的个人资料、相亲简历和择偶条件,可以提高相亲成功率哦~</p>
- <u-line-progress active-color="#2979ff" :percent="70" height="8" :show-percent="false"></u-line-progress>
- </view>
- <view class="user-cell">
- <view class="user-cell-item">
- <view class="user-cell-l">
- <u-icon custom-prefix="custom-icon" name="folder-user-fill" color="#FF695B" size="40"></u-icon>
- <h4>公开我的资料</h4>
- </view>
- <view class="user-cell-r">
- <u-switch v-model="checked"></u-switch>
- </view>
- </view>
- <view class="user-cell-item">
- <view class="user-cell-l">
- <u-icon custom-prefix="custom-icon" name="smartphone-fill" color="#FF695B" size="40"></u-icon>
- <h4>更换手机号</h4>
- </view>
- <view class="user-cell-r">
- <span>155****1234</span>
- <u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
- </view>
- </view>
- <view class="user-cell-item">
- <view class="user-cell-l">
- <u-icon custom-prefix="custom-icon" name="customer-service-fill" color="#FF695B" size="40"></u-icon>
- <h4>联系客服</h4>
- </view>
- <view class="user-cell-r">
- <span>0716-8123456</span>
- <u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
- </view>
- </view>
- <view class="user-cell-item">
- <view class="user-cell-l">
- <u-icon custom-prefix="custom-icon" name="information-fill" color="#FF695B" size="40"></u-icon>
- <h4>服务条款</h4>
- </view>
- <view class="user-cell-r">
- <span></span>
- <u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
- </view>
- </view>
- <view class="user-cell-item">
- <view class="user-cell-l">
- <u-icon custom-prefix="custom-icon" name="spam-3-fill" color="#FF695B" size="40"></u-icon>
- <h4>注销账号</h4>
- </view>
- <view class="user-cell-r">
- <p>注销后将无法使用该账号登录小程序</p>
- <u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
- </view>
- </view>
- <view class="user-cell-item">
- <view class="user-cell-l">
- <u-icon custom-prefix="custom-icon" name="logout-box-r-fill" color="#FF695B" size="40"></u-icon>
- <h4>退出</h4>
- </view>
- <view class="user-cell-r">
- <span></span>
- <u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- checked: false,
- }
-
- },
- onLoad(){
- let personalInfo = this.carhelp.getPersonInfo();
- console.log('个人信息'+JSON.stringify(personalInfo));
-
- }
- }
- </script>
- <style lang="scss" scoped>
- .navbar-tit{
- padding-left:15px;
- font-size: 24px;
- }
- .userHead{
- display: flex;
- justify-content: space-between;
- padding: 20px 15px;
- .userHead-left{
- .userHead-name{
- display: flex;
- align-items: center;
- h2{
- font-size: 20px;
- font-weight: normal;
- }
- .userHead-icon{
- display: flex;
- align-items: center;
- background-color: #4E8DF6;
- padding: 2px 6px;
- border-radius: 8px;
- margin-left: 20px;
- span{
- color:#fff;
- font-size: 12px;
- margin-left: 3px;
- }
- }
- }
- p{
- color:#847777;
- margin-top: 8px;
- }
- }
-
- }
- .user-data{
- margin: 15px;
- box-shadow: 0 0 6px 0 rgba(132,119,119,0.3);
- padding: 12px 16px;
- .user-data-tit{
- display: flex;
- justify-content: space-between;
- align-items: center;
- h2{
- font-weight: normal;
- font-size: 16px;
- }
- }
- p{
- color:#999;
- margin: 10px 0;
- }
- }
- .user-cell-item{
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 14px 16px;
- .user-cell-l{
- display: flex;
- align-items: center;
- h4{
- font-weight: normal;
- margin-left: 8px;
- }
- }
- .user-cell-r{
- display: flex;
- align-items: center;
- span{
- color:#978E8E;
- margin-right: 4px;
- }
- p{
- font-size: 12px;
- color:#978E8E;
- margin-right: 4px;
- }
- }
- }
- </style>
|