From 39613118a5bae23c45498c4f5a939e83595f99f5 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期二, 16 七月 2024 16:05:00 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- wechat_jiaxuan/components/authCard/authCard.js | 28 ++++++++++++++++------------ 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/wechat_jiaxuan/components/authCard/authCard.js b/wechat_jiaxuan/components/authCard/authCard.js index 8eb15ab..d44d311 100644 --- a/wechat_jiaxuan/components/authCard/authCard.js +++ b/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', + }) + } } }) -- Gitblit v1.9.3