会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
DL-CODER
首页
联系
订阅
管理
上一页
1
2
3
4
5
6
···
14
下一页
2024年9月3日
uniapp 微信小程序获取头像,上传服务器
摘要: html 头像UI <button class="user-avatar flex-center" open-type="chooseAvatar" @chooseavatar="onChooseAvatar"> <image class="img" :src="showAvatat()" mode
阅读全文
posted @ 2024-09-03 11:32 DL·Coder
阅读(723)
评论(0)
推荐(0)
2024年8月15日
vue3 父传子类型校验写法
摘要: 写法一: import type { myOrderItem } from '@/API/pages_mine/myOrder/types'; const props = defineProps({ item: { type: Object as PropType<myOrderItem>, def
阅读全文
posted @ 2024-08-15 17:47 DL·Coder
阅读(17)
评论(0)
推荐(0)
2024年7月25日
vue3 ts 子组件暴露方法,父组件调用(父调用子的方法)
摘要: 子组件 // 组件名称:discountModel // 格式化数据 const fetchData = async () => { const { code, result } = await remind(); if(code 200) { data.value = result emit('u
阅读全文
posted @ 2024-07-25 10:40 DL·Coder
阅读(210)
评论(0)
推荐(0)
2024年7月18日
uni-app 控制小程序版本更新;小程序自动更新版本;
摘要: 更新方法,onLaunch或者onShow(推荐写在onShow内)调用就可以 const updateManagerFn = () => { const updateManager = uni.getUpdateManager(); updateManager.onCheckForUpdate(f
阅读全文
posted @ 2024-07-18 17:29 DL·Coder
阅读(279)
评论(0)
推荐(0)
2024年7月15日
uniapp 微信小程序阻止返回上一页
摘要: 自定义样式使用第二种方式 第一种:wx.enableAlertBeforeUnload 在开发者工具中预览效果 微信小程序官网:点我 onShow(() => { wx.enableAlertBeforeUnload({ message: "返回上页时弹出对话框", success: functio
阅读全文
posted @ 2024-07-15 11:03 DL·Coder
阅读(2196)
评论(0)
推荐(0)
2024年7月12日
vue3 子组件更新父组件值
摘要: Vue3 子组件修改父组件传过来的值 // 父组件 <demo v-model:num="num" v-model:arr="arr"></demo> // 子组件 const prop=defineProps({ num: { type: Number, default:0 } }) const
阅读全文
posted @ 2024-07-12 15:48 DL·Coder
阅读(90)
评论(0)
推荐(0)
2024年7月8日
vue element 和 antd 上传到七牛云
摘要: 使用网站 七牛云token生成:点我 七牛云上传接口错误码:点我 七牛云存储区域上传地址:点我 七牛云在线生成token 一般是后端生成,使用接口获取(放在后端比较安全) // 获取七牛云token export async function getQiniuToken() { const url
阅读全文
posted @ 2024-07-08 14:40 DL·Coder
阅读(162)
评论(0)
推荐(0)
2024年7月2日
vue2、vue3 纯SCSS 实现环形进度条
摘要: vue3 纯SCSS 实现环形进度条 <template> <view class="flex align-center diygw-col-24 justify-center"> <view class="progress-circle" :class="`progress-${innerPerc
阅读全文
posted @ 2024-07-02 10:22 DL·Coder
阅读(545)
评论(0)
推荐(0)
2024年6月21日
vue3 详细配置 pinia,以及持久化处理
摘要: 安装pinia pnpm install pinia pnpm install pinia-plugin-persistedstate 使用pinia 根目录下创建store文件夹,新家moudules文件夹和index.ts文件,如图: index.ts 文件 // store/index.ts
阅读全文
posted @ 2024-06-21 10:33 DL·Coder
阅读(244)
评论(0)
推荐(0)
2024年4月7日
uniapp 微信小程序 vue2 和 vue3 微信小程序分享到微信和微信朋友圈
摘要: 需要先设置按钮为分享按钮 <button class="to-invite bg" open-type="share" @click="toShareFn"> 分享 </button> vue2 分享 initMenu () { uni.showShareMenu({ withShareTicket
阅读全文
posted @ 2024-04-07 09:50 DL·Coder
阅读(1917)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
14
下一页
公告