3

盘点:微信小程序跳转其他小程序操作教程

 2 years ago
source link: https://www.laiketui.com/96588.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

盘点:微信小程序跳转其他小程序操作教程

小程序头条, 电商热点 2022年7月18日 16:39 9
盘点:微信小程序跳转其他小程序操作教程

微信小程序早已实现了相互跳转,小程序商家通过使用小程序跳转其他小程序能力,让小程序之间的连接关系更强也更自由。并且现在平台权限放开,小程序之间相互跳转无需同一主体也不限数量。

小程序跳转其他小程序教程

1、准备跳转目标小程序的相关参数

提前准备好需要跳转到的小程序的相关数据:小程序APPID、API和页面路径,如果是自己的小程序可以直接在管理后台查看,合作方的则需要对方提供。

2、通过navigator组件跳转

我们先在app.json 中配置目标小程序的APPID代码,然后在wxml中设置以下跳转代码:

<!– sample.wxml –>

<view class=”btn-area”>

<navigator url=”/page/navigate/navigate?title=navigate” hover-class=”navigator-hover”>跳转到新页面</navigator>

<navigator url=”../../redirect/redirect/redirect?title=redirect” open-type=”redirect” hover-class=”other-navigator-hover”>在当前页打开</navigator>

<navigator url=”/page/index/index” open-type=”switchTab” hover-class=”other-navigator-hover”>切换 Tab</navigator>

<navigator target=”miniProgram” open-type=”navigate” app-id=”” path=”” extra-data=”” version=”release”>打开绑定的小程序</navigator>

</view>

对于想要进行矩阵式营销的小程序运营人员来说,实现小程序相互跳转主要有三个方法,一是自行开发,如通过以上代码开发。二是由小程序服务商提供小程序跳转功能,直接配置跳转参数即可。三是通过方外链工具,来设置跳转。


<来客推(www.laiketui.com)是国内知名商城系统及商城网站建设提供商,为企业级商家提供零售商城、B2B2C多用户商城系统、社区团购、微信分销系统、小程序商城、商城系统等多端商城网站建设解决方案>

申明:本网站部分文章和图片来源网络编辑,如有侵权及时沟通删除,来客电商原创文章,转载请注明来源。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK