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
d8b73198
Commit
d8b73198
authored
Jun 29, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 优化
parent
09f1c7a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
goodsList.wpy
src/components/custom/goodsList.wpy
+1
-2
video.wpy
src/components/custom/video.wpy
+1
-1
index.wpy
src/pages/index.wpy
+5
-2
No files found.
src/components/custom/goodsList.wpy
View file @
d8b73198
...
...
@@ -52,9 +52,8 @@
showLoading:false,
isListDone:false,
},
creat
ed() {
attach
ed() {
this.getList();
// goodsIds = this.list.map(item => item.sourceId);
},
methods: {
moveSwiper(e) {
...
...
src/components/custom/video.wpy
View file @
d8b73198
...
...
@@ -31,7 +31,7 @@
<van-loading type="spinner" size="40" v-if="videoLoading" custom-class="video-loading"/>
<!--<video-loading v-if="videoLoading" :snapshot="item.videoSnapUrl"/>-->
</video>
<van-image wx:if="{{item.showType && item.showType.value ==1}}" use-loading-slot src="{{item.photoUrl}}" class="images" radius="10rpx" fit="contain" width="100%" height="100%">
<van-image wx:if="{{item.showType && item.showType.value ==1}}" use-loading-slot src="{{item.photoUrl
|| item.videoSnapUrl
}}" class="images" radius="10rpx" fit="contain" width="100%" height="100%">
<van-loading slot="loading" type="spinner" size="20" vertical/>
</van-image>
<view class="rightcont" v-show="item.id > 0">
...
...
src/pages/index.wpy
View file @
d8b73198
...
...
@@ -413,15 +413,18 @@
} else {
wx.setStorageSync('innerActivity', '');
}
// 弹窗有多个,展示顺序
1、活动弹窗 2、邀请好友 3、购买获得克币 4、
开奖宝箱
// 弹窗有多个,展示顺序
活动弹窗->邀请好友->购买获得克币->
开奖宝箱
if(this.mainInfo.activity && this.mainInfo.activity.id && this.mainInfo.activity.id !== +activityId) {
//活动弹窗
this.avtivityModal = true;
} else if (this.mainInfo.inviteRecord && this.mainInfo.inviteRecord.length) {
//邀请好友
this.showModal = 1;
} else if (this.mainInfo.buyRecord && this.mainInfo.buyRecord.length) {
//购买获得金币
this.showModal = 4;
} else if (this.mainInfo.joinRecord && this.mainInfo.joinRecord.id) {
//开奖宝箱
this.showModal = 2;
}
},
...
...
@@ -460,7 +463,6 @@
if (this.mainInfo.inviteRecord && this.mainInfo.inviteRecord.length) {
this.showModal = 1;
} else if (this.mainInfo.buyRecord && this.mainInfo.buyRecord.length) {
//购买获得金币
this.showModal = 4;
} else if (this.mainInfo.joinRecord && this.mainInfo.joinRecord.id) {
this.showModal = 2;
...
...
@@ -510,6 +512,7 @@
// 获取奖品列表
this.videoList = await getPrizeList(options.prizeId);
this.getMainInfo();
flag = true;
...
...
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