zhs %!s(int64=3) %!d(string=hai) anos
pai
achega
53fa7831b1

+ 2 - 2
src/main/java/com/supplier/controller/SupplierReleaseController.java

@@ -155,9 +155,9 @@ public class SupplierReleaseController {
     public Map<String, Object> updateSupplierRelease(@RequestBody SupplierRelease supplierRelease, HttpServletRequest request){
         Map<String, Object> map = new HashMap<>();
         try{
-            //判断状态是否能修改
+            //判断状态是否能修改 已付费后不能修改
             String orderType = supplierReleaseService.getSupplierOrderType(supplierRelease);
-            if(orderType.equals("1")){
+            if(orderType.equals("2")){
                 map.put("msg", "500");
                 map.put("errMsg", "该报价单已被购买,请勿修改");
                 return map;

+ 1 - 2
src/main/resources/static/js/Login/index.js

@@ -72,8 +72,7 @@ layui.use(["layer", "form"], function(){
         }
         //登录
         $.ajax({
-            // url: "https://www.tuyatrip.com/api/supplier/updateUser",
-            url: "http://localhost:9600/supplier/updateUser",
+            url: "https://www.tuyatrip.com/api/supplier/updateUser",
             type: "get",
             data: {
                 "phone": tel,

+ 5 - 0
src/main/resources/static/js/demandForSingle/offer/function.js

@@ -702,6 +702,11 @@ addDate = function(obj){
     addUrl(uuid);
 }
 delteDate = function (obj) {
+    let num = $(obj).parent().parent().find(".date_content_div").length;
+    if(num == 1){
+        layer.msg("至少保留一个时间段", {icon: 2});
+        return false;
+    }
     $(obj).parent().remove();
 }
 //取值

+ 6 - 1
src/main/resources/static/js/release/index/function.js

@@ -440,6 +440,7 @@ function elementDrawing(data){
     var uuid = guid();
     //时间渲染
     var day = null;
+    console.log(data)
     $.each(data.data[0].releaseDay, (index, item) => {
         if(day != item.dayNum){
             //左侧时间轴
@@ -611,7 +612,6 @@ function elementDrawing(data){
         var imgUrlArray = elem.imgUrl == null ? new Array() : elem.imgUrl.split(",");
         var videoUrlArray = elem.videoUrl == null ? new Array() : elem.videoUrl.split(",");
         for(var i = 0; i < imgUrlArray.length; i++){
-            console.log()
             if(imgUrlArray[i] != ""){
                 $("."+ elem.uuid + "-" + elem.typeVal +"-"+ elem.id +" .editor-assets-content").append("<div class=\"editor-assets-content-info\" data-v-400c2eb9=\"\">\n" +
                     "                                    <div class=\"el-image\" data-v-400c2eb9=\"\"><img style='width: 100px;height: 100px;' onclick='clickImg(this)' alt=\"upload-assets\"\n" +
@@ -699,6 +699,11 @@ addDate = function(obj){
     addUrl(uuid);
 }
 delteDate = function (obj) {
+    let num = $(obj).parent().parent().find(".date_content_div").length;
+    if(num == 1){
+        layer.msg("至少保留一个时间段", {icon: 2});
+        return false;
+    }
     $(obj).parent().remove();
 }
 //取值