Merge branch 'main' of https://git.sparkus.cn/yangzhao/cb
This commit is contained in:
commit
634de5cc35
|
@ -15018,7 +15018,7 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 1080,
|
||||
"width": 1180,
|
||||
"height": 2340
|
||||
},
|
||||
"_anchorPoint": {
|
||||
|
@ -15098,8 +15098,8 @@
|
|||
"alignMode": 1,
|
||||
"_target": null,
|
||||
"_alignFlags": 45,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_left": -50,
|
||||
"_right": -50,
|
||||
"_top": -210,
|
||||
"_bottom": -210,
|
||||
"_verticalCenter": 0,
|
||||
|
@ -15288,8 +15288,8 @@
|
|||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
|
|
|
@ -78,7 +78,7 @@ export default class NewClass extends cc.Component {
|
|||
if (res.code === 1) {
|
||||
console.log("_________正式发货");
|
||||
MiniGameSdk.API.showToast("充值成功");
|
||||
|
||||
|
||||
if (this.iosProductId == "month_Card") {
|
||||
this.buyMonthCard(this.iosProductId);
|
||||
}
|
||||
|
@ -155,6 +155,13 @@ export default class NewClass extends cc.Component {
|
|||
}
|
||||
init() {
|
||||
this.btn_Touch = true;
|
||||
const jiazaiNode = cc.find("Canvas"); // 假设 JiaZai 挂在 Canvas 节点
|
||||
const jiazaiComp = jiazaiNode.getComponent(JiaZai);
|
||||
if (jiazaiComp) {
|
||||
setTimeout(() => {
|
||||
jiazaiComp.getMonthlyCardValidityDays();
|
||||
}, 300);
|
||||
}
|
||||
Utils.getMonthlyCard((data) => {
|
||||
if (data.msg == "不在有效期") {
|
||||
this.monthCardBtn.active = true;
|
||||
|
@ -175,7 +182,7 @@ export default class NewClass extends cc.Component {
|
|||
// let rewardData = [
|
||||
// { type: "coin", count: 6000 },
|
||||
// ]
|
||||
cc.fx.GameTool.shopBuy(id, false);
|
||||
cc.fx.GameTool.shopBuy(id, false);
|
||||
cc.fx.GameConfig.GM_INFO.hp_Max = 7;
|
||||
cc.fx.GameConfig.GM_INFO.hp = 7;
|
||||
// cc.fx.GameTool.changeCoin(6000);
|
||||
|
@ -414,7 +421,7 @@ export default class NewClass extends cc.Component {
|
|||
if (res.code === 1) {
|
||||
console.log("7.14_________正式发货");
|
||||
MiniGameSdk.API.showToast("充值成功");
|
||||
|
||||
|
||||
if (productId == "month_Card") {
|
||||
this.buyMonthCard(productId);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user