hwh
2024-06-28 08a515946d6763b26746d593af76a8af9b1b4076
HTML/js/public.js
@@ -55,13 +55,12 @@
    success: function (res, status, xhr) {
      // console.log(res);
      // console.log(status);
      callbackFun(res);
    },
    error: function (res, status, error) {  
      // console.log(res);
      // console.log(status);
      callbackFun(res, status, error);
      callbackFun(res.responseJSON, status, error);
      // layer.msg(res.statusText, {
      //   icon: 2,
      //   time: 2000 //2秒关闭(如果不配置,默认是3秒)
@@ -333,4 +332,13 @@
          }
      }
  });
}
var FnParseData = function (res) {
  return {
    "code": res.code == 200 ? 0 : res.code, // 解析接口状态
    "msg": res.msg, // 解析提示文本
    "count": res.data.Total, // 解析数据长度
    "data": res.data.Items // 解析数据列表
  };
}