| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- import { imgServerUrl } from '../../config/config.js'
- import { updataStorageData } from '../../utils/storage.js'
- var app = getApp()
- Page({
- data: {
- hasShare:true,
- imgServerUrl: imgServerUrl,
- },
- onLoad: function (options) {
- console.log(options)
- },
- onReady: function () {
- },
- onShow: function (options) {
- console.log(options)
- },
- onShareAppMessage: function () {
- return {
- title: '推荐有奖',
- path: '/pages/recommend-iphone/index?shareToken=' + updataStorageData('shareToken'),
- imageUrl: ''
- }
- },
- toShare(){
- wx.navigateTo({
- url: '../recommend-share/index',
- })
- },
- onError(err) {
- app.aldstat.sendEvent('报错',{
- 'err': err
- });
- },
- })
|