a1300399510@qq.com 提交于 2023/04/04 -10:40:02
This commit is contained in:
parent
6d1dcc10ab
commit
658f070cc1
@ -22,7 +22,8 @@ const service = axios.create({
|
||||
service.interceptors.request.use(config => {
|
||||
//发请求前做的一些处理,数据转化,配置请求头,设置token,设置loading等,根据需求去添加
|
||||
//注意使用token的时候需要引入cookie方法或者用本地localStorage等方法,推荐js-cookie
|
||||
// console.log(config, "config");
|
||||
console.log(config, "config");
|
||||
config['baseURL'] = "https://offer.gter.net/details/iem04u0WK0mH"
|
||||
config['headers']['authorization'] = "qj2q1qk1on0curclipghjtv5ja1g9eq2"
|
||||
return config
|
||||
}, error => {
|
||||
@ -52,8 +53,7 @@ service.interceptors.response.use(response => {
|
||||
error.message = '拒绝访问'
|
||||
break;
|
||||
case 404:
|
||||
// error.message = '请求错误,未找到该资源'
|
||||
// window.location.href = "/NotFound"
|
||||
error.message = '请求错误,未找到该资源'
|
||||
break;
|
||||
case 405:
|
||||
error.message = '请求方法未允许'
|
||||
@ -121,7 +121,3 @@ const http = {
|
||||
}
|
||||
// 导出
|
||||
export default http
|
||||
|
||||
|
||||
//4.导入文件
|
||||
// export default service
|
||||
|
@ -7,15 +7,15 @@
|
||||
<img class="detail-data-eye" src="@/assets/img/detail/eye.png">{{ info.views }}
|
||||
</div>
|
||||
<div class="detail-data-item flexacenter">
|
||||
<img class="detail-data-comment" src="@/assets/img/detail/comment.png">{{ info.replies }}
|
||||
<img class="detail-data-comment" src="@/assets/img/detail/comment.png">{{ info.replies }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="detail-title-box">
|
||||
<div class="detail-title-item detail-title-jinghua flexcenter" v-if="info.digest>0">精华</div>
|
||||
<div class="detail-title-item detail-title-label flexcenter" v-if="info.typename">{{info.typename}}</div>
|
||||
{{info.subject}}
|
||||
<div class="detail-title-item detail-title-jinghua flexcenter" v-if="info.digest > 0">精华</div>
|
||||
<div class="detail-title-item detail-title-label flexcenter" v-if="info.typename">{{ info.typename }}</div>
|
||||
{{ info.subject }}
|
||||
</div>
|
||||
|
||||
<!-- -->
|
||||
@ -304,10 +304,17 @@ export default {
|
||||
this.type = data.type
|
||||
this.token = data.token
|
||||
|
||||
|
||||
if (this.type == 6) {
|
||||
this.getOfferDetail()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 获取offer详情
|
||||
getOfferDetail() {
|
||||
|
||||
},
|
||||
|
||||
|
||||
// 点击点赞
|
||||
tapLike() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user