当前位置:网站首页>[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 ~
边栏推荐
- Leetcode daily question (516. long palindromic subsequence)
- Word segmentation in full-text indexing
- Design and development of biological instruments
- 307. Range Sum Query - Mutable
- Electronic product design
- Flink学习笔记(十)Flink容错机制
- Leetcode daily question (931. minimum falling path sum)
- Long类型的相等判断
- PolyWorks script development learning notes (I) - script development environment
- Common software open source protocols
猜你喜欢
CATIA automation object architecture - detailed explanation of application objects (I) document/settingcontrollers
Nr--- Pusch I: sorting out the agreement process
Alibaba cloud notes for the first time
Hudi 数据管理和存储概述
LeetCode每日一题(2212. Maximum Points in an Archery Competition)
Spark overview
Difference of EOF
软件测试工程师是做什么的 通过技术测试软件程序中是否有漏洞
[CSDN]C1训练题解析_第二部分_Web基础
[CSDN]C1训练题解析_第三部分_JS基础
随机推荐
基于opencv实现桌面图标识别
Leetcode daily question (1024. video sticking)
Analysis of the implementation principle of an open source markdown to rich text editor
Epollet lessons
Directory and switching operation in file system
Trial of the combination of RDS and crawler
Jestson nano custom root file system creation (supports the smallest root file system of NVIDIA Graphics Library)
Learning C language from scratch -- installation and configuration of 01 MinGW
[solution to the new version of Flink without bat startup file]
Install database -linux-5.7
从0开始使用pnpm构建一个Monorepo方式管理的demo
Getting started with shell programming
Modify idea code
Global KYC service provider advance AI in vivo detection products have passed ISO international safety certification, and the product capability has reached a new level
Failed building wheel for argon2 cffi when installing Jupiter
Intelligent home design and development
Leetcode daily question (1856. maximum subarray min product)
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 3 --blinker_ MIOT_ Light (lighting technology app control + Xiaoai classmate control)
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 2 --blinker_ Hello_ WiFi (lighting technology - Mobile App control routine)
Word segmentation in full-text indexing