规则弹窗优化

This commit is contained in:
GaoHao 2025-01-17 18:04:39 +08:00
parent 575caba06d
commit 2058c4af58
1 changed files with 8 additions and 7 deletions

View File

@ -93,7 +93,7 @@
<script setup>
import { reactive, nextTick, ref } from 'vue';
import { onReady,onLoad,onShow,onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app'
import { onReady,onLoad,onShow,onLaunch,onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app'
import { selectUserMoney, selectPayDetails, canCash, state, withdraw } from '@/api/me/withdraw.js';
import { selectUserById } from '@/api/user/user.js';
import { announcement } from '@/api/index/index.js';
@ -133,23 +133,24 @@
getExtractFei();
getMoneyDetail();
getCanCash()
announcement({type: 1}).then(res=>{
data.ruleList = res
ruleInit()
})
})
onShow(() => {
getcashMoney()
getUserInfo();
announcement({type: 1}).then(res=>{
data.ruleList = res
ruleInit()
data.ruleShow = true
})
})
onReady(() => {
nextTick(()=>{
data.adRewardedVideoloadNum = 0
adRewardedw.value.load();
data.ruleShow = true
})
})
onReachBottom(() => {
if (data.page * data.limit < data.totalCount) {
data.page = data.page + 1;