You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
187 lines
5.5 KiB
187 lines
5.5 KiB
<!DOCTYPE html> |
|
<html> |
|
|
|
<head> |
|
<meta charset="utf-8"> |
|
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> |
|
<title>帮助中心</title> |
|
<!--REM自适应布局JS--> |
|
<link rel="stylesheet" type="text/css" href="../../../lib/css/mui.min.css"> |
|
<link rel="stylesheet" type="text/css" href="../../../lib/css/basic.css"/> |
|
<link rel="stylesheet" type="text/css" href="../../css/base.css" /> |
|
<script src="../../../lib/js/mui.min.js"></script> |
|
<script src="../../../lib/js/vue.js"></script> |
|
<script src="../../../lib/js/app.js"></script> |
|
<script src="../../js/base/rem-layout.js"></script> |
|
<script type="text/javascript" src="../../js/my/my_ajax.js"></script> |
|
<script src="../../../lib/js/require2.1.11.js"></script> |
|
|
|
</head> |
|
<style> |
|
@media only screen and (-webkit-device-pixel-ratio: 3) and (device-height: 812px) and (device-width: 375px) { |
|
.mui-bar-nav~.mui-content { |
|
position: absolute; |
|
top: .8rem; |
|
right: 15px; |
|
left: 15px; |
|
bottom: 0; |
|
margin: 0; |
|
padding: 0 !important; |
|
overflow: scroll; |
|
-webkit-overflow-scrolling: touch; |
|
|
|
} |
|
::-webkit-scrollbar { |
|
display: none; |
|
} |
|
.mui-bar-nav{ |
|
height: .6rem; |
|
} |
|
.mui-bar.mui-bar-nav { |
|
top: 0 !important; |
|
padding: 0; |
|
margin: 0; |
|
} |
|
} |
|
</style> |
|
|
|
<body> |
|
<div id="data-info"> |
|
<header class="mui-bar mui-bar-nav app-header app-header-darkly"> |
|
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> |
|
<h1 class="mui-title">{{langue.MyHelpCenterTitle}}</h1> |
|
</header> |
|
<div class="mui-content"> |
|
<ul class="mui-table-view app-table-view app-table-view-darkly"> |
|
<li v-for="item in helpCenterList" class="mui-table-view-cell"> |
|
<a class="mui-navigate-right view-herf" :id="item.id" :content_url="item.url"> |
|
{{item.title}} |
|
</a> |
|
</li> |
|
|
|
<!--<li class="mui-table-view-cell"> |
|
<a class="mui-navigate-right view-herf" view-id="mine/html/my/my_help_center_subordinate/my_help_center_add_wallet.html" view-url="my_help_center_subordinate/my_help_center_add_wallet.html" > |
|
{{dataBase.MyHelpCenterAddWalletTitle}} |
|
</a> |
|
</li>--> |
|
<!--<li class="mui-table-view-cell"> |
|
<a class="mui-navigate-right view-herf" view-id="mine/html/my/my_help_center_subordinate/my_help_center_import_wallet.html" view-url="my_help_center_subordinate/my_help_center_import_wallet.html" > |
|
{{dataBase.MyHelpCenterImportWalletTitle}} |
|
</a> |
|
</li> |
|
<li class="mui-table-view-cell"> |
|
<a class="mui-navigate-right view-herf" view-id="mine/html/my/my_help_center_subordinate/my_help_center_backups_wallet.html" view-url="my_help_center_subordinate/my_help_center_backups_wallet.html" > |
|
{{dataBase.MyHelpCenterBackupsWalletTitle}} |
|
</a> |
|
</li> |
|
<li class="mui-table-view-cell"> |
|
<a class="mui-navigate-right view-herf" view-id="mine/html/my/my_help_center_subordinate/my_help_center_cannot_find_wallet.html" view-url="my_help_center_subordinate/my_help_center_cannot_find_wallet.html" > |
|
{{dataBase.MyHelpCenterCanNotFindTitle}} |
|
</a> |
|
</li>--> |
|
</ul> |
|
</div> |
|
</div> |
|
</body> |
|
|
|
</html> |
|
<script> |
|
// 国际化 |
|
var langues = { |
|
zh_CN: { |
|
MyHelpCenterTitle: "帮助中心" |
|
}, |
|
zh_HK: { |
|
MyHelpCenterTitle: "幫助中心" |
|
}, |
|
en_US: { |
|
MyHelpCenterTitle: "Help center" |
|
} |
|
}; |
|
</script> |
|
<script> |
|
var dataInfo = new Vue({ |
|
el: "#data-info", |
|
data: { |
|
langue: langues[app.getLanguageLocalStorage()], |
|
helpCenterList: [] |
|
} |
|
}); |
|
|
|
mui.plusReady(function() { //请求帮助中心 |
|
mui.ajax(myAjaxJs.AJAX_SELECT_HELPCENTER_LIST.getUrl, { |
|
data: { |
|
"languages": app.getLanguageLocalStorage() |
|
}, |
|
headers: { |
|
// "X-Requested-Token": localStorage.getItem("user_token"), |
|
"X-Requested-Token": app.getTokenStorage(), // token头部 |
|
"locale": app.getLanguageLocalStorage() // 语种头部 |
|
|
|
}, |
|
dataType: 'json', //服务器返回json格式数据 |
|
type: myAjaxJs.AJAX_SELECT_HELPCENTER_LIST.getType, //HTTP请求类型 |
|
timeout: 10000, |
|
beforeSend: function() { |
|
plus.nativeUI.showWaiting(); |
|
}, |
|
complete: function() { |
|
plus.nativeUI.closeWaiting(); |
|
}, |
|
success: function(data) { |
|
if(data.code == "200") { |
|
dataInfo.helpCenterList = data.data; |
|
// console.log("帮助中心列表: " + JSON.stringify(data.data)); |
|
} else { |
|
mui.toast(data.msg); |
|
} |
|
}, |
|
error: function(xhr, type, errorThrown) { |
|
// mui.alert(dataBase.AjaxError2, dataBase.AlertMsg); |
|
} |
|
}); |
|
}); |
|
|
|
// 列表项跳转 |
|
mui(".mui-table-view").on('tap', '.view-herf', function() { |
|
var contentUrl = this.getAttribute('content_url'); |
|
var helpCenterId = this.getAttribute('id'); |
|
var helpCenterTitle = this.innerHTML; |
|
|
|
var extrasData = {}; |
|
|
|
if(contentUrl) { |
|
extrasData = { |
|
contentUrl: contentUrl, |
|
helpCenterTitle: helpCenterTitle |
|
} |
|
} else { |
|
extrasData = { |
|
helpCenterId: helpCenterId, |
|
helpCenterTitle: helpCenterTitle |
|
} |
|
} |
|
|
|
mui.openWindow({ |
|
id: "mine/html/my/my_help_center_subordinate/my_help_center_add_wallet.html", |
|
url: "my_help_center_subordinate/my_help_center_add_wallet.html", |
|
extras: extrasData |
|
}); |
|
|
|
}); |
|
|
|
// appLanguageFun(); |
|
// /** |
|
// * 国际化方法 |
|
// */ |
|
// function appLanguageFun() { |
|
// let type = app.getLanguageLocalStorage(); |
|
// require(['../../js/language/' + type], function(dataBase) { |
|
// v.dataBase = dataBase; |
|
// }) |
|
// } |
|
// 国际化统一方法 |
|
window.addEventListener('switchLangueData', function(e) { |
|
dataInfo.langue = langues[e.detail]; |
|
}); |
|
</script> |