修复二维码健身房参数问题

This commit is contained in:
limqhz
2020-06-30 19:51:53 +08:00
parent e8fe10b5fb
commit 7802522b1b

View File

@@ -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