- 博客(26)
- 收藏
- 关注
原创 【bug】uniapp 微信小程序
TypeError: Property value expected type of string but got undefined
2023-03-20 13:54:05
259
原创 【bug】uniapp 微信小程序跳转携带参数路径不完整
https://服务器地址?url=https://服务器地址完整图片路径。页面跳转携带参数goods,数据格式如下。
2023-02-01 16:08:29
441
原创 【bug】uniapp 小程序 input输入框不显示
报错信息:Do not nest other components in the text component, as there may be display differences on different platforms.原因:text中不能嵌套组件,input放置在text中导致小程序中不能正常显示(网页端调试正常)
2022-10-14 11:47:03
5628
原创 html 引入iconfont图标,添加data属性等
iconfont-国内功能很强大且图标内容很丰富的矢量图标库,提供矢量图标下载、在线存储、格式转换等功能。阿里巴巴体验团队倾力打造,设计和前端开发的便捷工具。iconfont-阿里巴巴矢量图标库。进入阿里巴巴图标库,添加所需图标。css文件,引入到项目中后使用。下载到本地,完成后解压。...
2022-08-26 10:57:38
768
原创 微信小程序 图片显示不完全
<image :src="pic" mode="widthFix"></image>https://developers.weixin.qq.com/miniprogram/dev/component/image.htmlhttps://developers.weixin.qq.com/miniprogram/dev/component/image.html
2022-05-10 13:49:47
1976
原创 内容过长显示省略号,点击展开收起
<view v-if="video.comment.length>20" @click="lookAll(video)"> <view v-if="copenList.findIndex(it=>it.id==video.id)==-1" class="u-flex"> <view class="comment_not_all">评论:{{video.comment}}</view> <view style="color: #00.
2022-05-10 13:38:40
301
原创 UNIAPP 运行到微信小程序主包过大
1. 勾选“运行时是否压缩代码”2.分包"subPackages": [ { "root": "分包目录名称(根目录下)", "pages": [{ "path": "分包页面文件", "style": { "navigationBarTitleText": "标题", "navigationBarBackgroundColor": "#0084bf", "navigationBarTextStyle": "white", ..
2022-03-11 11:49:40
3756
原创 uniapp 跳转到应用信息面板,设置权限
App权限判断和提示 - DCloud 插件市场 App平台https://ext.dcloud.net.cn/plugin?id=594
2022-02-23 10:24:13
1444
原创 跳转页面选择客户
新增提醒页面:点击关联客户跳转到客户列表页面onLoad(e) { this.type=e.type if(e.type!=='tasklist'){ this.name = e.name this.id = e.id } uni.$on('txKehuBindFun', this.txKehuBindFun) this.selectCrmUserid()},onBackPress() { uni.$off('txKehuBindFun', this.txKehuBindF..
2022-02-07 16:40:18
638
原创 uni.navigateBack直接返回到首页
项目场景:新增记录时需选择关联客户,点击关联客户跳转到客户列表,点击选择客户后返回至新增页面(保留数据)问题描述:点击客户后直接返回到首页了,但数据可以获取到{name: '18352731182', id: 440}原因分析:从其他页面进入客户列表页面再返回也会直接跳转到首页首页查错发现客户列表页面,生命周期函数onBackPress(监听页面返回),返回时直接返回至主页onBackPress() { uni.switchTab({ url: '../../pag
2022-01-22 09:40:06
1933
原创 客源佳 封装返回方法
mian.js中import Vue from 'vue'import App from './App'Vue.config.productionTip = falseApp.mpType = 'app'// 引入全局uViewimport uView from 'uview-ui';Vue.use(uView);import lib from "./static/lib.js"import store from '@/static/utils/store'Vue.proto.
2021-12-07 17:18:30
128
原创 客源佳 项目配置html2canvas
项目场景:将pushnewpro项目中的内容放到客源佳中问题描述:需要重新配置资源文件的路径,如图片、css文件、组件文件11:20:09.184 文件查找失败:'html2canvas' at fa_index\createposter.vue:14011:20:09.200 文件查找失败:'html2canvas' at fa_index\gerateposter.vue:31在原项目中查找html2canvas,可以看到html2canvas的配置信息直接..
2021-12-03 11:44:13
1964
1
原创 uniapp 客户详情页面:添加/删除联系人
客户列表页面向详情页传值,父组件传递值给子组件//跳转到详情页并传递数值uni.navigateTo({ url:'./khDetail?id='+id+'&city='+cityname+'&pagerowsources=list'+'&isadd='+isa})//详情页onload获取值//注意:传递的值为string类型,转为boolaen类型if(e.isadd=='true'){ this.isadd=true}else if(e.isadd=.
2021-11-30 10:32:23
1940
原创 安装apk反编译
知乎链接https://www.zhihu.com/question/29370382/answer/590981557apktool反编译 xml 文件和 dex 文件,并可以将编译后的项目重新打包成 apk。https://ibotpeaches.github.io/Apktool/install/dex2jar将 classes.dex 转换为「.jar」文件)jd-gui查看「.jar」文件...
2021-11-25 17:40:53
422
原创 uniapp 原生插件,打包自定义基座
manifest.json:本地插件;云端插件本地插件:将插件放到nativeplugins目录中云端插件:const TestModule = uni.requireNativePlugin("TestModule")//本地插件const callTrans = uni.requireNativePlugin('ljc-CallTransfer');//云端插件,试用使用原生插件,需打包自定义基座若使用试用版插件,则使用公共测试证书,传统打包...
2021-11-24 14:50:40
1739
原创 uniapp 动态显示时间 时间戳转换等
动态显示时间:let timer = setInterval(() =>{this.settime()} ,1000)settime(){ //获取当前时间 this.nowtime=new Date().toLocaleString()},定时器https://uniapp.dcloud.io/api/timer?id=setinterval获取当前时间:console.log(new Date())//获取当前时间console.log(date.g...
2021-11-18 15:43:36
3765
原创 uniapp 表单获取数据 input、textarea、checkbox、radiobox
input获取数据:<input type="text" v-model="screenvalue[item.field]"@input="getvalue($event,item.field,item.operate)"placeholder="请输入" placeholder-style="color:#d5d5d6;font-size:26rpx"/> <textarea :value="summary?summary:cost" @input="_input"c
2021-11-18 13:09:27
2188
原创 uniapp 日期选择器、u-select选择器
select选择器html代码: //@click:点击显示选择器并传值 <view @click="pickerSelectFun(item.field,item.operate)" style="display: flex;justify-content: space-between;line-height: 33px;"> <view class="txt">{{item.ti.
2021-11-18 10:07:03
6786
原创 view用作按钮实现点击效果
方法一:hover-class <view class="screen-btns"> <view class="screen-btns-item screen-btns-cz" @click="reset" hover-class="screen-btns-cz-hover" hover-stay-time="30">取消</view> <view class="screen-btns-item screen-btns-tj" @c
2021-11-18 09:19:11
838
原创 uniapp 运行到微信开发者工具,数组数据不同步显示
console.log数组有数据,但appdata中数组为空选择器选择数据,h5,app显示正常,小程序不同步显示数据,log可显示数组数据,appdata为空。运行在微信开发者工具,显示数据以appdata为准:setData函数:针对微信小程序,更新数据 setData: function(obj) { let that = this; let keys = []; let val, data; Object.keys(obj)..
2021-11-18 09:00:57
2212
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人