时间 黑影
This commit is contained in:
parent
66270dd7ed
commit
fe660408e2
|
@ -15018,7 +15018,7 @@
|
||||||
},
|
},
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 1080,
|
"width": 1180,
|
||||||
"height": 2340
|
"height": 2340
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
|
@ -15098,8 +15098,8 @@
|
||||||
"alignMode": 1,
|
"alignMode": 1,
|
||||||
"_target": null,
|
"_target": null,
|
||||||
"_alignFlags": 45,
|
"_alignFlags": 45,
|
||||||
"_left": 0,
|
"_left": -50,
|
||||||
"_right": 0,
|
"_right": -50,
|
||||||
"_top": -210,
|
"_top": -210,
|
||||||
"_bottom": -210,
|
"_bottom": -210,
|
||||||
"_verticalCenter": 0,
|
"_verticalCenter": 0,
|
||||||
|
@ -15288,8 +15288,8 @@
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
2,
|
1,
|
||||||
2,
|
1,
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -78,7 +78,7 @@ export default class NewClass extends cc.Component {
|
||||||
if (res.code === 1) {
|
if (res.code === 1) {
|
||||||
console.log("_________正式发货");
|
console.log("_________正式发货");
|
||||||
MiniGameSdk.API.showToast("充值成功");
|
MiniGameSdk.API.showToast("充值成功");
|
||||||
|
|
||||||
if (this.iosProductId == "month_Card") {
|
if (this.iosProductId == "month_Card") {
|
||||||
this.buyMonthCard(this.iosProductId);
|
this.buyMonthCard(this.iosProductId);
|
||||||
}
|
}
|
||||||
|
@ -155,6 +155,13 @@ export default class NewClass extends cc.Component {
|
||||||
}
|
}
|
||||||
init() {
|
init() {
|
||||||
this.btn_Touch = true;
|
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) => {
|
Utils.getMonthlyCard((data) => {
|
||||||
if (data.msg == "不在有效期") {
|
if (data.msg == "不在有效期") {
|
||||||
this.monthCardBtn.active = true;
|
this.monthCardBtn.active = true;
|
||||||
|
@ -175,7 +182,7 @@ export default class NewClass extends cc.Component {
|
||||||
// let rewardData = [
|
// let rewardData = [
|
||||||
// { type: "coin", count: 6000 },
|
// { 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_Max = 7;
|
||||||
cc.fx.GameConfig.GM_INFO.hp = 7;
|
cc.fx.GameConfig.GM_INFO.hp = 7;
|
||||||
// cc.fx.GameTool.changeCoin(6000);
|
// cc.fx.GameTool.changeCoin(6000);
|
||||||
|
@ -414,7 +421,7 @@ export default class NewClass extends cc.Component {
|
||||||
if (res.code === 1) {
|
if (res.code === 1) {
|
||||||
console.log("7.14_________正式发货");
|
console.log("7.14_________正式发货");
|
||||||
MiniGameSdk.API.showToast("充值成功");
|
MiniGameSdk.API.showToast("充值成功");
|
||||||
|
|
||||||
if (productId == "month_Card") {
|
if (productId == "month_Card") {
|
||||||
this.buyMonthCard(productId);
|
this.buyMonthCard(productId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user