index.js 734 B

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