Mini-programs implement the national airport index list and mini-app Index
This article shares with you the code for implementing the MUI index list by using applets for your reference. The specific content is as follows:
Effect chart
Implementation Principle
'Select airport now 'and the navigation bar on the right use fixed positioning;
The scroll-view component is used for scrolling the display wind
Detailed description and examples of the carousel diagram of the mini-program swiper component, and the mini-program swiper
Small Program swiper component carousel Diagram
Try according to the development documentation, and always get something. before Android development, it was not easy to create a carousel image. We used viewpage and set up dots. After a while, there were a bunch of bugs. today, I was de
Detailed description of the mini-program audio component instance, the mini-program audio
Audio Playback has been encapsulated well! You only need to set attributes! (Using method and data together)
Main attributes:
Wxml
Js
Page ({data: {// text: "this is a Page" action: {method: ''}, audioPlay: function () {this. setData ({action: {method: 'play'})}, audioPause: function () {this. setData ({action: {
Mini-Programs (7) detailed introduction to Data Binding and mini-Programs
Some of the data binding items are okay for the first few. Some of the following data may not be understood, and some data displayed on the interface cannot be displayed due to conditions. If you don't understand it, you can remember it first, and then you will understand it when you actually use it later. I think so. Record it here
Mini Program (14) button component details, mini program button
The button is one of the most common components.
Main attributes:
Wxml
Js
Page ({data: {// text: "This is a Page"},/*** button click event listener */clickButton: function (e) {// print all information about the clicked object console. log (e) ;}, onLoad: function (options) {// parameters brought about by PAGE initialization options for page
Detailed explanation of the applet Development Guide and the applet Guide
Write code
Create a applet instance
Click "edit" in the left-side navigation bar of the developer tool. We can see that this project has been initialized and contains some simple code files. The key and necessity are app. js, app. json, and app. wxss. The. js suffix is a script file, the. json suffix is a configuration file, and the. wxss suffix is a style sheet file. The applet will read these files and generate the apple
following code. The setTimeout method can be used to execute a function at a specified time interval. The application format is setTimeout (function (), time). function is the method to be executed, and time is the time interval. Here, 1000 represents 1000 milliseconds, that is, the countDown method is executed once every one second.
setTimeout(function(){ count--; countDown(that, count); }, 1000);
In the countDown method, the count field is used to set the countDown time, for example, 60 se
Tencent Network Mini version can not open how to do
A, if the computer is installed 360, we can click to open 360 and then find "computer professor"
B, then enter after we find "360 computer Rescue"-"self-help program Rescue"-"Tencent network mini version is not open" click the "Find Scheme" search button. Then find the repair scheme Click Fix to try it out.
2. Cleaning up rubbish
Also use 36
Experience Report: differences between Android and Apple mini apps
Many may ask: What is the difference between a Applet and a web page browsing in it?
First, the small program runs in full screen mode, and the interface is similar to accessing an APP. It is more immersed than accessing h5. Secondly, Its browsing experience is more stable.
However, this is not enough unless ...... After entering the applet, he will not interrupt the chat. after ent
that the 200 places are selected by Xiao Long)Project name: Enter the project name as required. It does not matter because deployment is not involved.Project Directory: select the cloned folderClick Add Project
Happy New Year and fortune
You can select encoding in Web openers (or your favorite editor)
1. Click the restart button in the lower left corner to refresh the preview After encoding.
2. Bash users can execute the following command in the project directory to quickly create the files
that listens to an event and accepts a CALLBACK function as a parameter. When an event is triggered, the CALLBACK function is called.
Unless otherwise specified, all other API interfaces accept an object as a parameter.
The OBJECT can specify success, fail, and complete to accept the interface call results.OBJECT ParametersFor specific API calls, see the mini-program API documentation.Because I do not have an internal test number during the
Detailed description of the applet time formatting (util. formatTime (new Date), and the applet util. js
Small Program time formatting
Although the mini-program is still in beta testing, it is not enough. Hurry up and record the learning path.
Obtain the time by using Date. now () to obtain a string of numbers. For example:
Use util. formatTime (new Date) to obtain the formatted time)
Util is a tool provided in the official demo:
Function form
Detailed description on how the applet obtains photo album photos.
The applet obtains the photo album
Today, I met with the user profile picture setting function of the mini program and took notes.
First upload gif:
Run the following code:
Small demo, the code is very simple.
1. index. wxml
2. index. js
// Index. js // obtain the application instance var app = getApp () Page ({data: {tempFilePaths: ''}, onLoad: function () {}, chooseimage: function
1, we open the ipad mini Apple App Store to search for micro-letters
2. In the Open Apple Store we found "search" as shown in the figure.
3, in the search box "micro-letter" Click Search you will find no micro-letter.
4, now we can not find the micro-letter in the ipad, then only download the iphone version, I click on the "iphone only"
5, then you will find a micro-letter software, and now we click on the free installation can be installe
Implementation of the applet payment function (front-end) and the applet payment function
Implementation of the mini-program payment function (front-end)
Only the code on the applet is provided:
Var app = getApp (); Page ({data :{}, onLoad: function (options) {// The parameter var that = this brought about by PAGE initialization options for page Jump // log on to get code wx. login ({success: function (res) {console. log (res. code) // obtain openid t
WxSearch
WxSearch elegant mini-app search box
I. Functions
Supports customizing popular keysSearch history is supported.Supported search recommendationsSupports searching history Cache
Ii. Use
1. Copy the entire wxSearch folder to the root directory.2. Introduction
// Introduce the template
3. Use the 3.1 wxml file. There are two templates: one for the wxSearch author and the other for the weui.
3.1.1 first template
// The template
3.1.2 second Tem
Detailed instructions on the use of the mini-program digital scroll plug-in
Es6 syntax is used to write a small program plug-in-number scrolling;
:
Wxml page layout code:
Index. js calls NumberAnimate. js
// Pages/main/index. jsimport NumberAnimate from ".. /.. /utils/NumberAnimate "; Page ({data :{}, onLoad: function (options) {// parameters brought about by Page initialization options for Page Jump}, onReady: function () {}, onShow: function () {/
Examples of the mini-program navigator component
Navigator redirects are divided into two states: closing the current page and not closing the current page. Use the redirect attribute.
Main attributes:
Wxml
Related Articles:
Hello WeApp icon componentWindow text Component switch componentTabss component action-sheetApplication lifecycle button Component modal componentPage lifecycle checkbox component toast componentModular Details form component d
1. You need to prepare an iTools tool on your computer. You can search for iTools and install it on your computer.2. Then we open the iTools software in the computer and find the "File System" on the left, find the keychain-2.db file in the/private/var/keychains/directory in the file system directly change the name or delete it.3. After deletion, restart our ipad mini phone and you do not need to enter the password any more.Friendly prompt k
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.