Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

110
static/app2/js/ect_index.js Executable file
View File

@ -0,0 +1,110 @@
mui.plusReady(function() {
// $('#ect_withdraw_deposit').css('display','none');
$('#ect_transfer_accounts').css('display','none');
// function hyhUrl(url) {
// return 'http://192.168.1.101/hyh/' + url;
// }
window.addEventListener('refresh', function(e) { //执行刷新
// location.reload();
mui.ajax(hyhUrl('app/Ectwallets/index'), { 
headers: { 
"HYH-Token": token
},
dataType: 'json', //服务器返回json格式数据  
type: 'post', //HTTP请求类型  
timeout: 10000, //超时时间设置为10秒  
success: function(data) {           //服务器返回响应,根据响应结果,分析是否登录成功;  
var data = toJson(data, 1);
if(data.status == 1) {
$('.num p').html(data.data.ectNum);
if(data.data.eAddressInfo.eAddress){
$('#ect_add').html('钱包地址:' + data.data.eAddressInfo.eAddress);
}else{
$('#ect_add').html('钱包地址:未设置钱包地址' );
}
} else {
// console.log(data.status)
}
},
error: function(xhr, type, errorThrown) {           //异常处理;  
// alert(errorThrown);      
}  
}); 
});
var token = localStorage.getItem('token');
// alert(token);
mui.ajax(hyhUrl('app/Ectwallets/index'), { 
headers: { 
"HYH-Token": token
},
dataType: 'json', //服务器返回json格式数据  
type: 'post', //HTTP请求类型  
timeout: 10000, //超时时间设置为10秒  
success: function(data) {           //服务器返回响应,根据响应结果,分析是否登录成功;  
var data = toJson(data, 1);
if(data.status == 1) {
$('.num p').html(data.data.ectNum);
if(data.data.eAddressInfo.eAddress){
$('#ect_add').html('钱包地址:' + data.data.eAddressInfo.eAddress);
}else{
$('#ect_add').html('钱包地址:未设置钱包地址' );
}
} else {
// console.log(data.status)
}
},
error: function(xhr, type, errorThrown) {           //异常处理;  
// alert(errorThrown);      
}  
}); 
//跳转
$('body').on('tap', '.row', function() {
var url = $(this).attr('id')+'.html';
if(url==''){
return;
}
mui.openWindow({
url: url,
id: url,
styles: {
top: '0px', //新页面顶部位置
bottom: '0px', //新页面底部位置
width: '100%', //新页面宽度默认为100%
height: '100%' //新页面高度默认为100%
},
extras: {
// data_href: data_href
// ..... //自定义扩展参数,可以用来处理页面间传值
},
createNew: false, //是否重复创建同样id的webview默认为false:不重复创建,直接显示
show: {
// autoShow: true, //页面loaded事件发生后自动显示默认为true
// aniShow: animationType, //页面显示动画默认为”slide-in-right“
// duration: animationTime, //页面动画持续时间Android平台默认100毫秒iOS平台默认200毫秒
// event: 'titleUpdate', //页面显示时机默认为titleUpdate事件时显示
// extras: {} //窗口动画是否使用图片加速
},
waiting: {
autoShow: true, //自动显示等待框默认为true
title: '正在加载...', //等待对话框上显示的提示内容
options: {
// width: waiting - dialog - widht, //等待框背景区域宽度,默认根据内容自动计算合适宽度
// height: waiting - dialog - height, //等待框背景区域高度,默认根据内容自动计算合适高度
// ......
}
}
})
})
})