app吧秋葵app下载

河南華信電機股份有限公司 專注電機研發銷售廠家
在線留言
當前位置:首頁 > 在線留言

紅(hong)色星號(hao)(*)項(xiang)為必填(tian)項

* 驗證碼:
 
', '
', '請確保您填寫的資料正確無誤,以便成人app秋葵下载與您聯係。', '
', '
', '', '
', ]; dialog.html(html.join('')); dialog.show().css({ left: (window.innerWidth - dialog.width()) / 2 + 'px', top: (window.innerHeight - dialog.height()) / 2 - 100 + 'px', }); dialog.find('.f360-guestbook-button').click(function () { dialog.hide(); }); } function showErrorDialog(title, message) { html = [ '
', title, '
', '
', message, '
', '
', '', '
', ]; dialog.html(html.join('')); dialog.show().css({ left: (window.innerWidth - dialog.width()) / 2 + 'px', top: (window.innerHeight - dialog.height()) / 2 - 100 + 'px', }); dialog.find('.f360-guestbook-button').click(function () { dialog.hide(); }); } function createField(options) { var dataRequired = options.required ? ' data-required="' + options.required + '"' : ''; var label = options.required ? '* ' + options.label : options.label; var dataControl = ' data-control="' + options.id + '"'; var input = ''; if (options.controlType === 'textarea') { input = ''; } var html = [ '
', '
' + label + ':
', '
', input, '
', '
', ]; return fieldsWrap.append($(html.join(''))); } function addFields() { var formOptions = []; var maxLabelLength = 0; if (gbConfig.fieldNames.indexOf('online') !== -1) { formOptions = $.grep(defaultOptions, function (opt) { if (opt.id === 'Name' || opt.id === 'Content') return true; return gbConfig.fieldNames.indexOf(opt.id) !== -1; }); } else if (gbConfig.optionsJSON.length > 0) { try { var data = JSON.parse(gbConfig.optionsJSON); gbConfig.enableDisplayList = data.EnableDisplayMessage; for (var i = 0; i 0) { $('.f360-guestbook-form-item-label').css({ minWidth: (maxLabelLength * 10) + 'px' }); } } function postMessage() { var data = { sid: gbConfig.sid, lang: gbConfig.lang, m: gbConfig.m }; $('.f360-guestbook-form-item-field [data-control]').each(function () { var id = $(this).data('control'); if (id && id.length) { data[id] = $(this).val(); } }); $.ajax('https://cmsapi.fuhai360.com/async.ashx?act=post-message', { type: 'GET', dataType: 'JSON', data: data, xhrFields: { withCredentials: true }, success: function (data) { submitButton.removeAttr('disabled'); submitButton.removeClass('f360-guestbook-button-disabled'); submitButton.html('提交'); if (data.success) { $('.f360-guestbook-form-item-field [data-control]').val(''); changeCode(); showSuccessDialog(); } else { showErrorDialog('提交失敗!', data.msg); } }, error: function (jqXHR, textStatus, errorThrown) { submitButton.removeAttr('disabled'); submitButton.removeClass('f360-guestbook-button-disabled'); submitButton.html('提交'); showErrorDialog('提交失敗!', errorThrown); } }); } function rednerMessages(list) { listItemsWrap.empty(); if (list.length === 0) { listItemsWrap.append('
暫無留言
'); return; } $.each(list, function (i, item) { var html = [ '
', '
', '' + item.name + '', '時(shi)間: ' + item.date + '', '
', '
', item.content.replace(/\n/g, '
'), '
', '
' ]; listItemsWrap.append(html.join('')); }); } function loadMessage(pageNumber) { listLoadingWrap.show(); $.ajax('http://cmsapi.fuhai360.com/async.ashx?act=list-message', { type: 'GET', dataType: 'JSONP', data: { sid: gbConfig.sid, lang: gbConfig.lang, m: gbConfig.m, pn: pageNumber }, success: function (data) { listLoadingWrap.hide(); if (data.error) { showErrorDialog('加載留言列表出現錯誤!', data.error); return; } if (data.total > 15) { $.getScript('https://cdn.bootcss.com/simplePagination.js/1.6/jquery.simplePagination.js', function () { var pagingOptions = { items: data.total, itemsOnPage: 15, currentPage: pageNumber, onPageClick: function (pn) { loadMessage(pn); } }; if (gbConfig.lang === 'cn') { pagingOptions.prevText = '上一頁'; pagingOptions.nextText = '下一頁'; } listPagingWrap.show().pagination(pagingOptions); }); } else { listPagingWrap.hide(); } rednerMessages(data.list); }, error: function (jqXHR, textStatus, errorThrown) { listLoadingWrap.hide(); showErrorDialog('加載留言列表出現錯誤!', errorThrown); } }); } submitButton.click(function () { var errorCount = 0; $('.f360-guestbook-form-item').each(function () { var requiredMsg = $(this).attr('data-required'); var rule = $(this).attr('data-rule'); if (!requiredMsg && !rule) return; var errorMsg = ''; var control = $(this).find('.f360-guestbook-form-item-field [data-control]'); var isValueControl = control.is('input') || control.is('textarea'); // input text if (isValueControl) { var value = $.trim(control.val()); if (requiredMsg && value.length === 0) { errorMsg = requiredMsg; } else if (rule && rule.length && !(new RegExp(rule)).test(value)) { errorMsg = $(this).attr('data-rule-msg'); } } // error message var errorContent = $(this).find('.f360-guestbook-form-item-error-content'); if (!errorContent.length) { errorContent = $('
'); $(this).find('.f360-guestbook-form-item-field').append(errorContent); } errorContent.text(errorMsg); if (errorMsg !== '') { $(this).addClass('f360-guestbook-form-item-error'); errorCount++; } else { $(this).removeClass('f360-guestbook-form-item-error'); } }); if (errorCount === 0) { submitButton.attr('disabled', ''); submitButton.addClass('f360-guestbook-button-disabled'); submitButton.html('正在提交...'); postMessage(); } }); $('#f360_btn_refresh').click(function () { changeCode(); }); addFields(); changeCode(); if (gbConfig.enableDisplayList) { $('#f360_gb_tabs').show(); tabItems.click(function (e) { e.stopPropagation(); tabItems.removeClass('active'); $(this).addClass('active'); tabItems.each(function () { $($(this).data('target')).hide(); }); var target = $(this).data('target'); $(target).show(); if (target === '#f360_gb_list') { if (!hasFirstLoaded) { loadMessage(1); hasFirstLoaded = true; } } return false; }); } });
聯係成人app秋葵下载

王(wang)總(zong):13603730946
貴(gui)總:13513739903

電(dian)話:0373-6351001 0373-6351002

傳(chuan)真(zhen):0373-6351003

網(wang)址:www.radiusworld.cn

地址:新鄉市榆東(dong)產業聚(ju)集(ji)區(qu)緯四(si)路(lu)北(bei)

 

  欧美在线看片a免费观看不卡-欧美在线看片a免费观看66网-欧美在线看片a免费观看  欧美在线观看精品一区二区-欧美又大粗又爽又黄大片视频-欧美伊人久久大香线蕉综合  欧美一区日韩二区国产三区-欧美一区精品视频区二区-欧美一区二区三区视频不卡