This commit is contained in:
YeMingfei666 2025-01-18 09:53:07 +08:00
commit 940740ce6d
6 changed files with 20 additions and 14 deletions

View File

@ -58,6 +58,7 @@ export const realNameAuth = (data) => {
export const canCash = (data) => { export const canCash = (data) => {
return http.request({ return http.request({
url: '/cash/canCash', url: '/cash/canCash',
showLoading: false,
}) })
} }

View File

@ -4,7 +4,8 @@ import http from '@/http/http.js'
export const selectTaskCenter = (data) => { export const selectTaskCenter = (data) => {
return http.request({ return http.request({
url: '/taskCenter/selectTaskCenter', url: '/taskCenter/selectTaskCenter',
data data,
showLoading:false
}) })
} }
// 兑换列表 // 兑换列表
@ -19,7 +20,8 @@ export const selectTaskCenterUserReward = (data) => {
export const getUserSignData = (data) => { export const getUserSignData = (data) => {
return http.request({ return http.request({
url: 'userSignRecord/getUserSignData', url: 'userSignRecord/getUserSignData',
data data,
showLoading:false
}) })
} }
export const receiveGoods = (data) => { export const receiveGoods = (data) => {

View File

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

View File

@ -98,7 +98,6 @@
import config from '@/commons/config.js'; import config from '@/commons/config.js';
let data = reactive({ let data = reactive({
loading:false, loading:false,
qrcode: false,
earning: { earning: {
inviteMoney: 0, inviteMoney: 0,
inviteGoldMoney: 0, inviteGoldMoney: 0,
@ -122,8 +121,6 @@
bgImg: '', bgImg: '',
tuiguang: '', tuiguang: '',
invitationCode: uni.getStorageSync('userInfo').invitationCode, invitationCode: uni.getStorageSync('userInfo').invitationCode,
h5SaveImg: '',
haibaoImgH5: '',
inviteSignCount:0, inviteSignCount:0,
canvasW: 350, canvasW: 350,
canvasH: 667, canvasH: 667,

View File

@ -110,7 +110,7 @@
}) })
const adRewarded = ref(null); const adRewarded = ref(null);
onShow(() => { onShow(() => {
$common.init() // $common.init()
// if ( uni.getSystemInfoSync().platform == 'android' ) { // if ( uni.getSystemInfoSync().platform == 'android' ) {
// datas.adpid = 1531580352 // datas.adpid = 1531580352
// } // }
@ -276,6 +276,10 @@
let res = await state({ let res = await state({
extraKey: datas.urlCallback.extra extraKey: datas.urlCallback.extra
}) })
uni.showToast({
title: '获得' + $common.freeDuration + '分钟免费时长',
icon: 'none'
})
} else { } else {
// 退 // 退
} }

View File

@ -38,7 +38,8 @@ const $map = {
922: 'withdrawNum', 922: 'withdrawNum',
500: 'payTips', 500: 'payTips',
914: 'goldBili', // 金币比例 914: 'goldBili', // 金币比例
919: 'isExamine' //是否ios审核中 919: 'isExamine', //是否ios审核中
921: 'freeDuration' //看广告免费分钟时长
} }
export const useCommonStore = defineStore("common", { export const useCommonStore = defineStore("common", {