摘要: 错误信息: Building for production... ERROR Failed to compile with 25 errors 19:03:12 error js/app.d3f0cc17.js from TerserError: error:0308010C:digital env 阅读全文
posted @ 2024-06-05 19:18 幽暗天琴 阅读(6) 评论(0) 推荐(0) 编辑
摘要: option_str(str2,str1){ //如果字符串已存在则移除,不存在则添加 let tem_arr = data.split(","); let index_arr = tem_arr.indexOf(str); if (index_arr !== -1) { // 如果找到了,则删除它 阅读全文
posted @ 2024-03-29 18:48 幽暗天琴 阅读(166) 评论(0) 推荐(0) 编辑
摘要: formatDate(time) { const date = new Date(time*1000); const year = date.getFullYear(); const month = String(date.getMonth() + 1).padStart(2, '0'); // 月 阅读全文
posted @ 2024-03-12 14:58 幽暗天琴 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 一、效果:点击选项卡筛选符合的数据 二:实现方法: 1.index.html里面写上列表: <div class="panel-heading"> {:build_heading()} <ul class="nav nav-tabs" data-field="type"> <li class="ac 阅读全文
posted @ 2024-02-02 17:53 幽暗天琴 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 需要高德地图key,SHA1是app证书的SHA1 uniapp配置文件将高德key填入即可打包程序 阅读全文
posted @ 2024-01-30 15:22 幽暗天琴 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1.从地图选地点或者获取当前位置 getLocation(){ var _this = this; uni.chooseLocation({ success: (res) => { //地图选点 console.log('位置名称:' + res.name); console.log('详细地址:' 阅读全文
posted @ 2024-01-22 17:10 幽暗天琴 阅读(734) 评论(0) 推荐(0) 编辑
摘要: <template> <!-- ... 其他代码 ... --> <div class="w-full h-[250px] scroll_list text-[#fff] overflow-auto"> <div class="flex" v-for="(item, index) in state. 阅读全文
posted @ 2024-01-02 15:49 幽暗天琴 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 在UniApp小程序中,分享时的标题通常是在分享内容中指定的。您可以在调用分享API时设置标题,具体取决于您使用的平台。 对于微信小程序,您可以使用wx.shareAppMessage方法来分享内容。在分享的数据中,可以设置title字段来指定分享的标题。例如: javascript复制代码 wx. 阅读全文
posted @ 2023-12-27 16:44 幽暗天琴 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-12-21 15:57 幽暗天琴 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 在 UniApp 中返回上一个页面,你可以使用 uni.navigateBack() 方法来实现。 uni.navigateBack() 方法用于导航返回上一页,你可以传递一个可选的参数来指定返回的步数。如果不传递参数,则默认返回上一页。 下面是一个示例代码,演示如何在 UniApp 中返回上一个页 阅读全文
posted @ 2023-12-21 15:39 幽暗天琴 阅读(877) 评论(0) 推荐(0) 编辑