|
@@ -872,7 +872,7 @@
|
|
|
}
|
|
|
}
|
|
|
sendPost2025(reqUrl, data, call) {
|
|
|
- let isDev = false;
|
|
|
+ let isDev = true;
|
|
|
let urlTop = "https://api.kessongame.site/";
|
|
|
let urlMid = urlTop + "prod-api/api/game/";
|
|
|
if (isDev) {
|
|
@@ -5831,27 +5831,22 @@
|
|
|
this.initData();
|
|
|
}
|
|
|
initData() {
|
|
|
+ this.ui.btn_buy.onClick(this, this.buySp);
|
|
|
this.ui.btn_buy.onClick(this, this.buyDj);
|
|
|
let data = cfgTable.daoJuData[this.index + 1];
|
|
|
console.log('zh:' + JSON.stringify(data));
|
|
|
- this.ui.nameTxt.text = data.name;
|
|
|
- this.ui.n_jiaGe.text = data.price + "";
|
|
|
- this.ui.n_zuanShi.text = data.price + "";
|
|
|
+ this.ui.nameTxt.text = data.spbt;
|
|
|
+ this.ui.n_jiaGe.text = data.spjg + "";
|
|
|
+ this.ui.n_zuanShi.text = data.spjg + "";
|
|
|
let baseUrl = "asset/sound/ogg/";
|
|
|
this.ui.zsImg.url = xGame.common.getGameIconUrl(data.img);
|
|
|
}
|
|
|
buyDj() {
|
|
|
xGame.soundMgr.playSound(xGame.common.btnClickStr);
|
|
|
}
|
|
|
- buyBallRod() {
|
|
|
- }
|
|
|
- logEventForGouMaiGan(qiuGanName) {
|
|
|
- const ev = {
|
|
|
- value: qiuGanName
|
|
|
- };
|
|
|
- const jsonStr = JSON.stringify(ev);
|
|
|
- console.log('zh:ts logEventForGouMaiGan req jsonStr=' + jsonStr);
|
|
|
- JSBridgeUtils.instance.logEventForAdHaveParams('iap_start', jsonStr);
|
|
|
+ buySp() {
|
|
|
+ let data = cfgTable.daoJuData[this.index + 1];
|
|
|
+ console.log('zh:点击购买 data =' + JSON.stringify(data));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -5884,7 +5879,6 @@
|
|
|
}
|
|
|
show(type) {
|
|
|
super.show();
|
|
|
- console.log('zh:show type = ' + type);
|
|
|
this.curType = type == 0 ? "qiugan" : "daoju";
|
|
|
this.switchBtn("qiugan");
|
|
|
this.playSecretaryIdle();
|
|
@@ -22385,27 +22379,22 @@
|
|
|
this.initData();
|
|
|
}
|
|
|
initData() {
|
|
|
+ this.ui.btn_buy.onClick(this, this.buySp);
|
|
|
this.ui.btn_buy.onClick(this, this.buyDj);
|
|
|
let data = cfgTable.daoJuData[this.index + 1];
|
|
|
console.log('zh:' + JSON.stringify(data));
|
|
|
- this.ui.nameTxt.text = data.name;
|
|
|
- this.ui.n_jiaGe.text = data.price + "";
|
|
|
- this.ui.n_zuanShi.text = data.price + "";
|
|
|
+ this.ui.nameTxt.text = data.spbt;
|
|
|
+ this.ui.n_jiaGe.text = data.spjg + "";
|
|
|
+ this.ui.n_zuanShi.text = data.spjg + "";
|
|
|
let baseUrl = "asset/sound/ogg/";
|
|
|
this.ui.zsImg.url = xGame.common.getGameIconUrl(data.img);
|
|
|
}
|
|
|
buyDj() {
|
|
|
xGame.soundMgr.playSound(xGame.common.btnClickStr);
|
|
|
}
|
|
|
- buyBallRod() {
|
|
|
- }
|
|
|
- logEventForGouMaiGan(qiuGanName) {
|
|
|
- const ev = {
|
|
|
- value: qiuGanName
|
|
|
- };
|
|
|
- const jsonStr = JSON.stringify(ev);
|
|
|
- console.log('zh:ts logEventForGouMaiGan req jsonStr=' + jsonStr);
|
|
|
- JSBridgeUtils.instance.logEventForAdHaveParams('iap_start', jsonStr);
|
|
|
+ buySp() {
|
|
|
+ let data = cfgTable.daoJuData[this.index + 1];
|
|
|
+ console.log('zh:点击购买 data =' + JSON.stringify(data));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -22438,7 +22427,6 @@
|
|
|
}
|
|
|
show(type) {
|
|
|
super.show();
|
|
|
- console.log('zh:show type = ' + type);
|
|
|
this.curType = type == 0 ? "qiugan" : "daoju";
|
|
|
this.switchBtn("qiugan");
|
|
|
this.playSecretaryIdle();
|