{
        template: '${tmpl}',
                data: function() {
                        return {
                                flow: [
                                        {
                                                img: '/imgs/mobiledeal/flow1.png',
                                                name: '挑选商标 提交报价'
                                        },
                                        {
                                                img: '/imgs/mobiledeal/flow2.png',
                                                name: '顾问撮合 签署协议'
                                        },
                                        {
                                                img: '/imgs/mobiledeal/flow3.png',
                                                name: '支付定金 办理公证'
                                        },
                                        {
                                                img: '/imgs/mobiledeal/flow4.png',
                                                name: '支付尾款 提交商标局'
                                        },

                                ],
                                demo: [
                                        {
                                                img: '/imgs/mobiledeal/demo1.png',
                                                name: '商标转让证明'
                                        },
                                        {
                                                img: '/imgs/mobiledeal/demo2.png',
                                                name: '商标注册证'
                                        },
                                        {
                                                img: '/imgs/mobiledeal/demo3.png',
                                                name: '商标转让公证书'
                                        },
                                ],
                                code: '',
                                ncl_one_code: '',
                                tmdetail: '',
                                costNum: [],
                                popupVisible: false,
                                upLoadCost: '',
                                named: '',
                                phoneNum: '',
                        }
                },
        mounted: function() {
                if (this.$route.query.data) {
                        let data = JSON.parse(this.$route.query.data);
                        this.code = data.code;
                        this.ncl_one_code = data.ncl_one_code;
                        console.log(data);
                }
                if (this.$route.query.obj) {
                        let data = JSON.parse(this.$route.query.obj);
                        this.code = data.tm_regist_num;
                        this.ncl_one_code = data.ncl_one_codes;
                        console.log(data);
                }

                /*
                this.$root.titleModify('商标详情');
                
                */
                var myChart = echarts.init(document.getElementsByClassName('mobiledealdetail-echarts')[0]);
                var option = {
                        radius: '30%',

                        radar: [
                                {
                                        indicator: [
                                                { text: '法律指数', max: 100 },
                                                { text: '市场效应', max: 100 },
                                                { text: '易记度', max: 100 },
                                                { text: '搜索热度', max: 100 },
                                                { text: '工商指数', max: 100 },

                                        ],
                                },

                        ],
                        series: [
                                {
                                        type: 'radar',
                                        tooltip: {
                                                trigger: 'item'
                                        },
                                        itemStyle: { normal: { areaStyle: { type: 'default' } } },
                                        data: [
                                                {
                                                        value: [100, 100, 100, 100],
                                                }
                                        ]
                                },
                        ],

                };

                this.$root.postReq("web/trademarktransactionCtl/tmTransactionDetail", { "sbzch": this.code, "gjfl": this.ncl_one_code }).then(d => {
                        if (d && d.status == 0 && d.data && d.data.detail) {
                                this.tmdetail = d.data.detail;
                                function sum(m, n) {
                                        var num = Math.floor(Math.random() * (m - n) + n);
                                        return num
                                };
                                this.costNum = [sum(70, 90), sum(30, 70), sum(20, 50), sum(30, 60), sum(20, 80)];
                                option.series[0].data = [{ value: [sum(70, 90), sum(30, 70), sum(20, 50), sum(30, 60), sum(20, 80)], name: this.tmdetail.sbmc }];
                                myChart.setOption(option);
                        }
                });
                myChart.resize({
                        width: 'auto',
                        height: 'auto',
                });

                myChart.setOption(option);
                this.$root.hidemenu();





        },
        created: function() {

        },
        methods: {
                closePop(){
                        this.popupVisible = false;
                },
                popShow(){
                        this.popupVisible = true;
                },
                subCost(){
                        let needObj = {};
                        needObj.code = this.code;
                        needObj.buyer_name = this.named;
                        needObj.buyer_quoted_price = this.upLoadCost;
                        needObj.buyer_mobile = this.phoneNum;
                        let phoneReg = /(13|14|15|17|18|19)[0-9]{9}/;
                        if (phoneReg.test(this.phoneNum)) {
                                this.$root.postReq("web/trademarktransactionneedCtl/submitNeed", needObj).then(d => {
                                        console.log(d);
                                        if (d && d.code == 1) {
                                                this.$toast({
                                                        message: '提交成功',
                                                        duration: 2000
                                                });
                                                this.popupVisible = false;
                                        } else {
                                                this.$toast({
                                                        message: d.msg,
                                                        duration: 2000
                                                });
                                        }
                                }).catch(e => {
                                        this.$toast({
                                                message: '操作失败',
                                                duration: 2000
                                        });
                                })
                        } else {
                                this.$toast({
                                        message: '您必须填写手机号',
                                        duration: 2000
                                });
                        }
                }
                /*
                getLoginUser : function (){
                  var self =this;
                  this.$root.postReq("/web/userCtl/loginUser",{}).then(function(d){
                    if(d.status==0){
                      self.loginUser = d.data;
                    }
                  });
                }
                */
        },
        vname: "gsb-mobiledealdetail"
}
