啊鑫
2025-01-21 bf69983e80c1066f2a9f727b17f1ce4e13e860aa
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
var vm = new Vue({
    el: '#app',
    data: function () {
        return {
            isLoading: false,
            textInput:''
        }
    },
    mounted() {
        var that = this;
    },
    methods: {
        sendMessage() {
            let sendData = {
                keyType: 'print',
                keyVal: '123',
            }
            console.log('sendMessage 开始1:')
            console.log('sendMessage 开始2:' + JSON.stringify(sendData))
            uni.webView.postMessage({
                data: JSON.stringify(sendData)
            })
        },
        sendScan() {
            var that = this;
            that.$toast.fail("暂时不能使用!");
        }
    }
})