当前位置:网站首页>简易计算器微信小程序项目源码
简易计算器微信小程序项目源码
2022-07-29 08:05:00 【叶绿体不忘呼吸】
微信公众号:创享日记
发送:计算器
获取完整源码(微信开发者工具导入即可用)


以下可以忽略不看!
微信小程序,小程序的一种,英文名Wechat Mini Program,是一种不需要下载安装即可使用的应用,它实现了应用“触手可及”的梦想,用户扫一扫或搜一下即可打开应用。
全面开放申请后,主体类型为企业、政府、媒体、其他组织或个人的开发者,均可申请注册小程序。微信小程序、微信订阅号、微信服务号、微信企业号是并行的体系。
微信小程序是一种不用下载就能使用的应用,也是一项创新,经过将近两年的发展,已经构造了新的微信小程序开发环境和开发者生态。微信小程序也是这么多年来中国IT行业里一个真正能够影响到普通程序员的创新成果,已经有超过150万的开发者加入到了微信小程序的开发,与我们一起共同发力推动微信小程序的发展,微信小程序应用数量超过了一百万,覆盖200多个细分的行业,日活用户达到两个亿,微信小程序还在许多城市实现了支持地铁、公交服务。微信小程序发展带来更多的就业机会,2017年小程序带动就业104万人,社会效应不断提升。
2018年12月27日,腾讯公司发布《腾讯隐私保护白皮书》,倡导“科技向善,数据有度”的隐私保护理念。在微信小程序的《服务条款》、《运营规范》中,分别设有“用户个人信息保护”和“用户隐私及数据规范”专章介绍。
微信小程序在产品功能设计上给用户更多控制力。在微信小程序的设置页,为用户提供了数据权限开关,一旦用户授权之后又关闭,微信小程序再次使用该用户数据时需要重新获得授权,为用户提供更方便的数据控制权。用户在微信小程序的资料页还可以看到隐私数据保护的提示以及投诉入口。
<!--weixin.wxml-->
<view class="container">
<view class="panel-display" style="position: relative;">
<view>
<icon id="icon-about" type="info" size="28" color="#aaa" bindtap="showAbout"/></view>
<view id="display-num">{
{calc.displayNum}}</view>
<view id="display-op">{
{calc.displayOp}}</view>
</view>
<view class="panel-btns">
<view class="btns-rows">
<view id="btn-c" class="btn {
{tapped['c']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="c">AC</view>
<view class="btn {
{tapped['d']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="d">DEL</view>
<view class="btn {
{tapped['/']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="/" style="font-size: 24px;">÷</view>
<view class="btn {
{tapped['x']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="x">×</view>
</view>
<view class="btns-rows">
<view class="btn {
{tapped['7']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="7">7</view>
<view class="btn {
{tapped['8']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="8">8</view>
<view class="btn {
{tapped['9']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="9">9</view>
<view class="btn {
{tapped['-']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="-">-</view>
</view>
<view class="btns-rows">
<view class="btn {
{tapped['4']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="4">4</view>
<view class="btn {
{tapped['5']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="5">5</view>
<view class="btn {
{tapped['6']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="6">6</view>
<view class="btn {
{tapped['+']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="+">+</view>
</view>
<view id="btns2" class="btns-rows">
<view id="btns2-left">
<view class="btns2-left-part">
<view class="btn {
{tapped['1']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="1">1</view>
<view class="btn {
{tapped['2']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="2">2</view>
<view class="btn {
{tapped['3']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="3">3</view>
</view>
<view class="btns2-left-part">
<view class="btn {
{tapped['%']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="%">%</view>
<view class="btn {
{tapped['0']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="0">0</view>
<view class="btn {
{tapped['.']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op=".">.</view>
</view>
</view>
<view id="btns2-right" class="btn {
{tapped['=']}}" bindtap="btnClicked" bindtouchstart="btnTouchStart" bindtouchend="btnTouchEnd" data-op="=">=</view>
</view>
</view>
</view>
边栏推荐
- 330. Complete the array as required
- Actual measurement of boot and pH pins of buck circuit
- [beauty of software engineering - column notes] 21 | architecture design: can ordinary programmers also implement complex systems?
- Internet worm
- File system I
- [untitled] format save
- @JsonSerialize注解的使用
- Tcp/ip five layer reference model and corresponding typical devices and IPv6
- Keyboard processing in jetpack compose
- Day 014 2D array exercise
猜你喜欢

Amaze UI icon query

Compare three clock circuit schemes of single chip microcomputer
![[cryoelectron microscope | paper reading] emclarity: software for high-resolution cryoelectron tomography and sub fault averaging](/img/1e/9f05862288261e16a6b04508b9b292.png)
[cryoelectron microscope | paper reading] emclarity: software for high-resolution cryoelectron tomography and sub fault averaging

Unity beginner 3 - enemy movement control and setting of blood loss area (2D)

Ionicons icon Encyclopedia

亚马逊测评自养号是什么,卖家应该怎么做?

Alibaba political commissar system - Chapter 1: political commissars are built on companies

Matrix decomposition and gradient descent

Autojs微信研究:微信自动发送信息机器人最终成品(有效果演示)

CentOS deploy PostgreSQL 13
随机推荐
JVM garbage collection mechanism (GC)
Up sampling deconvolution operation
[beauty of software engineering - column notes] 30 | make good use of source code management tools to make your collaboration more efficient
[paper reading] tomoalign: a novel approach to correcting sample motion and 3D CTF in cryoet
Dynamic thresholds buffer management in a shared buffer packet switch paper summary
The software package is set to - > Yum source
Unicode私人使用区域(Private Use Areas)
Unicode private use areas
[paper reading | cryoelectron microscope] interpretation of the new subtomogram averaging method in relion 4.0
Processes and threads
在一个sql文件中,上面定义一个测试表及数据,下面可以select* from 测试表
Convert source package to RPM package
Technology sharing | quick intercom integrated dispatching system
[paper reading | cryoet] gum net: fast and accurate 3D subtomo image alignment and average unsupervised geometric matching
Data warehouse modeling, what is wide table? How to design? Advantages and disadvantages
[beauty of software engineering - column notes] 29 | automated testing: how to kill bugs in the cradle?
[note] the art of research - (tell a good story and argument)
CDM - code division multiplexing (easy to understand)
10 common software architecture modes
Chapter contents of the romance of the Three Kingdoms