当前位置:网站首页>H5 page in wechat evokes applet & app
H5 page in wechat evokes applet & app
2022-07-18 05:55:00 【51CTO】
Wechat open label is an extended tag collection provided by wechat public platform for web developers . By using wechat to open the label , The ability of web developers to use wechat or the system safely and conveniently , Provide better web experience for wechat users . This document is for web developers , Introduce how to use wechat open label and related precautions . It should be noted that , Wechat open label has the minimum wechat version requirements , And the minimum system version requirements . The version of wechat is required to be :7.0.12 And above . The system version is required to be :iOS 10.3 And above 、Android 5.0 And above .
Open label usage steps
1. Bind domain name
Log into wechat public platform “ Setting of public number ” Of “ Feature set ” Fill in “JS Interface security domain name ”, JS The interface security domain name corresponds to H5 Page domain name address
2. introduce JS file
Call when needed JS The interface page is introduced as follows JS file :
Also support npm Package mode introduction , Version required 1.6.0 And above
3. adopt config The interface injects the permission verification configuration and applies for the required open label
And use JS-SDK The configuration is the same , All pages that need to use open tags must first inject configuration information , And pass openTagList Open label required for field application , Otherwise it won't work ( The same url Just one call ).
4. Page evokes applet code
5. The page evokes App Code
Be careful
1. The open object of this function
Certified service number , Service number binding “JS Interface security domain name ” You can use this tag to jump to any legal and compliant applet .
Authenticated non personal subject applet , The static website developed by using small program cloud hosts the webpage under the bound domain name , You can use this tag to jump to any legal and compliant applet .
2. Parameter description
username Required jump The applet is original id, That is, the applet corresponding to gh_ At the beginning id, Attention is not official account. id
about path attribute , The declared page path must be added with .html suffix , Such as pages/home/index.html
If the jump prompt is missing ID, Check username Corresponding to the original ID Whether it is right
3. Vue An error will be reported in the project. The tag does not exist
stay main.js Add ignore code to the file , Ignore the components that open wechat applets
Reference resources
边栏推荐
- Send your code into space and develop "the greatest work" with Huawei cloud
- 浅析IM即时通讯开发中TCP协议层KeepAlive保活机制
- [special topic of golang database 4] golang language operation PostgreSQL for addition, deletion, modification and query
- Sql笔记
- 堪比猎头简历整理技巧 如何快速整理简历
- Scan code login function of IM instant messaging software development
- IM即时通讯软件开发之扫码登录功能
- 32 project code area meaning based on Hal library, and common function examples
- Is it a transliteration of loanwords or does it have a specific meaning?
- SQL实现将数据表中的字段中的值按分隔符分成多列
猜你喜欢

送你的代码上太空,与华为云一起开发“最伟大的作品”

Use Tibco rendezvous to send Hello world to realize monitoring and sending

freeswitch的话单模块

【综合笔试题】难度 2/5,递归运用及前缀和优化

梅科尔工作室-李庆浩 sql语句笔记

Assist developers to comprehensively interpret APIs IX test cases
![[special topic of golang database 4] golang language operation PostgreSQL for addition, deletion, modification and query](/img/61/73e600d8b94278ea0c92b4c960fb65.png)
[special topic of golang database 4] golang language operation PostgreSQL for addition, deletion, modification and query

论文精读: 深度强化学习与智慧交通(一)

授人以渔-在 SAP MM 物料显示界面上看到一个字段,如何查找哪张数据库表的哪个字段进行的存储的试读版

SQL notes
随机推荐
Comboboxedit setting option value (single or multiple choice)
[7.8-7.15] review of wonderful technical blog posts in the writing community
堪比猎头简历整理技巧 如何快速整理简历
【服务器数据恢复】IBM某型号存储热备盘同步数据过程中硬盘离线导致RAID5崩溃的数据恢复案例
Meiker Studio - liqinghao SQL statement notes
Alibaba cloud e-mapreduce geek competition is open for registration. Hundreds of thousands of bonuses are waiting for you to challenge
About security details timing attack
深度学习基础:9.复现经典网络:LeNet5与AlexNet
Win11如何设置多任务窗口?Win11设置多任务窗口的方法
【用户文章】P4合并实践指南之实例拆解Resolve
database
深度学习基础:8.卷积与池化
OPENGL学习(一)认识OPENGL和各种库
关于Kubernetes中kubelet的一些笔记
Dimitra 和 Ocean Protocol 解读农业数据背后的秘密
工程监测仪器多通道振弦无线采集仪的采集数据发送方式和在线监测管理系统
ComboBoxEdit设置选项值(单选 多选)
The data transmission mode and online monitoring management system of multi-channel vibrating wire wireless acquisition instrument for engineering monitoring instruments
Beihang & Institute of Information Technology & meituan proposed lbdt, which is based on spatiotemporal interaction of language bridging to accurately segment directional video objects, with performan
使用Excel2016的函数生成随机16、32、36位ID字符串内容