Get the App
SLTechnology News&Howtos  ›  Development  › 

Example Analysis of using wx-open-launch-weapp in html5 Jump Mini Program

Shulou Source: shulou.com Published: 2022-06-01 13:02:27 12月02日 Update

This article mainly introduces the example analysis of using wx-open-launch-weapp in html5 Jump Mini Program. The article is very detailed and has certain reference value. Interested friends must finish reading it!

1. Normal operation, the official account is bound to the domain name in the background.

two。 The introduction of weixin.js is currently version 1.6.0.

3. Call wx.config to add the open tag to be used in openTagList

Next comes the pit, and the examples of use in the document are as follows

.btn {padding: 12px} Open Mini Program var btn = document.getElementById ('launch-btn'); btn.addEventListener (' launch', function (e) {console.log ('success');}); btn.addEventListener (' error', function (e) {console.log ('fail', e.detail);})

Cannot be used in vue. Troubleshooting found that it is a problem with the template tag:

.jump-btn {height: 44px; line-height: 44px; border: none; font-size: 16px; color: # ffffff; background-color: # f94048; text-align: center } Open Mini Program above is "sample analysis of using wx-open-launch-weapp in html5 jump Mini Program" this article, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Programs examples analysis content tags articles next value public interest background domain name partner document more version knowledge industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Huawei MySQL Shulou Tech Info MariaDB