diff --git a/jsFile/tools.js b/jsFile/tools.js index 9027185..51c61c8 100644 --- a/jsFile/tools.js +++ b/jsFile/tools.js @@ -651,10 +651,9 @@ const tools = { return arrEntities[t]; }) .replace(']*src=['"]([^'"]+)[^>]*>/gi, (match, p1) => { + return ` -1 ? p1 : 'https://7and5.cn' + p1}' />` + }) }, // 检查网络状态 networkStatus(){ @@ -864,6 +863,14 @@ const tools = { }) } }, + /** + * @description 自动返回上一页事件 + */ + automaticBack() { + setTimeout(()=>{ + uni.navigateBack({delta:1}) + },2000) + } } diff --git a/pagesA/workOrder/workOrderThree.vue b/pagesA/workOrder/workOrderThree.vue index 1b8d3f4..f75ce3d 100644 --- a/pagesA/workOrder/workOrderThree.vue +++ b/pagesA/workOrder/workOrderThree.vue @@ -272,6 +272,7 @@ this.allPrice = res.data.pay_price;//费用合计 } else { this.$toolAll.tools.showToast(res.msg); + this.$toolAll.tools.automaticBack(); } }) },