} }); }) //充值贡献值 $(".devoteData").click(function () { $(this).addClass("active").siblings().removeClass("active"); $(".devote_recharge .pay-sell-price").text($(this).find(".sell-price").text()); $(".devote_recharge .pay-original-price").text($(this).find(".original-price").text()); $(".devote_recharge input[name='id']").val($(this).data('id')); }) $('.devoteBtn').click(function () { var id = $(".devote_recharge input[name='id']").val(); var payment_id = $(".devote_recharge input[name='payment_id']:checked").val(); $.ajax({ type:"post", url:"/Member/userDevote.html", data:{id:id,payment_id:payment_id}, dataType:'json', success:function(data){ //$.hideLoading(); if(data.status == 1){ window.location.href = data.url; }else{ layer.msg(data.msg); return false; } }, beforeSend : function (){ able_change = 0; //$.showLoading(); }, complete : function (){ able_change = 1; //$.hideLoading(); } }); }) $('.checkAssc').click(function(){ layer.msg('由于您的违规操作被多次举报,现已被禁止发言,如有疑问请联系平台客服!',{time:500}); }) //举报 $('.reportBtn').click(function () { var id = $("input[name='info_id']").val(); var plate = $("input[name='plate']").val(); var report_type = $("input[name='report_type']:checked").data('id'); $.ajax({ type:"post", url:"/article/articleReport.html", data:{id:id,plate:plate,report_type:report_type}, dataType:'json', success:function(data){ //$.hideLoading(); if(data.status == 1){ layer.msg(data.info,{time:500}); setTimeout(function () { layer.closeAll(); },1000); }else{ layer.msg(data.info,{time:500}); return false; } }, beforeSend : function (){ able_change = 0; //$.showLoading(); }, complete : function (){ able_change = 1; //$.hideLoading(); } }); }) //分享到微信 function shareTowx() { layer.open({ type: 1, title: false, shadeClose: true, skin: 'wx-share-layer', content: $('.wx-share'), end: function() { layer.closeAll(); $('.wx-share-layer').hide(); $('.wx-share').hide(); } }); $('#qrcode').qrcode({ width: 75, height: 75, text: window.location.href }); var canvas = $('#qrcode').find("canvas").get(0); var url = canvas.toDataURL('image/jpeg'); $("#download").attr('src', url); return false; } function layer_loading(msg) { return layer.msg(msg,{icon:16,shade:0.3,time:false}); } // 表单提交 function formSubmit(url, data){ var tishi = layer_loading('加载中..'); $.post(url, data, function(e){ layer.close(tishi); if(e.status==1){ successCallback(e); }else{ errorCallback(e); } }).fail(function(xhr,errorText,errorType){ layer.close(tishi); layer.msg('网络错误', {icon:0}); }); } //成功回调 function successCallback(e){ if(e.url){ if(e.data){ $("input[name='newId']").val(e.data); $('#uploadPic').click(); } layer.msg(e.info, {icon:1},function() { window.location.href = e.url; }); }else{ layer.msg(e.info, {icon:1},function() { window.location.reload(); }); } } //错误回调 function errorCallback(e){ if(e.url){ layer.msg(e.info, {icon:0,time:1000}, function() { window.location.href = e.url; }); }else{ layer.msg(e.info, {icon:0,time:1000}); } } // 表单数据 function formData(f){ var h = f.find("input,select,textarea"); var p = {}; var c = {}; $.each(h, function(e, t) { if (t.name = (t.name || "").replace(/^\s*|\s*&/, ""), t.name) { if (/^.*\[\]$/.test(t.name)) { var i = t.name.match(/^(.*)\[\]$/g)[0]; p[i] = 0 | p[i], t.name = t.name.replace(/^(.*)\[\]$/, "$1[" + p[i]+++"]") } /^checkbox|radio$/.test(t.type) && !t.checked || (c[t.name] = t.value) } }) return c; } // 存储草稿箱 layui.use(['form', 'layer'], function () { var layer = layui.layer; var form = layui.form; if('' != ''){ var jopTemplateJson = JSON.parse(''); } // 监听草稿提交 form.on('submit(draftsLog)', function(data){ var formData = data.field; var url = $(this).data('url'); formSubmit(url ,formData); return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。 }); // 监听招聘求职模板验证 form.on('select(jopTemplate)', function (data) { var id = data.value; if(!id){ ue.setContent(''); }else{ $.each(jopTemplateJson, function(index, item){ if(item['id'] == id){ ue.setContent(item['content']) } }) } checkEditor(); }); form.on('select(category)',function (data) { jsTipsCheck($(this), data.value) }) form.on('select(gender)',function (data) { jsTipsCheck($(this), data.value) }) form.on('select(experience)',function (data) { jsTipsCheck($(this), data.value) }) form.on('select(money)',function (data) { jsTipsCheck($(this), data.value) }) })

洋溪信息港登录

洋溪信息港重置密码

分享

举报

请点击举报理由

正在与15086016018聊天中

查看更多消息

参与/回复主题

RE:15086016018

参与/回复主题

参与/回复

参与/回复