index.js 1023 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import ad from '../index/ad'
  2. ad({
  3. data: {
  4. activeKey: '0',
  5. msg1: {
  6. title: '空空如也',
  7. text: '暂时没有相关数据',
  8. },
  9. msg2: {
  10. icon: '../../assets/images/iconfont-order.png',
  11. title: '您还没有相关的订单',
  12. text: '可以去看看有哪些想买',
  13. buttons: [{
  14. text: '随便逛逛',
  15. }],
  16. },
  17. msg3: {
  18. icon: 'http://cdn.skyvow.cn/logo.png',
  19. title: '授权失败',
  20. text: '获取用户信息失败,请重新授权',
  21. buttons: [{
  22. text: '重新授权',
  23. openType: 'getUserInfo',
  24. }],
  25. },
  26. },
  27. onChange(e) {
  28. console.log('onChange', e)
  29. this.setData({
  30. activeKey: e.detail.key,
  31. })
  32. },
  33. buttonClicked(e) {
  34. console.log('buttonClicked', e)
  35. },
  36. onGotUserInfo(e) {
  37. console.log('onGotUserInfo', e)
  38. },
  39. })