使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 0408576e9da10015ffa9da0079b8c985113ce4b3
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
var openinfo = function () {
    var self = this;
    this.root = "/";
    this.type = "";  //""|"mbc"
}
 
var debug = function () {
    var array = [];
    var data = {};
}
 
$(function () {
    $(document).on('click', '[data-locale="true"] [data-language]', function () {
        var language = $(this).data('language');
        $('body>.overlay').addClass('display');
        $.ajax({
            url: openinfo.root + 'openinfo/locale',
            data: { language: language },
            type: 'POST',
            dataType: 'json',
            success: function (ret) {
                if (ret.code == '00000') {
                    location.reload();
                }
                else {
                    alert(ret.msg);
                }
            },
            error: function (xhr, ex, msg) {
                console.log(xhr);
            }
        });
    });
});