This commit is contained in:
yanran200730
2021-12-08 19:24:59 +08:00
parent 010bd73e04
commit e3402dc801
6 changed files with 41 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="detail">
<div class="detail" v-if="pageShow">
<template v-if="detailObj">
<div class="card">
<header>{{detailObj.title}}</header>
@@ -74,11 +74,15 @@
data() {
return {
detailObj: {},
pageShow: false
}
},
created() {
this.$loading()
this.injectJWeixin(['sendChatMessage']).then(() => {
this.getDetail()
}).catch(() => {
this.$hideLoading()
})
},
@@ -106,6 +110,8 @@
}).then(res=>{
if(res && res.data){
this.detailObj = res.data;
this.pageShow = true
this.$hideLoading()
}
})
},