This commit is contained in:
haomingming 2023-05-18 10:20:39 +08:00
parent fd6ae7f04d
commit bd97a69fb4
5 changed files with 20 additions and 9 deletions

View File

@ -13,6 +13,7 @@ Page({
onLoad(options) {
console.log(options.agreement_id)
console.log(this.data.static_host+"/basic/file/agreement.htm?id="+options.agreement_id)
this.setData({
src: this.data.static_host+"/basic/file/agreement.htm?id="+options.agreement_id
})

View File

@ -199,7 +199,7 @@ Page({
onHide(){
// console.log("index onHide() onHide() ");
wx.offCopyUrl(this.Copylistener) // 需传入与监听时同一个的函数对象
// wx.offCopyUrl(this.Copylistener) // 需传入与监听时同一个的函数对象
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().stopInterval()

20
app.js
View File

@ -23,7 +23,21 @@ App({
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 ");
let loadStatus = false;
if (!loadStatus) {
@ -66,10 +80,6 @@ App({
},
onShow(){
// this.imInit();
// wx.onCopyUrl(() => {
// console.log("onCopyUrlonCopyUrlonCopyUrl")
// return { query: 'a=1&b=2' }
// })
},
imInit(){
console.log("imInit")

View File

@ -18,5 +18,5 @@
]
}
},
"libVersion": "2.31.1"
"libVersion": "2.32.0"
}

View File

@ -1,14 +1,14 @@
// 开发环境url
export const dev = {
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
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
staticHost: "https://img.applets.igandanyiyuan.com",//静态资源host
IMappId: '1400798221', //此处为此处为IM appId
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
}