a1300399510@qq.com 提交于 2023/04/06 -19:20:02
This commit is contained in:
parent
44a5ab5d81
commit
24193fd5c1
@ -2,7 +2,7 @@ import Vue from 'vue'
|
|||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
import store from './store'
|
import store from './store'
|
||||||
import ElementUI, { Message, Pagination } from 'element-ui';
|
import ElementUI, { Message, Pagination, loading } from 'element-ui';
|
||||||
import 'element-ui/lib/theme-chalk/index.css';
|
import 'element-ui/lib/theme-chalk/index.css';
|
||||||
import { skipUrl, pageStop, pageMove, goTologin, copy, startupUnderLoading, closeUnderLoading, formattedDate } from "@/utils/common.js"
|
import { skipUrl, pageStop, pageMove, goTologin, copy, startupUnderLoading, closeUnderLoading, formattedDate } from "@/utils/common.js"
|
||||||
import http from "@/utils/request"
|
import http from "@/utils/request"
|
||||||
@ -21,6 +21,7 @@ Vue.prototype.$goTologin = goTologin // 跳转登录页面的方法
|
|||||||
Vue.prototype.$pageStop = pageStop // 页面禁止滑动
|
Vue.prototype.$pageStop = pageStop // 页面禁止滑动
|
||||||
Vue.prototype.$pageMove = pageMove // 页面可以滑动
|
Vue.prototype.$pageMove = pageMove // 页面可以滑动
|
||||||
Vue.prototype.$Message = Message // 消息提示框
|
Vue.prototype.$Message = Message // 消息提示框
|
||||||
|
Vue.prototype.$loading = loading // 消息提示框
|
||||||
Vue.prototype.$copy = copy // 复制
|
Vue.prototype.$copy = copy // 复制
|
||||||
Vue.prototype.$startupUnderLoading = startupUnderLoading // 开启加载提示 element的
|
Vue.prototype.$startupUnderLoading = startupUnderLoading // 开启加载提示 element的
|
||||||
Vue.prototype.$closeUnderLoading = closeUnderLoading // 关闭加载提示 element的
|
Vue.prototype.$closeUnderLoading = closeUnderLoading // 关闭加载提示 element的
|
||||||
|
@ -136,10 +136,10 @@
|
|||||||
<div class="card-head flexacenter">
|
<div class="card-head flexacenter">
|
||||||
<img class="card-head-icon" :src="item.avatar" />
|
<img class="card-head-icon" :src="item.avatar" />
|
||||||
<div class="card-head-content flex1 flexflex">
|
<div class="card-head-content flex1 flexflex">
|
||||||
<div class="card-head-name flexflex">{{ item.author }} <div class="landlord flexcenter"
|
<div class="card-head-name flexflex">{{ item.author }}
|
||||||
v-if="index == 0">
|
<!-- <div class="landlord flexcenter" v-if="index == 0">
|
||||||
楼主
|
楼主
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="card-head-time">{{ $formattedDate(item.dateline) }}</div>
|
<div class="card-head-time">{{ $formattedDate(item.dateline) }}</div>
|
||||||
</div>
|
</div>
|
||||||
@ -450,6 +450,8 @@ export default {
|
|||||||
count: 0,
|
count: 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
loading: null, // 加载中
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -462,6 +464,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 获取详细信息
|
// 获取详细信息
|
||||||
getDetail() {
|
getDetail() {
|
||||||
|
this.$startupUnderLoading(this)
|
||||||
this.$http.post("/api/thread", {
|
this.$http.post("/api/thread", {
|
||||||
tid: this.tid
|
tid: this.tid
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@ -487,6 +490,8 @@ export default {
|
|||||||
else if (this.type == 2) this.getInterviewDetails()
|
else if (this.type == 2) this.getInterviewDetails()
|
||||||
this.getPostList()
|
this.getPostList()
|
||||||
|
|
||||||
|
}).finally(() => {
|
||||||
|
this.$closeUnderLoading(this)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user