当前位置:网站首页>[wechat applet] collaboration and publishing data binding
[wechat applet] collaboration and publishing data binding
2022-06-21 20:22:00 【Xiaobai who loves programming】
Catalog
Collaborative work and release - Applet member management
1. Two aspects of member management
2. Permissions corresponding to different project members
3. Developer's permission description
4. Add project members and experience members
Collaborative work and release - The version of the applet
1. Different versions in the software development process
Collaborative work and release - Published online
1. The overall steps of launching the applet
3. View the uploaded version in the background
6. Promotion based on small program code
Collaborative work and release - Operational data
1. There are two ways to view applet operation data
WXML Template syntax - Data binding
1. Basic principles of data binding
2. stay data Define the data of the page in
3. Mustache The format of grammar
4. Mustache Application scenario of Syntax
Collaborative work and release - Applet member management
1. Two aspects of member management

2. Permissions corresponding to different project members
| jurisdiction | The operator | developer | Data Analyst |
Developer rights | √ | ||
Experience authority | √ | √ | √ |
Sign in | √ | √ | √ |
Data analysis | √ | ||
Wechat payment | √ | ||
Extension | √ | ||
Development management | √ | ||
Development and setup | √ | ||
Temporarily Out of Service | √ | ||
The official account No. | √ | ||
Tencent cloud management | √ | ||
Widget plugin | √ | ||
Game operation management | √ |
3. developer Permission description of
4. add to Members of the project and Experience members


Collaborative work and release - The version of the applet
1. Different versions in the software development process
2. The version of the applet
Version stage | explain |
Development version | Use developer tools , You can upload the code to the development version . The development version only keeps the latest uploaded code of each person . Click submit for review , The code can be submitted for review . The development version can be deleted , It does not affect the code of the online version and the version under review . |
Experience version | You can select a development version as the experience version , And choose an experience version . |
Version under review | There can only be one copy of the code under review . The audit results can be published online , You can also resubmit for approval directly , Overwrite the original approved version . |
Online version | The version of the code used by all users online , The version code is updated after the new version code is released . |
Collaborative work and release - Published online
1. The overall steps of launching the applet
2. Upload code
① Click... In the toolbar at the top of the developer tool “ Upload ” Button



3. View the uploaded version in the background

4. Submit audit
5. Release

6. Promotion based on small program code
Collaborative work and release - Operational data
1. There are two ways to view applet operation data
WXML Template syntax - Data binding
1. Basic principles of data binding
2. stay data Define the data of the page in
This is the default index page :

// index.js
// Get application instance
const app = getApp()
Page({
data: {
motto: 'Hello World',
userInfo: {},
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo'),
canIUseGetUserProfile: false,
canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName') // To try to get user information, change to false
},
// Event handler
bindViewTap() {
wx.navigateTo({
url: '../logs/logs'
})
},
onLoad() {
if (wx.getUserProfile) {
this.setData({
canIUseGetUserProfile: true
})
}
},
getUserProfile(e) {
// Recommended wx.getUserProfile Get user information , Every time the developer obtains the user's personal information through the interface, the user needs to confirm , Developers keep the nicknames of avatars that users fill in quickly , Avoid repeated pop ups
wx.getUserProfile({
desc: ' Display user information ', // Declare the purpose of obtaining the user's personal information , The follow-up will be shown in the pop-up window , Please fill in carefully
success: (res) => {
console.log(res)
this.setData({
userInfo: res.userInfo,
hasUserInfo: true
})
}
})
},
getUserInfo(e) {
// It is not recommended to use getUserInfo Get user information , Estimated from 2021 year 4 month 13 The date of ,getUserInfo Pop ups will no longer pop up , And directly return the anonymous user's personal information
console.log(e)
this.setData({
userInfo: e.detail.userInfo,
hasUserInfo: true
})
}
})

Create a new page , open js file


Page({
data: {
word:" Content "
}
})
3. Mustache The format of grammar
4. Mustache Application scenario of Syntax
WXML:
<view>{
{word}}</view>WXSS:
Page({
data: {
word:" Roll up To rush "
}
})effect :

<image src="{
{image}}" mode="widthFix"></image>WXSS:
Page({
data: {
image:"/image/a.jpg"
}
})effect :

Page({
data: {
randomNum:Math.random()*100
}
})<view>{
{randomNum>=50 ? ' Greater than or equal to 50':' Less than 50'}}</view>
The generated random number is :97.50952738069331>50

Arithmetic operations
The data of the page is as follows :
Page({
data: {
randomNum:Math.random().toFixed(2)
}
})The structure of the page is as follows :
<view>{
{randomNum*100}}</view>
边栏推荐
- [dry goods knowledge] redis: from the application to the bottom, one article will help you
- Jupyter Notebook启动方式及相关问题
- RPA financial process automation | Shanghai Pudong Development Group and cloud expansion technology accelerate financial digital operation
- Whether there are keywords in MySQL
- inno setup 窗口拖动学习
- Sd6.20 summary of intensive training
- Manjaro installs the downloaded TTF font file
- 瀚高数据库自定义操作符'!~~'
- NSIS 运行bat的方法汇总
- mysql中有没有关键字
猜你喜欢
![[icml2022] ctrlformer: learn the transferable state representation of visual control through the transformer](/img/d7/483ba497a72bd73b7ebc004bc922cb.png)
[icml2022] ctrlformer: learn the transferable state representation of visual control through the transformer

Jupyter Notebook启动方式及相关问题
![[complete course of time series prediction] take temperature prediction as an example to illustrate the composition of the paper and the construction of pytorch code pipeline](/img/fe/c204ea78051fb0544b27d44e6d1297.png)
[complete course of time series prediction] take temperature prediction as an example to illustrate the composition of the paper and the construction of pytorch code pipeline

ArrayList源码解析

Flink CDC MongoDB Connector 的实现原理和使用实践

SQL语句知识点有哪些

【微信小程序】协同工作和发布 数据绑定

【CVPR2022】CMU《多模态机器学习》教程,200+页阐述表示、对齐、推理、迁移、生成与量化六大挑战的多模态学习系统知识

删除倒数第k个节点-链表专题

Tensorflow 2: use neural network to classify and compare fashion MNIST
随机推荐
RecycleView拖动效果
MySQL 5.7编译安装
mysql如何实现分组求和
【时序预测完整教程】以气温预测为例说明论文组成及PyTorch代码管道构建
Clustering, dimension reduction and measurement techniques for machine learning
mysql中有没有关键字
粗读Targeted Supervised Contrastive Learning for Long-Tailed Recognition
汇编语言贪吃蛇、俄罗斯方块双任务设计实现详解(三)——俄罗斯方块详细设计
理财产品如果过了开放日期怎么赎回?
JVM内存结构
1156 Sexy Primes
Summary of methods for NSIS to run bat
Source code analysis of ArrayList
谷粒学院P40~43
How to query all tables in MySQL
inno setup 窗口拖动学习
Flink CDC MongoDB Connector 的实现原理和使用实践
mysql如何查询最大id值
【CVPR2022】CMU《多模态机器学习》教程,200+页阐述表示、对齐、推理、迁移、生成与量化六大挑战的多模态学习系统知识
【干货知识】Redis:从应用到底层,一文帮你搞定