|
@@ -8,7 +8,7 @@ import Utils from "../../scripts/utils/Utils";
|
|
|
import { instantiate } from "cc";
|
|
|
import UIUtils from "../../scripts/base/UIUtils";
|
|
|
import { Vec3 } from "cc";
|
|
|
-import { ConfigShopItem } from "../../scripts/api/ConfigM";
|
|
|
+import ConfigM, { ConfigShopItem } from "../../scripts/api/ConfigM";
|
|
|
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
@@ -48,7 +48,7 @@ export class GamePassItem extends BaseUI implements IPayListener {
|
|
|
this.setTitles();
|
|
|
}
|
|
|
setTitles() {}
|
|
|
- init(data: ShopDto,c:ConfigShopItem) {
|
|
|
+ init(data: ShopDto) {
|
|
|
this._data = data;
|
|
|
|
|
|
this.setText(
|
|
@@ -69,6 +69,9 @@ export class GamePassItem extends BaseUI implements IPayListener {
|
|
|
"End Time:" + Utils.formattedOnlyDate(data.endTimeAt)
|
|
|
);
|
|
|
|
|
|
+
|
|
|
+ let c = ConfigM.ins.getShopListByStoreId(1)[0];
|
|
|
+
|
|
|
this.setText(
|
|
|
"lbl_desc4",
|
|
|
Utils.setI18nLabel(
|