custom-message.js 450 B

1234567891011121314151617181920212223
  1. Page({
  2. onShareAppMessage() {
  3. return {
  4. title: '客服消息',
  5. path: 'packageAPI/pages/api/custom-message/custom-message'
  6. }
  7. },
  8. handleContact (e) {
  9. console.log(e.detail.path)
  10. console.log(e.detail.query)
  11. },
  12. onLoad() {
  13. this.setData({
  14. theme: wx.getSystemInfoSync().theme || 'light'
  15. })
  16. if (wx.onThemeChange) {
  17. wx.onThemeChange(({theme}) => {
  18. this.setData({theme})
  19. })
  20. }
  21. }
  22. })