修复二维码健身房参数问题
This commit is contained in:
@@ -3,6 +3,7 @@ const app = getApp();
|
|||||||
import {
|
import {
|
||||||
getCurrentPageUrl
|
getCurrentPageUrl
|
||||||
} from './../../utils/util.js'
|
} from './../../utils/util.js'
|
||||||
|
let id = ''
|
||||||
Page({
|
Page({
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -23,11 +24,18 @@ Page({
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
|
if (options.id) {
|
||||||
|
id = options.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (options.scene) {
|
||||||
|
id = options.scene;
|
||||||
|
}
|
||||||
wx.showLoading({
|
wx.showLoading({
|
||||||
title: '加载中...',
|
title: '加载中...',
|
||||||
})
|
})
|
||||||
app.$api.venueDetail({
|
app.$api.venueDetail({
|
||||||
venueId: options.id
|
venueId: id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.setData({
|
this.setData({
|
||||||
venues: res.venues
|
venues: res.venues
|
||||||
|
|||||||
Reference in New Issue
Block a user