From f6b63dc8d75e722d14fdfe774d27a7e37fae4f23 Mon Sep 17 00:00:00 2001 From: lqq Date: Fri, 11 Oct 2019 14:07:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20wxcode=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/billboards/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/billboards/index.js b/pages/billboards/index.js index cc992b1..7168720 100644 --- a/pages/billboards/index.js +++ b/pages/billboards/index.js @@ -1,4 +1,7 @@ // pages/billboards/index.js +import {AuthModel} from '../../models/auth.js' +let auth = new AuthModel() + Page({ /** @@ -12,7 +15,9 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { - + auth.fetchAuthToken(res => { + console.log(res) + }) }, onClickItem (e) { const {index} = e.currentTarget.dataset