|
@@ -5,6 +5,7 @@
|
|
|
<import name="leader-board" src="../Leaderboard/index.ux"></import>
|
|
|
<import name="sign-page" src="../../components/sign/index.ux"></import>
|
|
|
<import name="short-page" src="../../components/short/index.ux"></import>
|
|
|
+<import name="policy-page" src="../../components/yinsi/policy.ux"></import>
|
|
|
<template>
|
|
|
<stack class="stack-wrap">
|
|
|
<div class="index-wrap">
|
|
@@ -79,6 +80,9 @@
|
|
|
></image>
|
|
|
</div>
|
|
|
</stack>
|
|
|
+ <block if="display">
|
|
|
+ <policy-page @change="dispatchEvent"></policy-page>
|
|
|
+ </block>
|
|
|
</stack>
|
|
|
</template>
|
|
|
|
|
@@ -153,7 +157,8 @@ export default {
|
|
|
home_show: 0,
|
|
|
home_alert: null,
|
|
|
back_alert: 0,
|
|
|
- isInit: false
|
|
|
+ isInit: false,
|
|
|
+ display: false,
|
|
|
},
|
|
|
async onInit() {
|
|
|
let isFromPush = false
|
|
@@ -163,8 +168,15 @@ export default {
|
|
|
await storage.set({ key: 'push_id', value: this.push_id })
|
|
|
}
|
|
|
if (this.send_order_id) {
|
|
|
- await storage.set({ key: 'send_order_id', value: this.send_order_id })
|
|
|
+ await storage.set({ key: "send_order_id", value: this.send_order_id });
|
|
|
+ } else {
|
|
|
+ let send_order_id = (await storage.get({ key: "send_order_id" })).data;
|
|
|
+ if (send_order_id) this.send_order_id = send_order_id;
|
|
|
}
|
|
|
+ //获取当前是否隐私弹窗
|
|
|
+ let showPolicy = (await storage.get({ key: "agreeFlag" })).data;
|
|
|
+ if (!this.send_order_id && !showPolicy) this.display = true;
|
|
|
+
|
|
|
//今日已签到过不在弹框签到
|
|
|
|
|
|
if (this.curPage && this.curPage > 0) {
|
|
@@ -195,6 +207,16 @@ export default {
|
|
|
closeAcitivity() {
|
|
|
this.showActivitys = false
|
|
|
},
|
|
|
+ dispatchEvent(evt) {
|
|
|
+ this.display = evt.detail.display
|
|
|
+ this.save()
|
|
|
+ },
|
|
|
+ save() {
|
|
|
+ storage.set({
|
|
|
+ key: 'agreeFlag',
|
|
|
+ value: 'agree',
|
|
|
+ })
|
|
|
+ },
|
|
|
toMyRead(evt) {
|
|
|
console.log(evt.detail.count)
|
|
|
},
|
|
@@ -294,7 +316,7 @@ export default {
|
|
|
duplication() {
|
|
|
clipboard.set({
|
|
|
text: this.cutomerName,
|
|
|
- success: function(data) {
|
|
|
+ success: function (data) {
|
|
|
prompt.showToast({
|
|
|
message: '复制成功!'
|
|
|
})
|