aboutUs_frm.html
6.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>关于罗电_frm</title>
<link rel="stylesheet" type="text/css" href="../../css/api.css"/>
<link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
<link rel="stylesheet" type="text/css" href="../../css/mine/mine.css"/>
<link rel="stylesheet" type="text/css" href="../../css/aui-flex.css" />
<style>
html,
body{
background: #F4F6F9;
}
</style>
</head>
<body>
<div class="aui-row aui-row-flex" style="margin-top:40px;">
<div class="aui-col aui-col-span-24 aui-row-flex-center aui-row-flex-middle" style="height:80px;">
<img src="../../image/mine/luodian-appicon-r.png" style="width:80px;height:80px;" />
</div>
</div>
<div class="aui-row aui-row-flex">
<div class="aui-col aui-col-span-24 aui-row-flex-center aui-row-flex-middle" style="height:50px;">
<span style="font-size:12px;font-family:PingFang SC;font-weight:500;color:rgba(174,184,206,1);" id="cur_version">当前版本:</span>
</div>
</div>
<div class="person-center-list-panel">
<div class="inside-person-center-list-panel">
<div class="aui-row aui-row-flex padding-top-21 aui-hide" id="comment_list" tapmode onclick="openStoreComment();">
<div class="aui-col aui-col-span-13 aui-row-flex-start">
<span class="measure-obj">去评分</span>
</div>
<div class="aui-col aui-col-span-11 aui-row-flex-end">
<img src="../../image/to-go.png" style="width:18px;height:18px;margin-top:0.26rem;" />
</div>
</div>
<div class="panel-line margin-top-21"></div>
<div class="aui-row aui-row-flex padding-top-21" tapmode onclick="openStoreUpdate();">
<div class="aui-col aui-col-span-13 aui-row-flex-start">
<span class="measure-obj">版本更新</span>
</div>
<div class="aui-col aui-col-span-11 aui-row-flex-end">
<img src="../../image/to-go.png" style="width:18px;height:18px;margin-top:0.26rem;" />
</div>
</div>
<div class="panel-line margin-top-21"></div>
<div class="aui-row aui-row-flex padding-top-21" tapmode onclick="modifySuggest();">
<div class="aui-col aui-col-span-13 aui-row-flex-start">
<span class="measure-obj">修改意见</span>
</div>
<div class="aui-col aui-col-span-11 aui-row-flex-end">
<img src="../../image/to-go.png" style="width:18px;height:18px;margin-top:0.26rem;" />
</div>
</div>
<div style="height:21px;"></div>
</div>
</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
apiready = function(){
api.parseTapmode();
$api.html($api.byId("cur_version"), '当前版本:' + api.appVersion);
if (api.systemType == 'ios') {
$api.removeCls($api.byId('comment_list'), 'aui-hide');
}
};
function openStoreComment() {
if (api.systemType == "ios") {
api.openApp({
iosUrl: 'https://apps.apple.com/cn/app/%E7%BD%97%E7%94%B5/id1460661635',
});
}
if (api.systemType == "android") {
api.toast({msg: '该功能尚未开放'});
}
}
function openStoreUpdate() {
var mam = api.require('mam');
mam.checkUpdate(function(ret, err) {
if (ret) {
var result = ret.result;
if (result.update == true && result.closed == false) {
// var str = '新版本型号:' + result.version + ';更新提示语:' + result.updateTip + ';下载地址:' + result.source + ';发布时间:' + result.time;
api.confirm({
title : '检测到有新版本',
msg : '是否立即安装?',
buttons : ['确定', '取消']
}, function(ret, err) {
if (ret.buttonIndex == 1) {
if (api.systemType == "android") {
api.download({
url : result.source,
report : true
}, function(ret, err) {
if (ret && 0 == ret.state) {/* 下载进度 */
api.toast({
msg : "最新版罗电下载中,当前进度" + ret.percent + "%,请勿退出",
duration : 2000
});
}
if (ret && 1 == ret.state) {/* 下载完成 */
var savePath = ret.savePath;
api.installApp({
appUri : savePath
});
}
});
}
if (api.systemType == "ios") {
api.openApp({
iosUrl: 'https://apps.apple.com/cn/app/%E7%BD%97%E7%94%B5/id1460661635',
// appParam: {
// appParam: 'app参数'
// }
});
}
}
});
} else {
api.alert({
msg : "当前为最新版本"
});
}
} else {
api.alert({
msg : err.msg
});
}
});
}
function modifySuggest() {
api.openWin({
name: 'modifySuggest_win',
url: './modifySuggest_win.html',
});
}
</script>
</html>