|
@@ -87,7 +87,7 @@ $(function(){
|
|
|
var dom='<div class="layer_box" id="bomb">'+
|
|
|
'<div class="layer" style="padding-bottom: 2px">'+
|
|
|
'<div class="top_msg" style="padding: 0 20px;line-height: 126px">'+
|
|
|
- '<div><textarea id="pass_msg" placeholder="写下你想说的话" style="width:98%;height:50px;font-size: 1.2rem"></textarea></div>'+
|
|
|
+ '<div><textarea id="pass_msg" placeholder="写下你想说的话" style="width:98%;height:50px;font-size: 0.45rem"></textarea></div>'+
|
|
|
'</div>'+
|
|
|
'<div class="bottom_btn center" style="background: #fff;">'+
|
|
|
'<p id="go" class="post_btn" style="float: left;width: 50%;border-top: 1px solid #bfbfbf;color: #000;">取消</p>'+
|
|
@@ -172,80 +172,86 @@ $(function(){
|
|
|
code: yanzVal,
|
|
|
bonus_sn:bonus_sn
|
|
|
},
|
|
|
- success:function(data) {
|
|
|
+ success:function(data)
|
|
|
+ {
|
|
|
if (data.code==200) {
|
|
|
- var tel = $("#tel_number").val();
|
|
|
- var alink = $("#url").val();
|
|
|
- var other_html='';
|
|
|
- var html='';
|
|
|
+ location.reload();
|
|
|
+ // var tel = $("#tel_number").val();
|
|
|
+ // var alink = $("#url").val();
|
|
|
+ // var other_html='';
|
|
|
+ // var html='';
|
|
|
|
|
|
- var ser = function binded_info(){
|
|
|
- function formatDate(now) {
|
|
|
- //var year=now.getYear()+1900;
|
|
|
- var month=now.getMonth()+1;
|
|
|
- var date=now.getDate();
|
|
|
- var hour=now.getHours();
|
|
|
- var minute=now.getMinutes();
|
|
|
- var second=now.getSeconds();
|
|
|
- return month+"-"+date+" "+hour+":"+minute;
|
|
|
- }
|
|
|
- //其他用户的结构
|
|
|
- var other_ser=data.datas.binded_info;
|
|
|
- var king=data.datas.type_info.max_amount;
|
|
|
- var mine_bonus_sn=data.datas.mine_bonus.bonus_sn;
|
|
|
- var mine_bonus_value = data.datas.mine_bonus.bonus_value;
|
|
|
- var comment=data.datas.binded_info;
|
|
|
- //红包金额
|
|
|
- $('.price span').text(mine_bonus_value);
|
|
|
-
|
|
|
- for(var i=0;i<other_ser.length;i++){
|
|
|
- var king_icon='',
|
|
|
- mine ='',
|
|
|
- user_comment='';
|
|
|
-
|
|
|
- if(other_ser[i].bonus_sn==mine_bonus_sn){
|
|
|
- mine = '<a href="javascript:void(0)" id="message" style="color: #1927D1">留言</a>'
|
|
|
- }
|
|
|
- else {
|
|
|
- mine=formatDate(new Date(parseInt(other_ser[i].get_time)*1000));
|
|
|
- }
|
|
|
- if(other_ser[i].binded_over == 1 && other_ser[i].bonus_value==king) {
|
|
|
- king_icon = '<s class="king"></s>手气最佳';
|
|
|
- }
|
|
|
- if(comment[i].user_comment==''){
|
|
|
- user_comment='';
|
|
|
- }
|
|
|
- else {
|
|
|
- user_comment=comment[i].user_comment;
|
|
|
- }
|
|
|
- other_html+='<div class="li">'+
|
|
|
- '<div class="li_left">'+
|
|
|
- '<p class="p">'+other_ser[i].user_name+'</p>'+
|
|
|
- '<p class="prompt" id="my_prompt">'+mine+'</p>'+
|
|
|
- '<p style="color:#9b9b9b">'+user_comment+'</p>'+
|
|
|
- '</div>'+
|
|
|
- '<div class="li_right">'+
|
|
|
- '<p class="p">'+other_ser[i].bonus_value+'元</p>'+
|
|
|
- '<p class="king_box">'+king_icon+'</p>'+
|
|
|
- '</div>'+
|
|
|
- '</div>';
|
|
|
- }
|
|
|
-
|
|
|
- var binded_num=data.datas.type_info.binded_num,
|
|
|
- total_num=data.datas.type_info.total_num,
|
|
|
-
|
|
|
- //抢购数量
|
|
|
- shtml='<div class="prompt text_left">'+
|
|
|
- '<p class="prompt pro">领取'+binded_num+'/'+total_num+'个</p>'+
|
|
|
- '</div>';
|
|
|
-
|
|
|
- html+=shtml+other_html;
|
|
|
- return html;
|
|
|
- };
|
|
|
- $('.list').html(ser());
|
|
|
- $('#bind_link').hide();
|
|
|
- $('#link').css('display','block').addClass('link_but');
|
|
|
- } else {
|
|
|
+ // var ser = function binded_info()
|
|
|
+ // {
|
|
|
+ // function formatDate(now) {
|
|
|
+ // //var year=now.getYear()+1900;
|
|
|
+ // var month=now.getMonth()+1;
|
|
|
+ // var date=now.getDate();
|
|
|
+ // var hour=now.getHours();
|
|
|
+ // var minute=now.getMinutes();
|
|
|
+ // var second=now.getSeconds();
|
|
|
+ // return month+"-"+date+" "+hour+":"+minute;
|
|
|
+ // }
|
|
|
+ // //其他用户的结构
|
|
|
+ // var other_ser=data.datas.binded_info;
|
|
|
+ // var king=data.datas.type_info.max_amount;
|
|
|
+ // var mine_bonus_sn=data.datas.mine_bonus.bonus_sn;
|
|
|
+ // var mine_bonus_value = data.datas.mine_bonus.bonus_value;
|
|
|
+ // var comment=data.datas.binded_info;
|
|
|
+ // //红包金额
|
|
|
+ // $('.price span').text(mine_bonus_value);
|
|
|
+ //
|
|
|
+ // for(var i=0;i<other_ser.length;i++)
|
|
|
+ // {
|
|
|
+ // var king_icon='',
|
|
|
+ // mine ='',
|
|
|
+ // user_comment='';
|
|
|
+ //
|
|
|
+ // if(other_ser[i].bonus_sn==mine_bonus_sn){
|
|
|
+ // mine = '<a href="javascript:void(0)" id="message" style="color: #1927D1">留言</a>'
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
+ // mine=formatDate(new Date(parseInt(other_ser[i].get_time)*1000));
|
|
|
+ // }
|
|
|
+ // if(other_ser[i].binded_over == 1 && other_ser[i].bonus_value==king) {
|
|
|
+ // king_icon = '<s class="king"></s>手气最佳';
|
|
|
+ // }
|
|
|
+ // if(comment[i].user_comment==''){
|
|
|
+ // user_comment='';
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
+ // user_comment=comment[i].user_comment;
|
|
|
+ // }
|
|
|
+ // other_html+='<div class="li">'+
|
|
|
+ // '<div class="li_left">'+
|
|
|
+ // '<p class="p">'+other_ser[i].user_name+'</p>'+
|
|
|
+ // '<p class="prompt" id="my_prompt">'+mine+'</p>'+
|
|
|
+ // '<p style="color:#9b9b9b">'+user_comment+'</p>'+
|
|
|
+ // '</div>'+
|
|
|
+ // '<div class="li_right">'+
|
|
|
+ // '<p class="p">'+other_ser[i].bonus_value+'元</p>'+
|
|
|
+ // '<p class="king_box">'+king_icon+'</p>'+
|
|
|
+ // '</div>'+
|
|
|
+ // '</div>';
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // var binded_num=data.datas.type_info.binded_num,
|
|
|
+ // total_num=data.datas.type_info.total_num,
|
|
|
+ //
|
|
|
+ // //抢购数量
|
|
|
+ // shtml='<div class="prompt text_left">'+
|
|
|
+ // '<p class="prompt pro">领取'+binded_num+'/'+total_num+'个</p>'+
|
|
|
+ // '</div>';
|
|
|
+ //
|
|
|
+ // html+=shtml+other_html;
|
|
|
+ // return html;
|
|
|
+ // };
|
|
|
+ //
|
|
|
+ // $('.list').html(ser());
|
|
|
+ // $('#bind_link').hide();
|
|
|
+ // $('#link').css('display','block').addClass('link_but');
|
|
|
+ }
|
|
|
+ else {
|
|
|
that.appendDom(that.msg.yanz_err, that.btnname.rewrite);
|
|
|
}
|
|
|
}
|