Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mini-program-wepy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mini-program-wepy
Commits
3503f01d
Commit
3503f01d
authored
May 20, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 恢复授权弹窗
parent
a4c4f49a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
index.wpy
src/pages/index.wpy
+14
-1
No files found.
src/pages/index.wpy
View file @
3503f01d
...
@@ -229,10 +229,16 @@
...
@@ -229,10 +229,16 @@
</swiper-item>
</swiper-item>
</swiper>
</swiper>
</view>
</view>
<view class="authmodal" v-show="authmodal">
<view class="wrap">
<view class="text">来到lukii,再平凡的人,也有幸运的权利!</view>
<button open-type="getUserInfo" bindgetuserinfo="getUserInfo">授权并进入</button>
</view>
</view>
<network v-if="!isConnected"></network>
<network v-if="!isConnected"></network>
<!-- <star-animation></star-animation> -->
<!-- <star-animation></star-animation> -->
<star-animation1 v-if="sign && showAnimation"></star-animation1>
<star-animation1 v-if="sign && showAnimation"></star-animation1>
<
open-animation></open-animation
>
<
!--<open-animation></open-animation>--
>
</view>
</view>
</template>
</template>
...
@@ -411,6 +417,13 @@
...
@@ -411,6 +417,13 @@
});
});
this.list = list;
this.list = list;
let that = this;
let that = this;
//如果剩下4个就不让他循环了,这时候就一屏显示出来了
if(list.length <= 4) {
this.circular = false;
}
if(current.itemid >= list.length -1) {
this.current = this.currentIndex -1;
}
setTimeout(function() {
setTimeout(function() {
let newlist = that.list.filter((item, index) => index != current.itemid);
let newlist = that.list.filter((item, index) => index != current.itemid);
// 正常情况下,current.itemid都会比current大一个,因为current有个隐藏元素,当相等或小于的时候就有问题,要重新设置current,最小不能超过0
// 正常情况下,current.itemid都会比current大一个,因为current有个隐藏元素,当相等或小于的时候就有问题,要重新设置current,最小不能超过0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment