From bd8167724c16c9c18e9605deceaa11ba037ba238 Mon Sep 17 00:00:00 2001 From: xcw Date: Wed, 22 Feb 2023 10:39:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/swipers/swiper-pu.vue | 7 +- jsFile/requst.js | 2 + pages/tabbar/my/my.vue | 3 + pages/tabbar/pagehome/pagehome.vue | 2 + pagesA/my-extend/my-extend.vue | 8 -- pagesA/my-share/my-share.vue | 144 +++++++++++++++++++------ pagesA/my-watch/my-watch.vue | 32 ++++-- pagesB/course-detail/course-detail.vue | 2 +- pagesB/course-list/course-list.vue | 4 +- pagesB/play-video/play-video.nvue | 2 +- 10 files changed, 153 insertions(+), 53 deletions(-) diff --git a/components/swipers/swiper-pu.vue b/components/swipers/swiper-pu.vue index 4343190..b19b1ac 100644 --- a/components/swipers/swiper-pu.vue +++ b/components/swipers/swiper-pu.vue @@ -120,10 +120,15 @@ }) } }, + // 切换后获取当前索引 changeBanner(e){ this.bcurrent = e.detail.current;//当前的指示点下标 - let videoIndex = e.detail.current; + let videoIndex = e.detail.current - 1; + if(videoIndex <= 0) { + videoIndex = 0; + } + console.log(videoIndex) //切换时要把视频暂停 uni.createVideoContext("video" + (videoIndex),this).pause() }, diff --git a/jsFile/requst.js b/jsFile/requst.js index 855b669..1273eb6 100644 --- a/jsFile/requst.js +++ b/jsFile/requst.js @@ -44,6 +44,8 @@ const checkError = (e) => { switch (Number(e.data.code)) { case 500: case 4000:// 参数错误 + case 4001:// 参数错误 + case 4002:// 参数错误 case 4003:// 参数错误 case 4004:// 记录不存在 case 5000:// xxx错误 diff --git a/pages/tabbar/my/my.vue b/pages/tabbar/my/my.vue index 830aaa4..1742cc7 100644 --- a/pages/tabbar/my/my.vue +++ b/pages/tabbar/my/my.vue @@ -109,6 +109,9 @@ if(index==8){ list[8] = ['/pagesA/my-extend/my-extend','/pagesB/second-level/second-level?level=1','/pagesB/second-level/second-level?level=2' ][this.userInfo.position] } + if(index==9){ + list[9] = ['/pagesA/my-share/my-share','/pagesB/second-level/second-level?level=1','/pagesB/second-level/second-level?level=2' ][this.userInfo.position] + } uni.navigateTo({ url:list[index] }) diff --git a/pages/tabbar/pagehome/pagehome.vue b/pages/tabbar/pagehome/pagehome.vue index 953e0a1..92f2731 100644 --- a/pages/tabbar/pagehome/pagehome.vue +++ b/pages/tabbar/pagehome/pagehome.vue @@ -98,6 +98,7 @@ this.$store.commit('setAutoplay',true); // 判断视频是否隐藏 this.isVideoEv(); + console.log(op,'aaaaa') }, onHide() { // 关闭banner图自动轮播 @@ -112,6 +113,7 @@   return shareObj; }, onLoad(op) { + // 解码一:unescape("http%3A//www.baidu.com%3Fname%3Dzhang@xiao@jie%26order%3D1"); // 解码二:decodeURIComponent("http%3A%2F%2Fwww.baidu.com%3Fname%3Dzhang%40xiao%40jie%26order%3D1") if(op.q!=undefined){ diff --git a/pagesA/my-extend/my-extend.vue b/pagesA/my-extend/my-extend.vue index 166a9b6..724ea01 100644 --- a/pagesA/my-extend/my-extend.vue +++ b/pagesA/my-extend/my-extend.vue @@ -12,14 +12,6 @@ - - - - - - - - 推广获取积分 {{scoreInfo || 0}} diff --git a/pagesA/my-share/my-share.vue b/pagesA/my-share/my-share.vue index da24400..f5b4590 100644 --- a/pagesA/my-share/my-share.vue +++ b/pagesA/my-share/my-share.vue @@ -1,8 +1,10 @@