|
@@ -0,0 +1,378 @@
|
|
|
|
+<!DOCTYPE HTML>
|
|
|
|
+<html>
|
|
|
|
+ <title>我的积分</title>
|
|
|
|
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
|
|
|
+ {{include "/common/inc.html"}}
|
|
|
|
+ <style>
|
|
|
|
+ body{
|
|
|
|
+ color: #464645;
|
|
|
|
+ }
|
|
|
|
+ .g-index-top{
|
|
|
|
+ border:1px solid #F5DC99;
|
|
|
|
+ background:#FAF5DF;
|
|
|
|
+ }
|
|
|
|
+ .m-photo div.outer{
|
|
|
|
+ border-radius:29px;
|
|
|
|
+ width:58px;
|
|
|
|
+ height:58px;
|
|
|
|
+ margin: 20px auto;
|
|
|
|
+ -webkit-box-shadow:0 0 2px #F5DC99;
|
|
|
|
+ -moz-box-shadow:0 0 2px #F5DC99;
|
|
|
|
+ box-shadow:0 0 2px #F5DC99;
|
|
|
|
+ text-align:center;
|
|
|
|
+ background:#FFF;
|
|
|
|
+ }
|
|
|
|
+ .m-photo img.inner{
|
|
|
|
+ border-radius: 27px;
|
|
|
|
+ margin: 2px;
|
|
|
|
+ }
|
|
|
|
+ .m-index-user {
|
|
|
|
+ text-align:center;
|
|
|
|
+ }
|
|
|
|
+ .m-index-user div.nickname{
|
|
|
|
+ max-width:400px;
|
|
|
|
+ margin:0px auto;
|
|
|
|
+ font-size:20px;
|
|
|
|
+ }
|
|
|
|
+ .m-index-user button.bookin{
|
|
|
|
+ width:90px;
|
|
|
|
+ height:30px;
|
|
|
|
+ margin:15px 0;
|
|
|
|
+ font-weight:200px;
|
|
|
|
+ font-size:13px;
|
|
|
|
+ }
|
|
|
|
+ .m-detailinfo{
|
|
|
|
+ margin-bottom:15px;
|
|
|
|
+ }
|
|
|
|
+ .m-detailinfo span.split{
|
|
|
|
+ color:#666;
|
|
|
|
+ float:left;
|
|
|
|
+ margin-right:25px;
|
|
|
|
+ }
|
|
|
|
+ div.title{
|
|
|
|
+ border-bottom:1px solid #B2B2B2;
|
|
|
|
+ height:40px;
|
|
|
|
+ line-height:42px;
|
|
|
|
+ padding-left:20px;
|
|
|
|
+ font-size:13px;
|
|
|
|
+ color:#000;
|
|
|
|
+ background:#F6F7F8;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ .m-rules div.title:hover{
|
|
|
|
+ background:#F6F9F4;
|
|
|
|
+ }
|
|
|
|
+ .m-rules div.title span{
|
|
|
|
+ line-height:40px;
|
|
|
|
+ padding-right:30px;
|
|
|
|
+ color:#CCCCCC;
|
|
|
|
+ font-weight:100;
|
|
|
|
+ float:right;
|
|
|
|
+ }
|
|
|
|
+ .m-rules div.title button{
|
|
|
|
+ margin-top:2px;
|
|
|
|
+ font-weight:600;
|
|
|
|
+ font-size:15px;
|
|
|
|
+ }
|
|
|
|
+ .m-rules img{
|
|
|
|
+ width:22px;
|
|
|
|
+ margin:-5px 5px 0 0 ;
|
|
|
|
+ }
|
|
|
|
+ .padding0{
|
|
|
|
+ padding-right:0px;
|
|
|
|
+ }
|
|
|
|
+ .modal-dialog{
|
|
|
|
+ width:100%;
|
|
|
|
+ }
|
|
|
|
+ .creditrules ,.bookinfo{
|
|
|
|
+ display:none;
|
|
|
|
+ position: absolute;
|
|
|
|
+ width: 100%;
|
|
|
|
+ background: #FFF;
|
|
|
|
+ top: 60px;
|
|
|
|
+ }
|
|
|
|
+ .creditrules div.content{
|
|
|
|
+ min-height:170px;
|
|
|
|
+ padding:20px 20px;
|
|
|
|
+ }
|
|
|
|
+ .creditrules div.content p.h5{
|
|
|
|
+ font-weight:bold;
|
|
|
|
+ }
|
|
|
|
+ .creditrules div.content p.para, p{
|
|
|
|
+ text-indent: 2em;
|
|
|
|
+ }
|
|
|
|
+ .creditlist{
|
|
|
|
+ margin-left:20px;
|
|
|
|
+ }
|
|
|
|
+ .creditrules .creditlist td{
|
|
|
|
+ width:10%;
|
|
|
|
+ border:1px solid #7F7F7F;
|
|
|
|
+ text-align:center;
|
|
|
|
+ }
|
|
|
|
+ .bookinfo{
|
|
|
|
+ top:226px;
|
|
|
|
+ }
|
|
|
|
+ .bookinfo div.content{
|
|
|
|
+ padding:20px 0;
|
|
|
|
+ background:#FFF;
|
|
|
|
+ text-align:center;
|
|
|
|
+ }
|
|
|
|
+ .bookinfo div.content table.credittop{
|
|
|
|
+ width:320px;
|
|
|
|
+ }
|
|
|
|
+ table.credittop td,table.creditbottom td{
|
|
|
|
+ width:75px;
|
|
|
|
+ }
|
|
|
|
+ table.credittop td div,table.creditbottom td div{
|
|
|
|
+ margin-top:5px;
|
|
|
|
+ }
|
|
|
|
+ .bookinfo div.content table.creditbottom{
|
|
|
|
+ padding-top:10px;
|
|
|
|
+ max-width:240px;
|
|
|
|
+ }
|
|
|
|
+ .bookinfo div.content img{
|
|
|
|
+ width:57px;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+<div class="modal-backdrop fade in" style="display:none;"></div>
|
|
|
|
+ <div class="g-index-top col-xs-12 padding0" >
|
|
|
|
+ <div class="m-index-user col-xs-12 padding0" >
|
|
|
|
+ <div class="m-photo">
|
|
|
|
+ <div class="outer">
|
|
|
|
+ {{session "headImg"}}
|
|
|
|
+ {{if session "headImg"}}
|
|
|
|
+ <img width=54 height=54 src="{{session "headImg"}}" class="inner"/>
|
|
|
|
+ {{else}}
|
|
|
|
+ <img width=54 height=54 src="/images/swordfish/headimg.png" class="inner"/>
|
|
|
|
+ {{end}}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="nickname">
|
|
|
|
+ {{session "nickName"}}
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+
|
|
|
|
+ {{if session "credit_qd"}}
|
|
|
|
+ {{if eq (session "credit_qd") "y"}}
|
|
|
|
+ <button class="btn btn-default bookin" id="indexbookinbtn" target="bookinfo">查看签到</button>
|
|
|
|
+ {{else}}
|
|
|
|
+ <button class="btn btn-primary bookin" id="indexbookinbtn" target="bookinfo">签到</button>
|
|
|
|
+ {{end}}
|
|
|
|
+ {{else}}
|
|
|
|
+ <button class="btn btn-primary bookin" id="indexbookinbtn" target="bookinfo">签到</button>
|
|
|
|
+ {{end}}
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <div class="m-detailinfo col-xs-12">
|
|
|
|
+ <div class="col-xs-6 text-right" style="padding-right:22px;"><span class="text-primary" style="margin-top:-3px;"><i class="glyphicon jinbi" ></i><span class="gold">{{$.T.user.i_credit}}</span></span> 积分</div>
|
|
|
|
+ <div class="col-xs-6">
|
|
|
|
+ <span class="split">|</span>
|
|
|
|
+ {{$identWay := session "identWay"}}
|
|
|
|
+ {{if session "identType"}}
|
|
|
|
+ {{$identType := session "identType"}}
|
|
|
|
+ {{if eq 1 $identType}}
|
|
|
|
+ {{if eq 1 $identWay}}
|
|
|
|
+ <span style="float:left;margin:0px 7px 0 0;font-size:17px;">
|
|
|
|
+ <i class="glyphicon qyrz f-floatf text-primary"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <div style="float:left;">
|
|
|
|
+ 已认证企业
|
|
|
|
+ </div>
|
|
|
|
+ {{end}}
|
|
|
|
+ {{else if eq 2 $identType}}
|
|
|
|
+ {{if eq 1 $identWay}}
|
|
|
|
+ <span style="float:left;margin:0px 7px 0 0;font-size:17px;">
|
|
|
|
+ <i class="glyphicon grrz f-floatf text-primary"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <div style="float:left;margin-left:-9px;">
|
|
|
|
+ 已认证个人
|
|
|
|
+ </div>
|
|
|
|
+ {{end}}
|
|
|
|
+ {{else if eq 3 $identType}}
|
|
|
|
+ {{if eq 1 $identWay}}
|
|
|
|
+ <span style="float:left;margin:0px 7px 0 0;font-size:17px;">
|
|
|
|
+ <i class="glyphicon jgrz f-floatf text-primary"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <div style="float:left;">
|
|
|
|
+ 已认证机构
|
|
|
|
+ </div>
|
|
|
|
+ {{end}}
|
|
|
|
+ {{end}}
|
|
|
|
+ {{else}}
|
|
|
|
+ <span style="float:left;margin:0px 7px 0 0;font-size:17px;">
|
|
|
|
+ <i class="glyphicon grrz"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <div style="float:left;">
|
|
|
|
+ 未认证
|
|
|
|
+ </div>
|
|
|
|
+ {{end}}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="g-index-bottom" style="clear:both;">
|
|
|
|
+ <div class="m-rules" target="creditrules">
|
|
|
|
+ <div class="title"><img src="/images/lb.png" />积分规则<span class="glyphicon xiayibu"></span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="position: absolute;width:100%;z-index:4410;background:#FFF;" class="creditrules">
|
|
|
|
+ <div class="title">
|
|
|
|
+ 积分规则
|
|
|
|
+ <button class="btn btn-link text-primary f-floatr f-close" >确定</button>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="content">
|
|
|
|
+ <p class="h5">一、积分说明</p>
|
|
|
|
+ <p class="para">会员总积分由操作积分、充值积分组成,其中操作积分是由会员的日常操作得分, 充值积分是因为充值产生的,因为违规操作引起的扣分行为将影响会员积分 (发布无意义和重复信息扣除200积分,发布违反国家相关法规信息永久封号)。</p>
|
|
|
|
+ <p class="h5">二、积分获得方法</p>
|
|
|
|
+ <p class="para">1、做任务赚积分</p>
|
|
|
|
+ <p class="para">企明星为你准备了简单操作的新手任务,引导你对网站功能快速上手的同时, 还能获取相应的积分。全部完成更能一次额外获得1001积分哦~</p>
|
|
|
|
+ <p class="para">2、日常任务</p>
|
|
|
|
+ <p >完成5次企业查询,得50积分(每天上限50积分)</p>
|
|
|
|
+ <p>发布3条服务信息,得60积分(每天上限60积分)</p>
|
|
|
|
+ <p>发布3条需求信息,得60积分(每天上限60积分)</p>
|
|
|
|
+ <p>分享2条服务信息/交易信息,得40积分(每天上限40积分)</p>
|
|
|
|
+ <p class="para">3、连续签到任务(签到)</p>
|
|
|
|
+ <table class="creditlist">
|
|
|
|
+ <tr>
|
|
|
|
+ <td>连续签到<br/>天数</td>
|
|
|
|
+ <td>1</td>
|
|
|
|
+ <td>2</td>
|
|
|
|
+ <td>3</td>
|
|
|
|
+ <td>4</td>
|
|
|
|
+ <td>5</td>
|
|
|
|
+ <td>6</td>
|
|
|
|
+ <td>7</td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr>
|
|
|
|
+ <td>会员奖励<br/>积分</td>
|
|
|
|
+ <td>10</td>
|
|
|
|
+ <td>20</td>
|
|
|
|
+ <td>30</td>
|
|
|
|
+ <td>40</td>
|
|
|
|
+ <td>50</td>
|
|
|
|
+ <td>60</td>
|
|
|
|
+ <td>70</td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ <p class="para">4、增送</p>
|
|
|
|
+ <p>邀请新用户加入,邀请成功后,每人次可获得积分。</p>
|
|
|
|
+ <p class="para">5、充值</p>
|
|
|
|
+ <p class="para">充值可以快速获得积分,充值1元兑换100积分。充值积分不可用于会员升级,只可用于功能使用。</p>
|
|
|
|
+ <p class="para">6、活动增送</p>
|
|
|
|
+ <p class="para">企明星不定期开放各种任务,为活跃用户提供更多获取积分得方式,加速成长,获得积分。所以,常来看看哦~</p>
|
|
|
|
+ <p class="para">备注:会员积分可能有延迟,若超过24小时未加上,请于企明星客服联系。</p>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="position: absolute;width:100%;z-index:4411;background:#FFF;" class="bookinfo">
|
|
|
|
+ <div class="title">
|
|
|
|
+ 签到
|
|
|
|
+ <button class="btn btn-link text-primary f-floatr f-close" >确定</button>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="content">
|
|
|
|
+ <div>
|
|
|
|
+ <table width="100%;" style="margin:15px auto;" class="credittop">
|
|
|
|
+ <tr>
|
|
|
|
+ <td><img src="/images/10jf.png"><div>第一天</div></td>
|
|
|
|
+ <td><img src="/images/20jf.png"><div>第二天</div></td>
|
|
|
|
+ <td><img src="/images/30jf.png"><div>第三天</div></td>
|
|
|
|
+ <td><img src="/images/40jf.png"><div>第四天</div></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ <table width="100%;" style="margin:0px auto;" class="creditbottom">
|
|
|
|
+ <tr>
|
|
|
|
+ <td style="margin-left:10px;"><img src="/images/50jf.png"><div>第五天</div></td>
|
|
|
|
+ <td><img src="/images/60jf.png"><div>第六天</div></td>
|
|
|
|
+ <td><img src="/images/70jf.png"><div>第七天</div></td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ <div>
|
|
|
|
+ {{if session "credit_qd"}}
|
|
|
|
+ {{if eq (session "credit_qd") "y"}}
|
|
|
|
+ <button class="btn " style="width:180px;margin-top:10px;" id="bookinbtn" disabled="disabled">已签到</button>
|
|
|
|
+ {{else}}
|
|
|
|
+ <button class="btn btn-primary " style="width:180px;margin-top:10px;" id="bookinbtn">签到</button>
|
|
|
|
+ {{end}}
|
|
|
|
+ {{else}}
|
|
|
|
+ <button class="btn btn-primary " style="width:180px;margin-top:10px;" id="bookinbtn">签到</button>
|
|
|
|
+ {{end}}
|
|
|
|
+ </div>
|
|
|
|
+ <div><small>(已连续签到<span class="days"></span>天)</small></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <script>
|
|
|
|
+ $(function(){
|
|
|
|
+ $(".m-rules").bind("click",show);
|
|
|
|
+ $(".bookin").bind("click",show);
|
|
|
|
+ $(".f-close").bind("click",hide);
|
|
|
|
+ $("#bookinbtn").bind("click",qd);
|
|
|
|
+ bookinfo();
|
|
|
|
+ });
|
|
|
|
+ function bookinfo(){
|
|
|
|
+
|
|
|
|
+ $.ajax({
|
|
|
|
+ url:"/member/credit/bookinfo",
|
|
|
|
+ method:"POST",
|
|
|
|
+ type:"json",
|
|
|
|
+ success:function(r){
|
|
|
|
+ if (r){
|
|
|
|
+ var d={"1":"一","2":"二","3":"三","4":"四","5":"五","6":"六","7":"七","8":"八","9":"九","0":"零"}
|
|
|
|
+ $(".days").text(d[""+r[1]]);
|
|
|
|
+ $(".days").attr("data",r[1]);
|
|
|
|
+ var images=$(".bookinfo img");
|
|
|
|
+ if(r[1]>7){
|
|
|
|
+ r[1]=1;
|
|
|
|
+ }
|
|
|
|
+ for(var i=0;i<r[1];i++){
|
|
|
|
+ var src=images.eq(i).attr("src");
|
|
|
|
+ if (src.indexOf("ff")==-1){
|
|
|
|
+ src=src.replace("f","ff");
|
|
|
|
+ images.eq(i).attr("src",src);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ $(".days").text("0");
|
|
|
|
+ $(".days").attr("data",0);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ function hide(n){
|
|
|
|
+ n=$(n.target);
|
|
|
|
+ n.parent().parent().hide();
|
|
|
|
+ $(".modal-backdrop.fade.in").hide();
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ function show(n){
|
|
|
|
+ $(".modal-backdrop.fade.in").show();
|
|
|
|
+ var node=$(n.target);
|
|
|
|
+ while(true){
|
|
|
|
+ if(node.attr("target")){
|
|
|
|
+ $("."+node.attr("target")).fadeIn() ;
|
|
|
|
+ break;
|
|
|
|
+ }else{
|
|
|
|
+ node=node.parent();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ function qd(){
|
|
|
|
+ $.post("/member/credit/inCreditAjx",{"param":"qd"},function(r){
|
|
|
|
+ bookinfo();
|
|
|
|
+ if (r.result=="y"){
|
|
|
|
+ $("#indexbookinbtn").attr("class","btn btn-default bookin");
|
|
|
|
+ $("#bookinbtn").attr("class","btn bookin");
|
|
|
|
+ $("#bookinbtn").attr("disabled","disabled");
|
|
|
|
+ $(".gold").text(parseInt($(".gold").text())+parseInt($(".days").attr("data")*10));
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ </script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|