This commit is contained in:
shilixia 2021-09-06 15:34:07 +08:00
parent 8a9f789bb6
commit 8cbbad1357
2 changed files with 9 additions and 7 deletions

View File

@ -4,9 +4,9 @@ ENV = 'development'
# base api
#VUE_APP_BASE_API = 'http://10.0.11.127:8000/api'
#VUE_APP_BASE_API = 'http://127.0.0.1:8000/api'
#VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api'
VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api'
VUE_APP_BASE_API = 'http://47.95.0.242:9101/api'
#VUE_APP_BASE_API = 'http://47.95.0.242:9101/api'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,

View File

@ -22,15 +22,17 @@
<el-link :underline="false" @click="getListtype(o)"><el-span class="mune">{{o.name}}</el-span></el-link>
</el-col>
</el-row>
<el-row style="margin-top:-5px;">
<el-col style="margin:0.5%;width: 24%;" v-for="o in videoList.results" :key="o">
<el-row style="margin-top:50px;">
<el-col style="margin:0.5%;width: 19%;" v-for="o in videoList" :key="o">
<el-card :body-style="{ padding: '0px' }" shadow="always" class="cardDiv" >
<a @click="clickImg(o)">
<el-image :src="o.coverurl" style="width:100%;height: 300px;" ></el-image>
<el-image :src="o.coverurl" style="width:100%;height: 250px;" ></el-image>
<div class="des"> <span>{{o.description}}</span></div>
</a>
<div style="padding: 14px;">
<span style="font-family: 'Helvetica Neue';color:#af4545">{{o.name}}</span>
<div style="height:50px">
<span style="font-family: 'Helvetica Neue';color:#af4545;">{{o.name}}</span>
</div>
<div class="bottom clearfix">
<el-row>
<el-col :span="12">
@ -88,7 +90,7 @@ export default {
//列表加载
getList() {
this.listLoading = true;
getVideoList().then((response) => {
getVideoList({pageoff:true}).then((response) => {
if (response.data) {
this.videoList = response.data;
}