The framework provides rich wechat native

Description:

· The API starting with wx.on is the API interface that listens for an event and accepts a CALLBACK function as a parameter. When the event is raised, the CALLBACK function is called.

,

Otherwise, unless otherwise agreed

· OBJECT can specify success, fail and complete

To receive the result of the interface call.

Parameter names

type

mandatory

instructions

success

Function

no

The interface called the callback function successfully

fail

Function

no

Interface failed to invoke the callback function

complete

Function

no

Callback function at the end of an interface call (executed on success and failure)

The API list:

network

The API list:

API

instructions

wx.request

Making a Network request

wx.uploadFile

Upload a file

wx.downloadFile

The download file

wx.connectSocket

Create a WebSocket connection

wx.onSocketOpen

Listen for WebSocket to open

wx.onSocketError

Error listening for WebSocket

wx.sendSocketMessage

Sends a WebSocket message

wx.onSocketMessage

Accept WebSocket messages

wx.closeSocket

Close the WebSocket connection

wx.onSocketClose

Listen for WebSocket closure

The media

The API list:

API

instructions

wx.chooseImage

Select an image from your album, or take a photo

wx.previewImage

The preview image

wx.startRecord

Start the recording

wx.stopRecord

End of the tape

wx.playVoice

Play the voice

wx.pauseVoice

Pausing a voice

wx.stopVoice

End Playing a Voice

wx.getBackgroundAudioPlayerState

Gets the music playing status

wx.playBackgroundAudio

Play the music

wx.pauseBackgroundAudio

Pause music

wx.seekBackgroundAudio

Control music playback progress

wx.stopBackgroundAudio

Stop playing music

wx.onBackgroundAudioPlay

Listen for music to start playing

wx.onBackgroundAudioPause

Listen for music pause

wx.onBackgroundAudioStop

Listen for music end

wx.chooseVideo

Choose the video from the album, or shoot it

file

The API list:

API

instructions

wx.saveFile

Save the file

wx.getSavedFileList

Gets a list of saved files

wx.getSavedFileInfo

Get the saved file information

wx.removeSavedFile

Delete saved file information

wx.openDocument

Open the file

data

The API list:

API

instructions

wx.getStorage

Get the local data cache

wx.getStorageSync

Get the local data cache

wx.setStorage

Set up local data caching

wx.setStorageSync

Set up local data caching

wx.getStorageInfo

Get information about the local cache

wx.getStorageInfoSync

Get information about the local cache

wx.removeStorage

Delete the local cache

wx.removeStorageSync

Delete the local cache

wx.clearStorage

Clear the local data cache

wx.clearStorageSync

Clear the local data cache

location

The API list:

API

instructions

wx.getLocation

Get current location

wx.chooseLocation

Open the map and select the location

wx.openLocation

Open the built-in map

wx.createMapContext

Map component control

equipment

The API list:

API

instructions

wx.getNetworkType

Obtaining the Network Type

wx.onNetworkStatusChange

Listen for network status changes

wx.getSystemInfo

Obtaining System Information

wx.getSystemInfoSync

Obtaining System Information

wx.onAccelerometerChange

Monitoring acceleration data

wx.startAccelerometer

Start listening for acceleration data

wx.stopAccelerometer

Stop listening for acceleration data

wx.onCompassChange

Monitor compass data

wx.startCompass

Start listening for compass data

wx.stopCompass

Stop listening for compass data

wx.setClipboardData

Set the clipboard contents

wx.getClipboardData

Gets the clipboard content

wx.makePhoneCall

Make a phone call

wx.scanCode

scan the code

interface

The API list:

API

instructions

wx.showToast

Display prompt box

wx.showLoading

The loading prompt box is displayed

wx.hideToast

Hide dialog box

wx.hideLoading

Hide dialog box

wx.showModal

Display modal popover

wx.showActionSheet

Display menu list

wx.setNavigationBarTitle

Set the current page title

wx.showNavigationBarLoading

Displays navigation bar loading animation

wx.hideNavigationBarLoading

Hide the navigation bar to load the animation

wx.navigateTo

A new window opens the page

wx.redirectTo

The original window opens the page

wx.switchTab

Switch to the Tabbar page

wx.navigateBack

Return to previous page

wx.createAnimation

animation

wx.createContext

Creating a drawing context

wx.drawCanvas

drawing

wx.stopPullDownRefresh

Stop the pull-down refresh animation

WXML node information API list:

API

instructions

wx.createSelectorQuery

Create a query request

selectorQuery.in

Specifies which custom component to select a node from

selectorQuery.select

Select a single node based on the selector

selectorQuery.selectAll

Select all nodes according to the selector

selectorQuery.selectViewport

Select display area

nodesRef.boundingClientRect

Gets the layout position and size

nodesRef.scrollOffset

Get scroll position

nodesRef.fields

Get any field

selectorQuery.exec

Execute query request

WXML node layout intersection state:

API

instructions

wx.createIntersectionObserver

Create a IntersectionObserver object

intersectionObserver.relativeTo

Specify a reference node

intersectionObserver.relativeToViewport

Specify the page display area as the reference area

intersectionObserver.observe

Specify the target node and start listening

intersectionObserver.disconnect

Stop listening

Open interface:

API

instructions

wx.login

The login

wx.getUserInfo

Obtaining User information

wx.chooseAddress

Gets the shipping address of the user

wx.requestPayment

Initiate wechat Pay

wx.addCard

Add card voucher

wx.openCard

Open the card voucher

Micro channel small program development artifact

Wechat applets automatically slice to generate layout software

“,
can

Fast automatic generation of small program front end layout and code

, and free tutorials and technical support.

The functions are as follows:

1. Slicing function: This part of the original handwritten work can be cut by slicing software. After cutting, it can automatically generate WXML, WCSS, JS files.

2, text recognition function: the text on the effect drawing can be recognized by automatic text recognition, improve the speed of input, reduce the workload.

3, archiving function: the design of the slice file can be archived, so that the next time needed to be taken to re-edit. As long as there is a slice file in the program can also show and edit.

Please feel free to contact us if you have any questions!

Q Q : 348961183

Official website:

www.ymznkf.com/new_view_55…

Software Download address: