作者 lihongjuan

提交

... ... @@ -42,10 +42,10 @@ export default {
};
},
created() {
document.title = "唐元集公众号";
document.title = "唐元集";
this.id = this.$route.query.id;
console.log(this.id);
document.title = "唐元集公众号";
document.title = "唐元集";
let that = this;
let date = new Date();
let year = date.getFullYear();
... ...
... ... @@ -329,8 +329,7 @@ export default {
// 异步更新数据
// setTimeout 仅做示例,真实场景中一般为 ajax 请求
setTimeout(() => {
console.log(3434);
console.log(3434,'分页加载');
let newvideopage = that.videopage;
newvideopage++;
that.videopage = newvideopage;
... ... @@ -340,8 +339,7 @@ export default {
// 加载状态结束
this.loading = false;
// 数据全部加载完成
console.log(that.this_page)
console.log(that.total_page)
if (that.this_page == that.total_page) {
this.finished = true;
}
... ...
... ... @@ -104,7 +104,7 @@ export default {
};
},
created() {
document.title = "唐元集公众号";
document.title = "唐元集";
this.selnav = this.$route.query.selnav;
if (this.selnav == 0) {
this.getvideolist();
... ...
... ... @@ -107,7 +107,7 @@ export default {
}
},
created() {
document.title = '唐元集公众号'
document.title = '唐元集'
},
methods: {
overvideo() {
... ...
... ... @@ -55,7 +55,6 @@
</div>
</div>
</template>
<script>
export default {
data() {
... ...
... ... @@ -38,12 +38,15 @@
</template>
<script>
import Vue from 'vue';
import { List } from 'vant';
Vue.use(List);
export default {
data() {
return {
sucailist: [],
finished: "",
loading: false,
finished: false,
page: 1,
this_page: "",
total_page: "",
... ... @@ -94,6 +97,7 @@ export default {
// 视频上拉加载
onLoad() {
let that = this;
console.log(349348989)
// 异步更新数据
// setTimeout 仅做示例,真实场景中一般为 ajax 请求
setTimeout(() => {
... ...
... ... @@ -37,11 +37,15 @@
</template>
<script>
import Vue from 'vue';
import { List } from 'vant';
Vue.use(List);
export default {
data() {
return {
sucailist: [],
finished: "",
finished: false,
loading: false,
page: 1,
this_page: "",
... ... @@ -76,6 +80,8 @@ export default {
.then(function (res) {
console.log(res);
that.sucailist = that.sucailist.concat(res.data.material);
that.this_page=res.data.this_page;
that.total_page=res.data.total_page;
})
.catch(function (err) {
console.log(err);
... ... @@ -100,13 +106,11 @@ export default {
// setTimeout 仅做示例,真实场景中一般为 ajax 请求
setTimeout(() => {
console.log(3434);
let newpage = that.page;
newpage++;
that.page = newpage;
console.log(that.videopage);
that.getsucai();
// 加载状态结束
this.loading = false;
// 数据全部加载完成
... ...
... ... @@ -99,6 +99,10 @@
</template>
<script>
import Vue from 'vue';
import { List } from 'vant';
Vue.use(List);
export default {
data() {
return {
... ... @@ -106,8 +110,8 @@ export default {
keyword: '',
showkeyword: false,
type: 1,
finished: "",
loading: false,
finished: false,
page: 1,
this_page: "",
total_page: "",
... ... @@ -225,6 +229,7 @@ export default {
},
// 视频上拉加载
onLoad() {
console.log(437349)
let that = this;
// 异步更新数据
// setTimeout 仅做示例,真实场景中一般为 ajax 请求
... ... @@ -259,6 +264,8 @@ export default {
.then(function (res) {
console.log(res);
that.sucailist = that.sucailist.concat(res.data.sort);
that.this_page=res.data.this_page;
that.total_page=res.data.total_page
console.log(that.sucailist)
})
.catch(function (err) {
... ...
... ... @@ -35,12 +35,15 @@
</template>
<script>
import Vue from 'vue';
import { List } from 'vant';
Vue.use(List);
export default {
data() {
return {
sucailist: [],
finished: "",
loading: false,
finished: false,
page: 1,
this_page: "",
total_page: "",
... ... @@ -73,6 +76,8 @@ export default {
.then(function (res) {
console.log(res);
that.sucailist = that.sucailist.concat(res.data.material);
that.this_page=res.data.this_page;
that.total_page=res.data.total_page
})
.catch(function (err) {
console.log(err);
... ...