Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日历中无法获取data中的数据 #5957

Open
zxh5 opened this issue Jan 7, 2025 · 0 comments
Open

日历中无法获取data中的数据 #5957

zxh5 opened this issue Jan 7, 2025 · 0 comments

Comments

@zxh5
Copy link

zxh5 commented Jan 7, 2025

重现链接

list: [
{
date: "2025-01-01",
price: "¥199",
},
{
date: "2025-01-02",
price: "¥199",
},
{
date: "2025-01-03",
price: "¥199",
},
],
methods: {
formatter(day) {
// console.log(this.list);

  const month = day.date.getMonth() + 1;
  const date = day.date.getDate();

  if (day.type === "start") {
    day.bottomInfo = "入住";
  } else if (day.type === "end") {
    day.bottomInfo = "离店";
  }
  return day;
},

},

Vant Weapp 版本

1.11.6

描述一下你遇到的问题。

获取不到this.list

重现步骤

日历组件加载时获取不到

设备/浏览器

uni微信小程序

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant