From 344fdf303d89f81c62aa86f31f8013af7eefc6cd Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Tue, 26 Jan 2021 10:41:07 +0800 Subject: [PATCH] * Adjust the style of profile. --- module/common/model.php | 4 ++-- module/my/css/profile.css | 8 ++++---- module/my/view/profile.html.php | 35 +++++++++++++++------------------ 3 files changed, 22 insertions(+), 25 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index 528e4ea6d9..254437c04b 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -286,14 +286,14 @@ class commonModel extends model { $noRole = (!empty($app->user->role) && isset($lang->user->roleList[$app->user->role])) ? '' : ' no-role'; echo '
  • '; - echo "'; + echo "'; echo "
    "; echo $app->user->avatar ? html::image($app->user->avatar) : strtoupper($app->user->account[0]); echo "
    \n"; echo ''; if(isset($lang->user->roleList[$app->user->role])) echo ''; echo '
  • '; - echo '
  • ' . html::a(helper::createLink('my', 'profile', '', '', true), " " . $lang->profile, '', "class='iframe' data-width='800'") . '
  • '; + echo '
  • ' . html::a(helper::createLink('my', 'profile', '', '', true), " " . $lang->profile, '', "class='iframe' data-width='600'") . '
  • '; echo '
  • ' . html::a(helper::createLink('my', 'preference', '', '', true), " " . $lang->preference, '', "class='iframe' data-width='650'") . '
  • '; echo '
  • ' . html::a(helper::createLink('my', 'changepassword', '', '', true), " " . $lang->changePassword, '', "class='iframe' data-width='600'") . '
  • '; echo ""; diff --git a/module/my/css/profile.css b/module/my/css/profile.css index 8d85d78be4..065aea3819 100644 --- a/module/my/css/profile.css +++ b/module/my/css/profile.css @@ -1,8 +1,8 @@ .body-modal .main-header{padding: 13px 0px 0px 0;} -.cell{height:420px;} -.row table{width: 100%;} -.row th{width: 20%; line-height: 30px; padding-right: 20px; text-align: right; font-weight: 500;} -.row td{width: 30%; text-align: left; font-weight: 700;} +.row table{width: 100%; margin-top: 5px;} +table+table{border-top: 1px solid #eee;} +.row th{width: 17%; line-height: 30px; padding-right: 20px; text-align: right; font-weight: 500;} +.row td{width: 33%; text-align: left; font-weight: 700;} .main-actions{margin: 20px 0 20px 0; text-align: center;} .user-title{margin: 10px 10px -10px 10px; font-size: 14px; font-weight: bold; padding-left: 10px;} .avatar { display: inline-block; width: 50px; height: 50px; line-height: 50px;} diff --git a/module/my/view/profile.html.php b/module/my/view/profile.html.php index 702b712948..aeb97b7ba9 100644 --- a/module/my/view/profile.html.php +++ b/module/my/view/profile.html.php @@ -36,7 +36,6 @@
    -
    user->basicInfo;?>
    @@ -78,31 +77,18 @@
    user->realname;?>name . ' ';?>
    -
    user->contactInfo;?>
    - - + + - - - - - - - - - - - - @@ -111,19 +97,30 @@
    user->mobile;?> mobile;?>user->skype;?>skype) echo html::a("callto://$user->skype", $user->skype);?>user->weixin;?>weixin;?>
    user->phone;?> phone;?>user->whatsapp;?>whatsapp;?>
    user->weixin;?>weixin;?>user->slack;?>slack;?>
    user->qq;?> qq;?>user->dingding;?>dingding;?>
    user->zipcode;?>address;?>
    -
    user->else;?>
    + + + + + + + + + + + + - - + +
    user->commiter;?> commiter;?>user->skype;?>skype) echo html::a("callto://$user->skype", $user->skype);?>
    user->visits;?> visits;?>user->whatsapp;?>whatsapp;?>
    user->last;?>last;?>user->slack;?>slack;?>
    user->ip;?> ip;?>user->last;?>last;?>user->dingding;?>dingding;?>