Authored by 周少峰

students

17.1 KB | W: | H:

19.9 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -5,6 +5,25 @@
a {
color: #444;
}
.my-header {
position: relative;
.students-entry {
display: block;
width: 100px;
height: 40px;
line-height: 40px;
border-top-left-radius: 40px;
border-bottom-left-radius: 40px;
background: #d0021b;
color: #ffffff;
padding-left: 20px;
position: absolute;
top: 20px;
right: 0px;
font-size: 24px;
}
}
.user-info {
display: block;
... ... @@ -57,6 +76,9 @@
background: url("/me/vip/vip-1.png");
}
.students {
background: url("/me/vip/students.png");
}
.more-icon {
position: absolute;
top: 40px;
... ... @@ -70,22 +92,6 @@
background: rgba(200,200,200,.1)!important;
}
}
.students-entry {
display: block;
width: 100px;
height: 40px;
line-height: 40px;
border-top-left-radius: 40px;
border-bottom-left-radius: 40px;
background: #d0021b;
color: #ffffff;
padding-left: 20px;
position: absolute;
top: 20px;
right: 0px;
font-size: 24px;
}
}
.login-btn {
... ...
... ... @@ -8,11 +8,15 @@
{{#vip_info}}
<span class="vip-icon vip-{{cur_level}}"></span>
{{/vip_info}}
{{#if students}}
<span class="vip-icon students"></span>
{{/if}}
<div class="iconfont more-icon tap-hightlight">&#xe604;</div>
</a>
{{#if showEntry}}
{{^students}}
<a class="students-entry" href="###">学生认证</a>
{{/if}}
{{/students}}
{{/isLogin}}
{{^isLogin}}
... ...
... ... @@ -49,6 +49,9 @@
{{#if isGift}}
<span class="sale-price">¥{{salesPrice}}</span>
{{/if}}
{{#if isStudents}}
<span class="students">学</span>
{{}}
</p>
{{#if isVipPrice}}
<span class="vip">
... ...
... ... @@ -42,7 +42,7 @@ class UserModel
$result['gender'] = $result['gender'] == 1 ? '男' : '女';
$result['head_ico'] = isset($result['head_ico']) && !empty($result['head_ico']) ? Images::getImageUrl($result['head_ico'], 128, 128) : '';
}
$result['students'] = isset($result['is_students']) && $result['is_students'] === 1;
return $result;
}
... ...
... ... @@ -11,8 +11,8 @@ define('APPLICATION_PATH', dirname(__DIR__)); // 应用目录
define('ROOT_PATH', dirname(dirname(APPLICATION_PATH))); // 根目录
defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'developer');
define('API_URL', 'http://dev-api.yohops.com:9999/');
define('SERVICE_URL', 'http://dev-service.yohops.com:9999/');
define('API_URL', 'http://api.yoho.cn/');
define('SERVICE_URL', 'http://service.yoho.cn/');
define('YOHOBUY_URL', 'http://www.yohobuy.com/');
define('SERVICE_NOTIFY', 'http://testservice.yoho.cn:28077/');
... ...