"use strict"; const common_vendor = require("../../common/vendor.js"); const cardVideo = () => "../../components/cardVideo.js"; const potoInfo = () => "../../components/photosInfo.js"; const _sfc_main = { components: { cardVideo, potoInfo }, data() { return { status: "loadmore", list: [{ name: "视频" }, { name: "图片" }], current: 0, imageList: [], swpper: { index: 0 }, page: { pageNum: 1, pageSize: 10, total: 0 }, videoList: [{ src: "", avatar: "dsfs", username: "sdsd", titleName: "asdsdas", tagName: "sdasd" }], videoContext: null }; }, onLoad() { }, methods: { getVideo(e) { console.log(e); if (this.videoContext) { console.log("test"); this.videoContext.pause(); } this.videoContext = e.videoContext; }, ISstatusInit() { switch (this.swpper.index) { case 0: { this.getVideoList(); break; } case 1: { this.getImageList(); } } }, onReachLoad() { this.status = "loading"; this.page.pageSize += 10; this.ISstatusInit(); console.log(this.swpper.index); if (this.list.length >= this.page.total) { console.log(this.list.length); this.status = "nomore"; } else { this.status = "loadmore"; } }, async getVideoList() { }, change(e) { console.log(e); this.swpper.index = e.index; this.page = { pageNum: 1, pageSize: 10, total: 0 }; this.ISstatusInit(); } } }; if (!Array) { const _component_card_video = common_vendor.resolveComponent("card-video"); _component_card_video(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: common_vendor.f($data.videoList, (item, index, i0) => { return { a: common_vendor.o($options.getVideo, index), b: index, c: "137bd0c9-0-" + i0, d: common_vendor.p({ VideoId: index, Videos: item }) }; }) }; } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/uniapp1/gree_leran/pages/video/video.vue"]]); wx.createPage(MiniProgramPage);