Commit 84814e8c authored by haiyoucuv's avatar haiyoucuv

init

parent 8348fe4c
......@@ -57,6 +57,10 @@ class HomePage extends React.Component<any, any> {
PageCtrl.changePage(Rule);
}
clickCredits = () => {
wx.miniProgram.navigateTo({ url: "/packages/user/points?source=duiba" });
}
render() {
const { creditsNum, guideFlag } = store.indexData
return <>
......@@ -69,7 +73,7 @@ class HomePage extends React.Component<any, any> {
<Sign />
<Check />
<Button className="credits">{creditsNum}</Button>
<Button className="credits" onClick={this.clickCredits}>{creditsNum}</Button>
{/*<Button className="cash"><span>¥</span>32.88</Button>*/}
<Button className="rule" onClick={this.clickRule} />
......
......@@ -54,7 +54,6 @@ export class Bubble extends Container implements IBase {
}
onPointerUp = _asyncThrottle(async () => {
const { x, y, parent } = this;
const { bubbleArr, bubbleMap } = parent as BubbleMgr;
......
......@@ -2,8 +2,11 @@ import { Base, IBase } from "@/pages/HomePage/Top/base/Base.ts";
import { Assets, Container, Sprite, Text, Ticker } from "pixi.js";
import { Ease, Tween } from "@/core/tween";
import store from "@/store/store.ts";
import { prefixInteger } from "@/utils/utils.ts";
import { _asyncThrottle, prefixInteger } from "@/utils/utils.ts";
import { reactor, observer } from "@/pages/HomePage/Top/mobx/decorators.ts";
import { BubbleMgr } from "@/pages/HomePage/Top/Components/BubbleMgr.ts";
import API from "@/api";
import { GameEvent, globalEvent } from "@/pages/HomePage/Top/GameEvent.ts";
export interface IOverflowBubbleInfo {
id: string;
......@@ -21,6 +24,7 @@ export class OverflowBubble extends Container implements IBase {
constructor() {
super();
this.onLoad();
this.on("pointerup", this.onPointerUp, this);
}
onLoad() {
......@@ -59,6 +63,10 @@ export class OverflowBubble extends Container implements IBase {
}
onPointerUp = _asyncThrottle(async () => {
wx.miniProgram.switchTab({ url: "/pages/scan" });
});
effect() {
const y = this.y;
Tween.get(this, { loop: true })
......
......@@ -36,11 +36,17 @@ declare namespace wx {
fail?: (...args: any[]) => void;
complete?: (...args: any[]) => void;
}): void;
navigateTo(params: {
url: string;
success?: (...args: any[]) => void;
fail?: (...args: any[]) => void;
complete?: (...args: any[]) => void;
}): void;
postMessage(params: {
[key: string]: any;
}): void;
}
const miniProgram: MiniProgram;
type ImageSizeType = "original" | "compressed";
type ImageSourceType = "album" | "camera";
......
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