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
007efc5c
Commit
007efc5c
authored
May 26, 2020
by
ziyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 代码暂存
parent
40228532
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
openAnimation.wpy
src/components/custom/openAnimation.wpy
+1
-0
index.wpy
src/pages/index.wpy
+2
-2
raffle.wpy
src/pages/raffle.wpy
+11
-14
No files found.
src/components/custom/openAnimation.wpy
View file @
007efc5c
...
...
@@ -47,6 +47,7 @@
},
go() {
this.showAnimation = false;
wx.navigateTo({url:'/pages/prize'})
}
},
created() {
...
...
src/pages/index.wpy
View file @
007efc5c
...
...
@@ -234,7 +234,7 @@
<network v-if="!isConnected"></network>
<!-- <star-animation></star-animation> -->
<star-animation1 v-if="sign && showAnimation"></star-animation1>
<
!--<open-animation></open-animation>--
>
<
open-animation></open-animation
>
</view>
</template>
...
...
@@ -511,7 +511,7 @@
// this.awards = !this.awards;
},
toTest() {
wx.navigateTo({url:'/pages/
help
'})
wx.navigateTo({url:'/pages/
myraffles
'})
},
},
...
...
src/pages/raffle.wpy
View file @
007efc5c
...
...
@@ -63,6 +63,7 @@
height:18rpx;
background-color:#fff;
border:1px solid #FF5D15;
border-radius: 4rpx;
color:#666;
display: inline-block;
position: relative;
...
...
@@ -131,12 +132,12 @@
<text class="checktext">我同意花费所有克币参与抽奖,并承诺购买的商品不再退货。</text>
</view>
<button class="joinin" open-type="{{opentype}}" bindtap="joinin" bindgetphonenumber="getPhoneNumber" >立即参与</button>
<van-
dialog id="van-dialog
" />
<van-
notify id="van-notify
" />
</view>
</template>
<script>
import wepy from '@wepy/core';
import
Dialog from '../components/vant/dialog/dialog
';
import
Notify from '../components/vant/notify/notify
';
wepy.page({
data: {
progress:0,
...
...
@@ -158,28 +159,24 @@
//如果数据得到了就跳转
console.log(detail,111)
if(detail.encryptedData) {
Dialog.alert({
title: '参与结果',
message: '恭喜您参与成功!',
})
Notify({message: '恭喜您参与成功!',background:'rgba(0,0,0,0.7)'})
}else {
Dialog.alert({
title: '参与结果',
message: '参与失败,请重新授权!',
})
Notify({message: '参与失败,请重新授权!',background:'rgba(0,0,0,0.7)'})
}
},
joinin() {
if(!this.isCheck) {
Dialog.alert({
Notify({message: '请先勾选协议!', background:'#999'})
/*Dialog.alert({
message: '请先勾选协议!',
})
})
*/
}
}
},
computed: {
imgsrc() {
let imgsrc = '';
let imgsrc = '
/static/images/selected.png
';
if(this.isCheck) {
imgsrc = '/static/images/selected.png';
}else {
...
...
@@ -214,7 +211,7 @@
{
navigationBarTitleText: '参与抽奖',
"usingComponents": {
"van-
dialog": "../components/vant/dialog
/index"
"van-
notify": "../components/vant/notify
/index"
}
}
</config>
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