Commit 65ae887c authored by leon's avatar leon

feat:request header add appid

parent fa2c7e1e
...@@ -29,6 +29,7 @@ const install = (Vue, vm) => { ...@@ -29,6 +29,7 @@ const install = (Vue, vm) => {
config.header.source = "wechat" config.header.source = "wechat"
config.header.loginName = uni.getStorageSync('username') config.header.loginName = uni.getStorageSync('username')
config.header.staffNo = uni.getStorageSync('staffNo') config.header.staffNo = uni.getStorageSync('staffNo')
config.header.appId = wx.getAccountInfoSync().miniProgram.appId
return config return config
}, (config) => { }, (config) => {
return Promise.reject(config) return Promise.reject(config)
......
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
var userId = uni.getStorageSync('userId') var userId = uni.getStorageSync('userId')
var param = { var param = {
id: userId, id: userId,
authorized: this.$data.confirmed authorized: this.$data.confirmed,
appId: wx.getAccountInfoSync().miniProgram.appId,
} }
this.$u.api.getAuthorizedList(param).then(res=>{ this.$u.api.getAuthorizedList(param).then(res=>{
const { Status, Result } = res.data const { Status, Result } = res.data
...@@ -72,7 +73,8 @@ ...@@ -72,7 +73,8 @@
var param = { var param = {
type: type, type: type,
id: id, id: id,
operatorId: operatorId operatorId: operatorId,
appId: wx.getAccountInfoSync().miniProgram.appId,
} }
this.$u.api.authorizeOrUnauthorize(param).then(res=>{ this.$u.api.authorizeOrUnauthorize(param).then(res=>{
const { Status, Result } = res.data const { Status, Result } = res.data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment