随笔分类 - uniapp
摘要:1.https://ext.dcloud.net.cn/plugin?id=13078 dcloud下载插件(不包含创建条目) / 文件里边有上传 2.使用 <zxz-uni-data-select v-model="CPData.dishUnit" :filterable="true" :loca
阅读全文
摘要:1.普通传参 uni.navigateTo({ url:'/nextPages/work/detailPages/inspectBZ?id=' + val.id }) 接收参数 onLoad(options){ this.initData(options.id) }, 2.对象格式 需要进行编码 u
阅读全文
摘要:解决方式一: 在下拉模块添加@touchmove.stop @touch.stop 此方式为网上搜索结果,没有成功,可能是由于我的overflow是一个组件中的内容,onPullDownRefresh在父组件中触发,没有具体试过 方式二:在模块滑动时@scroll="pullDownClose" 触
阅读全文
摘要:需要使用renderjs区分逻辑层和视图层 <template> //通过监听 实现逻辑层 向视图层传值 //:change:userData="agent.getUserData" userData:逻辑层的值传给视图层 agent:视图层的module getUserData:视图层监听逻辑层的
阅读全文
摘要:1.h5不支持设置请求头,所有h5通过上述方式上传失败 2.如果前端不传图片需要用两种方式分别调用,且需要设置不同的请求头,后端需要同步更改 来源:https://blog.csdn.net/qq_23859799/article/details/126794172
阅读全文
摘要:<template> <view class="bodys"> <u-navbar :placeholder="true" title="菜单" @leftClick="backBtn"> </u-navbar> <view id="scroll_box"> <view class="scroll_
阅读全文
摘要://放置与data同级 options: { styleIsolation: 'shared' }, <template> <view class='container'></view> </template> <script> export default { props: {}, data: (
阅读全文
摘要:html: <view class="content aiMenuClass" :style="{paddingBottom:bottom + 'px'}"> ......... </view> <view class="stickyBottom"> <view class="stickyConte
阅读全文
摘要:1.新建scss文件,定义各种全局css样式 $orange: #ee5313!default; //主题色:橙色 $darkOrange:#d43a11; //深橙色 $color:#333; $gray: #999; //灰色 $lightGray:#bbb; //浅灰 $grayBg:#f3f
阅读全文
摘要:插件:APP版本检测升级 - DCloud 插件市场 我的使用 1.在首页引入插件 <yomol-upgrade ref="yomolUpgrade"></yomol-upgrade> 在mounted中调用yomolUpgrade中的方法 this.$refs.yomolUpgrade.show(
阅读全文
摘要:使用雷电和mumu模拟器均会出现这种情况, 更换模拟器:夜深模拟器 可以
阅读全文
摘要:1.手机需要打开开发者模式 2.adb端口占用(从任务管理器中结束进程) uniapp项目真机调试遇到的问题(持续更新中) - 简书 (jianshu.com) 解决端口占用问题 - 简书 (jianshu.com)
阅读全文
摘要:使用伪元素 .login_box { content:" "; position:absolute; left:0; right:0; top:0; bottom:0; background: url("../../static/img/loginBak.png") no-repeat center
阅读全文
摘要:配置 condition中的list
阅读全文
摘要:在微信开发者工具 => 设置 => 编辑器设置 => 中取消修改时自动保存的选项就可以啦 来源:https://ask.dcloud.net.cn/question/81091
阅读全文
摘要:1.首先通过HbuilderX新建小程序项目,并下载好微信开发者工具 2.打开项目中的manifest.json,填写appID(从微信公众平台复制)等 3.选中项目 点击 运行-- 运行到小程序模拟器--运行设置 填写微信开发者工具所在路径 4.打开微信开发者工具,选择设置->安全设置。将服务端口
阅读全文
摘要:data.content为后台传入的一段html代码 1.使用v-html <p class="content" style="width: 100%;" v-html = "data.content">data.content</p> 但是此方法不能控制html中图片的大小 2.使用rich-te
阅读全文
摘要:<rich-text class="content" :nodes="data.content | formatRichText"></rich-text> 过滤器 filters: { formatRichText(html) { //控制小程序中图片大小 let newContent = htm
阅读全文
摘要:text, span, p { user-select: text; -webkit-user-select: text; }
阅读全文

浙公网安备 33010602011771号