|
|
@@ -53,6 +53,7 @@
|
|
|
</van-button>
|
|
|
</div>
|
|
|
<a id="pay" :href="hrefUrl"></a>
|
|
|
+ <wx-open-launch-weapp id="launch-btn" :username="launchName" :path="launchPath"> </wx-open-launch-weapp>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -101,7 +102,9 @@ export default {
|
|
|
timer: null,
|
|
|
hrefUrl: '',
|
|
|
enable_wx_lite: false,
|
|
|
- enable_wx_pub: false
|
|
|
+ enable_wx_pub: false,
|
|
|
+ launchName: '',
|
|
|
+ launchPath: ''
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -292,6 +295,12 @@ export default {
|
|
|
this.$toast('支付失败,请稍后再试');
|
|
|
}
|
|
|
});
|
|
|
+ } else if (inWeixin) {
|
|
|
+ this.launchName = res.g_id;
|
|
|
+ this.launchPath = res.scheme_code;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ document.getElementById('launch-btn').click();
|
|
|
+ });
|
|
|
} else {
|
|
|
this.$toast.clear();
|
|
|
this.hrefUrl = res.scheme_code;
|