classify.js 949 字节
var t = require("../../utils/network.js");

Page({
    data: {
        terms: []
    },
    godetail: function(t) {
        var n = t.currentTarget.dataset.id;
        wx.navigateTo({
            url: "detail/detail?term_id=" + n
        });
    },
    onLoad: function(t) {
        this.getterms();
    },
    getterms: function() {
        var n = this;
        new Object();
        t.POST({
            url: "Index/terms",
            header: "application/x-www-form-urlencoded",
            params: "",
            success: function(t) {
                "success" == t.data.state && n.setData({
                    terms: t.data.terms
                });
            },
            fail: function() {}
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});