{
        template: '${tmpl}',
        data: function () {
                return {
                        timeList: [{
                                year: "3个月",
                                oldMoney: 180,
                                newMoney: 90,
                                code: "zcdy3gy"
                        }, {
                                year: "6个月",
                                oldMoney: 365,
                                newMoney: 180,
                                code: "zcdy6gy"
                        }, {
                                year: "1年",
                                oldMoney: 730,
                                newMoney: 365,
                                code: "zcdy1n"
                        }],
                        email: "",
                        money: 90,
                        index: 0,
                        itemCode: "zcdy3gy",
                        userId: "",
                        poliyLevel: "",
                        address: "",
                        Deparment: "",
                        industry: "",
                        period: "3个月",
                };
        },
        created: function () {

        },
        mounted: function () {
                /*由policycondition.js传递*/
                this.poliyLevel = this.$router.history.current.query.poliyLevel;
                this.address = this.$router.history.current.query.address;
                this.Department = this.$router.history.current.query.Department;
                this.industry = this.$router.history.current.query.industry;
        },
        methods: {
                timeClick(item, ind) {
                        this.period = item.year;
                        this.index = ind;
                        this.itemCode = this.timeList[this.index].code;
                        this.money = this.timeList[this.index].newMoney;
                },
                btnClick() {
                        if (!this.email) {
                                this.$message.warning("邮箱不能为空！");
                                return false;
                        }
                        let params = {
                                itemCode: this.itemCode,
                                order_appendinfo: {
                                        level: ["市级通知"],
                                        area_list: ["广州", "天津"],
                                        department_list: ["发改部门", "教育部门"],
                                        type_list: ["人才类", "技术改造"]
                                },
                                apply: {
                                        orderType: "zzdd",
                                        contacts: "",
                                        mobile: "",
                                        email: this.email,
                                        notes: ""
                                },
                                tm: {
                                        totalSum: this.money
                                }
                        };
                        if (!this.currentUser) {
                                this.$root.pushx({
                                        title: "登录",
                                        name: "/login"
                                });
                                return false;
                        }
                        this.$root.postReq("/web/orderCtl/createOtherOrder", params).then((d) => {
                                console.log("---------submitOrder-------");
                                console.log(d);
                                if (d.code == 1) {
                                        this.$root.pushx({
                                                title: "订单支付",
                                                name: "/orderpay",
                                                params: {
                                                        orderNum: d.data.code,
                                                        "poliyLevel":this.poliyLevel,
                                                        "address":this.address,
                                                        "Department":this.Department,
                                                        "industry":this.industry,
                                                        "email":this.email,
                                                        "period":this.period,
                                                }
                                        });
                                } else {
                                        this.$message.warning(d.msg);
                                }
                        })
                },
        },
        vname: "gsb-pay"
}