遇到同样的问题,错误文件: [图片] uniapp打包后的文件: require('../../common/vendor.js');// 流程通用mixin on('flowAudit') import { flowDetail, auditAgree, auditReject, flowAudit, getFlowBase } from "@/api/api"; import { formatDate, previewFile, getImagePath, countNumber } from "@/utils"; const AnalysysAgent = uni.AnalysysAgent; const mixin = { data: function () { return { status: "loading", params: {}, baseFlow: {}, base: {}, info: {}, edit: false, auditStatus: "start", // start:准备开始 in:进行中 end:结束 }; }, methods: { dateFormat(dateTime, format = "yyyy-MM-dd") { if (dateTime) { return formatDate(dateTime, format); } return ""; }, numberSum(list) { return countNumber(list); }, formChange(key, value) { this.$set(this.form, key, value); }, formValueChange(key, event) { this.formChange(key, event.detail.value); }, bindTransfer() { // 转派 let { params } = this; uni.navigateTo({ url: `/packageB/pages/task/transfer/index?taskId=${params.taskId}` }); }, bindHideButton(audit = 'false') { this.params = { ...this.params, audit, } }, bindAgree() { // 同意 let { params } = this; uni.showLoading({ mask: true }); auditAgree(params.taskId) .then(() => { uni.hideLoading(); this.bindHideButton(); this.emitSubscribe("agree"); AnalysysAgent.track("ihr_flowAgree", this.base); uni.showModal({ title: "操作成功", content: "操作成功,返回上一页?", showCancel: false, success: () => { uni.navigateBack(); }, }); }) .catch((error) => { uni.hideLoading(); uni.showToast({ title: error.message || "服务异常", icon: "none" }); this.auditStatus = "end"; }); }, bindReject(remark) { // 拒绝 let { params } = this; uni.showLoading({ mask: true }); let para = { "status": "REJECT", "taskId": params.taskId, "approveRemark": remark } auditReject(para) .then(() => { uni.hideLoading(); this.bindHideButton(); this.emitSubscribe("reject"); AnalysysAgent.track("ihr_flowReject", this.base); uni.showModal({ title: "驳回成功", content: "驳回成功,返回上一页?", showCancel: false, success: () => { uni.navigateBack(); }, }); }) .catch((error) => { uni.hideLoading(); uni.showToast({ title: error.message || "服务异常", icon: "none" }); this.auditStatus = "end"; }); }, bindAudit(params) { //审核(有审核数据才用此接口) uni.showLoading({ mask: true }); flowAudit(params) .then(() => { uni.hideLoading(); this.bindHideButton(); this.emitSubscribe("agree"); AnalysysAgent.track("ihr_flowAudit", { base: this.base, params }); uni.showModal({ title: "操作成功", content: "操作成功,返回上一页?", showCancel: false, success: () => { uni.navigateBack(); }, }); }) .catch((error) => { uni.hideLoading(); uni.showToast({ title: error.message || "服务异常", icon: "none" }); this.auditStatus = "end"; }); }, onPreview(fileId, showMenu = true) { previewFile(getImagePath(fileId), { showMenu }); }, emitSubscribe(status) { uni.$emit("taskListUpdate", { status: status }); }, initPageData() { let { procInstId } = this.params; this.status = "loading"; getFlowBase(procInstId).then(result => { this.baseFlow = result || {}; if (result?.completeFlag != true && result?.approveFlag == true) { this.bindHideButton('true'); if (result?.runTimeTasks && result?.runTimeTasks.length) { let formKey = result?.runTimeTasks[0].formKey; if (formKey) { this.params = { ...this.params, formKey, } } } } else { this.bindHideButton(); } flowDetail(result?.businessKey) .then((data) => { if (data) { this.status = "success"; this.base = data; try { this.info = JSON.parse(data.flowEntity); if (process.env.NODE_ENV !== "production") { console.info(JSON.stringify(this.info)); } } catch (e) { uni.showToast({ title: "数据异常,JSON转换失败", icon: "none" }); } if (this.initPageFinish) { this.initPageFinish(this.base, this.info); } } else { this.status = "error"; uni.showModal({ title: '数据错误', content: '流程被删除或程序意外终止导致数据异常', }) } }) .catch((error) => { this.status = "error"; uni.showToast({ title: error.message || "获取流程详情失败", icon: "none" }); console.error("获取流程详情失败:", error); }); }) .catch((error) => { this.status = "error"; uni.showToast({ title: error.message || "获取流程实例失败", icon: "none" }); console.error("获取流程详情失败:", error); }); }, initSubscribe() { //订阅审核按钮点击 uni.$on("flowAudit", (data) => { const { taskId, type } = data; if (taskId == this.params.taskId) { if (this.auditStatus !== "in") { this.auditStatus = "in"; if (type == "reject") { uni.showModal({ title: "驳回原因", editable: true, placeholderText: '请输入驳回原因', confirmColor: '#dd524d', success: (res) => { if (res.confirm) { this.bindReject(res.content); } else { this.auditStatus = "end"; } }, }); } else if (type == "agree") { if (this.edit) { this.validation() .then((values) => { if (values) { const { dataJson, variables, attachments } = values; let param = { taskId, status: "AGREE", approveRemark: "同意", attachments: attachments, dataJson: JSON.stringify(dataJson || values), variables: variables, }; uni.showModal({ title: "提示", content: "同意通过该流程?", success: (res) => { if (res.confirm) { this.bindAudit(param); } else { this.auditStatus = "end"; } }, }); } else { uni.showModal({ title: "提示", content: "同意通过该流程?", success: (res) => { if (res.confirm) { this.bindAgree(); } else { this.auditStatus = "end"; } }, }); } }) .catch((error) => { console.error(error) this.$showToast({ title: error || "验证出错啦", icon: "none" }); this.auditStatus = "end"; }); } else { uni.showModal({ title: "提示", content: "同意通过该流程?", success: (res) => { if (res.confirm) { this.bindAgree(); } else { this.auditStatus = "end"; } }, }); } } else if (type == "transfer") { this.auditStatus = "end"; this.bindTransfer(); } } } }); }, }, onLoad(option) { this.params = option; this.initPageData(); this.initSubscribe(); }, onUnload() { uni.$off(["flowAudit"]); }, }; export default mixin;
上传代码报错:上传失败:网络请求错误 非法的文件。上午还好好的,下午提示更新版本,更下版本就这样了?[图片] 现在是最新版本1.06.2307260, 上午提过好几次都成功了,代码基本没动
2023-09-20付费实现
如何开发一个相亲的小程序?就是主页有介绍的文字点击进去就有二维码加微信可以实现长按添加的 我想开发这方面的那个大佬能帮忙一下
2023-02-18干掉一部分分包加载 [图片]
小程序突然上传总是失败,求助官方到底怎么回事?[图片] message:Error: 系统错误,错误码:80058,preloadRule [pages/index/index] source size 2100KB exceed max limit 2MB [20210601 09:49:33][wx27a0c3a9442e081b] appid: wx27a0c3a9442e081b ideVersion: 1.05.2105170 小程序上传提示超2M,实际没有超过,突然就不能上传了咋回事? [图片]
2022-12-13Promise.all
wx.uploadFile,能一次上传多张图片么?用wx.uploadFile,循环上传图片的话,可以一次同时上传几张图片嘛,因为同时还有其他参数要上传,循环的话就一起循环了
2022-11-22我也遇到同样的问题,根本不能达到60s
用 微信同声传译 做语音转文字,30秒以上就很容易返回-30004。如果30s内或者30s以上但是说话内容很少时,没有有问题。 但是30s以上说话内容稍微多点,就一定失败。明明看到onReconize一直有内容的,就是最后不进onStop,进了onError: -30004 因网络或者其他非正常状态导致的未查询识别结果。 是因为现在没有发布是体验版的关系?还是说除了对声音时长有显示,对文字数也有限制?还是说要申请配额才能正常使用?默认配额是多少? 调用start时的代码如下: touchStart: function (e) { // 语音开始识别 manager.start({ duration: 60000, lang: 'zh_CN' // 识别的语言,目前支持zh_CN en_US zh_HK sichuanhua }); },
2022-04-08我也遇到同样的问题
微信同声传译语音识别API不能完整识别1分钟内容您好, 我在试用同声传译中的api,发现语音输入1分钟的设置,希望能读够一分钟拿到结果。 实际情况是,api不能正常回调结束。总是会错误-30004报错。 我在做书摘的朗读功能,希望能让用户有机会读完一分钟。谢谢
2022-04-08[图片][图片]
通过wx.qy.chooseMessageFile选择会话视频,无法预览微信发送的视频通过wx.qy.chooseMessageFile选择会话视频,选择微信发送企业微信的视频,无法通过video组件预览,而且也无法getVideoInfo获得视频信息。企业微信通过聊天直接发送视频,是可以预览和获得视频信息的。 [图片]
2021-12-18[图片] 我只能做到这种了,可以左右滑动,但是宽度不能自适应,哎
scroll-view里面显示表格[图片] 这是一个用scroll-view里面用view设计的表格,希望第一列能垂直居中,研究了好多天,就是没结果
2020-01-03