admin
2025-06-10 568c763084b926a6f2d632b7ac65b9ec8280752f
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
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>想买单</title>
        <script src="js/http.js"></script>
        <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
        <script src="http://cdn.yeshitv.com/js/vue.min.js"></script>
        <script src="js/qwebchannel.js"></script>
    </head>
    <body>
        <div id="main"></div>
        <script>
            document.addEventListener("DOMContentLoaded", function() {
                //把对象赋值到JS中
                try {
                    new QWebChannel(qt.webChannelTransport, function(channel) {
                        window.pyjs = channel.objects.Bridge;
                        alert("回调成功");
                    });
                } catch (e) {
                    alert("回调失败:"+e);
                }
            });
            
            $(function(){
                try {
                    new QWebChannel(qt.webChannelTransport, function(channel) {
                        window.pyjs = channel.objects.Bridge;
                    });
                } catch (e) {
                
                }
                
                plate = http_util.getQueryString("plate");                
                var app=new Vue({
                    el:"#main",
                    
                    
                    
                });
            });
            
        </script>
    </body>
</html>