广告优化
This commit is contained in:
@@ -117,16 +117,21 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
</u-modal>
|
||||
<!-- 激励视频广告 -->
|
||||
<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>
|
||||
|
||||
<script>
|
||||
import { $cache_config, $cache_index } from '@/store/cashe.js'
|
||||
import { $cache_config, $cache_index,$cache_rule } from '@/store/cashe.js'
|
||||
import { init } from '@/utils/init.js'
|
||||
export default {
|
||||
data() {
|
||||
@@ -173,7 +178,7 @@
|
||||
isWithdraw: false,
|
||||
withdrawNum: $cache_config.withdrawNum,
|
||||
ruleIndex: 0,
|
||||
ruleList: $cache_config.ruleCash||[]
|
||||
ruleList: $cache_rule.ruleCash||[]
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -181,14 +186,14 @@
|
||||
this.getMoneyDetail();
|
||||
|
||||
this.configInit()
|
||||
if ($cache_config.ruleCash) {
|
||||
if ($cache_rule.ruleCash) {
|
||||
this.ruleInit()
|
||||
return
|
||||
}
|
||||
this.$Request.getT("app/announcement", {type: 1}).then(res => {
|
||||
if (res.code == 0 && res.data.length > 0) {
|
||||
this.ruleList = res.data
|
||||
$cache_config.set('ruleCash',this.ruleList)
|
||||
$cache_rule.set('ruleCash',this.ruleList)
|
||||
this.ruleInit()
|
||||
this.ruleShow = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user