update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { _decorator, Component, Label, Node } from "cc";
|
||||
import { _decorator, Component, Label, Node, ScrollView } from "cc";
|
||||
import li_BaseView from "../../../Main/Common/li_BaseView";
|
||||
import Utils from "../../../Main/Common/Utils";
|
||||
import { GButton } from "../../../Main/Common/GButton";
|
||||
@@ -29,6 +29,8 @@ export class PurchasePanel extends li_BaseView {
|
||||
private vipPrice30: Label;
|
||||
private vipTime30: Label;
|
||||
|
||||
private ScrollView: ScrollView;
|
||||
|
||||
private currentPayType: proto.cs.EnmPayType =
|
||||
proto.cs.EnmPayType.EPT_Cash_INR;
|
||||
private defaultNetworkType: proto.cs.EnmNetworkType =
|
||||
@@ -59,6 +61,8 @@ export class PurchasePanel extends li_BaseView {
|
||||
this.vipPrice30 = this._nodeTab.vipPrice30.getComponent(Label);
|
||||
this.vipTime30 = this._nodeTab.vipTime30.getComponent(Label);
|
||||
|
||||
this.ScrollView = this._nodeTab.ScrollView.getComponent(ScrollView);
|
||||
|
||||
this.cashBtnSelecting = this._nodeTab.cashBtn.getChildByName("selecting");
|
||||
this.cashBtnNotSelect = this._nodeTab.cashBtn.getChildByName("notSelect");
|
||||
this.web3BtnSelecting = this._nodeTab.web3Btn.getChildByName("selecting");
|
||||
@@ -159,6 +163,7 @@ export class PurchasePanel extends li_BaseView {
|
||||
const memberId30 = this.shopData.get30DayMemberId();
|
||||
const price30 = this.shopData.getOriginalPriceById(memberId30);
|
||||
this.vipPrice30.string = `$ ${price30}`;
|
||||
this.ScrollView.scrollToBottom();
|
||||
}
|
||||
|
||||
// 0:cash 1:web3
|
||||
|
||||
Reference in New Issue
Block a user