框架封装了GET请求,自动加入了验签参数以及用户token,请求时无需考虑验签参数以及用户token
~~~
this.$Request.get(this.$api.user.user_name_login, {username:'mmmmm'}).then(res => {
uni.showToast({ title: res.msg, icon: 'none' });
if (res.code == 1) {
console.log(res.data)
setTimeout(function() {
uni.navigateBack();
}, 1000);
}
});
~~~