框架封裝了POST請求,自動加入了驗簽參數以及用戶token,請求時無需考慮驗簽參數以及用戶token
~~~
this.$Request.post(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);
}
});
~~~