Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to open another Mini Program associated with the same official account

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

The editor of this article introduces in detail "how to open another Mini Program associated with the same official account". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to open another Mini Program associated under the same official account" can help you solve your doubts. Let's follow the editor's ideas to learn new knowledge.

Wx.navigateToMiniProgram (OBJECT)

The basic library 1.3.0 is supported, and the lower version needs to be compatible.

IOS Wechat client version 6.5.9 is supported, and Android client version 6.5.10 is about to be supported. Please use iOS client to debug first.

Open another Mini Program associated with the same official account.

OBJECT parameter description:

The required parameter name type indicates that appIdString is the page path to which Mini Program appIdpathString is to be opened. If it is empty, the home page extraDataObject does not need the data passed to the target Mini Program. The target Mini Program can obtain this data in App.onLaunch () and App.onShow (). For details, whether to open the Mini Program version of envVersionString. Valid values: develop (development version), trial (trial version), release (official version). This parameter is only valid when the current Mini Program is a development version or an experimental version. If the current Mini Program is an experimental version or an official version, the Mini Program opened must be the official version. Default value releasesuccessFunction No API call successful callback function failFunction No API call failed callback function completeFunction No API call ended callback function (both successful and failed calls will be executed)

Success return parameter description:

The parameter name type describes the result of the errMsgString call

Sample code:

Wx.navigateToMiniProgram ({appId:', path: 'pages/index/index?id=123', extraData: {foo:' bar'}, envVersion: 'develop', success (res) {/ / opened successfully}}) Bug & Tip

Tip: calling this API in the developer's tool will not actually jump to another Mini Program, but the developer's tool will verify the details of the success of this call.

Tip: debugging details of the receiving parameters of the redirected Mini Program processing supported on the developer's tool

Tip: only the associated Mini Program under the same official account can jump to each other details.

Wx.navigateBackMiniProgram (OBJECT)

The basic library 1.3.0 is supported, and the lower version needs to be compatible.

IOS Wechat client version 6.5.9 is supported, and Android client version 6.5.10 is about to be supported. Please use iOS client to debug first.

Return to the previous Mini Program, which can be called successfully only if the current Mini Program is opened by another Mini Program

OBJECT parameter description:

The parameter name type is required to indicate whether extraDataObject needs to return the data returned to the previous Mini Program, which can be obtained by the previous Mini Program in App.onShow (). Details: successFunction No API calls successful callback functions failFunction No API calls failed callback functions completeFunction No API calls end callback functions (both successful and failed calls will be executed)

Success return parameter description:

The parameter name type describes the result of the errMsgString call

Sample code:

Wx.navigateBackMiniProgram ({extraData: {foo: 'bar'}, success (res) {/ / return success}}) read here, this article "how to open another Mini Program associated under the same official account" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it before you can understand it. If you want to know more about related articles, Welcome to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report