This commit is contained in:
SelfRidicule 2024-03-12 17:30:21 +08:00
parent b267089461
commit 41b9c96eae
2 changed files with 8 additions and 5 deletions

View File

@ -38,9 +38,11 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
// 页面初始化 options为页面跳转所带来的参数 // 页面初始化 options为页面跳转所带来的参数
if (options.name) {
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title: options.name title: options.name
}) })
}
// 初始化数据 // 初始化数据
this.initData(); this.initData();

View File

@ -1,4 +1,5 @@
{ {
"navigationBarTitleText": "会议预约",
"usingComponents": { "usingComponents": {
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index", "van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index", "van-dropdown-item": "@vant/weapp/dropdown-item/index",