|
|
@@ -91,7 +91,7 @@ class Utils {
|
|
|
/*
|
|
|
请求方法
|
|
|
@options 请求参数
|
|
|
- @status 是否携带openID
|
|
|
+ @status 是否携带userID
|
|
|
*/
|
|
|
request(options, status = true) {
|
|
|
|
|
|
@@ -154,9 +154,9 @@ class Utils {
|
|
|
dataType: opt.dataType || 'json',
|
|
|
responseType: opt.responseType || 'text',
|
|
|
success: function(res) {
|
|
|
- console.log('请求参数=>', opt)
|
|
|
- console.log('服务器响应结果=>',res)
|
|
|
- console.log('当前页面=>', getCurrentPages().map(val => val.route).pop())
|
|
|
+ console.log('请求参数=>', opt);
|
|
|
+ console.log('服务器响应结果=>',res);
|
|
|
+ console.log('当前页面=>', getCurrentPages().map(val => val.route).pop());
|
|
|
// 判断是否含有成功方法并执行
|
|
|
if (opt.success && typeof opt.success === 'function') {
|
|
|
if (res.statusCode === 200) {
|