123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <<<<<<< HEAD
- var baseUrl = 'http://pay-test.278740.cn'
- /**
- * 获取请求ajax数据
- * @param url 请求地址
- * @param type 请求类型
- * @param data 需要发送的数据
- * @param callback 成功回调方法
- * @param alert 成功后是否提示成功信息
- */
- var getAjax = function (url, type, data, callback, alert, noneShow,errorF) {
- // !noneShow ? showLoading() : null;
- $.ajax({
- url: url,
- type: type,
- dataType: 'JSON',
- data: data,
- success: function (result) {
- if (result.state == 0) {
- typeof callback == 'function' ? callback(result) : null;
- if (alert) Popup.toast(result.msg || " ");
- // !noneShow ? hideLoading() : null;
- } else {
- Popup.toast(result.msg || " ");
- // !noneShow ? hideLoading() : null;
- typeof errorF == 'function'?errorF():null;
- }
- },
- error: function (err) {
- Popup.toast(err || " ");
- // !noneShow ? hideLoading() : null;
- typeof errorF == 'function'?errorF():null;
- }
- })
- =======
- var baseUrl = 'http://pay-test.278740.cn'
- /**
- * 获取请求ajax数据
- * @param url 请求地址
- * @param type 请求类型
- * @param data 需要发送的数据
- * @param callback 成功回调方法
- * @param alert 成功后是否提示成功信息
- */
- var getAjax = function (url, type, data, callback, alert, noneShow,errorF) {
- // !noneShow ? showLoading() : null;
- $.ajax({
- url: url,
- type: type,
- dataType: 'JSON',
- data: data,
- success: function (result) {
- if (result.state == 0) {
- typeof callback == 'function' ? callback(result) : null;
- if (alert) Popup.toast(result.msg || " ");
- // !noneShow ? hideLoading() : null;
- } else {
- Popup.toast(result.msg || " ");
- // !noneShow ? hideLoading() : null;
- typeof errorF == 'function'?errorF():null;
- }
- },
- error: function (err) {
- Popup.toast(err || " ");
- // !noneShow ? hideLoading() : null;
- typeof errorF == 'function'?errorF():null;
- }
- })
- >>>>>>> cb3d90368273b7ba0ce18e05382d00be6933949f
- };
|