riku
2025-04-21 0746b7bbe6aa3d9f02e03654a2cd4fde2081c335
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// components/card-btn/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    bgImgSrc: {
      type: String,
      value: ''
    },
    title: {
      type: String,
      value: ''
    },
    subtitle: {
      type: String,
      value: ''
    },
    route: {
      type: String,
      value: ''
    },
  },
 
  /**
   * 组件的初始数据
   */
  data: {
 
  },
 
  /**
   * 组件的方法列表
   */
  methods: {
    navTo() {
      wx.navigateTo({
        url: this.data.route,
        success: (result) => {},
        fail: (res) => {
          wx.showToast({
            title: '敬请期待',
            duration: 1000,
            icon: 'none',
          })
        },
        complete: (res) => {},
      })
    }
  }
})