From 7802522b1beef3ae17cd263fdfb65af9973351e2 Mon Sep 17 00:00:00 2001 From: limqhz Date: Tue, 30 Jun 2020 19:51:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E5=81=A5=E8=BA=AB=E6=88=BF=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/gymnasium/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pages/gymnasium/index.js b/pages/gymnasium/index.js index 8323e69..faebac7 100644 --- a/pages/gymnasium/index.js +++ b/pages/gymnasium/index.js @@ -3,6 +3,7 @@ const app = getApp(); import { getCurrentPageUrl } from './../../utils/util.js' +let id = '' Page({ /** @@ -23,11 +24,18 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function(options) { + if (options.id) { + id = options.id; + } + + if (options.scene) { + id = options.scene; + } wx.showLoading({ title: '加载中...', }) app.$api.venueDetail({ - venueId: options.id + venueId: id }).then(res => { this.setData({ venues: res.venues