index.js 715 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { imgServerUrl } from '../../config/config.js'
  2. import { updataStorageData } from '../../utils/storage.js'
  3. var app = getApp()
  4. Page({
  5. data: {
  6. imgServerUrl: imgServerUrl,
  7. },
  8. onLoad: function (options) {
  9. console.log(options)
  10. },
  11. onReady: function () {
  12. },
  13. onShow: function (options) {
  14. console.log(options)
  15. },
  16. onShareAppMessage: function () {
  17. return {
  18. title: '推荐有奖',
  19. path: '/pages/recommend-iphone/index?shareToken=' + updataStorageData('shareToken'),
  20. imageUrl: ''
  21. }
  22. },
  23. toShare(){
  24. wx.navigateTo({
  25. url: '../recommend-share/index',
  26. })
  27. },
  28. onError(err) {
  29. app.aldstat.sendEvent('报错',{
  30. 'err': err
  31. });
  32. },
  33. })