Inquiry List | China Marble 
Inquiry List
There are no data in the Inquiry List.
Copyright 2009 Beijing Stars Stone Co., Ltd. All Rights Reserved.京ICP备2024042609号-5

Contact Us

Name*
E-Mail*
Country*
Phone
Your Question*
Thank you,
Your message has been sent.
$(function(){ $('.delete_inquiry').click(function(){ var key = $(this).data('key'); var that = $(this); CM.inquiry.delete(key,function(data){ if(data.data == 0){ $('#nodata').removeClass('hide'); $('.extendinfo,.checkOut').hide(); } updateprice(data); that.closest('.indentDetails').remove(); }); }); $('.subtract').click(function(){ var key = $(this).data('key'); var sourseEle = $(this).next('input'); if(sourseEle.val() > "1"){ sourseEle.val(parseInt(sourseEle.val())-1); var num = Number(sourseEle.val()); CM.inquiry.update_num(key,num,updateprice); } }); $('.add').click(function(){ var key = $(this).data('key'); var sourseEle = $(this).prev('input'); sourseEle.val(parseInt(sourseEle.val())+1); var num = Number(sourseEle.val()); CM.inquiry.update_num(key,num,updateprice); }); $('.cartSum').blur(function(){ var key = $(this).data('key'); var num = $(this).val(); var num = Number(num); if(num == NaN || num < 1){ $(this).val(1); num = 1; } CM.inquiry.update_num(key,num,updateprice); }); function updateprice(data){ $('.checkOut strong').html('About $' + data.sum_price.sum_price_min + ' - $' + data.sum_price.sum_price_max + ''); } $('#inquiry_btn').click(function(){ var realname = jQuery.trim($('#realname').val()); if(realname == ""){ $(".add_contactus_info").html('Name is require.'); $(".add_contactus_info").show(); return false; } var email = $('#email').val(); var reg = /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/; if(!reg.test(email)){ $(".add_contactus_info").html('does not appear to be a valid email address.'); $(".add_contactus_info").show(); return false; } var remark = jQuery.trim($('#remark').val()); if(remark == ""){ $(".add_contactus_info").html('Remark is require.'); $(".add_contactus_info").show(); return false; } var reqdata = $('#add_inquiry').serialize(); //console.log(reqdata); // return false; // var address = $('#address').val(); // var reqdata = {'address':address}; $('#inquiry_btn').attr('disabled',true).addClass('bj'); $(".add_contactus_info").html('Is submitting, please wait later.'); $(".add_contactus_info").show(); //var reqdata = {"email":email}; $.post('/inquiry/add_inquiry.html',reqdata).success(function(data){ if(data.code == -1){ window.location = '/user/login.html?backurl=' + data.url; } if(data.code == 0){ window.location = '/inquiry/add_success.html'; }else{ alert(data.msg); $('#inquiry_btn').attr('disabled',false).removeClass('bj'); } }).error(function(error){ $(".add_contactus_info").html('Sorry, the system is wrong, please send your request directly to the e-mail: sales@chinamarble.com'); $(".add_contactus_info").show(); $('#inquiry_btn').attr('disabled',false).removeClass('bj'); }); return false; }); });
0.0162s