提交 e3b191a1 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复H5端在about页面,返回触发引发报错

上级 a1968625
......@@ -33,15 +33,19 @@
<template>
<view>
<uni-sign-in ref="signIn"></uni-sign-in>
<button type="default" @click="signIn">签到</button>
<button type="default" @click="signIn">普通签到</button>
<button type="default" @click="signInByAd">看广告签到</button>
</view>
</template>
<script>
export default {
methods: {
signIn() { //签到
this.$refs.signIn.open()
}
signIn() { //普通签到
this.$refs.signIn.open()
},
signInByAd(){ //看激励视频广告签到
this.$refs.signIn.showRewardedVideoAd()
},
}
}
</script>
......@@ -76,5 +80,7 @@
2. 有没有更多玩法
答:计划今后推出
(2.1)需要看广告才能签到 --- 已支持
(2.2)补签的玩法
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册