123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>操作视频-创业帮</title>
- <meta name="keywords" content="操作视频-创业帮">
- <meta name="description" content="操作视频-创业帮">
- <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <meta content="telephone=no" name="format-detection">
- <meta content="email=no" name="format-detection">
- <meta name="apple-mobile-web-app-title" content="操作视频-创业帮">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- </head>
- <body class="option-video pt0 pb0" style="padding-top:0;">
- <div id="app" ref="container" v-cloak>
- <van-nav-bar class="option_video_title titlef16 whit_icon" left-arrow title="创业帮视频介绍" v-if="toptitleisshow" @click-left="goback">
- <template #left>
- <van-icon name="arrow-left"> </van-icon>
- </template>
- </van-nav-bar>
- <div class="video_banner strong_colorroll">
- <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
- <van-list v-model="loading" :finished="finished" @load="onLoad" finished-text="没有更多数据了" :immediate-check="false">
- <div class="imgbox mt16" v-for="item in videolist" :key="item.Id" @click="videodetaillist(item.Id)"><img :src="item.BannerPic" alt=""></div>
- </van-list>
- </van-pull-refresh>
- </div>
- </div>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/appfunc.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script src="./static/js/publicfn.js"></script>
- <script>
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
- PublicLib.SetStatusBarBgColor({bgcolor:'ffffff'});
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- toptitleisshow:false,
- videolist:[],
- loading: false,
- finished: false,
- refreshing: false,
- pageinfo:{
- PageSize:10,
- PageNum:1
- },
- }
- },
- created() {
- this.toptitleisshow = toptitleisshow;
- this.getvideotypelist();
- },
- methods: {
- onLoad() {
- if (this.refreshing) {
- this.videolist = [];
- this.refreshing = false;
- this.pageinfo.PageNum = 0;
- };
- this.pageinfo.PageNum++;
- this.getvideotypelist();
- },
- onRefresh() {
- this.finished = false;
- this.loading = true;
- this.onLoad();
- },
- goback(){
- PublicLib.GoBack({Level:1});
- },
- videodetaillist(id){
- PublicLib.putCookieInfo('videoId', id);
- PublicLib.Goto({Url:'option-video-detail'});
- },
- async getvideotypelist(){
- //- PublicLib.ShowLoading({Message:''});
- const BrandId = PublicLib.getCookieInfo('productMachineId');
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/appvideo/list?t='+Math.random(6),JSON.stringify({...this.pageinfo}));
- if(res.status !== '1')return tips('操作视频分类列表获取失败!');
- //- PublicLib.HideLoading();
- if(res.data.length < this.pageinfo.PageSize) {
- this.finished = true;
- };
- this.videolist.push(...res.data);
- this.loading = false;
- },
- }
- });
- </script>
- </body>
- </html>
|