uniapp
_49609366
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
解决ie不兼容es6的问题
引入browser.min.js并使用这个<script type="text/babel"> </script>有很多是因为swiper版本的问题,如果要兼容ie,得下载低版本得 swiper2 版本原创 2021-09-13 15:50:58 · 341 阅读 · 0 评论 -
uniapp解决在nvue不能获取节点信息得问题
// #ifdef APP-NVUE const dom = weex.requireModule('dom') // #endif const result = dom.getComponentRect(this.$refs.examplebody, option => { console.log('getComponentRect:', option) this.$emit("getNavTab",option.size.height)})原创 2021-09-07 11:55:26 · 1396 阅读 · 2 评论 -
uniapp微信支付
that.$request.register(‘wx_pay/buildOrderInfo’, {id: that.id, //微信支付的订单idtype:this.type,}).then(res => {uni.requestPayment({provider: ‘wxpay’,orderInfo: res,success: function(res) {that.closePopup()uni.showToast({title: ‘支付成功’,})setTimeout(r原创 2021-10-19 12:09:43 · 150 阅读 · 0 评论 -
uniapp地图实现点击回到当前位置
<map :latitude="latitude" id="around-food-map" :longitude="longitude" />onControltap(control) { uni.createMapContext("around-food-map", this).moveToLocation({ longitude: this.longitude, latitude: this.latitude });},原创 2021-09-06 11:43:38 · 1959 阅读 · 0 评论 -
uniapp在返回上一页时提示信息
onBackPress(e) { if (e.from == "backbutton") { uni.showModal({ title: '提示', content: '离开本页面将不会保存您输入的任何数据', success: (res) => { if (res.confirm) { uni.navigateBack({ delta: 1 }); } } }); return true原创 2021-09-02 11:43:59 · 1733 阅读 · 0 评论 -
每八条分一组
for (var i = 0, len = res.length; i < len; i += 8) { this.menu.push(res.slice(i, i + 8)); }原创 2021-08-27 18:28:36 · 121 阅读 · 0 评论 -
uniapp中字体加粗问题
在小米手机中,font-size:600;是没有什么效果的,但是在苹果或者华为就生效,所以必须统一成font-size:700;样式才能统一原创 2021-08-20 12:03:54 · 8912 阅读 · 3 评论 -
vue实现微信登录
href: "https://open.weixin.qq.com/connect/qrconnect?appid=wx6a65d99bc69d5708&redirect_uri=" + encodeURIComponent(window.location.href) + "&response_type=code&scope=snsapi_login&state=a4016624a4d80350483d6be39573b15e#wec.原创 2021-08-17 17:26:56 · 569 阅读 · 0 评论 -
uniapp在app端自定义地图样式
<map layer-style="c29e758aea2d2a1873049aeb81dab986"> </map>中间这行字符串是在高德地图上获取自定义地图的样式id原创 2021-08-17 13:35:54 · 1576 阅读 · 0 评论 -
解决uniapp得scoll-view下拉刷新不复位得问题
html代码<scroll-view scroll-y="true" style="height: 100%;" @scrolltolower="getList" scroll-anchoring @refresherrefresh="refresherrefresh" @refresherrestore="refresherrestore" @refresherabort="refresherabort" :refreshe原创 2021-08-09 14:17:09 · 2690 阅读 · 0 评论 -
uniapp实现页面滑动
uniapp实现页面滑动整体代码<template> <view> <scoll :list="scoll" @getIndex="getIndex1" :activeIndex.sync="activeIndex" class="padding" :index="index" ref="scoll" /> <swiper :style="{height:comHeight-swiperheight+'px'}" :current="active原创 2021-07-20 16:03:17 · 2736 阅读 · 0 评论 -
uniapp实现小红书登陆页面背景图无限滚动效果
<template> <view class="uni-navbar"> <view class="img"> <image @load="loads" :style="'height:'+height+'rpx;top:'+top+'rpx'" src="../../../static/login/1.png" mode="" /> <image :style="'height:'+height+'rpx;top:'+t原创 2021-06-17 14:14:02 · 1742 阅读 · 2 评论
分享