1234567891011121314151617181920212223242526272829303132333435363738 |
- mui.ready(function () {
- share = {
- "title": "高价卖车",
- "link": "http://www.3water.cn/buying/mobile/car/sell.jsp",
- "imgUrl": "http://www.3water.cn/buying/static/mobile/image/car/shou.jpg",
- "desc": "交给我们快捷、省心、安全"
- };
- $('.mui-bar-tab').on('tap', 'a', function(e) {
- location.href=$(this).attr("href");
- });
- $('#save-btn').on('tap', function(e) {
- if(!$('#user_name').val()||!$('#mobile').val()||!$('#address').val()||!$('#remark').val()){
- layer.open({content:'请将信息填写完整',time:3});
- return;
- }
- if(!mobile.checkMobile($('#mobile').val())){
- layer.open({content:'请输入正确手机号码',time:3});
- return;
- }
- var carInfo ={};
- carInfo.user_name = $('#user_name').val();
- carInfo.address = $('#address').val();
- carInfo.remark = $('#remark').val();
- carInfo.mobile = $('#mobile').val();
- mobile.ajaxPost(base+'/carInfo/save',carInfo,function(json){
- if(json.success){
- layer.open({content:'资料已提交,我们会尽快联系您',time:2});
- setTimeout(function () {
- location.reload();
- },2000);
- }else{
- layer.open({content:json.msg,time:3});
- }
- });
- });
- });
|