随笔分类 -  微信小程序

摘要:wxml: bindinput事件是实时获取用户输入的内容 <input model:value="{{msg}}" class="ipt" type="text" bindinput='getValue'/> <view>{{msg}}</view> 阅读全文
posted @ 2023-07-13 20:01 请善待容嬷嬷 阅读(2) 评论(0) 推荐(0) 编辑
摘要:1 // pages/live/live.js 2 const {host,house}=require('../../common/config.js') 3 4 Page({ 5 6 /** 7 * 页面的初始数据 8 */ 9 data: { 10 house:[], 11 details:[ 阅读全文
posted @ 2022-10-19 20:23 请善待容嬷嬷 阅读(81) 评论(0) 推荐(0) 编辑
摘要:前进(第一个是跳转到tabbar有关的页面,第二个是跳到正常的页面) 回退一个页面 阅读全文
posted @ 2022-09-29 22:44 请善待容嬷嬷 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-09-29 09:27 请善待容嬷嬷 阅读(8) 评论(0) 推荐(0) 编辑
摘要:config.js是在自己创建的common文件中和page在同一层 阅读全文
posted @ 2022-09-28 16:31 请善待容嬷嬷 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-09-28 11:34 请善待容嬷嬷 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-09-28 10:34 请善待容嬷嬷 阅读(21) 评论(0) 推荐(0) 编辑
摘要:// countPrice 代表事件名字 countPrice(){ // 获取用户登录信息 用同步的方法获取用户信息 userinfo代表键 let userinfo = wx.getStorageSync('userinfo') console.log('login', userinfo); / 阅读全文
posted @ 2022-08-24 11:18 请善待容嬷嬷 阅读(39) 评论(0) 推荐(0) 编辑
摘要:点击支付按钮 去发送请求 调用第三方的请求接口 有一个成功的回调 成功的话会 对订单有相应的处理 支付成功的话会有一个成功的信息 如果支付失败的话会告诉用户失败的一些逻辑 阅读全文
posted @ 2022-08-10 00:05 请善待容嬷嬷 阅读(175) 评论(0) 推荐(0) 编辑
摘要:1.配置上拉内容:在局部(.json)配置或者是全局配置 (app.json) "enablePullDownRefresh": true 2.在utils文件夹下创建一个request.js 这里面是用来配置promise的 就相当于是ajax请求 3.在创建的js 文件的最上边引入模块 或者定义 阅读全文
posted @ 2022-08-03 19:08 请善待容嬷嬷 阅读(29) 评论(0) 推荐(0) 编辑
摘要:wxml: bindinput事件是实时获取用户内容的事件 <input model:value="{{msg}}" class="ipt" type="text" bindinput='getValue'/> <view>{{msg}}</view> wxjs: data: { msg:"" }, 阅读全文
posted @ 2022-08-03 17:31 请善待容嬷嬷 阅读(116) 评论(0) 推荐(0) 编辑
摘要:在wxml里面绑定跳转的id <navigator url="../first/first?id={{item.id}}"></navigator> 阅读全文
posted @ 2022-08-03 17:13 请善待容嬷嬷 阅读(48) 评论(0) 推荐(0) 编辑
摘要:这个nodes就是用来绑定节点或html的 这个details就是data下面定义的键 details:{} <rich-text nodes='{{details.content}}' ></rich-text> 阅读全文
posted @ 2022-08-03 17:11 请善待容嬷嬷 阅读(64) 评论(0) 推荐(0) 编辑
摘要:小程序里面增加类名是直接写类名 因为小程序里面没有v-bind绑定 在wxml里面写: 在xx.js里面写: 阅读全文
posted @ 2022-08-03 16:39 请善待容嬷嬷 阅读(403) 评论(0) 推荐(0) 编辑
摘要:微信小程序所有的页面都需要放在paage文件夹下 微信小程序有自己的标签 比如text和view 有自己的指令前缀 wx:for 默认情况下 item in 省略不写 绑定key的时候直接写wx:key=“id” 支持三元指令 <view>{{count>100 ? '大于':"不大于"}}</vi 阅读全文
posted @ 2022-08-01 15:07 请善待容嬷嬷 阅读(117) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示