

The mobile backend can manage backend data directly through the mobile phone, without having to log in to the backend with a computer every time.
The mobile backend functions are being gradually developed and improved. It is currently just an early adopter version. Some simple functions can be used through the mobile backend. For complex functions, it is recommended to manage them through the computer version backend.
# Conditions of use
The mobile version backend is a value-added service provided for free as a "value-added version" member. Therefore, it is currently only available to value-added version members of "apifm". Free members and professional version members are temporarily unavailable. Please understand🌹.
# How to use
The mobile version of the backend is accessed through the mini program on a mobile phone. There are two ways to use it:
+ Use after logging in with factory account and password
+ One-click login without password
The following two usage methods and usage scenarios are introduced respectively:
## Log in with account and password

Scan the QR code on WeChat with your mobile phone and use your mobile phone number + password registered at the factory to log in to the mobile version.
## One-click login without password
This method is mainly used to infiltrate the mobile management terminal directly into your own mini program, so that you can click a button from your mini program to directly open the mobile version of the mini program. This entire process does not require the administrator to enter a password.
**Principle:**
Use the user's login token in the merchant's own mini program in exchange for the backend administrator's login token
Therefore, to log in using this method, you need to implement the following two steps:
###① Binding between administrator and front-end userFirst log in to the PC version backend, click "Administrator Management" on the left menu, edit the administrator and fill in the user number. In this way, the user on your mini program/app is equivalent to the administrator, and can directly use the user's login token in exchange for the administrator's login token.
###② Add jump code
In your mini program code, you can directly open the mobile version of the backend through the following code, without entering an account password:
```javascript
wx.navigateToMiniProgram({
appId: 'wx5e5b0066c8d3f33d',
path: 'pages/login/auto?token=' + wx.getStorageSync('token')
})
```
Do not change the appId above. This is the appid of our mobile version management background, not your mini program appid, so there is no need to modify it;
The token below is the token after the current user logs in on your mini program. If it is not stored in storage, please read it according to your own method and pass the value.
###③ What if the same user is bound to multiple administrators?
If the front-end user is bound to multiple administrators, that is to say, he can log in to multiple administrators, then which administrator will be logged in to the system after one-click login?
If there are multiple administrators, after one-click jump, you will first see a list of administrators, allowing users to choose which administrator they need to log in. Click the corresponding administrator to directly enter the console.