rk
3 天以前 3677915b5ff5cdcad24f35eff10a7a861f8508b7
Merge remote-tracking branch 'origin/master'
已添加2个文件
26 ■■■■■ 文件已修改
small-program/static/share.png 补丁 | 查看 | 原始文档 | blame | 历史
small-program/utils/shareMixin.js 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/static/share.png
small-program/utils/shareMixin.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,26 @@
export default {
  data() {
    return {
      // å¯å…¨å±€è¦†ç›–的默认参数
      shareConfig: {
        title: '采果上近快,用工来得快',
        path: '/pages/index/index',
        imageUrl: '/static/share.png'
      }
    }
  },
  onShareAppMessage() {
    return {
      title: this.shareConfig.title,
      path: `${this.shareConfig.path}?ref=${Date.now()}`,
      imageUrl: this.shareConfig.imageUrl
    }
  },
  onShareTimeline() {
    return {
      title: this.shareConfig.title,
      query: `ref=${Date.now()}`,
      imageUrl: this.shareConfig.imageUrl
    }
  }
}