微信小程序七夕节礼物
VSCode
Node.js
HbuilderX
安装前端开发环境
[外链图片转存失败(img-aXUJRfXc-1565136341881)(https://upload-images.jianshu.io/upload_images/11158618-d95bdf80673bd914.png?imageMogr2/auto-orient/strip|imageView2/2/w/1240)]
npm install -g cnpm
--registry=https://registry.npm.taobao.org
cnpm install -g less
[外链图片转存失败(img-9ulpolqR-1565136341883)(https://upload-images.jianshu.io/upload_images/11158618-96874e99fbe2e6fd.png?imageMogr2/auto-orient/strip|imageView2/2/w/1240)]
HBuilderX是国内最优秀的前端开发工具,我们用它来开发Electron项目和小程序项目
[外链图片转存失败(img-QjN6oJgS-1565136341889)(https://upload-images.jianshu.io/upload_images/11158618-9e5096ce67456ee4.png?imageMogr2/auto-orient/strip|imageView2/2/w/1240)]
[外链图片转存失败(img-es53UUtf-1565136341894)(https://upload-images.jianshu.io/upload_images/11158618-50ab575c6df120ee.png?imageMogr2/auto-orient/strip|imageView2/2/w/1240)]
[外链图片转存失败(img-p7K2vAuH-1565136341897)(https://upload-images.jianshu.io/upload_images/11158618-2aac4cf757f76947.png?imageMogr2/auto-orient/strip|imageView2/2/w/1240)]
[外链图片转存失败(img-hetLhOcR-1565136341902)(https://upload-images.jianshu.io/upload_images/11158618-ef8b8beb69455e79.png?imageMogr2/auto-orient/strip|imageView2/2/w/1240)]
[外链图片转存失败(img-nCI0JQ1o-1565136341907)(https://upload-images.jianshu.io/upload_images/11158618-94ea7e0bead0c8db.png?imageMogr2/auto-orient/strip|imageView2/2/w/1240)]
[外链图片转存失败(img-hNcVkWrk-1565136341910)(https://upload-images.jianshu.io/upload_images/11158618-afe5d0ebee2f5be8.png?imageMogr2/auto-orient/strip|imageView2/2/w/1240)]
[外链图片转存失败(img-3Vtruoao-1565136341915)(https://upload-images.jianshu.io/upload_images/11158618-cbbc4c81d44090ee.png?imageMogr2/auto-orient/strip|imageView2/2/w/1240)]
{
"pages": [
"pages/index/index"
],
"requiredBackgroundModes": [
"audio",
"location"
],
"subPackages": [],
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "我喜欢你",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"usingComponents": {}
}
@import './common/main.wxss';
require('./common/runtime.js')
require('./common/vendor.js')
require('./common/main.js')
.content {
padding: 0 40rpx;
}
.content image {
width: 100%;
}
.content .title {
display: block;
text-align: center;
font-size: 50rpx;
font-weight: bold;
}
.content .operate {
text-align: center;
margin-top: 30rpx;
margin-bottom: 30rpx;
}
.content .operate .btn {
width: 200rpx;
height: 80rpx;
display: inline-block;
}
.content .operate .btn:first-of-type {
margin-right: 40rpx;
}
.content .message {
font-size: 34rpx;
margin: 15rpx 0;
color: #333;
}
<view class="content"><image src="../../static/g1.gif" mode="widthFix"></image><text class="title">小姐姐,做我女朋友吧!</text><view class="operate"><button class="btn" type="primary" data-event-opts="{{[['tap',[['agree',['$event']]]]]}}" bindtap="__e">好呀</button><button class="btn" type="warn" data-event-opts="{{[['tap',[['disagree',['$event']]]]]}}" bindtap="__e">不好</button></view><block wx:for="{{love}}" wx:for-item="one" wx:for-index="__i0__" wx:key="*this"><view class="message">{{one}}</view></block></view>
若本号内容有做得不到位的地方(比如:涉及版权或其他问题),请及时联系我们进行整改即可,会在第一时间进行处理。
请点赞!因为你们的赞同/鼓励是我写作的最大动力!
欢迎关注达叔小生的简书!
这是一个有质量,有态度的博客
[外链图片转存失败(img-W55HepdX-1565136341917)(https://upload-images.jianshu.io/upload_images/11158618-9ab0d3fef85d80ce?imageMogr2/auto-orient/strip|imageView2/2/w/1240)]
相关文章
- 一个小时快速搭建微信小程序
- 体验报告:微信小程序在安卓机和苹果机上的区别
- 原创:微信小程序java实现AES解密并获取unionId
- vue和微信小程序的区别、比较
- 微信页面弹出窗口,底部不随窗口滑动而滚动
- 微信小程序_(组件)view视图容器
- 基于 Swoole 的微信扫码登录
- 微信小程序如何跳转到另一个小程序
- 微信小程序—相对路径和绝对路径
- 【问题解决方案】电脑使用微信等第三方工具给鼠标右键和下拉列表截图
- uni-app:微信小程序:分享给微信好友和分享到朋友圈(hbuilderx 3.7.3)
- 【微信小程序】---- redux 在原生微信小程序的使用实例
- 微信小程序----简易双向绑定
- 微信小程序----canvas实现刮刮乐效果
- C4C微信集成 - agent在C4C系统回复,微信用户在微信端直接收到
- 请问微信小程序体验版二维码的有效期是多久?永久有效吗?还有如果我更新了代码版本之后,之前的体验版二维码会不会被覆盖呢?
- 微信JSSDK录音功能开发遇到的坑
- python微信机器人制作教程+源码
- 微信小程序(原生)——底部导航
- 基于SpringCloud+redis+Springsecurity实现的微信小程序外卖系统