wxreq: function(url, data, type) {
let header = {}
header.Authorization = wx.getStorageSync("Authorization")
return new Promise(function(resolve, reject) {
wx.request({
url: url,
method: type,
data: data,
header: header,
success: function(res) {
if (res.statusCode == -- && res.data.code == --){
wx.showToast({
title: '登录已过期',
icon:"none"
})
wx.reLaunch({
url: '../login/login'
})