From 640ff18d2d7f4be02ddb7f8f75e899f05545eb98 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 05 二月 2024 11:56:52 +0800
Subject: [PATCH] 更新bug修改

---
 cloud-server-management/src/main/webapp/static/modular/system/advertisement/advertisement.js |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/advertisement/advertisement.js b/cloud-server-management/src/main/webapp/static/modular/system/advertisement/advertisement.js
index e679a6d..fa35e15 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/advertisement/advertisement.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/advertisement/advertisement.js
@@ -317,17 +317,17 @@
             return;
         }
     }
-    if(name !='0') {
-        if ($("#roleType").val() == 1) {
-            if ($("#type").val() == '') {
+    console.log("====pagepagepage==============="+$("#page").val())
+    if(name !='0'){
+            if ($("#type").val() == ''&&$("#page").val()!=2&&$("#page").val()!=25&&$("#page").val()!=27&&$("#page").val()!=37&&$("#page").val()!=28) {
                 Feng.info("请选择跳转类型")
                 return;
             }
-        }
+
     }
     if(name !='0') {
         if ($("#roleType").val() == 1) {
-            if ($('#type option:selected').text() == "详情") {
+            if ($('#type option:selected').text() == "详情"&&$('#type option:selected').text() == "指定商品"&&$('#type option:selected').text() == "指定折扣") {
                 if ($("#pageId").val() == '') {
                     Feng.info("请输入跳转ID")
                     return;
@@ -413,7 +413,7 @@
     }
     if(name !='0') {
         if ($("#roleType").val() == 1) {
-            if ($("#type").val() == '') {
+            if ($("#type").val() == ''&&$("#page").val()!=2&&$("#page").val()!=25&&$("#page").val()!=27&&$("#page").val()!=37&&$("#page").val()!=28) {
                 Feng.info("请选择跳转类型")
                 return;
             }
@@ -421,7 +421,7 @@
     }
     if(name !='0') {
         if ($("#roleType").val() == 1) {
-            if ($('#type option:selected').text() == "详情") {
+            if ($('#type option:selected').text() == "详情"&&$('#type option:selected').text() == "指定商品"&&$('#type option:selected').text() == "指定折扣") {
                 if ($("#pageId").val() == '') {
                     Feng.info("请输入跳转ID")
                     return;

--
Gitblit v1.7.1