Commit 007efc5c authored by ziyu's avatar ziyu

docs: 代码暂存

parent 40228532
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
}, },
go() { go() {
this.showAnimation = false; this.showAnimation = false;
wx.navigateTo({url:'/pages/prize'})
} }
}, },
created() { created() {
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
<network v-if="!isConnected"></network> <network v-if="!isConnected"></network>
<!-- <star-animation></star-animation> --> <!-- <star-animation></star-animation> -->
<star-animation1 v-if="sign && showAnimation"></star-animation1> <star-animation1 v-if="sign && showAnimation"></star-animation1>
<!--<open-animation></open-animation>--> <open-animation></open-animation>
</view> </view>
</template> </template>
...@@ -511,7 +511,7 @@ ...@@ -511,7 +511,7 @@
// this.awards = !this.awards; // this.awards = !this.awards;
}, },
toTest() { toTest() {
wx.navigateTo({url:'/pages/help'}) wx.navigateTo({url:'/pages/myraffles'})
}, },
}, },
......
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
height:18rpx; height:18rpx;
background-color:#fff; background-color:#fff;
border:1px solid #FF5D15; border:1px solid #FF5D15;
border-radius: 4rpx;
color:#666; color:#666;
display: inline-block; display: inline-block;
position: relative; position: relative;
...@@ -131,12 +132,12 @@ ...@@ -131,12 +132,12 @@
<text class="checktext">我同意花费所有克币参与抽奖,并承诺购买的商品不再退货。</text> <text class="checktext">我同意花费所有克币参与抽奖,并承诺购买的商品不再退货。</text>
</view> </view>
<button class="joinin" open-type="{{opentype}}" bindtap="joinin" bindgetphonenumber="getPhoneNumber" >立即参与</button> <button class="joinin" open-type="{{opentype}}" bindtap="joinin" bindgetphonenumber="getPhoneNumber" >立即参与</button>
<van-dialog id="van-dialog" /> <van-notify id="van-notify" />
</view> </view>
</template> </template>
<script> <script>
import wepy from '@wepy/core'; import wepy from '@wepy/core';
import Dialog from '../components/vant/dialog/dialog'; import Notify from '../components/vant/notify/notify';
wepy.page({ wepy.page({
data: { data: {
progress:0, progress:0,
...@@ -158,28 +159,24 @@ ...@@ -158,28 +159,24 @@
//如果数据得到了就跳转 //如果数据得到了就跳转
console.log(detail,111) console.log(detail,111)
if(detail.encryptedData) { if(detail.encryptedData) {
Dialog.alert({ Notify({message: '恭喜您参与成功!',background:'rgba(0,0,0,0.7)'})
title: '参与结果',
message: '恭喜您参与成功!',
})
}else { }else {
Dialog.alert({ Notify({message: '参与失败,请重新授权!',background:'rgba(0,0,0,0.7)'})
title: '参与结果',
message: '参与失败,请重新授权!',
})
} }
}, },
joinin() { joinin() {
if(!this.isCheck) { if(!this.isCheck) {
Dialog.alert({ Notify({message: '请先勾选协议!', background:'#999'})
/*Dialog.alert({
message: '请先勾选协议!', message: '请先勾选协议!',
}) })*/
} }
} }
}, },
computed: { computed: {
imgsrc() { imgsrc() {
let imgsrc = ''; let imgsrc = '/static/images/selected.png';
if(this.isCheck) { if(this.isCheck) {
imgsrc = '/static/images/selected.png'; imgsrc = '/static/images/selected.png';
}else { }else {
...@@ -214,7 +211,7 @@ ...@@ -214,7 +211,7 @@
{ {
navigationBarTitleText: '参与抽奖', navigationBarTitleText: '参与抽奖',
"usingComponents": { "usingComponents": {
"van-dialog": "../components/vant/dialog/index" "van-notify": "../components/vant/notify/index"
} }
} }
</config> </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