[绑定关系,弹框]
This commit is contained in:
@@ -33,15 +33,22 @@ Page({
|
||||
|
||||
buttonLeft: 100,
|
||||
progress: 100, // 进度条的宽度,这里的单位是px,所以在wxml文件中要改为rpx
|
||||
precent: 50 // 这个是百分比
|
||||
precent: 50, // 这个是百分比
|
||||
|
||||
refertoStatus: false
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
console.log(options)
|
||||
this.setData({
|
||||
Type: options.type
|
||||
})
|
||||
|
||||
if(this.data.Type == '1' || this.data.Type == '2') {
|
||||
this.setData({
|
||||
refertoStatus: true
|
||||
})
|
||||
}
|
||||
|
||||
this.setData({
|
||||
imageId: options.image_id
|
||||
})
|
||||
@@ -158,4 +165,13 @@ Page({
|
||||
isFixedTop: parseInt(e.scrollTop)
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 关闭弹框,跳转首页
|
||||
*/
|
||||
refertoTap() {
|
||||
this.setData({
|
||||
refertoStatus: false
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user