随笔分类 -  vue/uni-app

查看证书/apk指纹md5/sha1/sha256
摘要:[Android证书在线一键生成工具](https://www.kxapp.com/keystore.html "Android证书在线一键生成工具") ### 查看apk指纹 ```shell keytool -printcert -jarfile android_debug.apk ``` ## 阅读全文

posted @ 2023-08-05 08:35 小馬過河﹎ 阅读(212) 评论(0) 推荐(0) 编辑

浏览器打开微信小程序
摘要:function h5() { $wx = new Wx('appId', 'appSecret'); // \dump($wx->getAccessToken()); $url = 'https://api.weixin.qq.com/wxa/generatescheme?' . \http_bu 阅读全文

posted @ 2022-12-15 11:20 小馬過河﹎ 阅读(323) 评论(0) 推荐(0) 编辑

uniapp/微信小程序 获取手机号码
摘要:<button type="primary" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" >获取本机号码</button> getPhoneNumber(e) { this.$request({ url: 'user/get 阅读全文

posted @ 2022-09-09 10:50 小馬過河﹎ 阅读(310) 评论(0) 推荐(0) 编辑

uniapp 获取视窗高度
摘要:, onReady: function() { uni.getSystemInfo({ success: function(res) { pageHeight = res.windowHeight console.log('pageHeight',pageHeight) } }) setTimeou 阅读全文

posted @ 2022-09-09 10:49 小馬過河﹎ 阅读(23) 评论(0) 推荐(0) 编辑

将$emit写在template代码中
摘要:<input type="search" @keyup.enter="$emit('search',$event.target.value)" /> 阅读全文

posted @ 2022-09-09 10:27 小馬過河﹎ 阅读(36) 评论(0) 推荐(0) 编辑

vue computed v-model 结合使用
摘要:data() { return { vcodeBtnName: "获取验证码", countNum: 120, countDownTimer: null, ent: {} } }, computed: { mobile: { get() { console.log('我被调用了') return t 阅读全文

posted @ 2022-09-09 10:27 小馬過河﹎ 阅读(19) 评论(0) 推荐(0) 编辑

vue v-cloak
摘要:这个指令保持在元素上直到关联实例结束编译。和 CSS 规则如 [v-cloak] { display: none } 一起用时,这个指令可以隐藏未编译的 Mustache 标签直到实例准备完毕。 官方文档 https://cn.vuejs.org/api/built-in-directives.ht 阅读全文

posted @ 2022-09-09 10:07 小馬過河﹎ 阅读(22) 评论(0) 推荐(0) 编辑

vue客户端发送两次请求的解决办法
摘要:header中content-type 设为 application/x-www-form-urlencoded; header中不要设置其他参数。 阅读全文

posted @ 2022-09-09 08:46 小馬過河﹎ 阅读(147) 评论(0) 推荐(0) 编辑

vue-hisory项目在nginx下的伪静态配置
摘要:location / { try_files $uri $uri/ /index.html last; index index.html; } add_header 'Access-Control-Allow-Origin' '*' always; #允许来自所有的访问地址 add_header ' 阅读全文

posted @ 2022-09-08 17:16 小馬過河﹎ 阅读(833) 评论(0) 推荐(0) 编辑

vue使用layui上传
摘要:问题在于vue渲染多个虚拟dom无法触发layui.upload.render()方法,解决方案为:点击上传按钮的容器时删除dom并重新渲染。 核心代码 <div class="layui-form-item"> <div class="layui-form-label">图片附件</div> <d 阅读全文

posted @ 2022-09-08 17:12 小馬過河﹎ 阅读(259) 评论(0) 推荐(0) 编辑

uni-app picker-view 简单使用一例
摘要:文档链接 https://uniapp.dcloud.io/component/picker-view.html 源码 <template> <view class="u-p-30"> <u-divider>{{edus[current].label}}</u-divider> <picker-vi 阅读全文

posted @ 2022-09-08 10:37 小馬過河﹎ 阅读(1036) 评论(0) 推荐(0) 编辑

uniapp picker-view picker-view-column 选择日期一例
摘要:文档链接 https://uniapp.dcloud.io/component/picker-view.html 源码 <template> <view class="u-p-30"> <u-divider>{{year}}年{{month}}月{{day}}日</u-divider> <picke 阅读全文

posted @ 2022-09-08 10:35 小馬過河﹎ 阅读(481) 评论(0) 推荐(0) 编辑

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