75 lines
2.5 KiB
HTML
75 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
|
|
<title>Title</title>
|
|
<link rel="stylesheet" href="css/reset.css">
|
|
<link rel="stylesheet" href="css/swiper.css">
|
|
<link rel="stylesheet" href="css/style.css">
|
|
<script src="js/rem.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="app" v-cloak style="padding: 0;">
|
|
<div class="detail">
|
|
<!-- <div class="user-info">-->
|
|
<!-- <div class="user-avatar">-->
|
|
<!-- <img src="image/venueall.png" alt="">-->
|
|
<!-- </div>-->
|
|
<!-- <div class="user-name">-->
|
|
<!-- <p class="name">张三</p>-->
|
|
<!-- <p>{{feedbackDetail.gmtCreate}}</p>-->
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
<div class="detail-text">{{feedbackDetail.opinionContent}}</div>
|
|
<p>{{feedbackDetail.gmtCreate}}2022-01-01</p>
|
|
</div>
|
|
<div class="reply" v-if="replyContent">
|
|
<div class="reply-title">
|
|
<h3>问题解答</h3>
|
|
<span>回复时间:{{replyTime}}</span>
|
|
</div>
|
|
<div class="reply-content">
|
|
<p>{{replyContent}}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="js/vue.js"></script>
|
|
<script src="js/jquery-2.1.4.min.js"></script>
|
|
<script src="js/ajax.js"></script>
|
|
<script src="js/swiper.js"></script>
|
|
<script src="js/layer/layer.js"></script>
|
|
<script>
|
|
var vue = new Vue({
|
|
el: '#app',
|
|
data: {
|
|
requestUrl: 'http://219.159.20.131:8081/',
|
|
token: sessionStorage.getItem('token'),
|
|
contentOpinionId: '',
|
|
feedbackDetail: {},
|
|
replyContent: '',
|
|
replyTime: ''
|
|
},
|
|
methods: {
|
|
getDetail: function () {
|
|
var self = this
|
|
doGetForm(self.requestUrl + 'news/app/contentopinion/get/' + self.contentOpinionId, {}, null, function (code, data) {
|
|
console.log(data)
|
|
self.feedbackDetail = data
|
|
}, null, function (res) {
|
|
res.setRequestHeader('token',self.token)
|
|
})
|
|
}
|
|
},
|
|
mounted: function () {
|
|
var arr = window.location.search.replace('?','').split('&')
|
|
|
|
this.contentOpinionId = arr[0].split('=')[1]
|
|
this.replyContent = arr[1].split('=')[1]
|
|
this.replyTime = decodeURI(arr[2].split('=')[1])
|
|
this.getDetail()
|
|
}
|
|
})
|
|
</script>
|
|
</body>
|
|
</html> |