From 28663d9eb42caa68636d9c06e32a354ba0db8635 Mon Sep 17 00:00:00 2001 From: lfs3 Date: Thu, 25 Jul 2019 11:27:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=97=E6=BC=8F=E5=88=86=E4=BA=AB=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/put-money-success.vue | 8 ++++++++ src/view/put-money.vue | 13 +++++++++++-- src/view/service-evaluation.vue | 8 ++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/view/put-money-success.vue b/src/view/put-money-success.vue index dd8268f..dd1fe66 100644 --- a/src/view/put-money-success.vue +++ b/src/view/put-money-success.vue @@ -51,6 +51,14 @@ mounted() { this.getParams() // console.log(this.$route) + this.wxShare({ + merchantNo: '', + source: 0, + url: encodeURIComponent(location.href), + shareUrl: encodeURIComponent( + "http://" + location.host + "/v2/home" + ) + }); }, watch: { // 监测路由变化,只要变化了就调用获取路由参数方法将数据存储本组件即可 diff --git a/src/view/put-money.vue b/src/view/put-money.vue index 0b7fd9e..8c926f0 100644 --- a/src/view/put-money.vue +++ b/src/view/put-money.vue @@ -120,7 +120,8 @@ this.isActive = true; this.inputCue = ""; } - } + }, + }, methods: { //提交申请 @@ -180,7 +181,15 @@ mounted() { //获取余额值 this.currentAmount = (this.getParam("currentAmount") / 100).toFixed(2); - //this.$vux.toast.text(this.currentAmount,'middle') + //this.$vux.toast.text(this.currentAmount,'middle') + this.wxShare({ + merchantNo: '', + source: 0, + url: encodeURIComponent(location.href), + shareUrl: encodeURIComponent( + "http://" + location.host + "/v2/home" + ) + }); } }; \ No newline at end of file diff --git a/src/view/service-evaluation.vue b/src/view/service-evaluation.vue index 0f6823c..4c73d25 100644 --- a/src/view/service-evaluation.vue +++ b/src/view/service-evaluation.vue @@ -223,6 +223,14 @@ export default { } } }); + this.wxShare({ + merchantNo: '', + source: 0, + url: encodeURIComponent(location.href), + shareUrl: encodeURIComponent( + "http://" + location.host + "/v2/home" + ) + }); } };