File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" container" >
3
+ <caption ><strong >选择操作</strong ></caption >
4
+ <thead >
5
+ </thead >
6
+ <tbody >
7
+ <div class =" success" >
8
+ <div class =" row" style =" margin-top :10px " >
9
+ <div class =" col-xs-6 col-sm-6 col-md-12" >
10
+ <input type =" button" class =" btn btn-lg btn-success btn-block" value =" h5插件更新" @click =" h5update" id =" hide" >
11
+ </div >
12
+ </div >
13
+ <!--
14
+ <div>
15
+ <button class="btn btn-info" @click="h5update">h5更新</button>
16
+ </div>
17
+ <div>
18
+ <button class="btn btn-info" @click="appUpdate">app更新</button>
19
+ </div>
20
+ -->
21
+ <div class =" row" style =" margin-top :10px " >
22
+ <div class =" col-xs-6 col-sm-6 col-md-12" >
23
+ <input type =" button" class =" btn btn-lg btn-success btn-block" value =" app更新" @click =" appUpdate" id =" hide" >
24
+ </div >
25
+ </div >
26
+ </div >
27
+ </tbody >
28
+ </div >
29
+ </template >
30
+
31
+ <script >
32
+ module .exports = {
33
+ events: {
34
+ " h5update-app " : function () {
35
+ var self = this ;
36
+ if (confirm (" 确定更新h5?" )) {
37
+ self .$route .router .go (' /appversion' );
38
+ }
39
+ },
40
+ " appUpdate-app " : function () {
41
+ var self = this ;
42
+ if (confirm (" 确定更新Apk?" )) {
43
+ self .$route .router .go (' /app_version' );
44
+ }
45
+ }
46
+ },
47
+ methods: {
48
+ h5update : function () {
49
+ this .$dispatch (" h5update-app" );
50
+ },
51
+ appUpdate : function () {
52
+ this .$dispatch (" appUpdate-app" );
53
+ }
54
+ }
55
+ }
56
+ </script >
You can’t perform that action at this time.
0 commit comments