|
|
@ -8,14 +8,26 @@ |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
content:"" |
|
|
content:"", |
|
|
|
|
|
guid:"" |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onLoad(options) { |
|
|
onLoad(options) { |
|
|
this.content = options.content; |
|
|
this.guid = options.guid; |
|
|
|
|
|
this.getContent(); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
|
|
|
async getContent() { |
|
|
|
|
|
|
|
|
|
|
|
const { |
|
|
|
|
|
data: res |
|
|
|
|
|
} = await uni.$http.post('/small/project/message/getById',{guid:this.guid}) |
|
|
|
|
|
if (!res.success) return uni.$showMsg() |
|
|
|
|
|
|
|
|
|
|
|
this.content = res.data.content |
|
|
|
|
|
uni.$showMsg('数据请求成功!') |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|