Commit ed599fd7 authored by rockyl's avatar rockyl

去除startsWith方法

隐藏关闭按钮
parent bdce535e
......@@ -41,7 +41,7 @@ export default class PKMatching extends DialogContent {
this.AvatarOther.enabled = false;
this.AvatarWaiting.enabled = true;
this.CloseButton.enabled = true;
this.CloseButton.enabled = false;
this.stop();
if(channel === 1){
......@@ -69,7 +69,7 @@ export default class PKMatching extends DialogContent {
this.AvatarOther.enabled = true;
this.AvatarWaiting.enabled = false;
this.CloseButton.enabled = false;
//this.CloseButton.enabled = false;
setTimeout(this.hide, 1000, 'success');
}
......
......@@ -16,7 +16,7 @@ import {utils, engine} from "scilla";
export function callApi(uri: string, params: any = null, method: string = 'post', responseType = 'json', ignoreSuccessField = false): Promise<any> {
let ts = Date.now() + Math.floor(Math.random() * 9999999);
let url = uri.startsWith('//') ? uri : `${engine.customConfig.webServiceUrl}${uri}?_=${ts}`;
let url = uri.indexOf('//') === 0 ? uri : `${engine.customConfig.webServiceUrl}${uri}?_=${ts}`;
params = params || {};
......
......@@ -16,18 +16,36 @@
margin: 0;
border: 0;
}
html, body{
html, body {
height: 100%;
background-color: #282C34;
}
#floatLayer::-webkit-scrollbar {display:none}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
<!--<script src="https://cdn.bootcss.com/fetch/3.0.0/fetch.min.js"></script>-->
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
</head>
<body>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading" style="position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;">
<div id="loading">
<img src="loading.gif"/>
</div>
<script src="debug/bundle.js"></script>
......@@ -43,6 +61,7 @@
title: '', //活动标题
rule: '<p><span style="color: rgb(51, 51, 51);">活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则活动规则</span></p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello end</p>', //规则
loginFlag: false, //是否登录 true是为登录
logined: true, //是否登录 true是为登录
earnCreditsUrl: 'http://www.baidu.com', //加积分接口
unitName: '贝壳', //积分单位
userNickname: '超级登山包', //用户昵称
......@@ -51,17 +70,19 @@
configJson: '{"background":"//yun.duiba.com.cn/h5/miningMachine/home-bg.jpg","pk_button_normal":"//yun.duiba.com.cn/h5/miningMachine/pk-btn.png","pk_button_disabled":"//yun.duiba.com.cn/h5/miningMachine/pk-filter-btn.png","dig_button_normal":"//yun.duiba.com.cn/h5/miningMachine/mining-btn.png","dig_button_disabled":"//yun.dui88.com/h5/miningMachine/mining-filter-btn.png","dialog_background":"//yun.duiba.com.cn/h5/miningMachine/modal-bg.png","dialog_button":"//yun.duiba.com.cn/h5/miningMachine/modal-btn.png","pk_button_label_normal":"#FFF591","pk_button_label_disabled":"#666666","dig_button_label_normal":"#D12C00","dig_button_label_disabled":"#666666","dialog_text_color":"#AB5400","dialog_button_label":"#FFF591"}'
};
function requirelogin(){
function requirelogin() {
console.log('requirelogin');
}
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p){
if(p >= 1){
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {};//window['inputOptions'] ||
window['super-miner'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment