chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
{yun:}include file="$comstyle/header.htm"{/yun}
<div class="w1000">
    <div class="admin_mainbody">
        {yun:}include file="$comstyle/left.htm"{/yun}
        <div class=right_box>
            <div class="com_tit">
                <span class="com_tit_span">好友助力</span>
            </div>
        <div class="vip_boxshow">    <div class="vip_boxshow_c">
        
        <div class="report_uaer_list ">
            <div class="report_uaer_list_h1">开通超级会员</div>
            <div class="report_uaer_list_p">为企业提供多样化的套餐服务</div>
             <ul>
               {yun:}if $config.com_vip_type==2{/yun}
               <li><a href="index.php?c=right" >套餐会员</a></li>
               {yun:}/if{/yun}
               
               {yun:}if $config.com_vip_type==1{/yun}
               <li><a href="index.php?c=right&act=time" >时间会员</a></li>
               {yun:}/if{/yun}
               
               {yun:}if $config.com_vip_type==0{/yun}
               <li><a href="index.php?c=right" >套餐会员</a></li>
               <li><a href="index.php?c=right&act=time" >时间会员</a></li>
               {yun:}/if{/yun}
               {yun:}if $statis.rating_type != 2 && !$vipIsDown && $config.com_integral_online != 4 {/yun}
                <li><a href="index.php?c=right&act=added" >增值包</a></li>
                {yun:}/if{/yun}
             <li><a href="index.php?c=ad" > 购买广告位</a></li>
             <li ><a href="index.php?c=pay" >充值服务</a></li>
             <li><a href="index.php?c=paylogtc" >我的服务</a></li>
             <li><a href="index.php?c=paylog&consume=ok" >订单管理</a></li>
             {yun:}if $config.sy_com_invoice == 1{/yun}
                    <li><a href="index.php?c=invoice"  >发票管理</a></li>
                   {yun:}/if{/yun}
             <li><a href="index.php?c=coupon_list" >优惠卡券</a></li>
             <li><a href="index.php?c=jobpack&act=loglist"  >赏金收益</a></li>
                 {yun:}if $config.sy_help_open == 1{/yun}
                 <li class="report_uaer_list_cur"><a href="index.php?c=friendhelp" >好友助力</a></li>
                 {yun:}/if{/yun}
             <li><a  href="index.php?c=integral">{yun:}$config.integral_pricename{/yun}管理</a></li>
             </ul>
           </div>
           <div class="vip_box_dq">参加活动需满足:至少有1个正在招聘中的职位</div>
                 <div class="paylogpc" >
                    
                    <div class="help_box">
                        {yun:}if $helpinfo{/yun}
                        
                        <!-- 已开始-->
                        <table class="com_received_resume mt20">
                            <tr>
                                <th>活动状态</th>
                                <th>助力人数</th>
                                <th>操作</th>
                            </tr>
 
                            <tr>
                                <td><span class="help_box_wks_p">分享助力正在进行中...</span></td>
                                <td align="center">
                                    {yun:}if $helpinfo.zlnum>0{/yun} 
                                    
                                        <!--有好友助力-->
                                        目前已有 <span class="help_box_zlhy">{yun:}$helpinfo.zlnum{/yun}</span>位好友为您助 <a href="javascript:;" onclick="getlog('{yun:}$helpinfo.id{/yun}');" class="help_box_zlhy_more">查看更多好友 ></a>
                                        <div class="help_box_wks_pic">
                                            {yun:}foreach from=$loglist key=key item=log{/yun} 
                                                <img src="{yun:}$log.wxpic{/yun}" width="40" height="40">
                                            {yun:}/foreach{/yun}
                                        </div>
                                        <div class="help_box_wks_bth">
                                            <a href="javascript:;" class="help_box_bth addhelp">邀请好友 ,
                                                助我成功</a>
    
                                        </div> 
                                        <!--有好友助力 end-->
                                    {yun:}else{/yun} 
                                    
                                        <!--没有好友助力-->
                                        <div class="help_box_hyno">还没有好友为您助力哦!赶快邀请好友吧~</div>
                                        <div class="help_box_wks_bth">
                                            <a href="javascript:;" class="help_box_bth addhelp">邀请好友 , 助我成功</a>
                                        </div> 
                                        <!--没有好友助力 end--> 
                                    {yun:}/if{/yun}
                                </td>
                                <td align="center" width="120">
                                    <a href="javascript:;" onclick="getpackage('{yun:}$helpinfo.id{/yun}');" class="help_box_lqqy">领取权益</a>
                                </td>
                            </tr>
                        </table>
                        <!-- 已开始 end-->
                        
                        {yun:}else{/yun}
                        
                        <!-- 未开始-->
                        <div class="help_box_wks">
                            <div class="help_box_wks_titbox">
                                <div class="help_box_wks_p">
                                    邀请好友助力您可免费获得以下招聘权限:
                                </div>
                            </div>
                            <div class="help_box_wks_content">
                                {yun:}foreach from=$nowpackage item=npack{/yun}
                                <div class="help_box_bzlist">
                                    <span class="help_box_zl_n">+{yun:}$npack.zl{/yun} 助力</span>
                                    <span class="help_box_hd">获得 {yun:}$npack.num{/yun} 次</span>
                                    <span class="help_box_hd_name">{yun:}$npack.name{/yun}</span>
                                </div>
                                {yun:}/foreach{/yun}
                            </div>
                        <div class="new_hyzlbox">    <a href="javascript:;" class="new_hyzl addhelp">立即参加,领取福利</a>    </div>
                        </div>
                        <!-- 未开始 end-->
                        
                        {yun:}/if{/yun} 
                        
                        {yun:}if $rows{/yun}
                        <div class="help_box_over">- 以下助力已结束,您可以领取未领取的权益 -</div>
                        <div class="com_received_resumenew">
                        <table class="com_received_resume">
                            <tr>
                                <th width="140">活动状态</th>
                                <th width="140">开始时间</th>
                                <th width="140">结束时间</th>
                                <th width="140">助力人数</th>
                                <th>获得权益</th>
                                <th width="120">操作</th>
                            </tr>
                            {yun:}foreach from=$rows item=list{/yun}
                            <tr>
                                <td align="center">已结束</td>
                                <td align="center">{yun:}$list.stime|date_format:"%Y-%m-%d %H:%M"{/yun}</td>
                                <td align="center">{yun:}$list.etime|date_format:"%Y-%m-%d %H:%M"{/yun}</td>
                                <td align="center">
                                    {yun:}$list.zlnum{/yun}位 <a href="javascript:;" onclick="getlog('{yun:}$list.id{/yun}');" class="help_member_look">查看</a>
                                </td>
                                <td>
                                    {yun:}foreach from=$list.getpackage item=packlist{/yun}
                                        {yun:}$packlist.name{/yun}: {yun:}$packlist.num{/yun} 
                                    {yun:}/foreach{/yun}
                                </td>
                                <td align="center" width="120">
                                    {yun:}if $list.state == 1{/yun} 
                                        <span class="help_box_ybth">已领取</span> 
                                    {yun:}else{/yun}
                                        <a href="javascript:;" onclick="getpackage('{yun:}$list.id{/yun}');" class="help_box_lqqy">领取权益</a> 
                                    {yun:}/if{/yun}
                                </td>
                            </tr>
                            {yun:}/foreach{/yun}
 
                        </table></div>
                        <!--   已结束 -->
                        <div class="pages">{yun:}$pagenav{/yun}</div>
                        {yun:}/if{/yun}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
 
