更新
This commit is contained in:
parent
c4a03c4554
commit
03ed530e92
File diff suppressed because it is too large
Load Diff
|
@ -296,6 +296,14 @@ export default class SceneManager extends cc.Component {
|
|||
propWindow.getChildByName("magic").active = false;
|
||||
propWindow.getChildByName("buy_Btn").getComponent("btnControl").setTouch(true);
|
||||
propWindow.getChildByName(name).active = true;
|
||||
if(name == "hammer"){
|
||||
propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = true;
|
||||
propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = false;
|
||||
}
|
||||
else{
|
||||
propWindow.getChildByName("buy_Btn").getChildByName("hammer").active = false;
|
||||
propWindow.getChildByName("buy_Btn").getChildByName("nomal").active = true;
|
||||
}
|
||||
}
|
||||
|
||||
clickBtn() {
|
||||
|
|
|
@ -637,15 +637,13 @@ var GameTool = {
|
|||
buyProp(propid,callback: Function) {
|
||||
//@ts-ignore
|
||||
if (typeof wx!== 'undefined' && wx!== null) {
|
||||
|
||||
let num = 3;
|
||||
let cost = 1500;
|
||||
if(propid == 2002){
|
||||
cc.fx.GameTool.changeCoin(-1000);
|
||||
cost = 1000;
|
||||
num = 1;
|
||||
}
|
||||
else{
|
||||
cc.fx.GameTool.changeCoin(-1500);
|
||||
}
|
||||
cc.fx.GameTool.changeCoin(-cost);
|
||||
cc.fx.GameTool.setUserProp(propid,num,(data)=>{
|
||||
})
|
||||
const data = {
|
||||
|
@ -661,7 +659,7 @@ var GameTool = {
|
|||
const buyData = {
|
||||
item_id:_id,
|
||||
item_num:3,
|
||||
item_price:1500,
|
||||
item_price:cost,
|
||||
cost_type:"gold"
|
||||
}
|
||||
console.log("____________即将上传Shop_buy",buyData);
|
||||
|
|
Loading…
Reference in New Issue
Block a user