|
@@ -2,212 +2,209 @@
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
- <meta name="viewport" content="width=750,user-scalable=no,target-densitydpi=device-dpi">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
|
|
|
<title>详细资料</title>
|
|
|
+ <link type="text/css" rel="stylesheet" href="<?php echo RESOURCE_SITE_URL; ?>/mobile/talk/css/weui.css"/>
|
|
|
+ <link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.0/css/jquery-weui.min.css?<?php echo bonus_version(); ?>">
|
|
|
<style type="text/css">
|
|
|
- html,
|
|
|
- body,
|
|
|
- span,
|
|
|
- div,
|
|
|
- button,
|
|
|
- img{
|
|
|
- padding: 0;
|
|
|
- margin: 0;
|
|
|
- -webkit-user-select: none;/*禁用手机浏览器的用户选择功能 */
|
|
|
- -moz-user-select: none;
|
|
|
- }
|
|
|
- html,body {
|
|
|
- height: 100%;
|
|
|
- max-height: 100%;
|
|
|
- overflow: hidden;
|
|
|
- font-size: 30px;
|
|
|
- color: #333333;
|
|
|
- background: #F7F7F7;
|
|
|
- font-family: "PingFang SC Light","Helvetica";
|
|
|
- }
|
|
|
- .header_img {
|
|
|
- width: 116px;
|
|
|
- height: 116px;
|
|
|
- border-radius: 5px;
|
|
|
+ html, body {
|
|
|
+ background: #F2F2F2;
|
|
|
+ font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei, 微软雅黑, Arial, sans-serif;
|
|
|
+ }
|
|
|
+ .avatar {
|
|
|
+ width: 55px;
|
|
|
+ height: 55px;
|
|
|
+ border-radius: 8px;
|
|
|
vertical-align: middle;
|
|
|
- margin-right: 40px;
|
|
|
- }
|
|
|
- .icon {
|
|
|
- display: inline-block;
|
|
|
- width: 27px;
|
|
|
- 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%;
|
|
|
- }
|
|
|
- .icon_lady {
|
|
|
- background: url("<?php echo RESOURCE_SITE_URL; ?>/mobile/fcode/images/lady_icon.png");
|
|
|
- background-size: 100%;
|
|
|
- }
|
|
|
- .cell {
|
|
|
- margin-left: 30px;
|
|
|
- position: relative;
|
|
|
- padding: 28px 0;
|
|
|
- }
|
|
|
- .cell:after {
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- content: '';
|
|
|
- width: 100%;
|
|
|
- height: 1px;
|
|
|
- background: #DADADA;
|
|
|
- -webkit-transform:scale(1,0.5);
|
|
|
- transform:scale(1,0.5);
|
|
|
- }
|
|
|
- .group {
|
|
|
- margin-top: 22px;
|
|
|
- background: #fff;
|
|
|
- position: relative;
|
|
|
- }
|
|
|
- .group:before {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- content: '';
|
|
|
- width: 100%;
|
|
|
- height: 1px;
|
|
|
- background: #DADADA;
|
|
|
- -webkit-transform:scale(1,0.5);
|
|
|
- transform:scale(1,0.5);
|
|
|
- }
|
|
|
- .group:after {
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- content: '';
|
|
|
- width: 100%;
|
|
|
- height: 1px;
|
|
|
- background: #DADADA;
|
|
|
- -webkit-transform:scale(1,0.5);
|
|
|
- transform:scale(1,0.5);
|
|
|
- }
|
|
|
- .cell_content {
|
|
|
- color: #7E7E7E;
|
|
|
- font-size: 22px;
|
|
|
- }
|
|
|
- .add_friend_btn {
|
|
|
- -webkit-appearance:none;
|
|
|
- display: inline-block;
|
|
|
- color: #fff;
|
|
|
- background: #FF4E4E;
|
|
|
- width: 632px;
|
|
|
- height: 82px;
|
|
|
- font-size: 36px;
|
|
|
- border: none;
|
|
|
- border-radius: 10px;
|
|
|
- -webkit-tap-highlight-color: rgba(240,240,240,0.7);
|
|
|
- }
|
|
|
- .cell_label {
|
|
|
- display: inline-block;
|
|
|
- margin-left: 12px;
|
|
|
- margin-right: 44px;
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: 600;
|
|
|
}
|
|
|
- .submit {
|
|
|
- margin-top:32px;
|
|
|
- text-align: center;
|
|
|
+ .weui-cells {
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: 400;
|
|
|
}
|
|
|
- .letter_pro {
|
|
|
- color: #FF4E4E;
|
|
|
+ .cell_ft {
|
|
|
+ font-size: 13px;
|
|
|
+ color: #666666;
|
|
|
+ font-weight: 400;
|
|
|
}
|
|
|
- .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);
|
|
|
+ .live_message {
|
|
|
+ padding: 10px 15px;
|
|
|
+ background: #F9F9F9;
|
|
|
+ color: #999999;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
-
|
|
|
<body>
|
|
|
-<div class="maincontent">
|
|
|
- <div class="group">
|
|
|
- <div class="cell">
|
|
|
- <img src="<?php $minfo = $output['info']; echo $minfo->avatar();?>" alt="头像" class="header_img">
|
|
|
- <span class="name"><?php $minfo = $output['info']; echo $minfo->nickname();?></span><span class="icon icon_lady"></span>
|
|
|
+
|
|
|
+<div class="weui-cells">
|
|
|
+ <div class="weui-cell">
|
|
|
+ <div class="weui-cell__hd">
|
|
|
+ <div class="weui-label">
|
|
|
+ <img class="avatar" src="<?php echo $output['member_info']['avatar']?>" alt="">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="weui-cell__bd">
|
|
|
+ <p class="name"><?php echo $output['member_info']['nickname']?></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+<!--不是好友-->
|
|
|
|
|
|
- <div class="group">
|
|
|
- <?php
|
|
|
- $cout = new tpl_member($output);
|
|
|
- echo $cout->output_group();
|
|
|
- ?>
|
|
|
+<?php if($output['type'] == 'qrcode') {?>
|
|
|
+<div>
|
|
|
+ <div class="weui-cells">
|
|
|
+ <div class="weui-cell">
|
|
|
+ <div class="weui-cell__bd">
|
|
|
+ <p>熊猫美妆已累计帮TA省了</p>
|
|
|
+ </div>
|
|
|
+ <div class="weui-cell__ft cell_ft">
|
|
|
+ <p><?php echo $output['visitor_info']['discount_self']?>元</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <?php
|
|
|
- $cout = new tpl_member($output);
|
|
|
- echo $cout->output_btn();
|
|
|
- ?>
|
|
|
|
|
|
- <div class="success" style="display: none">
|
|
|
- <p>恭喜您,您关注他成功了</p>
|
|
|
+ <div class="weui-btn-area">
|
|
|
+ <a class="weui-btn weui-btn_primary submit" href="javascript:" id="add">添加为好友</a>
|
|
|
</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 enmember_id = '<?php
|
|
|
- $minfo = $output['info'];
|
|
|
- $member_id = $minfo->enmember_id();
|
|
|
- echo $member_id; ?>';
|
|
|
-
|
|
|
- var nickname = '<?php
|
|
|
- $minfo = $output['info'];
|
|
|
- $member_id = urlencode($minfo->nickname());
|
|
|
- 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;
|
|
|
- ?>';
|
|
|
-
|
|
|
- window.onload = function ()
|
|
|
- {
|
|
|
- $("#btn_add_friend").click(function()
|
|
|
- {
|
|
|
- $.getJSON(url,function(result)
|
|
|
- {
|
|
|
- $(".submit").hide();
|
|
|
- $(".success").show();
|
|
|
- });
|
|
|
+<?php } elseif($output['from_type'] == 'qrcode') {?>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<!--是好友-->
|
|
|
+
|
|
|
+<!--<div>-->
|
|
|
+<!-- <div class="weui-cells">-->
|
|
|
+<!-- <div class="weui-cell">-->
|
|
|
+<!-- <div class="weui-cell__bd">-->
|
|
|
+<!-- <p>熊猫美妆已累计帮TA省了</p>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div class="weui-cell__ft cell_ft">-->
|
|
|
+<!-- <p>--><?php //echo $output['visitor_info']['discount_self']?><!--元</p>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div class="weui-cell weui-cell_access">-->
|
|
|
+<!-- <div class="weui-cell__bd">-->
|
|
|
+<!-- <p>我和TA的共同群聊</p>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div class="weui-cell__ft cell_ft">-->
|
|
|
+<!-- <p>--><?php //echo $output['visitor_info']['common_rooms']?><!--个</p>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!---->
|
|
|
+<!-- <div class="weui-btn-area">-->
|
|
|
+<!-- <a class="weui-btn weui-btn_primary submit" href="javascript:" id="send">发消息</a>-->
|
|
|
+<!-- <a class="weui-btn weui-btn_primary submit" href="javascript:" id="thief_bonus">偷红包</a>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!--</div>-->
|
|
|
+
|
|
|
+<!--添加好友-->
|
|
|
+
|
|
|
+<div>
|
|
|
+ <div class="weui-cells">
|
|
|
+ <div class="live_message">
|
|
|
+ <p>
|
|
|
+ <?php echo $output['member_info']['nickname']?>:
|
|
|
+ <span class="live_msg">你好,你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好你好</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="weui-cells">
|
|
|
+ <div class="weui-cell">
|
|
|
+ <div class="weui-cell__bd">
|
|
|
+ <p>熊猫美妆已累计帮TA省了</p>
|
|
|
+ </div>
|
|
|
+ <div class="weui-cell__ft cell_ft">
|
|
|
+ <p><?php echo $output['member_info']['discount_self']?>元</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="weui-cell">
|
|
|
+ <div class="weui-cell__bd">
|
|
|
+ <p>来源</p>
|
|
|
+ </div>
|
|
|
+ <div class="weui-cell__ft cell_ft">
|
|
|
+ <p>二维码邀请</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="weui-btn-area">
|
|
|
+ <a class="weui-btn weui-btn_primary submit" href="javascript:" id="pass_verify_btn">通过验证</a>
|
|
|
+ <a class="weui-btn weui-btn_default submit" href="javascript:" id="refuse_btn">拒绝申请</a>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</body>
|
|
|
+</html>
|
|
|
+
|
|
|
+
|
|
|
+<script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js?<?php echo bonus_version(); ?>"></script>
|
|
|
+<script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/jquery-weui.min.js?<?php echo bonus_version(); ?>"></script>
|
|
|
+<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/mobile/comm/new_bridge.js?<?php echo bonus_version(); ?>"></script>
|
|
|
+<script type="text/javascript">
|
|
|
+ $(function(){
|
|
|
+ var jsBridge = new Bridge();
|
|
|
+
|
|
|
+ $('#send').on('click',function(){
|
|
|
+ var jsonobject = {
|
|
|
+ action:"chat_to",
|
|
|
+ params:{
|
|
|
+ talk_type:"chatwo",
|
|
|
+ talk_id:<?php echo $output['member_info']['member_id']?>,
|
|
|
+ name:'<?php echo str_replace("'","",$output['visitor_info']['nickname'])?>'
|
|
|
+ }
|
|
|
+ };
|
|
|
+ jsBridge.call_native_handler('on_native_click', JSON.stringify(jsonobject));
|
|
|
});
|
|
|
- $("#btn_thief_bonus").click(function()
|
|
|
- {
|
|
|
- call_native_handler('on_native_click','{"action":"thief_bonus","params":{"enmember_id":"' + enmember_id + '"}}');
|
|
|
+
|
|
|
+ $('#thief_bonus').on('click',function(){
|
|
|
+ var jsonobject = {
|
|
|
+ action:"thief_bonus",
|
|
|
+ params:{
|
|
|
+ enmember_id:<?php echo $output['member_info']['member_id']?>
|
|
|
+ }
|
|
|
+ };
|
|
|
+ jsBridge.call_native_handler('on_native_click', JSON.stringify(jsonobject));
|
|
|
});
|
|
|
- $("#btn_send_bonus").click(function()
|
|
|
- {
|
|
|
- call_native_handler('on_native_click','{"action":"send_bonus","params":{"member_id":' + member_id + ',"nickname":"' + nickname + '"}}');
|
|
|
+
|
|
|
+
|
|
|
+ $("#add").on('click',function(){
|
|
|
+ var user = <?php echo $output['visitor_info']['member_id']?>;
|
|
|
+ $.prompt({
|
|
|
+ title: '添加好友',
|
|
|
+ text: '发送验证申请,等对方通过',
|
|
|
+ input: '你好!我是'+ "<?php echo $output['member_info']["nickname"]?>",
|
|
|
+ empty: false, // 是否允许为空
|
|
|
+ onOK: function (input) {
|
|
|
+ //点击确认
|
|
|
+ $.get("/mobile/index.php",{
|
|
|
+ act:'member_talk',
|
|
|
+ op:'add_friends',
|
|
|
+ client_type:'ajax',
|
|
|
+ msg:input,
|
|
|
+ user:user,
|
|
|
+ },function(res){
|
|
|
+ var datas = JSON.parse(res);
|
|
|
+ if(datas.code == 200) {
|
|
|
+ $.toast("发送成功",1000);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $.alert(datas.message);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
- }
|
|
|
-</script>
|
|
|
-</body>
|
|
|
-</html>
|
|
|
+ });
|
|
|
+</script>
|