uniapp
Change!!
一只喜欢旅游的码农,Up,Up,Up欢迎技术大佬来探讨!
展开
-
uniapp返回上一页面
返回上一页面在uniapp有多种方法根据项目需求,关闭当前页面,返回上一页面原创 2021-12-01 14:42:47 · 62377 阅读 · 5 评论 -
uniapp打包后404
uniapp打包后404问题原创 2022-10-19 10:43:29 · 571 阅读 · 0 评论 -
uniapp请求接口的几种方式
1.第一种就是不用封装直接请求data中多个参数就是 "https://xxxxx/?id=1&type=2"形式 uni.request({ url: 'https://xxxxx/xx/detail', data: {//参数 type: 2, id:1, }, header: { // 'Content-Type': 'application/x-www-form-urlencoded' 'Content-Type': 'application原创 2022-02-18 14:46:09 · 19020 阅读 · 3 评论 -
前端开发中遇到的那些坑
前端开发中遇到的那些坑原创 2022-08-23 11:56:08 · 798 阅读 · 0 评论 -
h5和ios/android交互
我们的App项目属于混合式开发,ios/Android负责打包,app里面点击时通过地址跳入我们的h5页面。问题1:ios调用h5方法并传参//ios调用h5方法,必须将事件暴露在window中供客户端调用,不然ios调用不到我们的方法onShow() {//这是uniapp的方法,vue的话写到mounted() window.footprintDelAll=(params)=>{//ios传的参数 this.footprintDelAll(params) } },methods:原创 2022-05-16 11:27:19 · 1176 阅读 · 4 评论 -
h5/uni-app打开手机app,没有则跳转到商店下载
goosDetailshowClick() {//点击事件 // console.log(this.productId,this.userId,'userId----获取') var u = navigator.userAgent; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac O原创 2022-04-07 15:01:16 · 5179 阅读 · 0 评论 -
uni-app 输入框类型为number时,ios系统不能输入小数点问题
在做app时,输入框 Android 可以输入小数点,ios却不可以???解决方法:把type类型更换为digit就可以了。<input type="digit" placeholder="请输入金额"" />原创 2022-03-22 12:27:43 · 5920 阅读 · 1 评论 -
js输入银行卡号,自动查询银行名称、银行卡类型
插件引用https://github.com/navyxie/bankcardinfo#getBankBin使用步骤:1.npm install bankcardinfo2.html和js,这里输入银行卡号,获取用户名称;采用失去焦点,调用cardInput方法html:<view class="cardnum"> <input type="number" v-model="cardNum" @blur="cardInput" class="fs28" placeholde原创 2022-03-21 15:06:31 · 3075 阅读 · 0 评论