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
92ce716d
Commit
92ce716d
authored
Jul 27, 2020
by
zhijie.xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中奖列表显示中奖概率
parent
1a84f606
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
goodsList.wpy
src/components/custom/goodsList.wpy
+1
-0
myraffles.wpy
src/pages/myraffles.wpy
+9
-2
No files found.
src/components/custom/goodsList.wpy
View file @
92ce716d
...
@@ -95,6 +95,7 @@
...
@@ -95,6 +95,7 @@
if (this.isListDone) return;
if (this.isListDone) return;
page++;
page++;
getGoodsList(page).then(data => {
getGoodsList(page).then(data => {
if (!data) return;
// 没有更多了
// 没有更多了
if (!data.hasMore) {
if (!data.hasMore) {
// 如果小于4个商品,一行就能显示,不用循环
// 如果小于4个商品,一行就能显示,不用循环
...
...
src/pages/myraffles.wpy
View file @
92ce716d
...
@@ -34,10 +34,16 @@
...
@@ -34,10 +34,16 @@
overflow: hidden;
overflow: hidden;
}
}
.item-corn{
.item-corn{
color:@maincolor;
color:
@maincolor;
font-size: @font-middle;
font-size: @font-middle;
position: absolute;
position: absolute;
bottom:30rpx;
bottom: 60rpx;
}
.item-probability {
color: @lightgrey;
font-size: @font-common;
position: absolute;
bottom: 30rpx;
}
}
.item-status {
.item-status {
position: absolute;
position: absolute;
...
@@ -80,6 +86,7 @@
...
@@ -80,6 +86,7 @@
<view class="item-right">
<view class="item-right">
<view class="item-title">{{item.prize.name}}</view>
<view class="item-title">{{item.prize.name}}</view>
<view class="item-corn">花费: {{item.quantity}}克币</view>
<view class="item-corn">花费: {{item.quantity}}克币</view>
<view class="item-probability">中奖概率: {{item.probability || ''}}</view>
<view class="item-status">
<view class="item-status">
<button data-id="{{item.id}}" class="item-button" bindtap="goprize" v-if="item.status.value==3">领取</button>
<button data-id="{{item.id}}" class="item-button" bindtap="goprize" v-if="item.status.value==3">领取</button>
<text class="{{prize.getClass(item.status)}}" v-else>{{fonts[item.status.value]}}</text>
<text class="{{prize.getClass(item.status)}}" v-else>{{fonts[item.status.value]}}</text>
...
...
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