|
@@ -14,6 +14,7 @@ Page({
|
|
|
BASEIMGURL: app.globalData.BASEIMGURL,
|
|
|
BASEIMGURL1: app.globalData.BASEIMGURL1,
|
|
|
loading: true,
|
|
|
+ isShowTip: true
|
|
|
// hideGetInfo: true
|
|
|
},
|
|
|
onLoad: function () {
|
|
@@ -165,10 +166,13 @@ Page({
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- onTabItemTap(e){
|
|
|
- console.log(1,e)
|
|
|
+ onTabItemTap(e) {
|
|
|
+ console.log(1, e)
|
|
|
},
|
|
|
- onUnload(){
|
|
|
+ onHide(){
|
|
|
+ clearTimeout(this.timer)
|
|
|
+ },
|
|
|
+ onUnload() {
|
|
|
// this.setData({
|
|
|
// hideGetInfo: true
|
|
|
// })
|
|
@@ -201,12 +205,26 @@ Page({
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- onShow(){
|
|
|
+ onShow() {
|
|
|
if (typeof this.getTabBar === 'function' &&
|
|
|
- this.getTabBar()) {
|
|
|
- this.getTabBar().setData({
|
|
|
- selected: 1
|
|
|
- })
|
|
|
- }
|
|
|
+ this.getTabBar()) {
|
|
|
+ this.getTabBar().setData({
|
|
|
+ selected: 1
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.setData({
|
|
|
+ isShowTip: true
|
|
|
+ })
|
|
|
+ this.timer = setTimeout(()=>{
|
|
|
+ this.setData({
|
|
|
+ isShowTip: false
|
|
|
+ })
|
|
|
+ },15000)
|
|
|
+ },
|
|
|
+ showCode(){
|
|
|
+ wx.previewImage({
|
|
|
+ current: this.data.BASEIMGURL1 + 'HamiltonQR.jpeg', // 当前显示图片的http链接
|
|
|
+ urls: [this.data.BASEIMGURL1 + 'HamiltonQR.jpeg'] // 需要预览的图片http链接列表
|
|
|
+ })
|
|
|
}
|
|
|
})
|