This repository was archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdetail.html
More file actions
116 lines (106 loc) · 3.37 KB
/
Copy pathdetail.html
File metadata and controls
116 lines (106 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>反馈详情</title>
<link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css" />
<link rel="stylesheet" href="./css/index.css">
<style>
.main {
background-color: #fff;
padding: 15px;
border-radius: 0.4em;
}
.mg-b-10 {
margin-bottom: 10px;
}
.float-r {
float: right;
}
.color-A7A7A7 {
color: #A7A7A7;
}
</style>
</head>
<body>
<div id="app">
<div class="form">
<div class="main mg-b-10">
<div>
<h3 class="mg-b-10">问题与意见</h3>
<p class="mg-b-10 color-A7A7A7">{{feedbackForm.content}}</p>
<h3 class="mg-b-10">图片</h3>
<img v-for="item in feedbackForm.imgs" class="mg-b-10" style="width: 65px" :src="item">
</div>
<p class="float-r">{{feedbackForm.addTime}}</p>
<div style="clear: both"></div>
</div>
<div class="main">
<h3 class="mg-b-10">客户回复</h3>
<p class="float-r color-A7A7A7" v-if="!feedbackForm.reply">未回复</p>
<div v-else>
<p class="mg-b-10 color-A7A7A7">{{feedbackForm.reply}}</p>
<p class="float-r color-A7A7A7">2017-05-02 18:23:32</p>
</div>
<div style="clear: both"></div>
</div>
</div>
</div>
<script src="https://cdn.staticfile.org/vue/3.2.36/vue.global.min.js"></script>
<script src="https://cdn.staticfile.org/vue-router/4.0.11/vue-router.global.min.js"></script>
<script src="https://unpkg.com/element-plus"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https:///js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.0.1.52.js"></script>
<script>
const routes = []
const router = VueRouter.createRouter({
history: VueRouter.createWebHashHistory(),
routes,
})
const appHtml = {
router,
el: '#app',
data() {
return {
feedbackForm: {
content: "",
imgs: [],
addTime: "",
reply: ""
}
}
},
mounted() {
this.getDetail(this.$route.query.id, this.$route.query.appKey, this.$route.query.appSecret)
},
methods: {
getDetail(id, appKey, appSecret) {
let params = {
appKey: appKey,
appSecret: appSecret
// appKey: "t31GL4o7Qi1hRuYM",
// appSecret: "j4pumag6q4imlmg3"
}
axios({
method: 'get',
url: `https://api.easyapi.com/console/feedback/${id}`,
// headers: { // 设置请求头
// // Authorization:"Bearer " + " " + this.$route.query.token
// Authorization: "Bearer " + " " + "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ6aGFuZzIwMDg0QDEyNi5jb20iLCJhdXRoIjoiUk9MRV9BRE1JTiIsImV4cCI6MTY1NTQzMjY0MH0.UIYVqsG14fQ-Wgyt2EOOZ-oeO7voossvVmkKSZa9Ho4Yuly0UhRsS79NOdwkDHTDFYk9vqDTnLlTZGipn8bBaA"
// },
params: params
}).then(res => {
res.data.content.imgs = res.data.content.imgs.split(",")
this.feedbackForm = res.data.content
})
}
}
}
const app = Vue.createApp(appHtml)
app.use(ElementPlus);
app.use(router);
app.mount('#app');
</script>
</body>
</html>