优化页面
This commit is contained in:
@@ -4,6 +4,12 @@ class API extends HTTP {
|
||||
getStaticHost(){
|
||||
return `${this.staticHost}`;
|
||||
}
|
||||
getIMappId(){
|
||||
return `${this.IMappId}`;
|
||||
}
|
||||
getIMsecretkey(){
|
||||
return `${this.IMsecretkey}`;
|
||||
}
|
||||
//获取oss签名数据
|
||||
getOssSign(params) {
|
||||
return this.request({
|
||||
|
||||
@@ -2,18 +2,21 @@
|
||||
export const dev = {
|
||||
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
|
||||
staticHost: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com",//静态资源host
|
||||
appId: 'wxbdb4d63f81d98228' //此处为appId
|
||||
IMappId: '1400798221', //此处为IM appId
|
||||
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
|
||||
}
|
||||
// 测试环境url
|
||||
export const test = {
|
||||
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
|
||||
staticHost: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com",//静态资源host
|
||||
appId: 'wxbdb4d63f81d98228' //此处为appId
|
||||
IMappId: '1400798221', //此处为此处为IM appId
|
||||
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
|
||||
}
|
||||
|
||||
// 线上环境url
|
||||
export const prod = {
|
||||
baseUrl: 'https://prod.hospital.applets.igandanyiyuan.com',
|
||||
staticHost: "https://oss.prod.applets.igandanyiyuan.com",//静态资源host
|
||||
appId: 'wxbdb4d63f81d98228' //此处为appId
|
||||
IMappId: '1400796919', //此处为此处为IM appId
|
||||
IMsecretkey: 'a5bcd8c583181cf004e9d91a47687d719d4b5d2a10ce33fbee95d587889447d8' //此处为IM secretkey
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@ class HTTP {
|
||||
constructor() {
|
||||
this.baseUrl = env.baseUrl,
|
||||
this.staticHost = env.staticHost,
|
||||
this.appId = env.appId
|
||||
this.IMappId = env.IMappId,
|
||||
this.IMsecretkey = env.IMsecretkey
|
||||
}
|
||||
|
||||
request({
|
||||
@@ -27,7 +28,6 @@ class HTTP {
|
||||
data: data,
|
||||
header: {
|
||||
'content-type': contentType,
|
||||
'appId': this.appId,
|
||||
'Authorization': "Bearer " + wx.getStorageSync('AUTH_TOKEN_'+usertype)
|
||||
},
|
||||
success: (res) => {
|
||||
|
||||
Reference in New Issue
Block a user