From 07925905f1a596e20e980de6d42db217abb753b0 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 12 十二月 2025 18:06:11 +0800
Subject: [PATCH] plugin
---
pages/modal/3202.vue | 31 +++++++++++++++++++++----------
1 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/pages/modal/3202.vue b/pages/modal/3202.vue
index 6f3d68e..c12cac2 100644
--- a/pages/modal/3202.vue
+++ b/pages/modal/3202.vue
@@ -117,13 +117,16 @@
},
},
+ onReady() {
+ uni.setNavigationBarTitle({
+ title: this.title
+ }); //璁剧疆椤堕儴鏍囬
+ },
async onLoad(options) {
try {
showLoading("loading...")
// console.log(options);
- uni.setNavigationBarTitle({
- title: options.titlename
- }); //璁剧疆椤堕儴鏍囬
+
this.title = options.titlename;
this.param = JSON.parse(options.param);
const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined
@@ -227,7 +230,7 @@
};
runCustomEvent(dataInfo).then(result => {
console.log(result);
-
+
if (result.ret != 0 && result.ret != 1) {
let cls_name = result.event_info?.cls_name
let event_name = result.event_info?.event_name
@@ -594,7 +597,15 @@
this.initial()
},
//鐐瑰嚮鏄剧ず娴忚瀵硅薄鏄剧ず椤甸潰
- async onViewPageClick(style) {
+ onViewPageClick(style) {
+ this.handleButtonClick((done) => {
+ this.viewPageClick(style);
+ setTimeout(() => {
+ done(); // 閲嶇疆鐘舵�
+ }, 1000);
+ });
+ },
+ async viewPageClick(style) {
if (!this.clickItemEvent.id) {
return;
}
@@ -639,7 +650,7 @@
data_json,
}).then(result => {
// console.log(result);
- hideLoading()
+ hideLoading()
if (result.ret != 0 && result.ret != 1) {
let cls_name = result.event_info?.cls_name
let event_name = result.event_info?.event_name
@@ -705,7 +716,7 @@
}).catch(ex => {
// console.log(ex);
- hideLoading()
+ hideLoading()
showError(ex, this.translateSys("error") + "8.1")
});
},
@@ -759,7 +770,7 @@
//鎵ц瑙﹀彂浜嬩欢
async triggerEvent(btn, style, enviroment) {
const $this = this
-showLoading("loading...")
+ showLoading("loading...")
var obj_attr = this.head_styledef.form.model;
// console.log(obj_attr);
var input_param = Base64.encode(
@@ -797,7 +808,7 @@
input_param,
data_json,
}).then(result => {
- hideLoading()
+ hideLoading()
// console.log(result);
if (result.ret != 0 && result.ret != 1) {
let cls_name = result.event_info?.cls_name
@@ -869,7 +880,7 @@
}).catch(ex => {
// console.log(ex);
- hideLoading()
+ hideLoading()
showError(ex, this.translateSys("error") + "8.1")
});
},
--
Gitblit v1.9.1