myfansDetail.html
6.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>{if $level==1}一级会员/代理{/if}{if $level==2}二级会员/代理{/if}{if $level==3}三级会员/代理{/if}{if $level==4}推广点击{/if}{if $level==5}成功关注{/if}名单</title>
<link rel="stylesheet" type="text/css" href="{$_W['siteroot']}app/resource/css/bootstrap.min.css" >
<link rel="stylesheet" type="text/css" href="{WWX_FXXT_ROOT}/style/new/foundation.css">
<link rel="stylesheet" type="text/css" href="{WWX_FXXT_ROOT}/recouse/css/bottom.css?x={WWX_FXXT_VERSION}" />
<link rel="stylesheet" type="text/css" href="{WWX_FXXT_ROOT}/style/new/common-v4.0.css">
<link rel="stylesheet" type="text/css" href="{WWX_FXXT_ROOT}/style/new/person-v4.1.css">
<link rel="stylesheet" type="text/css" href="{WWX_FXXT_ROOT}/images/style.css">
<link rel="stylesheet" type="text/css" href="{WWX_FXXT_ROOT}/recouse/css/wwx.css">
<script type='text/javascript' src='resource/js/lib/jquery-1.11.1.min.js'></script>
<style>
.btn-know{position:relative;text-shadow:none;font-weight:normal;text-decoration:none;font-size:16px;padding:0.5em 1.5em;display:inline-block;cursor:pointer;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;*zoom:1;filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF08B12D', endColorstr='#FF044F14');background-color:#08b12d;border:0;color:white;text-shadow:#02370e 0 -1px 0}
.btn-know:hover{text-decoration:none}
.btn-know:hover{background-color:#079927}
.btn-know:active{background-color:#068a23}
.btn-know[disabled]{filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=60);opacity:0.6;background:false;cursor:default;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}
.btn-know::-moz-focus-inner{padding:0 !important;margin:-1px !important}
#poptip { position: fixed; top:40%;left:50%;width:160px;margin-left:-80px;height: 27px;background:#000; opacity: 0.7;filter:alpha(opacity=0.7); color:#fff;z-index: 999; border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;}
#poptip_content { position: fixed; top:40%;left:50%;width:160px;margin-left:-80px; height: 27px; color:#fff;text-align:center;font-size:14px;z-index: 9909}
</style>
<script language='javascript'>
function tip(msg,autoClose){
var div = $("#poptip");
var content =$("#poptip_content");
if(div.length<=0){
div = $("<div id='poptip'></div>").appendTo(document.body);
content =$("<div id='poptip_content'>" + msg + "</div>").appendTo(document.body);
}else{
content.html(msg);
content.show(); div.show();
}
if(autoClose) {
setTimeout(function(){
content.fadeOut(500);
div.fadeOut(500);
},1000);
}
}
function tip_close(){
$("#poptip").fadeOut(500);
$("#poptip_content").fadeOut(500);
}
</script>
</head>
<body style=" background-color:#FFFFFF;padding-top:0px; padding-bottom:0px;" class="body-gray my-memvers">
<section class="member-count">
<h2 class="member-count-title"><i class="icon-chunk-gry"><i class="icon-chunk-blue"></i></i><span>点击头像可联系对方</span></h2>
</section>
{if empty($fansall)}
<div class="disorder-none"><i class="icon-none"></i><span class="nonetext">您还没有{if $level==1}一级会员/代理{/if}{if $level==2}二级会员/代理{/if}{if $level==3}三级会员/代理{/if}{if $level==4}推广点击{/if}{if $level==5}成功关注{/if}!</span></div>
{else}
<div class="list-myorder" style="margin-top:10px;">
<ul class="ul-product" >
{loop $fansall $fans}
<li>
<span class="pic" style="width:90px;height:90px;" onClick="newMsg('{$fans["from_user"]}');"><img src="{if empty($fans['avatar'])}{WWX_FXXT_ROOT}/style/images/yh.png{else}{$fans['avatar']}{/if}"></span>
<div class="text">
<span class="pro-name">昵称:{$fans['nickname']}</span>
<div class="pro-pric"><span>关注时间:</span>{if $fans['follow']==1}{php echo date('Y-m-d', $fans['followtime']);}{else}尚未关注{/if}</div>
<div class="pro-pric"><span>粉丝数量:</span>{$fans['flagcount']}</div>
<div class="pro-pric"><span>推荐上级:</span>{$fans['sharerealname']}</div>
<div class="pro-pric"><span>级别:</span><span style="color:#990033">{php echo $this->getLevel($fans['id'],2)}</span>/<span style="color: #FF9900">{php echo $this->getLevel($fans['id'],1)}</span></div>
</div>
</li>
{/loop}
</ul>
</div>
{/if}
{$pager}
<form class="form-horizontal" method="post" role="form">
<input type="hidden" id="openid" value="" />
<!--新建信息 -->
<div class="order-main">
<div class="add-address img-rounded" id="addMsgPanel_New" style="margin-top:-10px;position:fixed;top:0;left:0;width:100%;height:110%;background:rgba(0, 0, 0, 0.7);display:none;z-index:20000;">
<div class="add-address-hd">发送新信息</div>
<div class="add-address-main">
<div class="form-group">
<div class="col-sm-12">
<textarea class="form-control" id="reason_New" name="reason_New" cols="60" rows="5" maxlength="200"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<button type="button" class="btn btn-danger" onClick="saveMsgNew()">发送</button>
<button type="button" class="btn" onClick="addMsgNew();$('#addMsgPanel_New').hide();$('#openid').val('');">取消</button>
</div>
</div>
</div>
</div>
</div>
</form>
{template 'wx_nav'}
<script type="text/javascript" src="{WWX_FXXT_ROOT}/recouse/js/cascade.js?x=14"></script>
<script type="text/javascript">
var from='{$from}';
var returnurl = '{$returnurl}';
function saveMsgNew() {
var reason = $('#reason_New').val();
if (!reason) {
msgbox('提示','请输入消息内容!','',null,0,'error');
return false;
} tip("正在处理数据...");
$.post('{php echo $this->createMobileUrl('mymessage')}', {
'op' : 'postnew',
'reason' : reason,
'openid' : $('#openid').val()
}, function(s) {
tip_close();
if (s.message == -1) {
msgbox('提示','不能给自己发送消息!','',tiaozhuan(),0,'error');
}
if (s.message == 0) {
msgbox('提示','消息发送失败!','',tiaozhuan(),0,'error');
}
if (s.message > 0) {
msgbox('提示','消息发送成功!','',tiaozhuan(),0,'true');
}
}, 'json');
}
function tiaozhuan() {
$('#addMsgPanel_New').hide();
//location.href = "{php echo $this->createMobileUrl('mymessage')}";
}
function addMsgNew() {
$('#addMsgPanel_New').show();
$('#reason_New').val('');
$('#openid').val('');
}
var isdef = 0;
function newMsg(openid) {
tip("正在处理数据...");
$('#addMsgPanel_New').show();
$('#openid').val(openid);
tip_close();
}
</script>
<div style="height:20px;"></div>
{template 'footer'}
</body>
</html>