an active page with a download button. Click to download the app, and prompt to open the app file after the download is complete, and install it.
wx.downloadFile({
url: url, //
success: function (res) {
if (res.statusCode === 200) {
console.log("ok");
console.log(res.tempFilePath);
//app
}
}
})