随笔- 191  文章- 0  评论- 3  阅读- 59139 

随笔分类 -  frontend / uniapp

uniapp 跨域设置cookie (后端nodejs)
摘要:首先关于request设置cookie需要先看uniapp官网的介绍:(h5端无法通过前端设置、修改cookie) 其次设置请求头具体没有说明要求,应该是按照标准来的 代码:nodejs模拟后端(因为本地测试用两个不同的端口,需要跨域): var ex = require('express') va 阅读全文
posted @ 2023-03-17 00:29 laremehpe 阅读(2765) 评论(0) 推荐(0) 编辑
uniapp 离线打包android
摘要:证书:需要提供-->证书别名、证书sha1、证书密码 登录dcloud获取appkey 下载Android-SDK@3.3.13.81245_20220315 打开Android Studio导入HBuilder-Integrate-AS 选择Android方式查看项目->然后->找到Android 阅读全文
posted @ 2022-12-28 17:19 laremehpe 编辑
uniapp离线打包android原生插件:
摘要:根目录创建结构: package.json: uniapp下的manifest.json添加: 打包文件下创建dcloud_uniplugins.json文件 内容如: 将插件复制到libs目录下: 阅读全文
posted @ 2022-12-28 17:01 laremehpe 编辑
微信小程序—标题栏
摘要:<template> <view :style="{paddingTop: statusBarHeight + 'px',background:bg}" class="box"> <view :style="{width: titleBarWidth + 'px', height: titleBar 阅读全文
posted @ 2022-12-05 09:58 laremehpe 阅读(130) 评论(0) 推荐(0) 编辑
uniapp android原生插件开发
摘要:使用Android Studio打开: 选中项目新建模块: 填写相关模块名称: 注意包名: 目录中多出一项: 新建Java Class: 导入相关包: import io.dcloud.feature.uniapp.annotation.UniJSMethod; import io.dcloud.f 阅读全文
posted @ 2022-11-24 10:17 laremehpe 编辑
uview 腾讯地图城市选择器
摘要:// 引入SDK核心类 var QQMapWX = require('@/common/qqmap.js'); // 实例化API核心类 var qqmapsdk = new QQMapWX({ key: 'DIWAZ-OWFC2-MXZUQ-C3WFR-FOOIF-44FGG' // 必填 }); 阅读全文
posted @ 2022-11-24 09:48 laremehpe 阅读(454) 评论(0) 推荐(0) 编辑
uview经典请求
摘要:uni.$u.http.post('/api/customer/getCustomer', { customerId: this.user.id }).then(({data:{data}})=> { console.log(data) }) 阅读全文
posted @ 2022-11-24 09:39 laremehpe 编辑
页面跳转、函数调用
摘要:Vue.prototype.handler = function(val){typeof val 'function' ? val.call(this) : (val+'').startsWith('/')? uni.navigateTo({url:val}) : ''} 阅读全文
posted @ 2022-11-24 09:36 laremehpe 阅读(22) 评论(0) 推荐(0) 编辑
uniapp触底加载
摘要:import { lazy } from '@/common/lazyLoadMix.js' getInfo() { //加载信息 uni.$u.http.get(this.type ? '/api/customer/getHomeJobSeekerList' : '/api/customer/ge 阅读全文
posted @ 2022-11-24 09:34 laremehpe 阅读(358) 评论(0) 推荐(0) 编辑
uniapp 微信小程序获取手机号
摘要:引导用户点击下面的按钮:<button class="sure" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">确定</button> //微信登录按钮点击事件 async getPhoneNumber({ detail: { 阅读全文
posted @ 2022-11-16 16:12 laremehpe 编辑
uniapp android原生插件开发
摘要:使用Android Studio打开: 选中项目新建模块: 填写相关模块名称: 注意包名: 目录中多出一项: 新建Java Class: 导入相关包: import io.dcloud.feature.uniapp.annotation.UniJSMethod; import io.dcloud.f 阅读全文
posted @ 2022-11-10 14:53 laremehpe 编辑
uniapp 全局去除半圆阴影
摘要:随便一个页面添加 bounce:none "app-plus": { "bounce": "none" } 注意只有任意的一个页面和全局页面同时添加才能去除! 阅读全文
posted @ 2022-11-10 11:33 laremehpe 阅读(95) 评论(0) 推荐(0) 编辑
微信小程序 去除分享按钮默认样式
摘要:添加属性:style=“display:contents” <view class="box"> <button class="button" open-type="share"></button> </view> .box{ position:relative; height:50rpx; wid 阅读全文
posted @ 2022-11-01 14:04 laremehpe 阅读(274) 评论(0) 推荐(0) 编辑
uniapp 微信小程序分享到朋友、分享到朋友圈
摘要://分享到朋友圈 onShareTimeline() { return { title: '鸣火', path: "pages/tabbar/tabbar?share=微信会把分享到朋友圈的参数去掉,别想了!", imageUrl: "../../static/logo.png", }; }, // 阅读全文
posted @ 2022-10-20 17:34 laremehpe 阅读(1032) 评论(0) 推荐(0) 编辑
uniapp 苹果应用内购 iap支付流程
摘要:let applePayMethods = { data() { return { iap: {}, } }, onShow() { if (uni.getStorageSync('applePayParam')) { uni.showLoading({ mask:true, message:'验证 阅读全文
posted @ 2022-10-20 16:06 laremehpe 阅读(1001) 评论(0) 推荐(0) 编辑
uniapp 微信小程序 添加申请定位权限
摘要:"permission" : { "scope.userFuzzyLocation": { "desc": "你的位置信息将用于小程序位置接口的效果展示" } }, "requiredPrivateInfos": [ "getFuzzyLocation" ] //获取定位 wx.authorize( 阅读全文
posted @ 2022-10-11 15:57 laremehpe 阅读(1340) 评论(0) 推荐(0) 编辑
uniapp 调用支付宝支付
摘要:调用处: uni.requestPayment({ provider:'alipay', orderInfo: res.result, success: () => { }, }) 其中res.body.data为: "alipay_sdk=alipay-sdk-java-4.9.5.ALL&app 阅读全文
posted @ 2022-07-26 17:11 laremehpe 阅读(2960) 评论(0) 推荐(0) 编辑
uniapp css设置background不显示
摘要:注意不要使用绝对地址: 修改前: 修改后: 阅读全文
posted @ 2022-04-26 15:34 laremehpe 阅读(280) 评论(0) 推荐(0) 编辑
uniapp input 弹出键盘影响布局
摘要:<input :adjust-position="false" v-model="input" :style="'bottom:'+keyBoard+'px'"> //配合修改input高度(单位px): data:{ input:'', keyBoard:0, }, onLoad() { uni. 阅读全文
posted @ 2022-04-19 09:00 laremehpe 阅读(414) 评论(0) 推荐(0) 编辑
uniapp滚动到页面指定位置:
摘要: 阅读全文
posted @ 2022-04-19 08:57 laremehpe 阅读(164) 评论(0) 推荐(0) 编辑

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