![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
小胡仙
有两只小可爱的大可爱~~
新增一只小泰迪~~
展开
-
小程序重复调用组建报错Framework inner error
1.目录结构:在index页面里调用page页面(组件),在page页面里使用了vant框架,结果报错了,代码如下:index.wxml:<view> <van-tabs title-active-color="red" sticky active="{{ active }}" bind:change="onChange" > <van-tab class="van-tab" title="我参与的" > <collagePag原创 2021-11-17 14:07:31 · 2273 阅读 · 0 评论 -
小程序怎么打空格
第一种: <text decode> </text> 第二种: 空 格 空 格原创 2021-11-09 11:27:30 · 1204 阅读 · 0 评论 -
小程序引入weui报错
引入方法:在app.json中设置 "useExtendedLib": { "weui": true } 在你要使用的组件的json中调用一下 "usingComponents": { "mp-icon": "weui-miniprogram/icon/icon", "mp-form": "weui-miniprogram/form/form" } 在wxml中 <mp-icon class="weui-input-icon" icon="me"原创 2021-06-30 18:22:29 · 554 阅读 · 0 评论 -
小程序后台接口返回图片,怎么在页面上展示
1.index.wxml<image class="weui-input-code-img" src="{{codeImg}}"></image>2.index.jsPage({ data:{ codeImg: '' }, onReady: function () { this.getCode() }, getCode() { var that = this wx原创 2021-06-23 14:17:32 · 3811 阅读 · 1 评论 -
微信小程序tabBar使用二(自定义)
1.在app.json添加"tabBar": { "custom": true, // 必须有 "color": "#000000", "selectedColor": "#f00", "backgroundColor": "#ccc", "list": [{ "pagePath": "pages/personal/personal", "text": "个人中心" }, { "pagePath": "pages/sh原创 2021-06-16 19:03:58 · 560 阅读 · 0 评论 -
微信小程序tabBar使用一(基础使用)
在app.json中添加 "tabBar": { "color": "#000000", "selectedColor": "#000000", "backgroundColor": "#ccc", "list": [{ "pagePath": "pages/personal/personal", // 路径 "text": "个人中心", "iconPath": "/assets/platform.png", //点击前图片路径原创 2021-06-16 18:08:23 · 498 阅读 · 0 评论 -
微信小程序引入第三组件(以row/col 组件为例)
初始化npm:在小程序的根目录下npm init -f g原创 2021-06-11 11:10:17 · 1084 阅读 · 3 评论 -
微信小程序组件调用二(slot)
上一片:微信小程序组件调用一(怎样写组件)原创 2021-06-10 18:02:25 · 178 阅读 · 0 评论 -
微信小程序组件调用一(怎样写组件)
先看下想要实现的样子1.新建component文件夹,我新建在了pages里2.在component新建文件组件文件夹,如下图,我创建的icon3.先在icon.json中配置{ "component": true, "usingComponents": {}}4.在父组件中引用(我这里的父组件是index,与component文件夹同级)index.json中配置{ "usingComponents": { "c-icon": "../component/icon原创 2021-06-08 18:42:22 · 199 阅读 · 0 评论