{
    template: '${tmpl}',
        data: function() {
            return {
                listPath: { path: `/${this.$root.channelName}/jdindentlist`, query: {} },
                currentStep: 1,
                companyData: [],
                channelFrom: null,
                user_Name: "",
                companyName:''
            }
        },
    mounted: function() {
        document.cookie.split('; ').map((item, index) => {
            if (item.includes('pin=')) {
                this.user_Name = decodeURIComponent(item.substring(4));
                console.log(this.user_Name, "bbbbbbbbbbbbbbbbbbbbbbbb");
            }
        });
        this.getChannelFrom();
        this.getDetail();
    },
    created: function() {

    },
    methods: {
        getDetail(){
            let obj = this.$root.copyParams({
                "idempotentNo": "203915601880842"
            }, "getIcbcOrderDetails", "/action/tmOrder/springBoard");
            this.$root.loading = true;
            this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => {
                this.$root.loading = false;
                if (d.status == 0) {        
                    this.companyName = d.data.companyName;
                    console.log("返回信息", { ...d.data })
                } else {
                    console.log(d.msg);
                }
            })

        },
        getChannelFrom(){
            this.channelFrom = this.$root.getChannelPath();
        },
        loginOut(){
            /*
            var url = encodeURIComponent("http://tm.plus.jdcloud.com/#/jd/jdtrademark") ;
            
            */
            /*
             location.href = `http://login.jdcloud.com/logout?callback=http://tm.plus.jdcloud.com/#/jd/jdtrademark`;
             */

            let _this = this;
            $.ajax({
                async: true,
                url: "https://login.jdcloud.com/logout",
                type: "GET",
                dataType: "jsonp",
                jsonp: 'callback',
                jsonpCallback: 'handleResponse',
                data: {
                },
                success: function (response, status, xhr) {
                    console.log('状态为：' + status + ',状态是：' + xhr.statusText);
                    console.log(response);
                    if (response.code == 0) {
                        console.log(response);
                        _this.$router.push({ path: `/${_this.$root.channelName}/jdtrademark` });
                    }
                }
            });


        },
    },
    vname: "gsb-companydetail"
}
