mycertificate.js 1.1 KB
const app =getApp()
Page({

    /**
     * 页面的初始数据
     */
    data: {
        list: '',
    },


    onLoad: function (options) {

    },


    onReady: function () {

    },


    onShow: function () {

        let that = this
        that.getactive()

    },

    getactive() {
        let that = this;
        let url = '/index/second/zhengJianInfo ';
        let head = {
            'XX-Token': wx.getStorageSync('token')
        }

        app.post(url, '', head).then((res) => {

            console.log(res)

            this.setData({

                list: res
            })
        })
    },












    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {

    }
})