jiangping
2024-07-16 39613118a5bae23c45498c4f5a939e83595f99f5
wechat_jiaxuan/components/authCard/authCard.js
@@ -1,4 +1,4 @@
// components/authCard/authCard.js
import { getShopPage } from '../../api/index'
Component({
  /**
   * 组件的属性列表
@@ -6,21 +6,25 @@
  properties: {
    type: { // 属性名
      type: String,
      value: '0'
      value: '0',
      observer(val) {
        if(val === '1'){
          this.getShops()
        }
      }
    },
  },
  /**
   * 组件的初始数据
   */
  data: {
  },
  /**
   * 组件的方法列表
   */
  methods: {
    getShops() {
      getShopPage()
    },
    jumpStore() {
      wx.navigateTo({
        url: '/pages/store/store',
      })
    }
  }
})