mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-19 00:45:54 +08:00
feat: 更新售后细节和用户工具页面 (master)
- 修改afterSalesDetailExpress.vue中gotoGoodsDetail函数参数 - 调整快递公司、快递单号和发货时间选择器样式 - 在tool.vue中添加邀请用户功能和分享弹窗 - 在request.js中增加请求头带上邀请人信息 - 移除tpl_goods.vue中的调试日志 - App.vue增加启动时设置邀请人逻辑 - storage.js新增邀请人信息的存取方法
This commit is contained in:
@@ -82,6 +82,9 @@ http.interceptors.request.use(
|
||||
(config) => {
|
||||
/* 请求之前拦截器。可以使用async await 做异步操作 */
|
||||
let accessToken = storage.getAccessToken();
|
||||
if(storage.getInviter()){
|
||||
config.header.inviter = storage.getInviter();
|
||||
}
|
||||
if (accessToken) {
|
||||
/**
|
||||
* 使用JWT解析
|
||||
@@ -93,6 +96,8 @@ http.interceptors.request.use(
|
||||
accessToken = ""
|
||||
storage.setAccessToken('')
|
||||
}
|
||||
|
||||
|
||||
const nonce = Foundation.randomString(6);
|
||||
const timestamp = parseInt(new Date().getTime() / 1000);
|
||||
const sign = md5(nonce + timestamp + accessToken);
|
||||
|
||||
Reference in New Issue
Block a user