提交 665894f9 编写于 作者: Anne_LXM's avatar Anne_LXM

uni-sign-in签到组件style加上scoped

上级 3254f020
## 1.0.6(2024-03-26)
支持支付宝小程序云
## 1.0.5(2021-12-09)
修复插件没自动安装依赖的`uni-popup``uni-icons`组件的问题
## 1.0.4(2021-11-29)
......
......@@ -82,7 +82,10 @@
let res = await this.getSignedInInfo();
console.log(res);
if (res && res.length == 0) {
let userId= uniCloud.getCurrentUserInfo().uid
let {
_id: userId
} = uni.getStorageSync('userInfo')
console.log(userId, uni.getStorageSync('userInfo'));
if (!userId) {
return uni.navigateTo({
url: "/pages/ucenter/login-page/index/index"
......@@ -181,7 +184,7 @@
}
</script>
<style lang="scss">
<style lang="scss" scoped>
view {
display: flex;
box-sizing: border-box;
......
{
"id": "uni-sign-in",
"displayName": "uni-starter签到插件 提升留存,激励视频变现",
"version": "1.0.5",
"version": "1.0.6",
"description": "培养用户习惯,提升用户粘性,支持广告流量变现的签到得积分功能",
"keywords": [
"uni-sign-in",
......@@ -14,11 +14,7 @@
"engines": {
"HBuilderX": "^3.1.0"
},
"dcloudext": {
"category": [
"uniCloud",
"云端一体页面模板"
],
"dcloudext": {
"sale": {
"regular": {
"price": "0.00"
......@@ -35,7 +31,8 @@
"data": "无",
"permissions": "无"
},
"npmurl": ""
"npmurl": "",
"type": "unicloud-template-page"
},
"uni_modules": {
"dependencies": ["uni-popup","uni-icons"],
......@@ -43,7 +40,8 @@
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
"aliyun": "y",
"alipay": "y"
},
"client": {
"App": {
......
......@@ -33,19 +33,15 @@
<template>
<view>
<uni-sign-in ref="signIn"></uni-sign-in>
<button type="default" @click="signIn">普通签到</button>
<button type="default" @click="signInByAd">看广告签到</button>
<button type="default" @click="signIn">签到</button>
</view>
</template>
<script>
export default {
methods: {
signIn() { //普通签到
signIn() { //签到
this.$refs.signIn.open()
},
signInByAd(){ //看激励视频广告签到
this.$refs.signIn.showRewardedVideoAd()
},
}
}
}
</script>
......@@ -80,7 +76,5 @@
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.
先完成此消息的编辑!
想要评论请 注册