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

omi怎么获取场景值scene #468

Closed
yuaiwuhen opened this issue Oct 17, 2019 · 9 comments
Closed

omi怎么获取场景值scene #468

yuaiwuhen opened this issue Oct 17, 2019 · 9 comments

Comments

@yuaiwuhen
Copy link

omi怎么获取场景值scene

@dntzhang
Copy link
Collaborator

能够具体一点吗?没有明白

@yuaiwuhen
Copy link
Author

Page({
onLoad (query) {
// scene 需要使用 decodeURIComponent 才能获取到生成二维码时传入的 scene
const scene = decodeURIComponent(query.scene)
}
})
这是文档中的获取方式

@dntzhang
Copy link
Collaborator

omix 可以轻松获取到啊。也是 使用 onLoad

@dntzhang
Copy link
Collaborator

dntzhang commented Oct 18, 2019

create(store, {
  onLoad(){
  }
})

@yuaiwuhen
Copy link
Author

omip能不能获取到?我现在使用的是omip

@dntzhang
Copy link
Collaborator

omip 使用 install(){ } 可以获取到

@dntzhang dntzhang added the omip label Oct 18, 2019
@yuaiwuhen
Copy link
Author

install(query) {
console.log(query);
}
这样吗?这样获取不到

@dntzhang
Copy link
Collaborator

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

No branches or pull requests

2 participants