修复二维码健身房参数问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user