消息完成

This commit is contained in:
luyuan 2020-08-28 15:04:32 +08:00
parent 1305931e3b
commit aac975e921
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 4 additions and 4 deletions

View File

@ -140,8 +140,8 @@ const install = (Vue, vm) => {
isread(){ isread(){
return vm.$u.post("/message/isread") return vm.$u.post("/message/isread")
}, },
messageInfo(){ messageInfo({id}){
return vm.$u.post("/message/messageInfo") return vm.$u.post("/message/messageInfo",{id})
} }
} }

View File

@ -7,7 +7,7 @@
<u-divider class="time">{{ list.addtime }}</u-divider> <u-divider class="time">{{ list.addtime }}</u-divider>
<!-- <text class="time"></text> --> <!-- <text class="time"></text> -->
</view> </view>
<view class="content">{{ list.content }}</view> <view class="content">{{ list.summary }}</view>
</view> </view>
</view> </view>
</template> </template>
@ -30,7 +30,7 @@
informationList(){ informationList(){
console.log(this.id) console.log(this.id)
this.$u.api.messageInfo({id:this.id}).then((res)=>{ this.$u.api.messageInfo({id:this.id}).then((res)=>{
this.list = res.data
console.log(res); console.log(res);
}) })