diff --git a/src/project/tianfuxing/AppHome/AppHome.vue b/src/project/tianfuxing/AppHome/AppHome.vue index e196912..0f94171 100644 --- a/src/project/tianfuxing/AppHome/AppHome.vue +++ b/src/project/tianfuxing/AppHome/AppHome.vue @@ -28,7 +28,7 @@ @@ -129,6 +129,18 @@ }) }, + toDetail (e) { + if (!e.linkUrl) return + + if (e.type == '0') { //0 h5链接; 1 小程序链接; 2外部小程序 + this.$linkTo(`/subPages/h5/webview?link=${e.linkUrl}&title=${e.title}`) + } else { + wx.navigateToMiniProgram({ + appId: e.linkUrl + }) + } + }, + getList () { this.$instance.post(`/api/appmerchantinfo/discountList`, null, { withoutToken: true, diff --git a/src/utils/config.js b/src/utils/config.js index 10ae6ff..f686029 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -16,7 +16,7 @@ const configs = { dev: { areaId: '341021104000', areaName: '郑村镇', - baseUrl: 'http://dvcp.sinoecare.net' + baseUrl: 'http://192.168.1.87:59998' } } // 当前选中配置