webview.js 581 B

1234567891011121314151617181920212223242526272829
  1. import common from '../../utils/util';
  2. import main from '../../utils/main';
  3. const app = getApp();
  4. Page({
  5. data: {
  6. },
  7. onLoad: function (options) {
  8. var that = this;
  9. if (options.url){
  10. that.setData({
  11. Url:options.url,
  12. });
  13. }
  14. },
  15. onShareTimeline: function () {
  16. return this.onShareAppMessage();
  17. },
  18. onShareAppMessage: function () {
  19. return {
  20. title: "上海中考招生信息查询工具",
  21. path: app.globalData.SharePath + '?UserID=' + app.globalData.userInfo.UserID,
  22. imageUrl: app.globalData.ShareImage,
  23. }
  24. },
  25. })