cyl/dev-test
jscyl13849007907 1 year ago
parent dad0a84f3b
commit f4ce6bb646

@ -90,7 +90,8 @@
.item{ .item{
margin-bottom: 12px; margin-bottom: 12px;
border-bottom: 1px solid #dcdcdc; border-bottom: 1px solid #dcdcdc;
height: 50px; padding-top: 10px;
padding-bottom: 10px;
.title{ .title{
color: rgb(25, 25, 25); color: rgb(25, 25, 25);
font-size: 14px; font-size: 14px;

@ -3,7 +3,7 @@
<div class="m-title"> <div class="m-title">
24小时热榜 24小时热榜
</div> </div>
<div class="m-list"> <div class="m-list" v-if="list.length > 0">
<div v-for="(item,index) in list" :key="index" <div v-for="(item,index) in list" :key="index"
class="item g_flex_row_start" class="item g_flex_row_start"
> >
@ -15,6 +15,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="m-loading g_flex_c" v-if="list.length == 0" style="min-height: 322px;">
<a-spin />
</div>
<div class="m-more g_flex_column_center"> <div class="m-more g_flex_column_center">
<div class="g_flex_row_center"> <div class="g_flex_row_center">
<div class="text"> <div class="text">
@ -29,42 +32,46 @@
</template> </template>
<script> <script>
import {
JobListApi,
} from "../../../../api/job";
export default { export default {
name: 'Hot', name: 'Hot',
props: {}, props: {},
data() { data() {
return { return {
list:[ list:[]
{ }
title:'江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子',
},
{
title:'江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子',
},
{
title:'江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子',
},
{
title:'江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子',
},
{
title:'江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子',
}, },
{ created() {
title:'江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子', this.getList()
}, },
{ mounted() {
title:'江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子',
}, },
{ methods: {
title:'江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子江苏丹阳晨阳电子', async getList(){
let that = this;
const { data } = await JobListApi({
pageNum: 1,
pageSize: 8,
jobCategory: 608,
sortTag:3
});
let resData = data.data;
if(resData.recordCount > 0){
that.list = resData.recordList.map(item => {
return {
title:item.jobName
}
})
}else{
that.list = [];
}
console.log('24小时热榜',data);
} }
]
} }
},
created() {},
mounted() {},
methods: {}
} }
</script> </script>

@ -902,7 +902,7 @@
<div class="top-obj g_flex_c" <div class="top-obj g_flex_c"
ref="backToTop" ref="backToTop"
style="width: 40px;height: 40px;background-color: #fff;border-radius: 50%;position: fixed;bottom: 100px;right: calc(50vw - 470px);cursor: pointer;" style="width: 40px;height: 40px;background-color: #fff;border-radius: 50%;position: fixed;bottom: 100px;right: calc(50vw - 546px);cursor: pointer;"
@click="totop" @click="totop"
v-if="!isspinning" v-if="!isspinning"
> >
@ -3852,7 +3852,7 @@ p {
border-radius: 50%; border-radius: 50%;
position: fixed; position: fixed;
bottom: 100px; bottom: 100px;
right: calc(50vw - 470px); right: calc(50vw - 546px);
cursor: pointer; cursor: pointer;
transition: opacity 0.3s ease; transition: opacity 0.3s ease;
opacity: 0; opacity: 0;

Loading…
Cancel
Save