{
  template: '${tmpl}',
    data: function() {
      return {
        dataList: [
          {
            title: "123",
            img: "/imgs/jdcloud/jdtrademark/t1.png",
            describe: [{
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }, {
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }, {
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }],
          },
          {
            title: "123",
            img: "/imgs/jdcloud/jdtrademark/t2.png",
            describe: [{
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }, {
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }, {
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }],
          },
          {
            title: "123",
            img: "/imgs/jdcloud/jdtrademark/t3.png",
            describe: [{
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }, {
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }, {
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }],
          },
          {
            title: "123",
            img: "/imgs/jdcloud/jdtrademark/t1.png",
            describe: [{
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }, {
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }, {
              pic: "imgs/jdcloud/jdtrademark/dbx.png",
              info: "xxxxxxxxxxxx"
            }],
          },
        ],
        /*切换class */
        current: 1,
        materials: [
          {
            img: "imgs/jdcloud/jdicbc/q1.png",
            text: "已经过核名的公司名称"
          },
          {
            img: "imgs/jdcloud/jdicbc/q4.png",
            text: "法人身份证复印件、电话、邮箱"
          },
          {
            img: "imgs/jdcloud/jdicbc/q2.png",
            text: "股东身份证复印件"
          },
          {
            img: "imgs/jdcloud/jdicbc/q5.png",
            text: "公司经营范围"
          },
          {
            img: "imgs/jdcloud/jdicbc/q3.png",
            text: "执行董事、经理、监事、企业联系人、财务负责人身份证复印件、电话、邮箱"
          },
          {
            img: "imgs/jdcloud/jdicbc/q6.png",
            text: "如自有地址需提供经营场所产权证明及租赁协议及房租发票"
          },


        ],
        showArrows: false,
        /*搜索选择相关 */

        city: [
          {
            title: "热门",
            cityList: ["北京", "广州", "成都", "上海", "杭州", "深圳"],
          },
          {
            title: "A-F",
            cityList: ["北京", '成都', '常州', '东莞', '福州', '重庆', '保定', '长沙', '大连', '长春'],
          },
          {
            title: "G-F",
            cityList: ["广州", "杭州", "湖州", "昆山", "连云港", "济南", "济宁", "邯郸", "开封", "洛阳", "贵阳", "海口", '兰州', '合肥', '呼和浩特', '昆明', '哈尔滨'],
          },
          {
            title: "M-S",
            cityList: ['上海', '深圳', '宁波', '绍兴', '苏州', '南通', '南京', '南昌', '泉州', '青岛', '石家庄', '三亚', '沈阳'],
          },
          {
            title: "T-Z",
            cityList: ['温州', '扬州', '无锡', '徐州', '宜春', '中山', '厦门', '烟台', '邢台', '郑州', '孝感', '宜昌', '襄阳', '武汉', '西安', '乌鲁木齐', '伊犁', '银川', '天津', '芜湖'],
          }
        ],
        activeName: "热门",
        cityName: "选择城市",
        industry: "选择行业",
        industryList: ['文化', '科技', '管理', '咨询', '服务', '传媒', '影业', '贸易', '广告', '教育', '设计'],
        companyType: "选择类型",
        companyName: "",
        companyTypeList: ['有限公司', '股份有限公司', '集团公司'],
        cityShow: false,
        industryShow: false,
        companyTypeShow: false,
        /* 公司注册选项 */
        region: [{
          label: '北京',
          value: '北京',
          children: [{
            value: '朝阳区',
            label: '朝阳区',
          },
          {
            value: '海淀区',
            label: '海淀区',
          },
          {
            value: '顺义区',
            label: '顺义区',
          },
          {
            value: '东城区',
            label: '东城区',
          },
          {
            value: '西城区',
            label: '西城区',
          },
          {
            value: '丰台区',
            label: '丰台区',
          },
          {
            value: '石景山区',
            label: '石景山区',
          },
          ]
        },
        {
          value: '上海',
          label: '上海',
          children: [{
            value: '杨浦区',
            label: '杨浦区',
          },
          {
            value: '嘉定区',
            label: '嘉定区',
          },
          {
            /*也是1的公司类型*/
            value: '崇明区',
            label: '崇明区',
          },
          ]
        },
        {
          label: '杭州',
          value: '杭州',
          children: [{
            value: '西湖区',
            label: '西湖区',
          },
          {
            value: '江干区',
            label: '江干区',
          },
          {
            value: '余杭区',
            label: '余杭区',
          },
          {
            value: '上城区',
            label: '上城区',
          },
          {
            value: '拱墅区',
            label: '拱墅区',
          },
          {
            value: '滨江区',
            label: '滨江区',
          },
          {
            value: '下城区',
            label: '下城区',
          },
          {
            value: '萧山区',
            label: '萧山区',
          },
          ]
        },
        {
          value: '深圳',
          label: '深圳',
          children: [{
            value: '前海自贸区',
            label: '前海自贸区',
          },
          {
            value: '南山区',
            label: '南山区',
          },
          {
            value: '福田区',
            label: '福田区',
          },
          {
            value: '罗湖区',
            label: '罗湖区',
          },
          {
            value: '龙岗区',
            label: '龙岗区',
          },
          ]
        },
        {
          label: '成都',
          value: '成都',
          children: [{
            value: '锦江区',
            label: '锦江区',
          },
          {
            value: '高新区',
            label: '高新区',
          },

          ]
        },
        {
          label: '广州',
          value: '广州',
          children: [{
            value: '天河区',
            label: '天河区',
          },
          {
            value: '越秀区',
            label: '越秀区',
          },
          ]
        },
        ],
        regionValue: [],
        baseType: ["内资小规模", "内资一般人", "外资小规模", "外资一般人", "合资小规模", "合资一般人"],
        pullDownType: [],
        typeValue: "",
        baseForm: ["有限公司（除金融投资、教育培训、食品加工等限制行业）", "有限公司", "个人独资企业（除金融投资、教育培训、食品加工等限制行业）"],
        pullDownForm: [],
        formValue: "",
      }
    },
  mounted: function() {

    var swiper = new Swiper('.swiper-container', {
      slidesPerView: 3,
      spaceBetween: 0,
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
      centeredSlides: false,
    });
  },
  created: function() {

  },
  methods: {
    handleChange(e){
      let city = this.regionValue[0];
      let area = this.regionValue[1];
      if (city == "杭州" || city == "广州" || area == '东城区' || area == '西城区' || area == "丰台区" || area == '石景山区' || area == "杨浦区" || area == "嘉定区") {
        this.pullDownType = this.baseType.slice(0, 4);
      } else if (city == "深圳") {
        this.pullDownType = this.baseType.slice(0, 2);
      } else if (area == '朝阳区' || area == '顺义区' || area == '海淀区' || city == "成都") {
        this.pullDownType = this.baseType;
      }
      if (city == "北京") {
        this.pullDownForm = this.baseForm.slice(1, 2);
      } else if (city == "杭州" || city == "广州" || city == "成都" || city == "深圳" || area == "杨浦区" || area == "嘉定区") {
        this.pullDownForm = this.baseForm.slice(0, 1);
      } else if (area == "崇明区") {
        this.pullDownForm = this.baseForm.slice(1);
      }
    },
    industrySelected(el){
      this.industry = el;
      this.industryShow = false;
    },
    companyTypeSelected(el){
      this.companyType = el;
      console.log(el);
      this.companyTypeShow = false;
    },
    citySelected(el){
      console.log(el);
      this.cityName = el;
      this.cityShow = false;
    },
    handleCheckAllChange(val) {
      if (val) {
        let data = [];
        this.typeList.map((item, index) => {
          data.push(item.code);
        });
        console.log(data);
        this.checkedType = data;
        this.isIndeterminate = false;
      } else {
        this.checkedType = [];
      }

    },
    handleCheckedCitiesChange(value) {
      console.log(value);
      let checkedCount = value.length;
      this.checkAll = checkedCount === this.typeList.length;
      this.isIndeterminate = checkedCount > 0 && checkedCount < this.typeList.length;
    },
    adHeight(index, event){
      this.current = index;
    },
    goVerification(){
      let obj = {
        cityname: this.cityName,
        keyword: this.companyName,
        btname: this.industry,
        orgname: this.companyType,
        sitcity: 1,
      };
      this.$router.push({
        path: "/icorder",
        query: { obj: JSON.stringify(obj)  }
      });
    }

  },
  vname: "gsb-jdicbc"
}
