{
        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: null,
                                money: 90,
                                index: 0,
                                itemCode: "zcdy3gy"
                        };
                },
        created: function() {

        },
        methods: {
                timeClick(ind) {
                        this.index = ind;
                        this.itemCode = this.timeList[this.index].code;
                        this.money = this.timeList[this.index].newMoney;
                },
                btnClick() {
                        let params = {
                                itemCode: this.itemCode,
                                order_appendinfo: {
                                        level: ["市级通知"],
                                        area_list: ["广州", "天津"],
                                        department_list: ["发改部门", "教育部门"],
                                        type_list: ["人才类", "技术改造"]
                                },
                                apply: {
                                        orderType: "zzdd",
                                        contacts: "",
                                        mobile: "",
                                        email: "renjian@gongsibao.com",
                                        notes: ""
                                },
                                tm: {
                                        totalSum: this.money
                                }
                        };
                        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 }
                                        });
                                } else {
                                        this.$message.warning(d.msg);
                                }
                        })
                }
        },
        mounted: function() {
        },
        vname: "gsb-pay"
}
