$(function() { var conference_items = []; var conference_txt = []; var conference_id = []; var canClick = true; var conference1_txt = []; var conference1_id = []; var templang; var coor_txt = []; var coor_zh_txt = []; var coor_id = []; var conference_obj = {} var tempSelectId = '' var phoneReg = /^(0?(13[0-9]|15[012356789]|17[013678]|18[0-9]|14[57])[0-9]{8})|(400|800)([0-9\\-]{7,10})|(([0-9]{4}|[0-9]{3})(-| )?)?([0-9]{7,8})((-| |转)*([0-9]{1,4}))?$/, PHReg = /(^([0-9]{3,4}-)?[0-9]{7,8}$)|(^((\(\d{3}\))|(\d{3}\-))?(1[123456789]\d{9})$)/, GuReg = /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/, email = '', emailReg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; $.ajax({ url: "/invitation/venue/api/get", dataType: "json", type: 'GET', data: { rnd: Math.random() }, success: function(data) { if (data && data.length > 0) { // conference_items = data; getText(conference_items) } }, error: function(msg) { } }); $("#conference_phone").blur(function() { if (phoneReg.test($("#conference_phone").val()) !== true) { $("#conference_phone").val("") } return; }); function langStatus(data) { templang = getCookie('language'); var result = data, len = result.length, i = 0; if (templang == 'zh') { for (; i < len; i++) { var rs = result[i]; $('.lang_p25_' + i).text(rs.name); } } else { for (; i < len; i++) { var rs = result[i]; $('.lang_p25_' + i).text(rs.englishName); } } } function getText(data) { templang = getCookie('language'); $(".drop-down-content_conference").empty(); var html = '', result = data.reverse(), len = result.length, i = 0; if (templang == 'zh') { //循环数据 for (; i < len; i++) { var rs = result[i]; console.log(rs.name); html += '
  • ' + rs.name + '
  • '; } //渲染数据 } else { //循环数据 for (; i < len; i++) { var rs = result[i]; console.log(rs.englishName); html += '
  • ' + rs.englishName + '
  • '; } } //渲染数据 $(".drop-down-content_conference").append(html); // idArr = []; // txtArr = []; // $("#conference").val('') // $("#coor").val('') } $(".close_btn").click(function() { canClick = true; $('.conference_commit_btn').css('opacity', '1'); $('.coor_commit_btn').css('opacity', '1'); $(".content_mask").fadeOut(); }); $('.guest_btn').click(function(e) { templang = getCookie('language'); var temp = '更多嘉宾' console.log(templang) $(".show_more").fadeToggle(); $(".guest_btn").toggleClass("btn_active"); if ($(".guest_btn").hasClass("btn_active")) { temp = templang == 'zh' ? '收起名单' : 'close' $(".guest_btn").text(temp) } else { temp = templang == 'zh' ? '更多嘉宾' : 'more' $(".guest_btn").text(temp); window.location.href = '#_show_more' } }) function getCookie(c_name) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "=") if (c_start != -1) { c_start = c_start + c_name.length + 1 c_end = document.cookie.indexOf(";", c_start) if (c_end == -1) c_end = document.cookie.length return unescape(document.cookie.substring(c_start, c_end)) } } return '' } $(".note_close").click(function(){ $(".note_sty").slideToggle() }) //邀请嘉宾切换 $(".invitation_guest_nav").on("click", 'span', function(e) { var target = $(e.target) $(".nav_item_active").removeClass("nav_item_active") if (target) { if (target.text() == "参会嘉宾" || target.text() == "Guests") { $('.guest_list_member').show(); $('.company_list_member').hide(); } if (target.text() == "路演企业" || target.text() == "Roadshow Teams") { $('.company_list_member').show(); $('.guest_list_member').hide(); } target.addClass("nav_item_active"); } else { return } }) //切换报名 $(".invitation_card_nav").on("click", 'span', function(e) { var target = $(e.target) $(".invite_nav_item_active").removeClass("invite_nav_item_active") if (target) { if (target.text() == "个人" || target.text() == "Individual") { $('._personal').show(); $('._enterprise').hide(); } if (target.text() == "企业" || target.text() == "Company") { $('._enterprise').show(); $('._personal').hide(); } target.addClass("invite_nav_item_active"); } else { return } }) function dropSelect(ele, chlid, inputEle, txtArr, idArr) { $("." + ele).click(function() { // $(".drop-down-content_active").removeClass('drop-down-content_active'); if (ele == 'img_conference') { $(".drop-down-content_coor").removeClass('drop-down-content_coor_active'); $("." + chlid).toggleClass('drop-down-content_active'); } else { $(".drop-down-content_conference").removeClass('drop-down-content_active'); $("." + chlid).toggleClass('drop-down-content_coor_active'); } langStatus(conference_items) // getText(conference_items) }) $('.' + chlid).on('click', "li", function(e) { // console.log(temp); var tempTarget = e.target; console.log($(tempTarget)[0].dataset.id); if (chlid==='drop-down-content_conference') { if ($(tempTarget)[0].dataset.id>1&&$(tempTarget)[0].dataset.id<6&&tempSelectId) { if (tempSelectId===$(tempTarget)[0].dataset.id) { $(tempTarget).toggleClass('dropActive') if ($(tempTarget).hasClass('dropActive')) { var tempTxt = $(tempTarget).text() // console.log(tempTxt) var tempId = $(tempTarget)[0].dataset.id; tempSelectId = $(tempTarget)[0].dataset.id; // console.log($(tempTarget)[0].dataset); idArr.push(tempId) var shortTxt = (tempTxt.indexOf(":") > -1) ? tempTxt.split(':')[0] : tempTxt.split(':')[0]; txtArr.push(shortTxt) } else { tempSelectId = '' txtArr.forEach((list, index, arr) => { var _shortTxt = ($(tempTarget).text().indexOf(":") > -1) ? $(tempTarget).text().split(':')[0] : $(tempTarget).text().split(':')[0] if (list === _shortTxt) { arr.splice(index, 1) } }) idArr.forEach((list, index, arr) => { if (list === $(tempTarget)[0].dataset.id) { arr.splice(index, 1) } }) } // console.log(txtArr) $("#" + inputEle).val(txtArr.join(',')) return false; }else{ return } }else if($(tempTarget)[0].dataset.id>1&&$(tempTarget)[0].dataset.id<6&&!tempSelectId){ $(tempTarget).toggleClass('dropActive') if ($(tempTarget).hasClass('dropActive')) { var tempTxt = $(tempTarget).text() // console.log(tempTxt) var tempId = $(tempTarget)[0].dataset.id; tempSelectId = $(tempTarget)[0].dataset.id; // console.log($(tempTarget)[0].dataset); idArr.push(tempId) var shortTxt = (tempTxt.indexOf(":") > -1) ? tempTxt.split(':')[0] : tempTxt.split(':')[0]; txtArr.push(shortTxt) } else { tempSelectId = '' txtArr.forEach((list, index, arr) => { var _shortTxt = ($(tempTarget).text().indexOf(":") > -1) ? $(tempTarget).text().split(':')[0] : $(tempTarget).text().split(':')[0] if (list === _shortTxt) { arr.splice(index, 1) } }) idArr.forEach((list, index, arr) => { if (list === $(tempTarget)[0].dataset.id) { arr.splice(index, 1) } }) } // console.log(txtArr) $("#" + inputEle).val(txtArr.join(',')) return false; } else{ $(tempTarget).toggleClass('dropActive') if ($(tempTarget).hasClass('dropActive')) { var tempTxt = $(tempTarget).text() // console.log(tempTxt) var tempId = $(tempTarget)[0].dataset.id; // console.log($(tempTarget)[0].dataset); idArr.push(tempId) var shortTxt = (tempTxt.indexOf(":") > -1) ? tempTxt.split(':')[0] : tempTxt.split(':')[0]; txtArr.push(shortTxt) } else { txtArr.forEach((list, index, arr) => { var _shortTxt = ($(tempTarget).text().indexOf(":") > -1) ? $(tempTarget).text().split(':')[0] : $(tempTarget).text().split(':')[0] if (list === _shortTxt) { arr.splice(index, 1) } }) idArr.forEach((list, index, arr) => { if (list === $(tempTarget)[0].dataset.id) { arr.splice(index, 1) } }) } // console.log(txtArr) $("#" + inputEle).val(txtArr.join(',')) return false; } }else if (chlid==='drop-down-content_conference1') { if ($(tempTarget)[0].dataset.id>1&&$(tempTarget)[0].dataset.id<6&&tempSelectId) { if (tempSelectId===$(tempTarget)[0].dataset.id) { $(tempTarget).toggleClass('dropActive') if ($(tempTarget).hasClass('dropActive')) { var tempTxt = $(tempTarget).text() // console.log(tempTxt) var tempId = $(tempTarget)[0].dataset.id; tempSelectId = $(tempTarget)[0].dataset.id; // console.log($(tempTarget)[0].dataset); idArr.push(tempId) var shortTxt = (tempTxt.indexOf(":") > -1) ? tempTxt.split(':')[0] : tempTxt.split(':')[0]; txtArr.push(shortTxt) } else { tempSelectId = '' txtArr.forEach((list, index, arr) => { var _shortTxt = ($(tempTarget).text().indexOf(":") > -1) ? $(tempTarget).text().split(':')[0] : $(tempTarget).text().split(':')[0] if (list === _shortTxt) { arr.splice(index, 1) } }) idArr.forEach((list, index, arr) => { if (list === $(tempTarget)[0].dataset.id) { arr.splice(index, 1) } }) } // console.log(txtArr) $("#" + inputEle).val(txtArr.join(',')) return false; }else{ return } }else if($(tempTarget)[0].dataset.id>1&&$(tempTarget)[0].dataset.id<6&&!tempSelectId){ $(tempTarget).toggleClass('dropActive') if ($(tempTarget).hasClass('dropActive')) { var tempTxt = $(tempTarget).text() // console.log(tempTxt) var tempId = $(tempTarget)[0].dataset.id; tempSelectId = $(tempTarget)[0].dataset.id; // console.log($(tempTarget)[0].dataset); idArr.push(tempId) var shortTxt = (tempTxt.indexOf(":") > -1) ? tempTxt.split(':')[0] : tempTxt.split(':')[0]; txtArr.push(shortTxt) } else { tempSelectId = '' txtArr.forEach((list, index, arr) => { var _shortTxt = ($(tempTarget).text().indexOf(":") > -1) ? $(tempTarget).text().split(':')[0] : $(tempTarget).text().split(':')[0] if (list === _shortTxt) { arr.splice(index, 1) } }) idArr.forEach((list, index, arr) => { if (list === $(tempTarget)[0].dataset.id) { arr.splice(index, 1) } }) } // console.log(txtArr) $("#" + inputEle).val(txtArr.join(',')) return false; } else{ $(tempTarget).toggleClass('dropActive') if ($(tempTarget).hasClass('dropActive')) { var tempTxt = $(tempTarget).text() // console.log(tempTxt) var tempId = $(tempTarget)[0].dataset.id; // console.log($(tempTarget)[0].dataset); idArr.push(tempId) var shortTxt = (tempTxt.indexOf(":") > -1) ? tempTxt.split(':')[0] : tempTxt.split(':')[0]; txtArr.push(shortTxt) } else { txtArr.forEach((list, index, arr) => { var _shortTxt = ($(tempTarget).text().indexOf(":") > -1) ? $(tempTarget).text().split(':')[0] : $(tempTarget).text().split(':')[0] if (list === _shortTxt) { arr.splice(index, 1) } }) idArr.forEach((list, index, arr) => { if (list === $(tempTarget)[0].dataset.id) { arr.splice(index, 1) } }) } // console.log(txtArr) $("#" + inputEle).val(txtArr.join(',')) return false; } } else{ $(tempTarget).toggleClass('dropActive') if ($(tempTarget).hasClass('dropActive')) { var tempTxt = $(tempTarget).text() // console.log(tempTxt) var tempId = $(tempTarget)[0].dataset.id; // console.log($(tempTarget)[0].dataset); idArr.push(tempId) var shortTxt = (tempTxt.indexOf(":") > -1) ? tempTxt.split(':')[0] : tempTxt.split(':')[0]; txtArr.push(shortTxt) } else { txtArr.forEach((list, index, arr) => { var _shortTxt = ($(tempTarget).text().indexOf(":") > -1) ? $(tempTarget).text().split(':')[0] : $(tempTarget).text().split(':')[0] if (list === _shortTxt) { arr.splice(index, 1) } }) idArr.forEach((list, index, arr) => { if (list === $(tempTarget)[0].dataset.id) { arr.splice(index, 1) } }) } // console.log(txtArr) $("#" + inputEle).val(txtArr.join(',')) return false; } }) } dropSelect('img_conference', 'drop-down-content_conference', 'conference', conference_txt, conference_id) dropSelect('img_conference1', 'drop-down-content_conference1', 'conference1', conference1_txt, conference1_id) dropSelect('img_coor', 'drop-down-content_coor', 'coor', coor_txt, coor_id) function clearInput() { $('#conference_name').val(""); $('#conference_company').val(''); $('#conference_phone').val(''); $('#conference_num').val(''); $('#conference_mail').val(''); $('#coor_name').val(""); $('#coor_company').val(""); $('#coor_position').val(""); $('#coor_phone').val(""); $('#coor_mail').val(""); $('#conference').val(""); $('#conference1').val(""); $('#coor').val(""); $('#coor_comment').val(""); } function changeZhWay(obj) { // console.log('coor_txt', obj) for (var i = 0; i < obj.length; i++) { switch (obj[i]) { case 'Title Sponsorship': obj[i] = '冠名'; break; case 'Sponsorship': obj[i] = '赞助'; break; case 'Participation': obj[i] = '参展'; break; case 'Business Cooperation': obj[i] = '商务合作'; break; default: break; } } return obj; } function commitInfo() { $('.conference_commit_btn').click(function() { $('.conference_commit_btn').css('opacity', '0.5'); if (canClick == false) { $('.conference_commit_btn').css('opacity', '0.5'); return } else { console.log("wdwdwd") canClick = false; $('.conference_commit_btn').css('opacity', '0.5'); templang = getCookie('language'); var conference_objData = { name: $('#conference_name').val() || '', companyName: $('#conference_company').val() || '', position: '', phoneNum: $('#conference_phone').val() || '', email: $('#conference_mail').val() || '', venueIds: conference_id.join(','), ways: '', englishWays: '', comment: '', peopleCount: $('#conference_num').val() || 0, type: 0, rnd: Math.random() } if (checkInput(conference_objData)) { _postInfo("POST", conference_objData, function() { $('.conference_commit_btn').css('opacity', '1'); canClick = true; $(".mask_logo").attr('src', 'images/icon/dialog-icon.png'); $(".mask_text_desc").text(templang == 'zh' ? '请耐心等待工作人员通知' : ''); $(".mask_text_title").text(templang == 'zh' ? '恭喜您!已成功报名第三届CGAIC!' : 'Congratulations! Have successfully signed up for the third CGAIC!'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); clearInput(); }) } } }) $('.coor_commit_btn').click(function() { $('.coor_commit_btn').css('opacity', '0.5'); if (canClick == false) { $('.coor_commit_btn').css('opacity', '0.5'); return } else { canClick = false; $('.coor_commit_btn').css('opacity', '0.5'); templang = getCookie('language'); console.log(coor_txt, changeZhWay(coor_txt)) // changeZhWay(coor_txt) var coor_objData = { name: $('#coor_name').val() || '', companyName: $('#coor_company').val() || '', position: $('#coor_position').val() || '', phoneNum: $('#coor_phone').val() || '', email: $('#coor_mail').val() || '', venueIds: conference1_id.join(','), ways: changeZhWay(coor_txt).join(','), englishWays: coor_id.join(','), comment: $('#coor_comment').val() || '', peopleCount: $('#coor_num').val() || '', type: 1, rnd: Math.random() } if (checkInput(coor_objData)) { _postInfo("POST", coor_objData, function() { $('.coor_commit_btn').css('opacity', '1'); canClick = true; $(".mask_logo").attr('src', 'images/icon/dialog-icon.png'); $(".mask_text_desc").text(templang == 'zh' ? '请耐心等待工作人员通知' : ''); $(".mask_text_title").text(templang == 'zh' ? '恭喜您!已成功报名第三届CGAIC!' : 'Congratulations! Have successfully signed up for the third CGAIC!'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); clearInput(); }) } } // console.log(coor_objData); }) } function _postInfo(type, obj, callback) { $.ajax({ url: "/invitation/apply/api/save", dataType: "json", type: type, header: { 'content-type': 'application/x-www-form-urlencoded' }, data: obj, success: function(data) { if (data.code == 0) { callback(data) } else { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '报名提交失败,请重试~' : 'Sign up for failure, please try again~'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); } }, error: function(msg) { } }); } function checkInput(obj) { templang = getCookie('language'); if (obj.type == 0) { if (!obj.name) { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请填写名字,才能提交哦~' : 'Please enter the name before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); return; } if (!obj.companyName) { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请填写公司名称,才能提交哦~' : 'Please enter the company name before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); return; } if (obj.peopleCount <= 0) { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请填写到场人数,才能提交哦~' : 'Please enter the number of people before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); return; } if (phoneReg.test(obj.phoneNum) !== true) { if (obj.phoneNum === "") { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请填写电话,才能提交哦~' : 'Please enter the phone number before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); } else { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '填写的电话格式是否不对呢~' : 'Incorrect phone number. Please check again :-)'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); } return; } if (emailReg.test(obj.email) !== true) { if (obj.email === "") { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请填写邮箱,才能提交哦~' : 'Please enter the email address before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); } else { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '填写的邮箱格式是否不对呢~' : 'Incorrect email address. Please check again :-)'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); } return; } return true; } else if (obj.type == 1) { if (!obj.name) { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请填写名字,才能提交哦~' : 'Please enter the name before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); return; } if (!obj.companyName) { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请填写公司名称,才能提交哦~' : 'Please enter the company name before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); return; } if (obj.position <= 0) { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请填写职位,才能提交哦~' : 'Please enter the position before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); return; } if (phoneReg.test(obj.phoneNum) !== true) { if (obj.phoneNum === "") { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请填写电话,才能提交哦~' : 'Please enter the phone number before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); } else { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '填写的电话格式是否不对呢~' : 'Incorrect phone number. Please check again :-)'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); } return; } if (emailReg.test(obj.email) !== true) { if (obj.email === "") { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请填写邮箱,才能提交哦~' : 'Please enter the email address before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); } else { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '填写的邮箱格式是否不对呢~' : 'Incorrect email address. Please check again :-)'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); } return; } if (obj.venueIds <= 0) { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请选择会场,才能提交哦~' : 'Please choose the venue before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); return; } if (obj.ways <= 0) { $(".mask_logo").attr('src', 'http://video.cgaii.com/images/error.png'); $(".mask_text_desc").text(""); $(".mask_text_desc").removeClass("mask_text_desc"); $(".mask_text_title").text(templang == 'zh' ? '请选择合作方式,才能提交哦~' : 'Please choose the ways of cooperation before submission.'); $(".close_btn").text(templang == 'zh' ? '关闭' : 'close'); $(".content_mask").fadeIn(); return; } return true; } else { return } } // commitInfo(); })