优化
This commit is contained in:
parent
fd6ae7f04d
commit
bd97a69fb4
@ -13,6 +13,7 @@ Page({
|
|||||||
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
console.log(options.agreement_id)
|
console.log(options.agreement_id)
|
||||||
|
console.log(this.data.static_host+"/basic/file/agreement.htm?id="+options.agreement_id)
|
||||||
this.setData({
|
this.setData({
|
||||||
src: this.data.static_host+"/basic/file/agreement.htm?id="+options.agreement_id
|
src: this.data.static_host+"/basic/file/agreement.htm?id="+options.agreement_id
|
||||||
})
|
})
|
||||||
|
|||||||
@ -199,7 +199,7 @@ Page({
|
|||||||
onHide(){
|
onHide(){
|
||||||
// console.log("index onHide() onHide() ");
|
// console.log("index onHide() onHide() ");
|
||||||
|
|
||||||
wx.offCopyUrl(this.Copylistener) // 需传入与监听时同一个的函数对象
|
// wx.offCopyUrl(this.Copylistener) // 需传入与监听时同一个的函数对象
|
||||||
|
|
||||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||||
this.getTabBar().stopInterval()
|
this.getTabBar().stopInterval()
|
||||||
|
|||||||
20
app.js
20
app.js
@ -23,7 +23,21 @@ App({
|
|||||||
this.globalData.height = res.statusBarHeight
|
this.globalData.height = res.statusBarHeight
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
wx.onCopyUrl(() => {
|
||||||
|
console.log("onCopyUrlonCopyUrlonCopyUrl")
|
||||||
|
setTimeout(()=>{
|
||||||
|
wx.setClipboardData({
|
||||||
|
data: '暂不支持分享',
|
||||||
|
success (res) {
|
||||||
|
|
||||||
|
},
|
||||||
|
complete(){
|
||||||
|
wx.hideToast()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},1000)
|
||||||
|
return
|
||||||
|
})
|
||||||
// console.log("download fonts from oss ");
|
// console.log("download fonts from oss ");
|
||||||
let loadStatus = false;
|
let loadStatus = false;
|
||||||
if (!loadStatus) {
|
if (!loadStatus) {
|
||||||
@ -66,10 +80,6 @@ App({
|
|||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
// this.imInit();
|
// this.imInit();
|
||||||
// wx.onCopyUrl(() => {
|
|
||||||
// console.log("onCopyUrlonCopyUrlonCopyUrl")
|
|
||||||
// return { query: 'a=1&b=2' }
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
imInit(){
|
imInit(){
|
||||||
console.log("imInit")
|
console.log("imInit")
|
||||||
|
|||||||
@ -18,5 +18,5 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"libVersion": "2.31.1"
|
"libVersion": "2.32.0"
|
||||||
}
|
}
|
||||||
@ -1,14 +1,14 @@
|
|||||||
// 开发环境url
|
// 开发环境url
|
||||||
export const dev = {
|
export const dev = {
|
||||||
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
|
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
|
||||||
staticHost: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com",//静态资源host
|
staticHost: "https://img.applets.igandanyiyuan.com",//静态资源host
|
||||||
IMappId: '1400798221', //此处为IM appId
|
IMappId: '1400798221', //此处为IM appId
|
||||||
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
|
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
|
||||||
}
|
}
|
||||||
// 测试环境url
|
// 测试环境url
|
||||||
export const test = {
|
export const test = {
|
||||||
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
|
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
|
||||||
staticHost: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com",//静态资源host
|
staticHost: "https://img.applets.igandanyiyuan.com",//静态资源host
|
||||||
IMappId: '1400798221', //此处为此处为IM appId
|
IMappId: '1400798221', //此处为此处为IM appId
|
||||||
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
|
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user