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 @@