diff --git a/Pages/agreement_page/index.js b/Pages/agreement_page/index.js index ee13914..109118e 100644 --- a/Pages/agreement_page/index.js +++ b/Pages/agreement_page/index.js @@ -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 }) diff --git a/Pages/yishi/index/index.js b/Pages/yishi/index/index.js index d0550fa..44001c9 100644 --- a/Pages/yishi/index/index.js +++ b/Pages/yishi/index/index.js @@ -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() diff --git a/app.js b/app.js index c775018..f241bc4 100644 --- a/app.js +++ b/app.js @@ -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") diff --git a/project.private.config.json b/project.private.config.json index b0d5439..982700a 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -18,5 +18,5 @@ ] } }, - "libVersion": "2.31.1" + "libVersion": "2.32.0" } \ No newline at end of file diff --git a/utils/network/config.js b/utils/network/config.js index 443937f..bbf6cfd 100644 --- a/utils/network/config.js +++ b/utils/network/config.js @@ -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 }