当前位置:网站首页>[male nanny style] teach you to open the first wechat applet
[male nanny style] teach you to open the first wechat applet
2022-07-03 09:40:00 【Uncle Wang who wrote the program】
Home page : The blog of Uncle Wang who wrote the program welcome Visit
Support : give the thumbs-up
Collection
Focus on
Community :JAVA Full stack advanced learning community welcome Join in
Content of this article Amount of knowledge Compare many , First, please One After browsing Step by step Learn to use ~
Catalog
2 Official website : Wechat applet
6 Create a new simulated applet
What is wechat applet
1 introduction
WeChat Applet , Applet A kind of , English name Wechat Mini Program, It can be used without downloading and installing application , It implements the application “ Within reach ” The dream of , Users can scan or search to open the application .
2016 year 1 month 11 Japan , WeChat Zhang Xiaolong, the father of Zhang Xiaolong, made a public appearance after many years , Read the four major features of wechat sense of worth . Xiao-long zhang Pointed out that , More and more products are done through official account , Because it's developed here 、 It's cheaper to get users and spread . The split service number does not provide better service , So wechat is studying new forms , It's called 「 Wechat applet 」.

How to register and use applets
2 Official website : Wechat applet


3 register
Registered address : Applet
In the following illustration , You can see the access process , According to instructions , Register step by step .


3.1 mailbox
Suggest : Choose a mailbox you often use
3.2 password
Suggest : Whole own the Commonly used Of password , other Strange and eccentric 7s Then I forgot .
After other input , confirm “ register ”. according to ①-②-③ Conduct .
4 Setting basic information
4.1 Set up
Basic information in applet , Such as essential information , Feature set etc.

4.2 Association settings
The official account can be associated with the applet .

Connection way :

relation appid:

After Association , Display information of official account .

The above is the basic setting part , At present, novices are enough , later stage In succession In depth introduction Of knowledge .
Download Development Tools
5 Development tools download
After registration , Download the wechat applet development tool on the official website , It's easy to develop .
Download address : Stable version Stable Build | Wechat open documents
It is recommended to download the following versions during the development phase :

browser Can directly download :

After installation , Open development tools , establish first Applet .

Create a new applet project each time , Refer to the above example figure for detailed steps .
The first simulation applet
6 Create a new simulated applet

Code display
wxml
<!--index.wxml-->
<view class="container">
<view class="title" style="font-size: small;text-align: center;">【 Male nanny 】 I will teach you to open the first wechat applet </view>
<view class="environment" style=" width: 50px;height: 20px;margin-bottom: 10rpx;text-align: center;">{
{nickName}}</view>
<image src="{
{img}}" style=" width: 50px;height: 50px;"></image>
<button type="default" bindtap="getUserInfor" hidden="{
{hiddenButton}}"> pick up information </button>
</view>
js
// index.js
// const app = getApp()
const { envList } = require('../../envList.js');
Page({
data: {
showUploadTip: false,
userinfor:{},// The user stores the obtained user information
haveCreateCollection: false,
nickName:"",
img:"",
hiddenButton:false// Hide button
},
getUserInfor(e){
wx.getUserProfile({
desc: ' Used to get user information ',
success:(res)=>{
const userinfor = res.userInfo
// Write user data to the cache
wx.setStorageSync('UserInfo', userinfor);
console.log(userinfor);
this.setData({
nickName:userinfor.nickName,
img:userinfor.avatarUrl,
hiddenButton:true
});
// Jump back to the previous page
wx.navigateBack({
delta:1
})
}
})
}
});
【 remember 】
Account information : Always keep

7 Version management tools
Please refer to a guide blog of the blogger for specific operation steps : Wechat development tools and Gitee Implement code management

Knowledge expansion : Wechat applet connects to local interface
️ Be careful ~
This issue is over , If The content is wrong , Please The comment area indicates !
if there be doubt Can be in Comment area or Private message , Try my best *️ Help you solve !
If my article has help To you , welcome Reward ️ encourage Blogger , Your encouragement is my motivation to share ~

边栏推荐
- Getting started with shell programming
- Send mail using WP mail SMTP plug-in
- Run flash demo on ECS
- [csdn] C1 analyse des questions de formation Partie III Bar _ JS Foundation
- Win10安装ELK
- 307. Range Sum Query - Mutable
- Flink学习笔记(八)多流转换
- Directory and switching operation in file system
- Apply for domain name binding IP to open port 80 record
- 软件测试工程师是做什么的 通过技术测试软件程序中是否有漏洞
猜你喜欢

MySQL Data Definition Language DDL common commands

Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 5 --blinker_ MIOT_ MULTI_ Outside (lighting technology app + Xiaoai classmate control socket multiple jacks)

Flink学习笔记(九)状态编程

Leetcode daily question (2090. K radius subarray averages)

Common software open source protocols

What do software test engineers do? Pass the technology to test whether there are loopholes in the software program

Arduino handles JSON data, arduinojson assistant

PolyWorks script development learning notes (I) - script development environment
![[combinatorics] Introduction to Combinatorics (combinatorial thought 2: mathematical induction | mathematical induction promotion | multiple induction thought)](/img/0e/dff6d3c6b7bf388bf71b0965533c25.jpg)
[combinatorics] Introduction to Combinatorics (combinatorial thought 2: mathematical induction | mathematical induction promotion | multiple induction thought)

Flink learning notes (IX) status programming
随机推荐
Hudi data management and storage overview
Install database -linux-5.7
文件系统中的目录与切换操作
LeetCode每日一题(1162. As Far from Land as Possible)
Construction and test of TFTP server under unbuntu (Debian)
Find all possible recipes from given supplies
Intelligent home design and development
LeetCode每日一题(2212. Maximum Points in an Archery Competition)
1300. sum of varied array closed to target
LeetCode每日一题(968. Binary Tree Cameras)
Matlab reads hexadecimal numbers and converts them into signed short
How does the nr-prach receiver detect the relationship between prembleid and Ta
Nr-prach:prach format and time-frequency domain
The idea of compiling VBA Encyclopedia
Make the most basic root file system of Jetson nano and mount NFS file system on the server
[combinatorics] Introduction to Combinatorics (context of combinatorics | skills of combinatorics | thought of combinatorics 1: one-to-one correspondence)
Desktop icon recognition based on OpenCV
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 2 --blinker_ Hello_ WiFi (lighting technology - Mobile App control routine)
PolyWorks script development learning notes (I) - script development environment
Logstash+jdbc data synchronization +head display problems