|
@@ -141,23 +141,32 @@
|
|
|
<div class="m-index-user col-xs-12 padding0" >
|
|
|
<div class="m-photo">
|
|
|
<div class="outer">
|
|
|
- <img width=54 height=54 src="http://test.qimingxing.info/upload/2016/01/09/2016010908572500149182.jpg" class="inner"/>
|
|
|
+ {{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" target="bookinfo">查看签到</button>
|
|
|
+ <button class="btn btn-default bookin" id="indexbookinbtn" target="bookinfo">查看签到</button>
|
|
|
{{else}}
|
|
|
- <button class="btn btn-primary bookin" target="bookinfo">签到</button>
|
|
|
+ <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>{{$.T.user.i_credit}}</span> 积分</div>
|
|
|
+ <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"}}
|
|
@@ -219,12 +228,12 @@
|
|
|
<p class="para">会员总积分由操作积分、充值积分组成,其中操作积分是由会员的日常操作得分, 充值积分是因为充值产生的,因为违规操作引起的扣分行为将影响会员积分 (发布无意义和重复信息扣除200积分,发布违反国家相关法规信息永久封号)。</p>
|
|
|
<p class="h5">二、积分获得方法</p>
|
|
|
<p class="para">1、做任务赚积分</p>
|
|
|
- <p class="para">企明星为你准备了简单操作的新手任务,引导你对网站功能快速上手的同事, 还能获取相应的积分。全部完成更能一次额外获得1001积分哦~</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 >完成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>
|
|
@@ -249,11 +258,11 @@
|
|
|
</tr>
|
|
|
</table>
|
|
|
<p class="para">4、增送</p>
|
|
|
- <p>邀请新用户加入,邀请成功后,每人次可获得 积分。</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">企明星不定期开放各种任务,为活跃用户提供更多获取积分得方式,加速成长,获得积分。所以,常来看看哦~</p>
|
|
|
<p class="para">备注:会员积分可能有延迟,若超过24小时未加上,请于企明星客服联系。</p>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -282,10 +291,12 @@
|
|
|
<div>
|
|
|
{{if session "credit_qd"}}
|
|
|
{{if eq (session "credit_qd") "y"}}
|
|
|
- <button class="btn bookin" style="width:180px;margin-top:10px;" disabled="disabled">已签到</button>
|
|
|
+ <button class="btn " style="width:180px;margin-top:10px;" id="bookinbtn" disabled="disabled">已签到</button>
|
|
|
{{else}}
|
|
|
- <button class="btn btn-primary bookin" style="width:180px;margin-top:10px;">签到</button>
|
|
|
+ <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>
|
|
@@ -298,6 +309,11 @@
|
|
|
$(".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",
|
|
@@ -306,16 +322,26 @@
|
|
|
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");
|
|
|
- src=src.replace("f","ff");
|
|
|
- images.eq(i).attr("src",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();
|
|
@@ -335,7 +361,18 @@
|
|
|
}
|
|
|
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>
|