Commit bec6194cf32b9538318ef348847dc7bbef3614c1

Authored by Andy
1 parent 3bf12e73

add

Showing 2 changed files with 22 additions and 7 deletions
js/joinous.js
... ... @@ -48,21 +48,29 @@ $('#write-submit').on('click', function () {
48 48 $('#write_rule').addClass('display-none').text('');
49 49 //ajax
50 50 var req = {
  51 + sysCode:sysComm.sysCode,
51 52 plApplyName:personNames,
52 53 plApplyTel:userTel,
53   - deivceType:3
  54 + deivceType:3,
  55 + plType:3,
  56 + deviceNo:0,
  57 +
54 58 }
55 59 $.ajax({
56   - //几个参数需要注意一下
57   - data: JSON.stringify(req),
58   - method: "POST",
59   - async: false,
  60 + method: 'post',
60 61 url: dataUrl.util.saveParkLotApply(),
  62 + data: JSON.stringify(req),
  63 + contentType: 'application/json; charset=utf-8',
  64 + dataType: 'json',
61 65 success: function (res) {
62 66 console.log(res)
63 67 if (res.code == '8888') {
64   - console.log(res.data)
65   - $('#openmodel').modal('hide');
  68 + $('#write_rule').removeClass('display-none').text('添加数据成功,3s后自动关闭此弹窗');
  69 + setTimeout(function () {
  70 + $('#write_rule').addClass('display-none').text('');
  71 + $('#openmodel').modal('hide');
  72 + },3000);
  73 +
66 74  
67 75 }
68 76 },
... ...
js/unit.js
  1 +
  2 +sysComm = {
  3 + sysCode: '1001',//企业云系统编码
  4 + gvnSysCode: '1002',//政府系统编码
  5 + grantType: 'PASSWORD',//授权模式
  6 + clientType: 'WEB'//客户端类型
  7 +}
1 8 //阿里云测试环境,别删
2 9 var parkcloudbaseUrl = 'http://39.98.54.240:8093/';// url公用地址
3 10 var authUrl = 'http://39.98.54.240:8088/';// 鉴权URL公用地址
... ...