uniapp+vue3 优惠券样式

摘要: 效果如图: template部分: <view class="item"> <view class="box"> <view class="content"> <view class="head">优惠券</view> <view class="content-box1"> <view class= 阅读全文
posted @ 2023-12-05 09:07 反应弧有点长 阅读(200) 评论(0) 推荐(0) 编辑

点击popup遮罩层关闭也能监测到popup状态

摘要: 在做购物袋按钮时候发现点击popup的遮罩层关闭后,无法监测到popup的状态,导致点击按钮无法再次正常打开popup。 问题代码如下: <script setup lang="ts"> import { ref } from 'vue' const popup = ref<{ open: (typ 阅读全文
posted @ 2023-12-04 16:25 反应弧有点长 阅读(108) 评论(0) 推荐(0) 编辑

手写类似于BetterScroll样式的左右联动菜单 uni-app+vue3+ts (使用了script setup语法糖)

摘要: 注意:在模拟器用鼠标滚动是不会切换光标的,因为使用的是触摸滑动。【自定义类型贴在最后了】 script 部分如下: import { onMounted } from 'vue' import type { orderDetail } from '@/types/category' import t 阅读全文
posted @ 2023-12-04 16:05 反应弧有点长 阅读(158) 评论(0) 推荐(0) 编辑

C# IFormFile转为FileStream格式

摘要: 用element-plus中el-upload组件上传文件至腾讯云中的cos对象存储服务器中,遇到的格式转换问题,解决方式如下: public async Task<FileStream> ConvertIFormFileToFileStream(IFormFile formFile) { if ( 阅读全文
posted @ 2023-09-11 15:24 反应弧有点长 阅读(709) 评论(0) 推荐(0) 编辑