Browse Source

优化重复提示文案

xiaohaizhao 1 year ago
parent
commit
5f79da633c
2 changed files with 10 additions and 6 deletions
  1. 5 3
      packageA/project/addAndEdit.js
  2. 5 3
      packageA/saleClue/change.js

+ 5 - 3
packageA/project/addAndEdit.js

@@ -249,7 +249,7 @@ Page({
         this.setData({
             form: this.data.form.filter(v => !remove.includes(v.label)).map(v => {
                 if (required.includes(v.label)) v.required = true;
-                if (v.valueName == 'projectname') v.interrupt = false;
+                // if (v.valueName == 'projectname') v.interrupt = false;
                 return v
             }),
             siteid: wx.getStorageSync('userMsg').siteid,
@@ -386,7 +386,8 @@ Page({
             let that = this;
             wx.showModal({
                 title: '提示',
-                content: `是否继续创建项目`,
+                content: `是否确定继续创建项目`,
+                confirmText: "创建",
                 complete: (res) => {
                     if (res.confirm) that.handleSubmit(true);
                 }
@@ -418,7 +419,8 @@ Page({
             if (this.data.siteid == 'HY') {
                 wx.showModal({
                     title: '提示',
-                    content: '该项目疑似重复,是否确认创建项目',
+                    content: `查询到${query.total}条疑似重复项目信息,是否确定继续创建项目`,
+                    confirmText: "创建",
                     complete: (res) => {
                         if (res.confirm) that.handleSubmit(true);
                     }

+ 5 - 3
packageA/saleClue/change.js

@@ -291,7 +291,7 @@ Page({
         this.setData({
             form: this.data.form.filter(v => !remove.includes(v.label)).map(v => {
                 if (required.includes(v.label)) v.required = true;
-                if (v.valueName == 'projectname') v.interrupt = false;
+                // if (v.valueName == 'projectname') v.interrupt = false;
                 return v
             }),
             siteid: wx.getStorageSync('userMsg').siteid,
@@ -356,7 +356,8 @@ Page({
             let that = this;
             wx.showModal({
                 title: '提示',
-                content: `是否继续创建项目`,
+                content: `是否确定继续创建项目`,
+                confirmText: "创建",
                 complete: (res) => {
                     if (res.confirm) that.handleSubmit(true);
                 }
@@ -388,7 +389,8 @@ Page({
             if (this.data.siteid == 'HY') {
                 wx.showModal({
                     title: '提示',
-                    content: '该项目疑似重复,是否确认创建项目',
+                    content: `查询到${query.total}条疑似重复项目信息,是否确定继续创建项目`,
+                    confirmText: "创建",
                     complete: (res) => {
                         if (res.confirm) that.handleSubmit(true);
                     }