You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
747 B
35 lines
747 B
5 years ago
|
Component({
|
||
|
properties: {
|
||
|
detailData: { // 属性名
|
||
|
type: Object,
|
||
|
value: {}
|
||
|
},
|
||
|
issueState: {
|
||
|
type: Number,
|
||
|
},
|
||
|
itemState: {
|
||
|
type: Number,
|
||
|
},
|
||
|
detailType:{
|
||
|
type:String
|
||
|
}
|
||
|
},
|
||
|
data: {
|
||
|
|
||
|
},
|
||
|
methods: {
|
||
|
//预览图片,放大预览
|
||
|
preview(event) {
|
||
|
let currentUrl = event.currentTarget.dataset.src
|
||
|
wx.previewImage({
|
||
|
current: currentUrl, // 当前显示图片的http链接
|
||
|
urls: this.data.detailData.images // 需要预览的图片http链接列表
|
||
|
})
|
||
|
},
|
||
|
toComments () {
|
||
|
wx.navigateTo({
|
||
|
url: `/subpages/issue/pages/comments/comments?eventId=${this.data.detailData.eventId}`
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
})
|