index.js 460 B

12345678910111213141516171819202122232425
  1. import store from './store';
  2. Page(store.register({
  3. data: {
  4. url: ''
  5. },
  6. onLoad(options) {
  7. // 只需要服务首页上报,注释掉组件内部的调用
  8. // reportCmPV_YL({ title: '报告查询', query: options });
  9. this.setData({
  10. url: options.url
  11. });
  12. },
  13. onShareAppMessage() {
  14. const {
  15. url
  16. } = this.data;
  17. return {
  18. title: this.data.pageName || '',
  19. path: `${this.route}?url=${url}`
  20. };
  21. }
  22. }));