From 5f804115139dfdeeb2ce950a0f584b30f94b285c Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期六, 23 九月 2023 17:57:27 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai

---
 cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js |  149 ++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 140 insertions(+), 9 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js
index 152f2e9..68ddf22 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js
@@ -5,7 +5,8 @@
 var TSiteInfo = {
     layerIndex: -1,
     validateFields: {
-    }
+    },
+    goodsPicArray:[],
 };
 
 /**
@@ -193,7 +194,17 @@
         insuranceEndTime:"",
         name:"",
         insuranceImg:"",
-        managementPlan:""
+        managementPlan:"",
+        operatorId:"",
+        typeName:"",
+        nextName:"",
+        ishalf:"",
+        cashPriceOne:"",
+        playPaiCoinOne:"",
+        halfName:"",
+        introduce:"",
+        imgs:"",
+        ids:""
     };
     data.province            = $("#pCode").val()
     data.id            = $("#id").val()
@@ -214,18 +225,113 @@
     var eh =data.appointmentEndTime.split(':')[0];
     var em =data.appointmentEndTime.split(':')[1];
 
-    if($("#pCode").val()==''){
-        Feng.info("请选择省")
+
+
+
+    var SelectValue="";
+    var getSelectValueMenbers = $("input[name='pt']:checked").each(function(j) {
+        if (j >= 0) {
+            SelectValue += $(this).val()
+        }
+    });
+    if(SelectValue==''){
+        let yys = $("#yys").val()
+        if(yys==""){
+            Feng.info("请选择运营商")
+            return;
+        }
+        SelectValue= yys
+    }
+    data.operatorId= SelectValue;
+
+
+
+    let num24 = $('input[name="name1"]');
+    var nextName="";
+    for (let i = 0; i < num24.length; i++) {
+        if($(num24[i]).val()==''){
+            Feng.info("请填写场地名称")
+            return;
+        }
+        if(i==num24.length-1){
+            nextName += $(num24[i]).val()
+        }else {
+            nextName += $(num24[i]).val()+","
+        }
+    }
+    data.nextName= nextName;
+
+
+    var ishalf= $("input[name='ishalf']:checked").val();
+    data.ishalf= ishalf;
+    var halfName="";
+    if(ishalf==1){
+        let cashPriceOne = $("#cashPriceOne").val()
+        if(cashPriceOne=='' ){
+            Feng.info("请填写现金价格")
+            return;
+        }
+        data.cashPriceOne= cashPriceOne;
+
+        let playPaiCoinOne = $("#playPaiCoinOne").val()
+        if(playPaiCoinOne=='' ){
+            Feng.info("请填写玩湃币价格")
+            return;
+        }
+
+        data.playPaiCoinOne= playPaiCoinOne;
+        let num2 = $('input[name="name2"]');
+        for (let i = 0; i < num2.length; i++) {
+            if($(num2[i]).val()==''){
+                Feng.info("请填写半场名称")
+                return;
+            }
+            if(i==num2.length-1){
+                halfName += $(num2[i]).val()
+            }else {
+                halfName += $(num2[i]).val()+","
+            }
+        }
+    }
+
+
+    data.halfName= halfName;
+    data.ids= $("#ids").val();
+    let introduce  = TSiteInfo.editor.getContent();
+
+
+    console.log(introduce)
+    if(introduce==""){
+        Feng.info("请输入公告内容")
         return;
     }
-    if($("#cCode").val()==''){
-        Feng.info("请选择市")
+    data.introduce= introduce;
+
+
+    var goodImgs = TSiteInfo.goodsPicArray;
+
+    if(goodImgs.length==0){
+        Feng.info("请上传实景图")
         return;
     }
-    if($("#account").val()=='' ){
-        Feng.info("请选择账号")
-        return;
+    var imgOne ="";
+    console.log(goodImgs)
+    console.log(goodImgs.length)
+    for (let i = 0; i <goodImgs.length; i++) {
+        console.log(goodImgs[i].response,11)
+        if(i==goodImgs.length-1){
+            imgOne += (goodImgs[i].response)
+        }else {
+            imgOne+=(goodImgs[i].response+",")
+        }
+
     }
+    console.log(imgOne)
+    data.imgs = imgOne
+
+
+
+
     if($("#store").val()=='' ){
         Feng.info("请选择门店")
         return;
@@ -351,6 +457,30 @@
     });
 
 };
+
+TSiteInfo.oneChangeYys = function(e){
+    var oneId=$(e).val();
+    var SelectValue="";
+    var getSelectValueMenbers = $("input[name='pt']:checked").each(function(j) {
+        if (j >= 0) {
+            SelectValue += $(this).val()
+        }
+    });
+    if(SelectValue=='0' ){
+        oneId=0
+    }
+    var ajax = new $ax(Feng.ctxPath + "/tSite/getChangeOne", function(data){
+        if(data!=null){
+            var content='<option value="">选择门店</option>';
+            $.each(data, function(k,v) {
+                content += "<option value='"+v.id+"'>"+v.name+"</option>";
+            });
+            $("#store").empty().append(content);
+        }
+    });
+    ajax.set("oneId",oneId);
+    ajax.start();
+};
 /**
  * 关闭此对话框
  */
@@ -361,6 +491,7 @@
     $('#upFile').click();
 }
 $(function () {
+    TSiteInfo.editor = UE.getEditor('editor');
     // 限制分钟选项为 0 和 30
     var timeInputs = document.querySelectorAll('input[type="time"]');
     timeInputs.forEach(function(input) {

--
Gitblit v1.7.1