--- 大厅底部工具栏 local BottomBarUtil = require("luaScript.Views.Main.BottomBar.BottomBarUtil"); local BottomBarConfig = require("luaScript.Views.Main.BottomBar.BottomBarConfig"); local BottomView = class("BottomView", require("core.luaScript.Views.Main.BottomBar.BottomView")); function BottomView:ctor() BottomView.super.ctor(self); self.menuOffX = -30 end --- BottomView:onBtnKeFuClicked 客服点击事件 function BottomView:onBtnKeFuClicked(node) playBtnEffect() if isWin32Platform() then showTooltip("请在手机上操作") return end local tt = { action = "collecturl.getDataByUid"; app_id = getAppId(); --应用id }; local phpUrl = getGlobalPhpUrl() httpPost(phpUrl, tt, function(status, response) if status == "successed" then local data = json.decode(response) if data.code == 200 and data.result ~= null then app.plugin:callUrl(data.result.kefuurl) end else local url = "http://kfxt.ttleyx.top/addons/kefu?gameid=47" app.plugin:callUrl(url) end end) end -- --- BottomView:onBtnJuBaoClicked 举报点击事件 function BottomView:onBtnJuBaoClicked() playBtnEffect() if isWin32Platform() then showTooltip("请在手机上操作") return end local tt = { action = "collecturl.getDataByUid"; app_id = getAppId(); --应用id }; local phpUrl = getGlobalPhpUrl() httpPost(phpUrl, tt, function(status, response) if status == "successed" then local data = json.decode(response) if data.code == 200 and data.result ~= null then app.plugin:callUrl(data.result.jubaourl) end else local url = string.format("http://toushu.3gegame1.com/inform?ac=25a7f2b778451c50") app.plugin:callUrl(url) end end) end return BottomView;