|
@@ -13,19 +13,21 @@
|
|
|
img{
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
+ -webkit-user-select: none;/*禁用手机浏览器的用户选择功能 */
|
|
|
+ -moz-user-select: none;
|
|
|
}
|
|
|
html,body {
|
|
|
height: 100%;
|
|
|
max-height: 100%;
|
|
|
overflow: hidden;
|
|
|
- font-size: 32px;
|
|
|
+ font-size: 30px;
|
|
|
color: #333333;
|
|
|
background: #F7F7F7;
|
|
|
- font-family: "PingFang SC","Helvetica";
|
|
|
+ font-family: "PingFang SC Light","Helvetica";
|
|
|
}
|
|
|
.header_img {
|
|
|
- width: 126px;
|
|
|
- height: 126px;
|
|
|
+ width: 116px;
|
|
|
+ height: 116px;
|
|
|
border-radius: 5px;
|
|
|
vertical-align: middle;
|
|
|
margin-right: 40px;
|
|
@@ -36,6 +38,9 @@
|
|
|
height: 27px;
|
|
|
margin-left: 10px;
|
|
|
}
|
|
|
+ .name {
|
|
|
+ font-size: 32px;
|
|
|
+ }
|
|
|
.icon_man {
|
|
|
background: url("<?php echo RESOURCE_SITE_URL; ?>/mobile/fcode/images/man_icon.png") no-repeat;
|
|
|
background-size: 100%;
|
|
@@ -47,7 +52,7 @@
|
|
|
.cell {
|
|
|
margin-left: 30px;
|
|
|
position: relative;
|
|
|
- padding: 30px 0;
|
|
|
+ padding: 28px 0;
|
|
|
}
|
|
|
.cell:after {
|
|
|
position: absolute;
|
|
@@ -89,18 +94,19 @@
|
|
|
}
|
|
|
.cell_content {
|
|
|
color: #7E7E7E;
|
|
|
+ font-size: 22px;
|
|
|
}
|
|
|
.add_friend_btn {
|
|
|
-webkit-appearance:none;
|
|
|
display: inline-block;
|
|
|
color: #fff;
|
|
|
background: #FF4E4E;
|
|
|
- width: 600px;
|
|
|
- height: 98px;
|
|
|
+ width: 632px;
|
|
|
+ height: 82px;
|
|
|
font-size: 36px;
|
|
|
border: none;
|
|
|
- border-radius: 5px;
|
|
|
- -webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
+ border-radius: 10px;
|
|
|
+ -webkit-tap-highlight-color: rgba(240,240,240,0.7);
|
|
|
}
|
|
|
.cell_label {
|
|
|
display: inline-block;
|
|
@@ -108,14 +114,27 @@
|
|
|
margin-right: 44px;
|
|
|
}
|
|
|
.submit {
|
|
|
- margin-top:50px;
|
|
|
+ margin-top:32px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
- .success p{
|
|
|
- margin: auto 0;
|
|
|
+ .letter_pro {
|
|
|
+ color: #FF4E4E;
|
|
|
+ }
|
|
|
+ .send_bonus_btn {
|
|
|
+ -webkit-appearance:none;
|
|
|
+ display: inline-block;
|
|
|
+ color: #FF4E4E;
|
|
|
+ background: #ffffff;
|
|
|
+ width: 632px;
|
|
|
+ height: 82px;
|
|
|
+ font-size: 36px;
|
|
|
+ border: none;
|
|
|
+ border-radius: 10px;
|
|
|
+ -webkit-tap-highlight-color: rgba(240,240,240,0.7);
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
+
|
|
|
<body>
|
|
|
<div class="maincontent">
|
|
|
<div class="group">
|
|
@@ -124,39 +143,42 @@
|
|
|
<span class="name"><?php $minfo = $output['info']; echo $minfo->nickname();?></span><span class="icon icon_lady"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="group">
|
|
|
-<!-- <div class="cell">-->
|
|
|
-<!-- <span class="cell_label">地区</span><span class="cell_content">广东 中山</span>-->
|
|
|
-<!-- </div>-->
|
|
|
- <div class="cell">
|
|
|
- <span class="cell_label">个性签名</span><span class="cell_content">。。。</span>
|
|
|
- </div>
|
|
|
- <div class="cell">
|
|
|
- <span class="cell_label">来源</span><span class="cell_content">来自扫一扫</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="submit">
|
|
|
<?php
|
|
|
- $is_friend = $output['is_friend'];
|
|
|
- if($is_friend) {
|
|
|
- echo '<p class="cell_label">你已经是他的粉丝了</p>';
|
|
|
- } else {
|
|
|
- echo '<button type="button" id="btn_add_friend" class="add_friend_btn">关注</button>';
|
|
|
- }
|
|
|
+ $cout = new tpl_member($output);
|
|
|
+ echo $cout->output_group();
|
|
|
?>
|
|
|
</div>
|
|
|
+ <?php
|
|
|
+ $cout = new tpl_member($output);
|
|
|
+ echo $cout->output_btn();
|
|
|
+ ?>
|
|
|
+
|
|
|
<div class="success" style="display: none">
|
|
|
<p>恭喜您,您关注他成功了</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<script src="<?php echo RESOURCE_SITE_URL; ?>/mobile/bonus/js/zepto.min.js?<?php echo bonus_version(); ?>"></script>
|
|
|
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/mobile/comm/bridge.js?<?php echo bonus_version(); ?>"></script>
|
|
|
<script>
|
|
|
+ if(isMobile.iOS()) {
|
|
|
+ init_ios_bridge(function(bridge) { });
|
|
|
+ } else if (isMobile.Android) {
|
|
|
+ init_android_bridge();
|
|
|
+ } else {
|
|
|
+ }
|
|
|
+ var member_id = <?php
|
|
|
+ $minfo = $output['info'];
|
|
|
+ $member_id = $minfo->member_id();
|
|
|
+ echo $member_id; ?>;
|
|
|
+
|
|
|
var url = '<?php
|
|
|
- $minfo = $output['info'];
|
|
|
- $member_id = $minfo->member_id();
|
|
|
- $vurl = BASE_SITE_URL . "/mobile/index.php?act=member_index&op=subscribe&userid={$member_id}";
|
|
|
- echo $vurl;
|
|
|
- ?>';
|
|
|
+ $minfo = $output['info'];
|
|
|
+ $member_id = $minfo->member_id();
|
|
|
+ $vurl = BASE_SITE_URL . "/mobile/index.php?act=member_index&op=subscribe&userid={$member_id}";
|
|
|
+ echo $vurl;
|
|
|
+ ?>';
|
|
|
|
|
|
window.onload = function ()
|
|
|
{
|
|
@@ -168,6 +190,15 @@
|
|
|
$(".success").show();
|
|
|
});
|
|
|
});
|
|
|
+ $("#btn_thief_bonus").click(function()
|
|
|
+ {
|
|
|
+ call_native_handler('on_native_click','{"action":"thief_bonus","params":{"member_id":"' + member_id + '"}}');
|
|
|
+ });
|
|
|
+ $("#btn_send_bonus").click(function()
|
|
|
+ {
|
|
|
+ call_native_handler('on_native_click','{"action":"send_bonus","params":{"member_id":"' + member_id + '"}}');
|
|
|
+
|
|
|
+ });
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|