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/5601.vue | 33 ++++++++++++++++++---------------
1 files changed, 18 insertions(+), 15 deletions(-)
diff --git a/pages/modal/5601.vue b/pages/modal/5601.vue
index 31dc2b6..23d4884 100644
--- a/pages/modal/5601.vue
+++ b/pages/modal/5601.vue
@@ -58,7 +58,8 @@
'btn-one':pageData.Button.length == 1,
'btn-left':(btnIndex < pageData.Button.length - 1),
'btn-right': btnIndex > 0 && btnIndex == pageData.Button.length - 1 ,
- 'width-50':(pageData.Button.length == 2),'width-32':(pageData.Button.length == 3),'width-30':(pageData.DropDownButton.length> 0)}" @click="onBtnClick(btn, pageData)">
+ 'width-50':(pageData.Button.length == 2),'width-32':(pageData.Button.length == 3),
+ 'width-30':(pageData.DropDownButton.length> 0)}" @click="onBtnClick(btn, pageData)">
<text v-if="btn.Style == 'img' || btn.Style == 'img_text'" class="img"></text>
{{btn.ShowName ||""}}
</button>
@@ -190,10 +191,12 @@
};
},
},
- onLoad(options) {
+ onReady() {
uni.setNavigationBarTitle({
- title: options.titlename
+ title: this.title
}); //璁剧疆椤堕儴鏍囬
+ },
+ onLoad(options) {
this.title = options.titlename;
this.param = JSON.parse(options.param);
//鑾峰彇涓绘暟鎹被ID
@@ -429,24 +432,24 @@
.DefList.length > 0
) { //鍒ゆ柇鏄惁娓呯┖椤电鍐呭,姝e湪鐮佺洏鏄惁鏈夋暟鎹� uni.showModal({
- title: this
+ title: $this
.translateSys(
'tip'),
- content: this
+ content: $this
.translate(
"are_you_sure_clear_first"
) +
- this
+ $this
.translateSys(
"quotation_mark_left"
) +
value
.page_name +
- this
+ $this
.translateSys(
"quotation_mark_right"
) +
- this
+ $this
.translate(
"are_you_sure_clear_last"
),
@@ -2539,14 +2542,14 @@
// return;
runCustomEvent(dataInfo).then(data => {
hideLoading()
- $this.onFormEventResult(data, button_callback, item)
+ $this.onFormEventResult(data, button_callback, item,req)
}).catch(ex => {
hideLoading()
showError(ex, this.translateSys("error") + "5.1")
});
},
- async onFormEventResult(data, callbackEventId, item) {
+ async onFormEventResult(data, callbackEventId, item,req) {
try {
const $this = this
var enviroment = {
@@ -2626,24 +2629,24 @@
.DefList.length > 0
) { //鍒ゆ柇鏄惁娓呯┖椤电鍐呭,姝e湪鐮佺洏鏄惁鏈夋暟鎹� uni.showModal({
- title: this
+ title: $this
.translateSys(
'tip'),
- content: this
+ content: $this
.translate(
"are_you_sure_clear_first"
) +
- this
+ $this
.translateSys(
"quotation_mark_left"
) +
value
.page_name +
- this
+ $this
.translateSys(
"quotation_mark_right"
) +
- this
+ $this
.translate(
"are_you_sure_clear_last"
),
--
Gitblit v1.9.1