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.common.js
CHANGED
|
@@ -30135,7 +30135,7 @@ let $ = __webpack_require__("1157");
|
|
|
30135
30135
|
|
|
30136
30136
|
const loadJson = function (url, param, backSuccfn, async, method, headers) {
|
|
30137
30137
|
method = method ? method : 'POST';
|
|
30138
|
-
async = async == undefined ? true : async;
|
|
30138
|
+
async = async == undefined || async == '' ? true : async;
|
|
30139
30139
|
|
|
30140
30140
|
for (let key in param) {
|
|
30141
30141
|
//检测手机号码, 外地号码头部(非杭州)加00,本地号码加0
|
|
@@ -30154,11 +30154,13 @@ const loadJson = function (url, param, backSuccfn, async, method, headers) {
|
|
|
30154
30154
|
}
|
|
30155
30155
|
|
|
30156
30156
|
let ajaxContent = {
|
|
30157
|
-
'
|
|
30157
|
+
'type': method,
|
|
30158
30158
|
'url': url,
|
|
30159
30159
|
'data': param,
|
|
30160
30160
|
'async': async
|
|
30161
30161
|
};
|
|
30162
|
+
console.log("====ajax参数====");
|
|
30163
|
+
console.log(ajaxContent);
|
|
30162
30164
|
if (headers) Object.assign(ajaxContent, headers);
|
|
30163
30165
|
$.ajax(ajaxContent).fail(function (jqXHR, sts) {
|
|
30164
30166
|
console.error('加载数据失败:' + sts + ", " + url);
|
|
Binary file
|