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', }) } } })