Commit 007efc5c authored by ziyu's avatar ziyu

docs: 代码暂存

parent 40228532
......@@ -47,6 +47,7 @@
},
go() {
this.showAnimation = false;
wx.navigateTo({url:'/pages/prize'})
}
},
created() {
......
......@@ -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'})
},
},
......
......@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment