![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
知识点
暖风阵阵
这个作者很懒,什么都没留下…
展开
-
uni.$on,uni.$emit页面通讯,组件通讯
uni.$on和uni.$emit,页面或组件通讯,相互传数据原创 2022-04-09 22:23:43 · 319 阅读 · 0 评论 -
【微信小程序使用canvas绘制二维码】
1,在util文件夹中的common.js //引入 import drawQrcode from './qrcode.min.js'; import draw2dQrcode from './weapp.qrcode.esm.js'; //导出封装的公用方法 export default{ //老版二维码:canvas-id="testQrcode" qrcode(canvas,text,width,height){ drawQrcode({ width: width || 16原创 2021-12-30 15:30:39 · 1695 阅读 · 1 评论 -
wx小程序:封装一个公用方法
1,在util/common.js //导出 export function showToast(title,icon,duration){ wx.showToast({ title: title || '', mask:true, icon:icon || 'none', duration: duration || 2500 }) } 2,使用 import {showToast} from '../../../utils/common.js'; clickBtn原创 2021-12-27 16:46:37 · 324 阅读 · 0 评论 -
使用vuex
vuex使用语法简介原创 2021-12-27 15:20:15 · 302 阅读 · 0 评论 -
wx小程序提交form
wx小程序提交表单form原创 2021-12-22 10:40:42 · 347 阅读 · 0 评论 -
购物车:全选、选中、删除
// 弹框是element-ui,可修改成其他 <template> <div> <div class="shop-view"> <div class="goods" style="justify-content: flex-end;"> <p :class="type?'p-active':'p'" @click="change">{{type?'管理x':'管理'}}</p> </div> <d原创 2021-12-16 11:04:12 · 1310 阅读 · 0 评论 -
vue中:Bus兄弟传值
1,父组件index.vue <template> <div> 主页面 <nav-bar></nav-bar> <tab-list></tab-list> </div> </template> <script> import navBar from './nav-bar.vue'; import tabList from './tab-list.vue'; export def原创 2021-12-13 17:07:11 · 276 阅读 · 0 评论 -
微信小程序封装组件(二)传参
1,准备子组件tab // tab.json { "component": true } // tab.js Component({ options: { multipleSlots: true // 在组件定义时的选项中启用多slot支持 }, //接收父组件的参数 properties: { tabList: { type: Array, value: [] }, tabId: .原创 2021-10-16 21:55:35 · 310 阅读 · 0 评论 -
微信小程序封装组件--列表
1,准备子组件–列表 // list.josn { "component": true } // list.js Component({ options: { multipleSlots: true // 在组件定义时的选项中启用多slot支持 }, //接收父组件的参数 properties: { list: { type: Array, value: [] }, }, //组件的方.原创 2021-10-16 21:42:34 · 1475 阅读 · 0 评论