广告优化
This commit is contained in:
@@ -222,7 +222,7 @@
|
||||
$cache_index
|
||||
} from '@/store/cashe.js'
|
||||
import {
|
||||
$cache_config
|
||||
$cache_config,$cache_rule
|
||||
} from '@/store/cashe.js'
|
||||
console.log($cache_index)
|
||||
export default {
|
||||
@@ -281,7 +281,7 @@
|
||||
rule_title: '',
|
||||
rule_content: '',
|
||||
ruleIndex: 0,
|
||||
ruleList: $cache_config.ruleIndex || []
|
||||
ruleList: $cache_rule.ruleIndex || []
|
||||
};
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
@@ -434,7 +434,7 @@
|
||||
|
||||
},
|
||||
onReady() {
|
||||
if ($cache_config.ruleIndex) {
|
||||
if ($cache_rule.ruleIndex) {
|
||||
this.ruleShow = true
|
||||
this.ruleInit()
|
||||
return
|
||||
@@ -443,7 +443,7 @@
|
||||
if (res.code == 0&&res.data.length > 0) {
|
||||
this.ruleShow = true
|
||||
this.ruleList = res.data
|
||||
$cache_config.set('ruleIndex',this.ruleList)
|
||||
$cache_rule.set('ruleIndex',this.ruleList)
|
||||
this.ruleInit()
|
||||
}
|
||||
});
|
||||
|
||||
@@ -89,11 +89,15 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 激励视频广告 -->
|
||||
<ad-rewarded-video v-if="adRewardedVideo" ref="adRewardedVideo" adpid="1531580352" :loadnext="true" v-slot:default="{loading, error}"
|
||||
:url-callback="urlCallback" @load="onadload" @close="onadclose" @error="onaderror">
|
||||
<view class="ad-error" v-if="error">{{error}}</view>
|
||||
</ad-rewarded-video>
|
||||
|
||||
<view style="width: 0;height: 0;overflow: overflow: hidden;;">
|
||||
<!-- 激励视频广告 -->
|
||||
<ad-rewarded-video v-if="adRewardedVideo" ref="adRewardedVideo" adpid="1531580352" :loadnext="true" v-slot:default="{loading, error}"
|
||||
:url-callback="urlCallback" @load="onadload" @close="onadclose" @error="onaderror">
|
||||
<view class="ad-error" v-if="error">{{error}}</view>
|
||||
</ad-rewarded-video>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user