{
        template: '${tmpl}',
                data: function() {

                        return {
                                data: null,
                                post: null,
                                img: null,
                                servciesType: [],
                                servicesTypeQuery: [],
                                loading:false,
                                items: [
                                        {
                                                label: '商标名称：',
                                                link: false,
                                                islink: false,
                                        },
                                        {
                                                label: '商标申请号：',
                                                link: false,
                                                islink: false,
                                        },
                                        {
                                                label: '商标类别：',
                                                link: false,
                                                islink: false,
                                        },
                                        {
                                                label: '当前状态：',
                                                link: false,
                                                islink: false,
                                        },
                                        {
                                                label: '申请人：',
                                                link: false,
                                                islink: false,
                                        },
                                        {
                                                label: '申请日期：',
                                                link: false,
                                                islink: false,
                                        },
                                        {
                                                label: '初审公告日期：',
                                                link: false,
                                                islink: false,
                                        },
                                        {
                                                label: '专用期限：',
                                                link: false,
                                                islink: false,
                                        },
                                        {
                                                label: '商品/服务项目：',
                                                link: '/mobilesearchservices',
                                                islink: 1,
                                        },
                                        {
                                                label: '代理机构名称：',
                                                link: false,
                                                islink: false,
                                        },
                                        {
                                                label: '商标公告：',
                                                link: '/mobilebulletin',
                                                islink: 1,
                                        },
                                ],
                        }
                },
        mounted: function() {
                /**先请求数据 */
                this.post = JSON.parse(this.$route.query.data);
                this.loading = true;
                this.$root.postReq("/web/bytmqueryCtl/tradeMarkDetail", this.post).then((res) => {
                        this.loading = false;
                        this.data = res.data.detaildata[0];
                        console.log(res, this.data, 'mmmmmmmmmmmmmmmmmmmm');
                        this.servicesTypeQuery = res.data.nclexist;
                        res.data.nclexist.forEach((item, index) => {
                                if (index < 3) {
                                        var ellipses = "、";
                                        if (index == 2) {
                                                ellipses = "...";
                                        }
                                        this.servciesType.push(item.small_name + ellipses);
                                } else {
                                        return
                                }

                        });
                        console.log(this.servicesTypeQuery, this.servciesType, "nnnnnnnnnnnnnnnn");
                        this.init();
                });
                this.$root.hidemenu();
                console.log(this.$route.query, "~~~~~~~~~~~~~~~~!!!!", this.items.length);
        },
        created: function() {

        },
        computed: {
                /**数据回来后拼接label返回新数组 */
        },
        methods: {
                init(){
                        this.img = this.data.logo;
                        this.items[0].label += this.data.sbmc;
                        this.items[1].label += this.data.sbzch;
                        this.items[2].label += this.data.sblx;
                        this.items[3].label += this.data.sbzt;
                        this.items[4].label += this.data.zcr;
                        this.items[5].label += this.data.sqrq;
                        this.items[6].label += this.data.csrq;
                        if (this.data.sqrq && this.data.jzrq) {
                                let deadline = `${this.data.sqrq} 至 ${this.data.jzrq}`;
                                this.items[7].label += deadline;
                        } else {
                                this.items[7].label += '暂无';
                        }




                        this.servciesType.forEach(item => {
                                this.items[8].label += item;
                        });
                        this.items[9].label += this.data.dljg;
                        this.items[10].label += this.data.lcxx.length + '条';
                        /*商标公告 */
                        let notice = JSON.stringify(this.data.lcxx);
                        this.items[10].link += `?data=${notice}`;
                        let servicesTypeQuery = JSON.stringify(this.servicesTypeQuery);

                        this.items[8].link += `?data=${servicesTypeQuery}&title=${this.data.gjflname}`;
                        console.log(this.items[8].link,'.....................');
                },
                goSearchDetail(index, item){
                        this.$router.push({ path: '/mobilesearchdetail', query: {} });
                },

                /*
                getLoginUser : function (){
                  var self =this;
                  this.$root.postReq("/web/userCtl/loginUser",{}).then(function(d){
                    if(d.status==0){
                      self.loginUser = d.data;
                    }
                  });
                }
                */
        },
        vname: "gsb-mobilesearchdetail"
}
