Commit bc5ca4e3 authored by wildfirecode13's avatar wildfirecode13

u

parent 4f44f6dc
......@@ -67,7 +67,7 @@
<!-- 构建的js -->
<!-- <script src="output.js" crossorigin="anonymous"></script> -->
<script src="https://yun.duiba.com.cn/db_games/activity/template/1628478599/output.js" crossorigin="anonymous"></script>
<script src="https://yun.duiba.com.cn/db_games/activity/template/1628480312/output.js" crossorigin="anonymous"></script>
......
......@@ -2,35 +2,43 @@
"code": null,
"data": [
{
"amount": "70",
"amount": "200",
"nickname": "n**l"
},
{
"amount": "30",
"amount": "300",
"nickname": "n**l"
},
{
"amount": "600",
"amount": "500",
"nickname": "n**l"
},
{
"amount": "500",
"amount": "100",
"nickname": "n**l"
},
{
"amount": "500",
"amount": "70",
"nickname": "n**l"
},
{
"amount": "200",
"amount": "30",
"nickname": "n**l"
},
{
"amount": "200",
"amount": "600",
"nickname": "n**l"
},
{
"amount": "600",
"amount": "500",
"nickname": "n**l"
},
{
"amount": "500",
"nickname": "n**l"
},
{
"amount": "200",
"nickname": "n**l"
}
],
......
import { unwatchPageVisibility, watchPageVisibility } from '@spark/utils';
import { showPanel } from "../../module/ctrls";
import { showPanel, showToast } from "../../module/ctrls";
import PanelCtrl from '../../module/ctrls/panelCtrl';
import { Scene } from "../../module/views/Scene";
import Marquee from '../common/Marquee';
......@@ -14,7 +14,7 @@ import { ShareFailPanel } from '../panels/share_fail';
import { ShareSuccessPanel } from '../panels/share_success';
import { getStageHeight, getStageOffset } from '../stage';
import updateShare from '../updateShare';
import { getPxTokenSave, sendWebNet, WebNetName } from '../WebNet';
import { getPxTokenSave, getWebData, sendWebNet, WebNetName } from '../WebNet';
export class IndexScene extends Scene {
updateIndexUI({experienceAmount,yesterdayIncome,sumIncome,sevenDayAnnualization,assistFriendNum,otherExperienceAmount}) {
......@@ -37,11 +37,18 @@ export class IndexScene extends Scene {
showShareMask();
}
onclick_index_drawBtn() {
getPxTokenSave().then(token => {
sendWebNet(WebNetName.withDraw, { token: token }).then(res => {
showPanel(DrawPanel,res.data);
});
})
const {canWithdraw} = getWebData( WebNetName.myWallet).data;
if(canWithdraw){
getPxTokenSave().then(token => {
sendWebNet(WebNetName.withDraw, { token: token }).then(res => {
showPanel(DrawPanel,res.data);
});
})
}else{
showToast('收益未满7天,不能提现哦~')
}
}
page: FYGE.ScrollPage;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment