ucservice 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ucservice.common.js +4 -2
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +4 -2
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common-request.js +4 -2
package/dist/ucservice.umd.js
CHANGED
|
@@ -30144,7 +30144,7 @@ let $ = __webpack_require__("1157");
|
|
|
30144
30144
|
|
|
30145
30145
|
const loadJson = function (url, param, backSuccfn, async, method, headers) {
|
|
30146
30146
|
method = method ? method : 'POST';
|
|
30147
|
-
async = async == undefined ? true : async;
|
|
30147
|
+
async = async == undefined || async == '' ? true : async;
|
|
30148
30148
|
|
|
30149
30149
|
for (let key in param) {
|
|
30150
30150
|
//检测手机号码, 外地号码头部(非杭州)加00,本地号码加0
|
|
@@ -30163,11 +30163,13 @@ const loadJson = function (url, param, backSuccfn, async, method, headers) {
|
|
|
30163
30163
|
}
|
|
30164
30164
|
|
|
30165
30165
|
let ajaxContent = {
|
|
30166
|
-
'
|
|
30166
|
+
'type': method,
|
|
30167
30167
|
'url': url,
|
|
30168
30168
|
'data': param,
|
|
30169
30169
|
'async': async
|
|
30170
30170
|
};
|
|
30171
|
+
console.log("====ajax参数====");
|
|
30172
|
+
console.log(ajaxContent);
|
|
30171
30173
|
if (headers) Object.assign(ajaxContent, headers);
|
|
30172
30174
|
$.ajax(ajaxContent).fail(function (jqXHR, sts) {
|
|
30173
30175
|
console.error('加载数据失败:' + sts + ", " + url);
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|