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
28318b3a
Commit
28318b3a
authored
May 22, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 合并master
parent
7bb7f92b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
8 deletions
+24
-8
index.wpy
src/pages/index.wpy
+1
-1
raffle.wpy
src/pages/raffle.wpy
+23
-7
No files found.
src/pages/index.wpy
View file @
28318b3a
...
...
@@ -337,7 +337,7 @@
},
toRaffle() {
wx.navigateTo({
url: '/pages/raffle'
url: '/pages/raffle
?id=1&progress=70&chance=1/780&corn=50000&imgsrc=/static/images/test2.png&goods=Nintendo Switch任天堂游戏机任天堂游戏机
'
});
},
touchStart (event) {
...
...
src/pages/raffle.wpy
View file @
28318b3a
...
...
@@ -118,12 +118,12 @@
<template>
<view class="raffle-wrapper">
<view class="raffle-content">
<image class="img" src="
/static/images/test2.png
"></image>
<image class="img" src="
{{goodsimg}}
"></image>
<view class="goodsinfo">
<text class="text">
Nintendo Switch任天堂游戏机任天堂游戏机
</text>
<text class="money">
30000
克币</text>
<text class="text">
{{goods}}
</text>
<text class="money">
{{corn}}
克币</text>
</view>
<view class="raffle-chance">中奖概率:
1/300
</view>
<view class="raffle-chance">中奖概率:
{{chance}}
</view>
<view class="raffle-progress">中奖进度:
<view class="progress">
<view class="orange" style="{{progressStyle}}"></view>
...
...
@@ -144,9 +144,14 @@
import Dialog from '../components/vant/dialog/dialog';
wepy.page({
data: {
progress:
4
0,
progressStyle:'
width:40%
',
progress:0,
progressStyle:'',
isCheck:false,
id:null,
corn:'',
goods:'',
chance:'',
goodsimg:'',
},
methods: {
check() {
...
...
@@ -194,7 +199,18 @@
}
}
},
onLoad () {
onLoad (query) {
console.log(query);
let {id,corn,goods,chance,imgsrc,progress} = query;
if(progress) {
this.progress = progress;
this.progressStyle = 'width:'+progress+'%';
}
this.id = id;
this.corn = corn;
this.goods = goods;
this.chance = chance;
this.goodsimg = imgsrc;
},
});
</script>
...
...
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