<div id="loglist" class="help_userbox none">
    <div class="help_usercont"></div>
</div>
 
<style>
.help_userbox {
    width: 500px;
}
 
.help_userlist {
    width: 100%;
    float: left;
    padding: 10px 0;
}
 
.help_userlist span {
    display: block;
    line-height: 40px;
    float: left;
    text-align: center
}
 
.help_userlist_xh {
    width: 100px;
    float: left;
}
 
.help_userlist_tx {
    width: 80px;
    float: left
}
 
.help_userlist_tx img {
    border-radius: 50%;
}
 
.help_userlist_wx {
    width: 150px;
    line-height: 40px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
 
.help_userlist_time {
    width: 150px;
}
 
.help_usercont {
    width: 100%;
    height: 360px;
    overflow: auto
}
 
.help_userlist_top {
    font-weight: bold
}
</style>
<script>
    function getpackage(id) {
 
        var loadi = layer.load('执行中,请稍候...', 0);
 
        $.post('index.php?c=friendhelp&act=getpackage', {
            id : id
        }, function(data) {
            layer.closeAll();
            data = eval('(' + data + ')');
            if (data.msg) {
                layer.msg(data.msg, 2, 8);
            } else {
 
                layer.msg('领取失败', 2, 8);
            }
 
        });
    }
 
    function getlog(id) {
 
        var loadi = layer.load('执行中,请稍候...', 0);
 
        $.post('index.php?c=friendhelp&act=loglist',{id : id},function(data) {
            layer.closeAll();
            if (data) {
                data = eval('(' + data + ')');
                var html = '<div class="help_userlist help_userlist_top"><span class="help_userlist_xh">序号</span><span class="help_userlist_tx">头像</span><span class="help_userlist_wx">微信名称</span><span class="help_userlist_time">助力时间</span></div>';
                for ( var k in data) {
                    html = html
                            + '<div class="help_userlist"><span class="help_userlist_xh">'
                            + (parseInt(k) + 1)
                            + '</span><span class="help_userlist_tx"><img src="'+data[k].wxpic+'" width="40" height="40"></span><span class="help_userlist_wx">'
                            + data[k].wxname
                            + '</span><span class="help_userlist_time">'
                            + data[k].time + '</span></div>';
                }
                $('.help_usercont').html(html);
                $.layer({
                    type : 1,
                    title : '助力好友',
                    offset : [ '40px', '' ],
                    closeBtn : [ 0, true ],
                    border : [ 10, 0.3, '#000', true ],
                    area : [ '500px', '440px' ],
                    page : {
                        dom : "#loglist"
                    }
                });
    
            } else {
                layer.msg('暂无助力记录!', 2, 8);
            }
    
        });
    }
</script>
{yun:}include file="$comstyle/footer.htm"{/yun}