
uniapp
成长中的向日葵
不要停留在原地,走起来去找意义。
展开
-
解决uniapp uni-datetime-picker无法赋值问题
uniapp 时间组件无法赋值问题原创 2023-01-31 14:17:38 · 3167 阅读 · 0 评论 -
uniapp项目连接自己本地后台运行到浏览器和手机的ip地址问题
uniapp开发app 连接自己本地 ip地址问题 报错Unhandled promise rejectionTypeError: Invalid attempt to destructure non-iterable instance.In order to be iterable, non-array objects must have a [Symbol.iterator]() method.原创 2022-12-30 10:05:40 · 2184 阅读 · 0 评论 -
hbuilderx升级3.6.5版本后运行到手机端同步资源失败,未得到同步资源的授权,请停止运行后重新运行,并注意手机上的授权提示
hbuilderx升级后同步资源失败,未得到同步资源的授权,请停止运行后重新运行,并注意手机上的授权提示原创 2022-12-07 11:31:40 · 4348 阅读 · 4 评论 -
Unknown custom element: <uni-data-checkbox> - did you register the component correctly? For recursi
Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.原创 2022-12-06 16:32:24 · 1764 阅读 · 3 评论 -
插件【uni_modules】处理外部应用请求未能完成
插件【uni_modules】处理外部应用请求未能完成。原创 2022-12-06 15:14:35 · 767 阅读 · 0 评论 -
uniapp项目webpack-dev-server本地代理解决跨域+uni.request请求封装
解决跨域问题原创 2022-11-18 09:06:57 · 1816 阅读 · 0 评论 -
uniapp 浏览器解决跨域问题
uniapp项目运行到浏览器报错:Access to XMLHttpRequest at 'http://xxx' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.原创 2022-11-16 17:12:17 · 3818 阅读 · 1 评论 -
微信小程序navigateTo:fail page `/pages/XXXX/XXXX` is not found 解决方案
navigateTo:fail page `/pages/XXXX/XXXX` is not found 解决方案转载 2022-11-10 16:22:31 · 3254 阅读 · 0 评论 -
uniapp 解决tabBar增加图标问题
uniapp开发app tabbar 首页字体和图标问题原创 2022-11-09 16:32:17 · 2719 阅读 · 0 评论 -
uniapp开发App如何引入阿里巴巴矢量库图标
uniapp开发App如何引入阿里巴巴矢量库图标原创 2022-11-08 21:26:14 · 3345 阅读 · 1 评论 -
uniapp用checkbox实现整个页面单选功能
1.uniapp 使用checkbox实现整个页面单选功能,整个页面只能选择一个选项,还是很有趣的,记录一下。<view v-for="(item,checkIndex) in checkBusinessList" :key="checkIndex"> <view class="title">{{checkIndex+1}}.{{item.FixedItemDic.Text}}</view> <view class="uni-list">原创 2021-08-10 14:38:38 · 5799 阅读 · 3 评论 -
[踩坑记录] :class的使用及数组样式不生效问题
[踩坑记录] :class的使用今天遇到了一个大坑,花了我好长时间用v-if 不用加 Number()而用:class时要加上 Number()例:数组长度判断的时候应该这么写Number(checkItem.CheckFiles.length)!==0)示例::class="checkItem.CheckResult==3? 'qidIndexGray' :(checkItem.ApplicateDescription==''&&Number(checkItem.Chec原创 2021-11-29 16:23:55 · 822 阅读 · 0 评论 -
小程序自带的加载效果
小程序自带的加载效果uni.showLoading({ title: '加载中', mask: true })加载取消的方法uni.hideLoading()原创 2022-04-12 16:32:56 · 983 阅读 · 0 评论 -
小程序的按钮组功能
按钮组代码:<view style="z-index: 10;border: 1rpx solid #157DFE;border-radius: 55rpx;" class=" uni-flex-between-center"> <view class="supervise-container" v-for="(list,index) in superviseconfigEntities" :style="(index==0?'border-top-left-radius:.原创 2022-04-02 15:20:01 · 414 阅读 · 0 评论 -
平台端按钮组小样式
<view class="time-dimension"> <view class="left" :class="{ select: timeDimension == 0 }" @click="timeDimensionClick(0)">全部</view> <view class="center" :class="{ select: timeDimension == 1 }" @click="timeDimension.原创 2022-03-30 15:47:11 · 664 阅读 · 0 评论 -
uni.navigateTo 携带参数为图片对象
uni.navigateTo 传递参数为图片对象this.MerchanSign是个图片对象//跳转时写法uni.navigateTo({ url: `/pagesBtnDetail/checkPointInfoDetail/checkPointInfoDetail?PointCheckCategoryId=${res.data}&MerchanSign=${encodeURIComponent(JSON.stringify(this.MerchanSign))}`原创 2021-11-28 19:48:03 · 491 阅读 · 0 评论 -
踩坑记录:uni.navigateTo携带参数(网址)跳转页面
uni.navigateTo携带参数(网址)跳转页面问题:传递参数(http://lt.sapxw.com/H5ErWeiMa/indexH5.aspx?id=290949&ckdh=637695418429358201)给intoInventoryRelativeDetail.vue页面,但是值实际传递了(http://lt.sapxw.com/H5ErWeiMa/indexH5.aspx)并报这个警告[sitemap 索引情况提示] 根据 sitemap 的默认规则,当前页面 [pagesB原创 2021-10-13 19:30:00 · 957 阅读 · 0 评论 -
uniapp点击图片放大功能
uni.previewImage(OBJECT)的使用单张图片放大<view @click="previewImage(item.SourceUrl)"> <image :style="'background: url('+baseImgUrl+'/empty/load-img-fail.png'+') no-repeat center center; background-size: cover;'" :src="uplpoadImgUrl+ite原创 2021-08-19 12:11:13 · 3022 阅读 · 0 评论