• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2   Copyright (C) 2021 Huawei Device Co., Ltd.
3   Licensed under the Apache License, Version 2.0 (the "License");
4   you may not use this file except in compliance with the License.
5   You may obtain a copy of the License at
6
7       http://www.apache.org/licenses/LICENSE-2.0
8
9   Unless required by applicable law or agreed to in writing, software
10   distributed under the License is distributed on an "AS IS" BASIS,
11   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   See the License for the specific language governing permissions and
13   limitations under the License.
14-->
15<div class="container">
16    <div>
17        <text class="sign">
18            &lt
19        </text>
20        <text class="left">
21            升级客户端
22        </text>
23    </div>
24    <div class="banner1" if="{{showBanner==='banner'}}">
25        <div class="banner2" style="width: {{width}};">
26        </div>
27    </div>
28    <text class="percent" if="{{showBanner==='banner'}}">
29        <span>{{width}}</span>
30    </text>
31    <text class="title" if="{{pageType === 'currVersion'}}">
32        当前版本:{{versionName}}
33    </text>
34    <text class="title" if="{{pageType === 'lastVersion'}}">
35        {{title}}
36    </text>
37    <text class="title" if="{{pageType === 'errorPage'}}">
38        {{title}}
39    </text>
40    <text class="title" if="{{pageType === 'downSuccess'}}">
41        {{upgradeInfo}}
42    </text>
43
44    <text class="title1 title1_1" if="{{pageType === 'newVersion'}}">
45        <span>版本号:{{versionName}}</span>
46    </text>
47    <text class="title1" if="{{pageType === 'newVersion'}}">
48        <span>包大小:{{size}}</span>
49    </text>
50    <text class="title1" if="{{pageType === 'newVersion'}}">
51        <span>更新日志:{{journal}}</span>
52    </text>
53    <text class="title1" if="{{pageType === 'newVersion'}}">
54        <span>注意事项: {{matter}}</span>
55    </text>
56    <image src="/common/load.png" class="loadImg" if="{{showLoad==='load'}}">
57    </image>
58
59    <div class="allbutton" if="{{showButton === 'download'}}" onclick="onClick">
60        <text class="button3" >
61            {{button}}
62        </text>
63    </div>
64    <div class="button" if="{{showButton === 'upgrade'}}">
65        <div class="allbutton1" onclick="clickInstall">
66            <text class="button1">
67                安装
68            </text>
69        </div>
70        <div class="allbutton2" onclick="clickCancel">
71            <text class="button2">
72                稍后安装
73            </text>
74        </div>
75    </div>
76    <dialog id="simpledialog" class="dialog-main" oncancel="cancelDialog" if="{{showSimpledialog==='simpledialog'}}">
77        <div class="dialog-div">
78            <div class="inner-txt">
79                <text class="txt">{{dialog}}</text>
80            </div>
81            <div class="inner-btn">
82                <button type="capsule" value="取消" onclick="cancelSchedule" class="btn-txt"></button>
83                <button type="capsule" value="确定" onclick="setSchedule" class="btn-txt"></button>
84            </div>
85        </div>
86    </dialog>
87</div>