Home > Article > Daily Programming > How to use the App promotion download component in Mip
This article mainly introduces to you the App promotion download component in MIP (mip-appdl App download).
MIP is a mobile web accelerator, and App is simply a mobile software, a third-party application for smartphones. So App downloads can be divided into Android and iOS. I believe everyone is familiar with the concept of app. It is recommended to refer to the detailed mip manual: "MIP Documentation Manual"
picture styles Detailed introduction to the use of App promotion components in MIP (mip-appdl App download).
<mip-appdl tpl="imageText" src="http://ms0.meituan.net/touch/css/i/logo.png" texttip= "['积分能当钱花了','下载百度浏览器','下载百度浏览器']" downbtntext="立即使用" Other-downsrc="http://sqdd.myapp.com/myapp/qqteam/AndroidQQ/mobileqq_android.apk" Android-downsrc="http://sqdd.myapp.com/myapp/qqteam/AndroidQQ/mobileqq_android.apk" Ios-downsrc="itms-apps://itunes.apple.com/app/id452186370" postiontye="fixed"> </mip-appdl>Then we copy this code directly into the body tag of mip1.html.
Note, you also need to introduce the following js script into the body.
<script src="https://c.mipcdn.com/static/v1/mip-appdl/mip-appdl.js"> </script>Finally, we can access it through the browser. The test effect is as shown below: Here we can click to use it immediately and download it. The Android installation package is as shown below Show. Of course we can test it in the ios environment. #Click to download the effect as shown in the picture below, which is the download address of the Apple App Store.
Important attributes in the App promotion download componentIntroduction:
Android-downsrc: Representation Android download pathUsage restrictions: direct download needs to pass the apk direct download path, otherwise the download page path can be passed. If the corresponding system does not have a download link, the default link will be displayed
Ios-downsrc: Indicates the iOS download pathUsage restrictions: You must fill in the appStore download path (such as: itms-apps://itunes.apple.com/app/id452186370) or the download page path. If the corresponding system does not have a download link, the default link will be displayed
Other-downsrc: Download path for other devices Usage restrictions: If the corresponding system does not have a download link, the default link will be displayed
The above is the detailed content of How to use the App promotion download component in Mip. For more information, please follow other related articles on the PHP Chinese website!