Quellcode durchsuchen

修改供应商

zhs vor 3 Jahren
Ursprung
Commit
cbfa40b134

+ 12 - 0
src/main/java/com/supplier/model/SupplierRelease.java

@@ -55,4 +55,16 @@ public class SupplierRelease implements Serializable {
      * 游玩集合数据
      */
     private List<SupplierReleasePlay> releasePlay;
+    /**
+     * 封面图
+     */
+    private String titleImg;
+    /**
+     * 报价单名称
+     */
+    private String offerName;
+    /**
+     * 出行时间
+     */
+    private String travelTime;
 }

+ 9 - 2
src/main/resources/config/mapping/SupplierReleaseMapper.xml

@@ -4,8 +4,9 @@
 <mapper namespace="com.supplier.mapper.SupplierReleaseMapper">
     <!-- 新增路线 -->
     <insert id="addRelease" parameterType="SupplierRelease">
-        insert into bus_supplier_release(code,uuid,demand_uuid,jdrq,update_date,price_all)
-        values (#{code},#{uuid},#{demandUuid},format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),#{priceAll})
+        insert into bus_supplier_release(code,uuid,demand_uuid,jdrq,update_date,price_all,title_img,offer_name)
+        values (#{code},#{uuid},#{demandUuid},format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),#{priceAll},#{titleImg},#{offerName});
+        update bus_private_ordering set order_type = 1 where uuid = #{demandUuid};
     </insert>
     <!-- 新增每天内容 -->
     <insert id="addReleaseDay" parameterType="SupplierReleaseDay">
@@ -56,6 +57,12 @@
                 <if test="priceAll != null and priceAll != ''">
                     price_all = #{priceAll},
                 </if>
+                <if test="titleImg != null and titleImg != ''">
+                    title_img = #{titleImg},
+                </if>
+                <if test="offerName != null and offerName != ''">
+                    offer_name = #{offerName},
+                </if>
                 update_date = format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),
             </trim>
         </set>

+ 11 - 8
src/main/resources/config/mapping/TemplateMapper.xml

@@ -4,8 +4,8 @@
 <mapper namespace="com.supplier.mapper.TemplateMapper">
     <!-- 新增路线 -->
     <insert id="addRelease" parameterType="SupplierRelease">
-        insert into bus_supplier_release_template(code,uuid,jdrq,update_date,price_all)
-        values (#{code},#{uuid},format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),#{priceAll})
+        insert into bus_supplier_release_template(code,uuid,jdrq,update_date,price_all,title_img,offer_name,travel_time)
+        values (#{code},#{uuid},format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),#{priceAll},#{titleImg},#{offerName},#{travelTime})
     </insert>
     <!-- 新增每天内容 -->
     <insert id="addReleaseDay" parameterType="SupplierReleaseDay">
@@ -19,7 +19,7 @@
     </insert>
     <!-- 查询供应商路线 -->
     <select id="getSupplierRelease" resultType="SupplierRelease">
-        select * from bus_supplier_release
+        select * from bus_supplier_release_template
         <trim prefix="WHERE" prefixOverrides="and | or">
             <if test="uuid != null and uuid != ''">
                 and uuid = #{uuid}
@@ -27,27 +27,30 @@
             <if test="code != null and code != ''">
                 and code = #{code}
             </if>
+            <if test="offerName != null and offerName != ''">
+                and offer_name like CONCAT(CONCAT('%', #{offerName}), '%')
+            </if>
         </trim>
     </select>
     <!-- 查询供应商路线每天信息 -->
     <select id="getSupplierReleaseDay" resultType="SupplierReleaseDay">
-        select * from bus_supplier_release_day where uuid = #{uuid} order by day_num
+        select * from bus_supplier_release_day_template where uuid = #{uuid} order by day_num
     </select>
     <!-- 查询供应商路线游玩信息 -->
     <select id="getSupplierReleasePlay" resultType="SupplierReleasePlay">
-        select * from bus_supplier_release_play where uuid = #{uuid} order by day_num
+        select * from bus_supplier_release_play_template where uuid = #{uuid} order by day_num
     </select>
     <!-- 删除每日信息 -->
     <delete id="delSupplierReleaseDay" parameterType="SupplierRelease">
-        delete from bus_supplier_release_day where uuid = #{uuid}
+        delete from bus_supplier_release_day_template where uuid = #{uuid}
     </delete>
     <!-- 删除游玩信息 -->
     <delete id="delSupplierReleasePlay" parameterType="SupplierRelease">
-        delete from bus_supplier_release_play where uuid = #{uuid}
+        delete from bus_supplier_release_play_template where uuid = #{uuid}
     </delete>
     <!-- 修改路线信息 -->
     <update id="updateSupplierRelease" parameterType="SupplierRelease">
-        update bus_supplier_release
+        update bus_supplier_release_template
         <set>
             <trim suffixOverrides=",">
                 <if test="priceAll != null and priceAll != ''">

+ 240 - 9
src/main/resources/static/css/demandForSingle/offer.css

@@ -96,9 +96,9 @@
     margin-right: 20px;
     content: "";
     background-color: #fff;
-    border: 3px solid var(--dark-color);
+    border: 3px solid #000;
     border-radius: 50%;
-    transition: var(--transition-fast);
+    transition: 300ms;
 }
 .route[data-v-5161540f] {
     display: flex;
@@ -362,7 +362,7 @@
     font-weight: bold;
 }
 .play_content_div:last-child{
-    margin-bottom: 50px;
+    margin-bottom: 0;
 }
 .submit_div_button{
     float: left;
@@ -378,7 +378,7 @@
     border-radius: 30px;
     text-align: center;
     line-height: 60px;
-    font-size: 24px;
+    font-size: 20px;
     cursor: pointer;
 }
 .offer_button{
@@ -453,21 +453,21 @@
 .del_date .layui-icon{
     font-size: 28px;
 }
-.list_div::-webkit-scrollbar {/*滚动条整体样式*/
+::-webkit-scrollbar {/*滚动条整体样式*/
     width: 7px;     /*高宽分别对应横竖滚动条的尺寸*/
     height: 4px;
     scrollbar-arrow-color: #777777;
     margin-right: 5px;
 }
 
-.list_div::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
+::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
     border-radius: 5px;
     -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
     background: rgba(0,0,0,0.2);
     scrollbar-arrow-color: #C8CCD1;
 }
 
-.list_div::-webkit-scrollbar-track {/*滚动条里面轨道*/
+::-webkit-scrollbar-track {/*滚动条里面轨道*/
     -webkit-box-shadow: inset 0 0 5px #FFFFFF;
     border-radius: 0;
     background: rgba(0,0,0,0.1);
@@ -484,7 +484,7 @@
     line-height: 60px;
     text-align: center;
     color: #fff;
-    font-size: 24px;
+    font-size: 20px;
     cursor: pointer;
     z-index: 999999;
 }
@@ -554,10 +554,12 @@
 }
 .name_private_offer input{
     float: left;
-    width: 974px;
+    width: 954px;
     height: 48px;
     border: 1px solid #e3e4e5;
     border-radius: 10px;
+    font-size: 18px;
+    padding-left: 20px;
 }
 .name_private_offer .cover_img{
     margin-left: 28px;
@@ -565,4 +567,233 @@
 }
 .name_private_offer .cover_img span{
     font-weight: 500;
+}
+.other_select{
+    float: left;
+    width: calc(100% - 76px);
+    height: 160px;
+    padding-left: 76px;
+    display: flex;
+    align-items: center;
+}
+.other_select_font{
+    font-weight: 700;
+    font-size: 18px;
+    font-family: PingFang SC, PingFang SC-Bold;
+    margin-right: 27px;
+}
+.radio_div_select{
+    display: flex;
+    align-items: center;
+    cursor: pointer;
+    margin-right: 46px;
+}
+.radio_icon{
+    float: left;
+    width: 24px;
+    height: 24px;
+    border-radius: 50%;
+    border: 1px solid #ccc;
+    text-align: center;
+    line-height: 24px;
+}
+.radio_div_select span{
+    margin-left: 10px;
+    font-size: 20px;
+    font-family: PingFang SC, PingFang SC-Medium;
+    font-weight: 500;
+}
+.radio_icon_color{
+    background: #0095f3;
+    color: #fff;
+    border-color: #0095f3;
+}
+.van-pop-transparent {
+    --van-popup-background-color: transparent !important;
+}
+.van-popup--center {
+    top: 50%;
+    left: 50%;
+    transform: translate3d(-50%,-50%,0);
+}
+.van-popup {
+    position: fixed;
+    max-height: 100%;
+    overflow-y: auto;
+    background: var(--van-popup-background-color);
+    transition: transform .3s;
+    -webkit-overflow-scrolling: touch;
+    display: none;
+}
+.info[data-v-429d1032] {
+    position: relative;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    width: 1366px;
+    padding: 40px 56px;
+    background-color: #fff;
+    border-radius: 20px;
+}
+.info-title[data-v-429d1032] {
+    display: flex;
+    align-items: center;
+    width: 100%;
+}
+.info-title h3[data-v-429d1032] {
+    position: relative;
+    padding-left: 28px;
+    font-size: 30px;
+    line-height: 1;
+    color: #000;
+}
+.search[data-v-429d1032] {
+    display: flex;
+    align-items: center;
+    width: 280px;
+    height: 34px;
+    padding: 0 14px;
+    margin-left: 30px;
+    background-color: #eee;
+    border-radius: 20px;
+}
+.search svg[data-v-429d1032] {
+    width: 16px;
+    color: #999;
+}
+.search input[data-v-429d1032] {
+    flex: 1 1;
+    padding-left: 10px;
+    margin-left: 10px;
+    font-size: 14px;
+    line-height: 1;
+    background-color: transparent;
+    border: unset;
+    border-left: 1px solid #999;
+}
+.close-icon[data-v-429d1032] {
+    width: 36px;
+    margin-left: auto;
+    color: #666;
+    cursor: pointer;
+    transition: transform .3s;
+}
+.list[data-v-429d1032] {
+    flex: 1 1;
+    width: 100%;
+    min-height: 480px;
+    max-height: 46vh;
+    padding-right: 40px;
+    margin: 40px 0;
+    overflow: auto;
+}
+.order[data-v-429d1032] {
+    display: flex;
+    align-items: center;
+    width: 100%;
+    padding-bottom: 44px;
+    margin-bottom: 44px;
+    cursor: pointer;
+    border-bottom: 1px solid #ccc;
+}
+.order img[data-v-429d1032] {
+    width: 190px;
+    height: 140px;
+    margin: 0 44px;
+    border-radius: 10px;
+}
+.order-description[data-v-429d1032] {
+    display: flex;
+    flex: 1 1;
+    height: 140px;
+    overflow: hidden;
+}
+.order-description-info[data-v-429d1032] {
+    display: flex;
+    flex: 1 1;
+    flex-direction: column;
+    overflow: hidden;
+}
+.order-description-info h3[data-v-429d1032] {
+    display: -webkit-box;
+    height: 64px;
+    overflow: hidden;
+    font-size: 24px;
+    line-height: 32px;
+    color: #000;
+    text-overflow: ellipsis;
+    -webkit-box-orient: vertical;
+    -webkit-line-clamp: 2;
+}
+.order-description-info .introduce[data-v-429d1032] {
+    margin-top: auto;
+}
+.order-description-info .introduce p[data-v-429d1032] {
+    font-size: 20px;
+    line-height: 1;
+    color: #666;
+}
+.order-description-info .introduce p[data-v-429d1032]:last-child {
+    margin-top: 14px;
+    font-size: 16px!important;
+}
+.order-description-money[data-v-429d1032] {
+    display: flex;
+    align-items: flex-end;
+    height: 100%;
+    margin-left: 50px;
+    line-height: 1;
+    color: #333;
+}
+.order-description-money p[data-v-429d1032] {
+    display: flex;
+    align-items: center;
+}
+.order-description-money i[data-v-429d1032], .order-description-money span[data-v-429d1032] {
+    font-size: 26px;
+    font-style: normal;
+    font-weight: 700;
+    line-height: 1;
+    color: #2789f0;
+}
+.order-description-money span[data-v-429d1032] {
+    color: #333;
+}
+.button__component {
+    border-radius: 100000px;
+    background-image: linear-gradient(270deg,#015eea,#00c0fa);
+    color: #fff;
+    border: unset;
+    cursor: pointer;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+}
+.confirm-button[data-v-429d1032] {
+    width: 242px;
+    height: 62px;
+}
+.btn__component-loading {
+    width: 24px;
+    height: 24px;
+    margin: 0 auto;
+    animation: btn__loading 2s infinite linear;
+}
+.order::before {
+    box-sizing: border-box;
+    width: 28px;
+    height: 28px;
+    content: "";
+    border: 2px solid #666;
+    border-radius: 50%;
+}
+.order-selected::before {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    color: #fff;
+    content: "\2713";
+    background-image: linear-gradient(to bottom,#015eea,#00c0fa);
+    font-size: 16px;
+    border: unset;
 }

+ 1 - 0
src/main/resources/static/js/demandForSingle/offer/even.js

@@ -8,4 +8,5 @@ var releaseUUid = null;
 var delPlay = null;
 var addDate = null;
 var delteDate = null;
+var titleImg = null;
 var token = "07E20E117812C34B244EA73B99A65918CAD573DFB012FC523FD3CDA2E259EA06BC98731115C4DEFFF5C1226FE6DF81058A9E695C6C9BFF9B76AD417F0197BFAE1035BC7A5F3A72D83A63C8908F50DC71694CD87D43569EC0780735CCF3CAEE9AD61AD9E960E16E3AC579537E6988ABF60F55C8F450841D1EEFCD60426F863A11285781E8DEA450B4AE0F96727599F65106ECB2C95D9352601E59C3551D80B98AAAAA71AAACC80578";

+ 315 - 200
src/main/resources/static/js/demandForSingle/offer/function.js

@@ -52,7 +52,7 @@ function addDay(addTiemVal){
         "                    <div class=\"layui-input-inline\">\n" +
         "                        <div class=\"date_content_div\">\n" +
         "                            <img class=\"date_content_img\" src=\"/images/demandForSingle/date.png\">\n" +
-        "                            <input value="+ addTiemVal +" type=\"text\" class=\"layui-input date_content_input select_date_input"+ uuid +"\" name='planDate' placeholder=\"请输入时间 年.月.日\" lay-key=\"1\" readonly = \"readonly\">\n" +
+        "                            <input value="+ (addTiemVal == null ? new Data() : addTiemVal) +" type=\"text\" class=\"layui-input date_content_input select_date_input"+ uuid +"\" name='planDate' placeholder=\"请输入时间 年.月.日\" lay-key=\"1\" readonly = \"readonly\">\n" +
         "                        </div>\n" +
         "                    </div>\n" +
         "                </div>\n" +
@@ -120,10 +120,10 @@ function addDay(addTiemVal){
         "                            </svg>\n" +
         "                        </div>\n" +
         "                        <div class=\"icon-group\" data-v-67b53f28=\"\">\n" +
-        // "                            <div class=\"icon-item\" data-v-67b53f28=\"\" onclick=\"addDay(this)\">\n" +
-        // "                                <i class=\"icon icon-dir\" data-v-67b53f28=\"\"></i>\n" +
-        // "                                <span data-v-67b53f28=\"\">添加目录/天</span>\n" +
-        // "                            </div>\n" +
+        "                            <div class=\"icon-item\" data-v-67b53f28=\"\" onclick=\"addDay(this)\">\n" +
+        "                                <i class=\"icon icon-dir\" data-v-67b53f28=\"\"></i>\n" +
+        "                                <span data-v-67b53f28=\"\">添加目录/天</span>\n" +
+        "                            </div>\n" +
         "                            <div class=\"icon-item\" data-v-67b53f28=\"\" onclick='addPlace(this)'>\n" +
         "                                <i class=\"icon icon-location\" data-v-67b53f28=\"\"></i>\n" +
         "                                <span data-v-67b53f28=\"\">添加地点</span>\n" +
@@ -193,10 +193,10 @@ function addDay(addTiemVal){
         "                            </svg>\n" +
         "                        </div>\n" +
         "                        <div class=\"icon-group\" data-v-67b53f28=\"\">\n" +
-        "                            <!--                            <div class=\"icon-item\" data-v-67b53f28=\"\" onClick=\"addDay(this)\">-->\n" +
-        "                            <!--                                <i class=\"icon icon-dir\" data-v-67b53f28=\"\"></i>-->\n" +
-        "                            <!--                                <span data-v-67b53f28=\"\">添加目录/天</span>-->\n" +
-        "                            <!--                            </div>-->\n" +
+        "                           <div class=\"icon-item\" data-v-67b53f28=\"\" onClick=\"addDay(this)\">\n" +
+        "                               <i class=\"icon icon-dir\" data-v-67b53f28=\"\"></i>\n" +
+        "                               <span data-v-67b53f28=\"\">添加目录/天</span>\n" +
+        "                            </div>\n" +
         "                            <div class=\"icon-item\" data-v-67b53f28=\"\" onClick=\"addPlace(this)\">\n" +
         "                                <i class=\"icon icon-location\" data-v-67b53f28=\"\"></i>\n" +
         "                                <span data-v-67b53f28=\"\">添加地点</span>\n" +
@@ -248,7 +248,6 @@ function addPlace(obj){
 }
 //删除游玩记录
 delPlay = function(obj){
-    console.log(123)
     $(obj).parent().remove();
 }
 //新增路线信息
@@ -257,6 +256,11 @@ function submitAdd(){
     var releaseDay = new Array();//天信息数组
     var releasePlay = new Array();//游玩信息数组
     var priceAll = $(".all_price input[name=priceAll]").val(); //总价
+    var titleName = $(".name_private_offer input[name=offerName]").val();
+    if(titleName == null || titleName == ""){
+        layer.msg("请输入报价单名称", {icon: 2});
+        return false;
+    }
     if(priceAll == null || priceAll == ""){
         layer.msg("请输入总价", {icon: 2});
         return false;
@@ -359,7 +363,9 @@ function submitAdd(){
             "releaseDayString": releaseDayString,
             "releasePlayString": releasePlayString,
             "uuid": releaseUUid,
-            "priceAll": priceAll
+            "priceAll": priceAll,
+            "titleImg": titleImg,
+            "offerName": titleName
         }),
         headers: {"token": token},
         contentType: "application/json",
@@ -444,6 +450,212 @@ function guid() {
         return v.toString(16);
     });
 }
+//元素渲染
+function elementDrawing(data){
+    $(".timeline ul li").remove();
+    $(".content_right .content_add_div").remove();
+    $(".all_price_input input[name=priceAll]").val(data.data[0].priceAll);
+    $("input[name=offerName]").val(data.data[0].offerName);
+    titleImg = data.data[0].titleImg
+    //游玩渲染
+    var uuid = guid();
+    //时间渲染
+    var day = null;
+    $.each(data.data[0].releaseDay, (index, item) => {
+        if(day != item.dayNum){
+            //左侧时间轴
+            if(index == 0){
+                $(".timeline ul").append("<li dayNum="+ item.dayNum +" class=\"pre-actived\" data-v-2d69a44a=\"\" onclick=\"clickDayNum(this)\">\n" +
+                    "                        <i data-v-2d69a44a=\"\">Day"+ item.dayNum +"</i>\n" +
+                    "                        <span data-v-2d69a44a=\"\"></span>\n" +
+                    "                    </li>")
+            }else{
+                $(".timeline ul").append("<li dayNum="+ item.dayNum +" data-v-2d69a44a=\"\" onclick=\"clickDayNum(this)\">\n" +
+                    "                        <i data-v-2d69a44a=\"\">Day"+ item.dayNum +"</i>\n" +
+                    "                        <span data-v-2d69a44a=\"\"></span>\n" +
+                    "                    </li>")
+            }
+            $(".content_right .contract_uplod").before(
+                "<div class='content_add_div' dayNum="+ item.dayNum +">" +
+                "                <!-- 日期选择 -->\n" +
+                "                <div class=\"layui-inline\">\n" +
+                "                    <label class=\"layui-form-label\" style=\"margin-top: 8px\">日&nbsp;&nbsp;&nbsp;&nbsp;期:</label>\n" +
+                "                    <div class=\"layui-input-inline\">\n" +
+                "                        <div class=\"date_content_div\">\n" +
+                "                            <img class=\"date_content_img\" src=\"/images/demandForSingle/date.png\"/>\n" +
+                "                            <input type=\"text\" class=\"layui-input date_content_input select_date_input"+ uuid +"\" value="+ item.planDate +" name='planDate' placeholder=\"请输入时间 年.月.日\" readonly = \"readonly\">\n" +
+                "                        </div>\n" +
+                "                    </div>\n" +
+                "                </div>\n" +
+                "<!-- 时间增加 -->\n" +
+                "                <div class=\"layui-inline\">\n" +
+                "                    <label class=\"layui-form-label\" style=\"margin-top: 8px\">时间点:</label>\n" +
+                "                    <div class=\"layui-input-inline positioning_div\" style=\"width: 90%\">\n" +
+                "                        <img class=\"add_date\" src=\"/images/demandForSingle/add_date.png\"/>\n" +
+                "                        <div class=\"date_content_div\">\n" +
+                "                            <input type=\"text\" class=\"layui-input date_hours_content_input date_hours_content_val"+ uuid +"\" value="+item.dateTime+">\n" +
+                "                            <input type=\"text\" class=\"layui-input date_hours_content date_content_input\" value="+item.content+">\n" +
+                "                            <div class=\"del_date\" onclick=\"delteDate(this)\"><i class=\"layui-icon layui-icon-subtraction\"></i></div>\n" +
+                "                        </div>\n"+
+                "                    </div>\n" +
+                "                </div>\n"+
+                " <!-- 游玩内容 -->\n" +
+                "                <div class=\"play_div\"></div>\n"+
+                "</div>")
+            day = item.dayNum;
+        } else {
+            $(".content_add_div[dayNum="+ item.dayNum +"] .positioning_div").append("<div class=\"date_content_div\">\n" +
+                "                            <input type=\"text\" class=\"layui-input date_hours_content_input date_hours_content_val"+ uuid +"\" value="+item.dateTime+">\n" +
+                "                            <input type=\"text\" class=\"layui-input date_hours_content date_content_input\" value="+item.content+">\n" +
+                "                            <div class=\"del_date\" onclick=\"delteDate(this)\"><i class=\"layui-icon layui-icon-subtraction\"></i></div>\n" +
+                "                        </div>");
+        }
+    });
+    $(".add_date").css("bottom", "6px");
+    $.each(data.data[0].releasePlay, (index, elem) => {
+        if(elem.typeVal == "0"){
+            $(".content_add_div[daynum="+ elem.dayNum +"] .play_div").append("<!-- 景点 -->\n" +
+                "                    <div class=\"play_content_div scenic_spot_div "+ elem.uuid +"\">\n" +
+                "                        <div class=\"title_name_spot\">\n" +
+                "                            <svg viewBox=\"0 0 1024 1024\" class=\"title_name_img\">\n" +
+                "                                <path d=\"M512 64C317.92 64 160 221.92 160 416c0 187.36 315.424 520.032 328.832 534.08C494.88 956.448 503.264 960 512 960c0.224 0 0.48 0 0.704 0 8.992 0 17.472-4.192 23.392-10.944l109.216-125.12C790.432 646.176 864 508.928 864 416 864 221.92 706.08 64 512 64zM512 576c-88.384 0-160-71.616-160-160s71.616-160 160-160 160 71.616 160 160S600.384 576 512 576z\" p-id=\"2190\"></path>\n" +
+                "                            </svg>\n" +
+                "                            <input type=\"text\" placeholder=\"景点名称\" value='"+ elem.name +"' class=\"layui-input date_content_input\">\n" +
+                "                        </div>\n" +
+                "                        <div class=\"editor-assets\" data-v-400c2eb9=\"\">\n" +
+                "                            <div class=\"editor-assets-control\" data-v-400c2eb9=\"\">\n" +
+                "                                <div class=\"editor-assets-control-item file_videos"+ uuid +"\" data-v-400c2eb9=\"\"><i\n" +
+                "                                        class=\"assets-icon assets-videos-icon\" data-v-400c2eb9=\"\"></i><span\n" +
+                "                                        data-v-400c2eb9=\"\">插入视频</span></div>\n" +
+                "                                <div class=\"editor-assets-control-item file_img"+ uuid +" file_margin\" data-v-400c2eb9=\"\"><i\n" +
+                "                                        class=\"assets-icon assets-images-icon\" data-v-400c2eb9=\"\"></i><span\n" +
+                "                                        data-v-400c2eb9=\"\">插入图片</span></div>\n" +
+                "                            </div>\n" +
+                "                            <div class=\"editor-assets-content\" data-v-400c2eb9=\"\">\n" +
+                "                            </div>\n" +
+                "                        </div>\n" +
+                "                        <div class=\"editor-content\" data-v-400c2eb9=\"\"><p data-v-400c2eb9=\"\">景点介绍</p>\n" +
+                "                            <textarea placeholder=\"景点介绍\"  maxlength=\"2000\" data-v-400c2eb9=\"\">"+ elem.content + "</textarea>\n" +
+                "                        </div>\n" +
+                "                        <!-- 关闭按钮 -->\n" +
+                "                        <div class=\"close_play_button\" onClick=\"delPlay(this)\">\n" +
+                "                            <i class=\"layui-icon layui-icon-close\"></i>\n" +
+                "                        </div>\n" +
+                "                    </div>\n" +
+                "                    <!-- 悬浮效果 -->\n" +
+                "                    <div class=\"operation\" data-v-67b53f28=\"\" data-v-5161540f=\"\" onmouseover=\"operationOver(this)\" onmouseout=\"operationOut(this)\">\n" +
+                "                        <div class=\"operation-leader\" data-v-67b53f28=\"\">\n" +
+                "                            <svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" data-v-67b53f28=\"\">\n" +
+                "                                <path fill=\"currentColor\" d=\"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z\"></path>\n" +
+                "                            </svg>\n" +
+                "                        </div>\n" +
+                "                        <div class=\"icon-group\" data-v-67b53f28=\"\">\n" +
+                "                            <div class=\"icon-item\" data-v-67b53f28=\"\" onClick=\"addDay(this)\">\n" +
+                "                                <i class=\"icon icon-dir\" data-v-67b53f28=\"\"></i>\n" +
+                "                                <span data-v-67b53f28=\"\">添加目录/天</span>\n" +
+                "                            </div>\n" +
+                "                            <div class=\"icon-item\" data-v-67b53f28=\"\" onClick=\"addPlace(this)\">\n" +
+                "                                <i class=\"icon icon-location\" data-v-67b53f28=\"\"></i>\n" +
+                "                                <span data-v-67b53f28=\"\">添加地点</span>\n" +
+                "                            </div>\n" +
+                "                        </div>\n" +
+                "                    </div>");
+        }else if(elem.typeVal == "1"){
+            $(".content_add_div[daynum="+ elem.dayNum +"] .play_div").append("<!-- 酒店 -->\n" +
+                "                    <div class=\"play_content_div scenic_spot_div "+ elem.uuid +"\">\n" +
+                "                        <div class=\"title_name_spot\">\n" +
+                "                            <svg viewBox=\"0 0 1024 1024\" class=\"title_name_img\">\n" +
+                "                                <path d=\"M512 64C317.92 64 160 221.92 160 416c0 187.36 315.424 520.032 328.832 534.08C494.88 956.448 503.264 960 512 960c0.224 0 0.48 0 0.704 0 8.992 0 17.472-4.192 23.392-10.944l109.216-125.12C790.432 646.176 864 508.928 864 416 864 221.92 706.08 64 512 64zM512 576c-88.384 0-160-71.616-160-160s71.616-160 160-160 160 71.616 160 160S600.384 576 512 576z\" p-id=\"2190\"></path>\n" +
+                "                            </svg>\n" +
+                "                            <input type=\"text\" placeholder=\"酒店名称\" value='"+ elem.name +"' class=\"layui-input date_content_input\">\n" +
+                "                        </div>\n" +
+                "                        <div class=\"editor-assets\" data-v-400c2eb9=\"\">\n" +
+                "                            <div class=\"editor-assets-control\" data-v-400c2eb9=\"\">\n" +
+                "                                <div class=\"editor-assets-control-item file_videos\" data-v-400c2eb9=\"\"><i\n" +
+                "                                        class=\"assets-icon assets-videos-icon\" data-v-400c2eb9=\"\"></i><span\n" +
+                "                                        data-v-400c2eb9=\"\">插入视频</span></div>\n" +
+                "                                <div class=\"editor-assets-control-item file_img file_margin\" data-v-400c2eb9=\"\"><i\n" +
+                "                                        class=\"assets-icon assets-images-icon\" data-v-400c2eb9=\"\"></i><span\n" +
+                "                                        data-v-400c2eb9=\"\">插入图片</span></div>\n" +
+                "                            </div>\n" +
+                "                            <div class=\"editor-assets-content\" data-v-400c2eb9=\"\"></div>\n" +
+                "                        </div>\n" +
+                "                        <div class=\"editor-content\" data-v-400c2eb9=\"\"><p data-v-400c2eb9=\"\">酒店介绍</p>\n" +
+                "                            <textarea placeholder=\"酒店介绍\" maxlength=\"2000\" data-v-400c2eb9=\"\">"+ elem.content + "</textarea>\n" +
+                "                        </div>\n" +
+                "                        <!-- 关闭按钮 -->\n" +
+                "                        <div class=\"close_play_button\" onClick=\"delPlay(this)\">\n" +
+                "                            <i class=\"layui-icon layui-icon-close\"></i>\n" +
+                "                        </div>\n" +
+                "                    </div>");
+        }else if(elem.typeVal == "2"){
+            $(".content_add_div[daynum="+ elem.dayNum +"] .play_div").append("<!-- 包车,车型-->\n" +
+                "                    <div class=\"play_content_div scenic_spot_div "+ elem.uuid +"\">\n" +
+                "                        <div class=\"title_name_spot\">\n" +
+                "                            <svg viewBox=\"0 0 1024 1024\" class=\"title_name_img\">\n" +
+                "                                <path d=\"M512 64C317.92 64 160 221.92 160 416c0 187.36 315.424 520.032 328.832 534.08C494.88 956.448 503.264 960 512 960c0.224 0 0.48 0 0.704 0 8.992 0 17.472-4.192 23.392-10.944l109.216-125.12C790.432 646.176 864 508.928 864 416 864 221.92 706.08 64 512 64zM512 576c-88.384 0-160-71.616-160-160s71.616-160 160-160 160 71.616 160 160S600.384 576 512 576z\" p-id=\"2190\"></path>\n" +
+                "                            </svg>\n" +
+                "                            <input type=\"text\" placeholder=\"包车,车型\" value='"+ elem.name +"' class=\"layui-input date_content_input\">\n" +
+                "                        </div>\n" +
+                "                        <div class=\"editor-assets\" data-v-400c2eb9=\"\">\n" +
+                "                            <div class=\"editor-assets-control\" data-v-400c2eb9=\"\">\n" +
+                "                                <div class=\"editor-assets-control-item file_videos\" data-v-400c2eb9=\"\"><i\n" +
+                "                                        class=\"assets-icon assets-videos-icon\" data-v-400c2eb9=\"\"></i><span\n" +
+                "                                        data-v-400c2eb9=\"\">插入视频</span></div>\n" +
+                "                                <div class=\"editor-assets-control-item file_img file_margin\" data-v-400c2eb9=\"\"><i\n" +
+                "                                        class=\"assets-icon assets-images-icon\" data-v-400c2eb9=\"\"></i><span\n" +
+                "                                        data-v-400c2eb9=\"\">插入图片</span></div>\n" +
+                "                            </div>\n" +
+                "                            <div class=\"editor-assets-content\" data-v-400c2eb9=\"\"></div>\n" +
+                "                        </div>\n" +
+                "                        <div class=\"editor-content\" data-v-400c2eb9=\"\"><p data-v-400c2eb9=\"\">包车,司机介绍</p>\n" +
+                "                            <textarea placeholder=\"包车,司机介绍\" maxlength=\"2000\" data-v-400c2eb9=\"\">"+ elem.content + "</textarea>\n" +
+                "                        </div>\n" +
+                "                        <!-- 关闭按钮 -->\n" +
+                "                        <div class=\"close_play_button\" onClick=\"delPlay(this)\">\n" +
+                "                            <i class=\"layui-icon layui-icon-close\"></i>\n" +
+                "                        </div>\n" +
+                "                    </div>\n" +
+                "                    <!-- 悬浮效果 -->\n" +
+                "                    <div class=\"operation\" data-v-67b53f28=\"\" data-v-5161540f=\"\" onmouseover=\"operationOver(this)\" onmouseout=\"operationOut(this)\">\n" +
+                "                        <div class=\"operation-leader\" data-v-67b53f28=\"\">\n" +
+                "                            <svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" data-v-67b53f28=\"\">\n" +
+                "                                <path fill=\"currentColor\" d=\"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z\"></path>\n" +
+                "                            </svg>\n" +
+                "                        </div>\n" +
+                "                        <div class=\"icon-group\" data-v-67b53f28=\"\">\n" +
+                "                            <div class=\"icon-item\" data-v-67b53f28=\"\" onClick=\"addDay(this)\">\n" +
+                "                                <i class=\"icon icon-dir\" data-v-67b53f28=\"\"></i>\n" +
+                "                                <span data-v-67b53f28=\"\">添加目录/天</span>\n" +
+                "                            </div>\n" +
+                "                            <div class=\"icon-item\" data-v-67b53f28=\"\" onClick=\"addPlace(this)\">\n" +
+                "                                <i class=\"icon icon-location\" data-v-67b53f28=\"\"></i>\n" +
+                "                                <span data-v-67b53f28=\"\">添加地点</span>\n" +
+                "                            </div>\n" +
+                "                        </div>\n" +
+                "                    </div>");
+        }
+        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++){
+            $("." + elem.uuid + " .editor-assets-content").append("<div class=\"editor-assets-content-info\" data-v-400c2eb9=\"\">\n" +
+                "                                    <div class=\"el-image\" data-v-400c2eb9=\"\"><img alt=\"upload-assets\"\n" +
+                "                                                                                  src="+ imgUrlArray[i] +"\n" +
+                "                                                                                  class=\"el-image__inner el-image__preview\"\n" +
+                "                                                                                  style=\"object-fit: cover;\"><!--v-if-->\n" +
+                "                                    </div>\n" +
+                "                                    <svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" onclick=\"closeSvg(this)\" data-v-400c2eb9=\"\">\n" +
+                "                                        <path fill=\"currentColor\"\n" +
+                "                                              d=\"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z\"></path>\n" +
+                "                                    </svg>\n" +
+                "                                </div>");
+        }
+        for(var j = 0; j < videoUrlArray.lengthl; j++){
+            $("." + elem.uuid + " .editor-assets-content").append("<video src="+ videoUrlArray[j] +" controls=\"\" data-v-400c2eb9=\"\"></video>");
+        }
+    })
+    addUrl(uuid);
+}
 //查询订制
 function getData(){
     layer.load(3);
@@ -460,193 +672,8 @@ function getData(){
                 if(data.data.length != 0){
                     urlAddUpate = "updateSupplierRelease"; //如果存在后面操作是修改
                     releaseUUid = data.data[0].uuid; //赋值
-                    $(".timeline ul li").remove();
-                    $(".content_right .content_add_div").remove();
-                    $(".all_price_input input[name=priceAll]").val(data.data[0].priceAll);
-                    //游玩渲染
-                    var uuid = guid();
-                    //时间渲染
-                    var day = null;
-                    $.each(data.data[0].releaseDay, (index, item) => {
-                        if(day != item.dayNum){
-                            //左侧时间轴
-                            if(index == 0){
-                                $(".timeline ul").append("<li dayNum="+ item.dayNum +" class=\"pre-actived\" data-v-2d69a44a=\"\" onclick=\"clickDayNum(this)\">\n" +
-                                    "                        <i data-v-2d69a44a=\"\">Day"+ item.dayNum +"</i>\n" +
-                                    "                        <span data-v-2d69a44a=\"\"></span>\n" +
-                                    "                    </li>")
-                            }else{
-                                $(".timeline ul").append("<li dayNum="+ item.dayNum +" data-v-2d69a44a=\"\" onclick=\"clickDayNum(this)\">\n" +
-                                    "                        <i data-v-2d69a44a=\"\">Day"+ item.dayNum +"</i>\n" +
-                                    "                        <span data-v-2d69a44a=\"\"></span>\n" +
-                                    "                    </li>")
-                            }
-                            $(".content_right .contract_uplod").before(
-                                "<div class='content_add_div' dayNum="+ item.dayNum +">" +
-                                "                <!-- 日期选择 -->\n" +
-                                "                <div class=\"layui-inline\">\n" +
-                                "                    <label class=\"layui-form-label\" style=\"margin-top: 8px\">日&nbsp;&nbsp;&nbsp;&nbsp;期:</label>\n" +
-                                "                    <div class=\"layui-input-inline\">\n" +
-                                "                        <div class=\"date_content_div\">\n" +
-                                "                            <img class=\"date_content_img\" src=\"/images/demandForSingle/date.png\"/>\n" +
-                                "                            <input type=\"text\" class=\"layui-input date_content_input select_date_input"+ uuid +"\" value="+ item.planDate +" name='planDate' placeholder=\"请输入时间 年.月.日\" readonly = \"readonly\">\n" +
-                                "                        </div>\n" +
-                                "                    </div>\n" +
-                                "                </div>\n" +
-                                "<!-- 时间增加 -->\n" +
-                                "                <div class=\"layui-inline\">\n" +
-                                "                    <label class=\"layui-form-label\" style=\"margin-top: 8px\">时间点:</label>\n" +
-                                "                    <div class=\"layui-input-inline positioning_div\" style=\"width: 90%\">\n" +
-                                "                        <img class=\"add_date\" src=\"/images/demandForSingle/add_date.png\"/>\n" +
-                                "                        <div class=\"date_content_div\">\n" +
-                                "                            <input type=\"text\" class=\"layui-input date_hours_content_input date_hours_content_val"+ uuid +"\" value="+item.dateTime+">\n" +
-                                "                            <input type=\"text\" class=\"layui-input date_hours_content date_content_input\" value="+item.content+">\n" +
-                                "                            <div class=\"del_date\" onclick=\"delteDate(this)\"><i class=\"layui-icon layui-icon-subtraction\"></i></div>\n" +
-                                "                        </div>\n"+
-                                "                    </div>\n" +
-                                "                </div>\n"+
-                                " <!-- 游玩内容 -->\n" +
-                                "                <div class=\"play_div\"></div>\n"+
-                                "</div>")
-                            day = item.dayNum;
-                        } else {
-                            $(".content_add_div[dayNum="+ item.dayNum +"] .positioning_div").append("<div class=\"date_content_div\">\n" +
-                                "                            <input type=\"text\" class=\"layui-input date_hours_content_input date_hours_content_val"+ uuid +"\" value="+item.dateTime+">\n" +
-                                "                            <input type=\"text\" class=\"layui-input date_hours_content date_content_input\" value="+item.content+">\n" +
-                                "                            <div class=\"del_date\" onclick=\"delteDate(this)\"><i class=\"layui-icon layui-icon-subtraction\"></i></div>\n" +
-                                "                        </div>");
-                        }
-                    });
-                    $(".add_date").css("bottom", "6px");
-                    var playDay = null;
-                    $.each(data.data[0].releasePlay, (index, elem) => {
-                        if(elem.typeVal == "0"){
-                            $(".content_add_div[daynum="+ elem.dayNum +"] .play_div").append("<!-- 景点 -->\n" +
-                                "                    <div class=\"play_content_div scenic_spot_div "+ elem.uuid +"\">\n" +
-                                "                        <div class=\"title_name_spot\">\n" +
-                                "                            <svg viewBox=\"0 0 1024 1024\" class=\"title_name_img\">\n" +
-                                "                                <path d=\"M512 64C317.92 64 160 221.92 160 416c0 187.36 315.424 520.032 328.832 534.08C494.88 956.448 503.264 960 512 960c0.224 0 0.48 0 0.704 0 8.992 0 17.472-4.192 23.392-10.944l109.216-125.12C790.432 646.176 864 508.928 864 416 864 221.92 706.08 64 512 64zM512 576c-88.384 0-160-71.616-160-160s71.616-160 160-160 160 71.616 160 160S600.384 576 512 576z\" p-id=\"2190\"></path>\n" +
-                                "                            </svg>\n" +
-                                "                            <input type=\"text\" placeholder=\"景点名称\" value="+ elem.name + " class=\"layui-input date_content_input\">\n" +
-                                "                        </div>\n" +
-                                "                        <div class=\"editor-assets\" data-v-400c2eb9=\"\">\n" +
-                                "                            <div class=\"editor-assets-control\" data-v-400c2eb9=\"\">\n" +
-                                "                                <div class=\"editor-assets-control-item file_videos"+ uuid +"\" data-v-400c2eb9=\"\"><i\n" +
-                                "                                        class=\"assets-icon assets-videos-icon\" data-v-400c2eb9=\"\"></i><span\n" +
-                                "                                        data-v-400c2eb9=\"\">插入视频</span></div>\n" +
-                                "                                <div class=\"editor-assets-control-item file_img"+ uuid +" file_margin\" data-v-400c2eb9=\"\"><i\n" +
-                                "                                        class=\"assets-icon assets-images-icon\" data-v-400c2eb9=\"\"></i><span\n" +
-                                "                                        data-v-400c2eb9=\"\">插入图片</span></div>\n" +
-                                "                            </div>\n" +
-                                "                            <div class=\"editor-assets-content\" data-v-400c2eb9=\"\">\n" +
-                                "                            </div>\n" +
-                                "                        </div>\n" +
-                                "                        <div class=\"editor-content\" data-v-400c2eb9=\"\"><p data-v-400c2eb9=\"\">景点介绍</p>\n" +
-                                "                            <textarea placeholder=\"景点介绍\"  maxlength=\"2000\" data-v-400c2eb9=\"\">"+ elem.content + "</textarea>\n" +
-                                "                        </div>\n" +
-                                "                        <!-- 关闭按钮 -->\n" +
-                                "                        <div class=\"close_play_button\" onClick=\"delPlay(this)\">\n" +
-                                "                            <i class=\"layui-icon layui-icon-close\"></i>\n" +
-                                "                        </div>\n" +
-                                "                    </div>");
-                        }else if(elem.typeVal == "1"){
-                            $(".content_add_div[daynum="+ elem.dayNum +"] .play_div").append("<!-- 酒店 -->\n" +
-                                "                    <div class=\"play_content_div scenic_spot_div "+ elem.uuid +"\">\n" +
-                                "                        <div class=\"title_name_spot\">\n" +
-                                "                            <svg viewBox=\"0 0 1024 1024\" class=\"title_name_img\">\n" +
-                                "                                <path d=\"M512 64C317.92 64 160 221.92 160 416c0 187.36 315.424 520.032 328.832 534.08C494.88 956.448 503.264 960 512 960c0.224 0 0.48 0 0.704 0 8.992 0 17.472-4.192 23.392-10.944l109.216-125.12C790.432 646.176 864 508.928 864 416 864 221.92 706.08 64 512 64zM512 576c-88.384 0-160-71.616-160-160s71.616-160 160-160 160 71.616 160 160S600.384 576 512 576z\" p-id=\"2190\"></path>\n" +
-                                "                            </svg>\n" +
-                                "                            <input type=\"text\" placeholder=\"酒店名称\" value="+ elem.name + " class=\"layui-input date_content_input\">\n" +
-                                "                        </div>\n" +
-                                "                        <div class=\"editor-assets\" data-v-400c2eb9=\"\">\n" +
-                                "                            <div class=\"editor-assets-control\" data-v-400c2eb9=\"\">\n" +
-                                "                                <div class=\"editor-assets-control-item file_videos\" data-v-400c2eb9=\"\"><i\n" +
-                                "                                        class=\"assets-icon assets-videos-icon\" data-v-400c2eb9=\"\"></i><span\n" +
-                                "                                        data-v-400c2eb9=\"\">插入视频</span></div>\n" +
-                                "                                <div class=\"editor-assets-control-item file_img file_margin\" data-v-400c2eb9=\"\"><i\n" +
-                                "                                        class=\"assets-icon assets-images-icon\" data-v-400c2eb9=\"\"></i><span\n" +
-                                "                                        data-v-400c2eb9=\"\">插入图片</span></div>\n" +
-                                "                            </div>\n" +
-                                "                            <div class=\"editor-assets-content\" data-v-400c2eb9=\"\"></div>\n" +
-                                "                        </div>\n" +
-                                "                        <div class=\"editor-content\" data-v-400c2eb9=\"\"><p data-v-400c2eb9=\"\">酒店介绍</p>\n" +
-                                "                            <textarea placeholder=\"酒店介绍\" maxlength=\"2000\" data-v-400c2eb9=\"\">"+ elem.content + "</textarea>\n" +
-                                "                        </div>\n" +
-                                "                        <!-- 关闭按钮 -->\n" +
-                                "                        <div class=\"close_play_button\" onClick=\"delPlay(this)\">\n" +
-                                "                            <i class=\"layui-icon layui-icon-close\"></i>\n" +
-                                "                        </div>\n" +
-                                "                    </div>");
-                        }else if(elem.typeVal == "2"){
-                            $(".content_add_div[daynum="+ elem.dayNum +"] .play_div").append("<!-- 包车,车型-->\n" +
-                                "                    <div class=\"play_content_div scenic_spot_div "+ elem.uuid +"\">\n" +
-                                "                        <div class=\"title_name_spot\">\n" +
-                                "                            <svg viewBox=\"0 0 1024 1024\" class=\"title_name_img\">\n" +
-                                "                                <path d=\"M512 64C317.92 64 160 221.92 160 416c0 187.36 315.424 520.032 328.832 534.08C494.88 956.448 503.264 960 512 960c0.224 0 0.48 0 0.704 0 8.992 0 17.472-4.192 23.392-10.944l109.216-125.12C790.432 646.176 864 508.928 864 416 864 221.92 706.08 64 512 64zM512 576c-88.384 0-160-71.616-160-160s71.616-160 160-160 160 71.616 160 160S600.384 576 512 576z\" p-id=\"2190\"></path>\n" +
-                                "                            </svg>\n" +
-                                "                            <input type=\"text\" placeholder=\"包车,车型\" value="+ elem.name + " class=\"layui-input date_content_input\">\n" +
-                                "                        </div>\n" +
-                                "                        <div class=\"editor-assets\" data-v-400c2eb9=\"\">\n" +
-                                "                            <div class=\"editor-assets-control\" data-v-400c2eb9=\"\">\n" +
-                                "                                <div class=\"editor-assets-control-item file_videos\" data-v-400c2eb9=\"\"><i\n" +
-                                "                                        class=\"assets-icon assets-videos-icon\" data-v-400c2eb9=\"\"></i><span\n" +
-                                "                                        data-v-400c2eb9=\"\">插入视频</span></div>\n" +
-                                "                                <div class=\"editor-assets-control-item file_img file_margin\" data-v-400c2eb9=\"\"><i\n" +
-                                "                                        class=\"assets-icon assets-images-icon\" data-v-400c2eb9=\"\"></i><span\n" +
-                                "                                        data-v-400c2eb9=\"\">插入图片</span></div>\n" +
-                                "                            </div>\n" +
-                                "                            <div class=\"editor-assets-content\" data-v-400c2eb9=\"\"></div>\n" +
-                                "                        </div>\n" +
-                                "                        <div class=\"editor-content\" data-v-400c2eb9=\"\"><p data-v-400c2eb9=\"\">包车,司机介绍</p>\n" +
-                                "                            <textarea placeholder=\"包车,司机介绍\" maxlength=\"2000\" data-v-400c2eb9=\"\">"+ elem.content + "</textarea>\n" +
-                                "                        </div>\n" +
-                                "                        <!-- 关闭按钮 -->\n" +
-                                "                        <div class=\"close_play_button\" onClick=\"delPlay(this)\">\n" +
-                                "                            <i class=\"layui-icon layui-icon-close\"></i>\n" +
-                                "                        </div>\n" +
-                                "                    </div>");
-                        }
-                        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++){
-                            $("." + elem.uuid + " .editor-assets-content").append("<div class=\"editor-assets-content-info\" data-v-400c2eb9=\"\">\n" +
-                                "                                    <div class=\"el-image\" data-v-400c2eb9=\"\"><img alt=\"upload-assets\"\n" +
-                                "                                                                                  src="+ imgUrlArray[i] +"\n" +
-                                "                                                                                  class=\"el-image__inner el-image__preview\"\n" +
-                                "                                                                                  style=\"object-fit: cover;\"><!--v-if-->\n" +
-                                "                                    </div>\n" +
-                                "                                    <svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" onclick=\"closeSvg(this)\" data-v-400c2eb9=\"\">\n" +
-                                "                                        <path fill=\"currentColor\"\n" +
-                                "                                              d=\"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z\"></path>\n" +
-                                "                                    </svg>\n" +
-                                "                                </div>");
-                        }
-                        for(var j = 0; j < videoUrlArray.lengthl; j++){
-                            $("." + elem.uuid + " .editor-assets-content").append("<video src="+ videoUrlArray[j] +" controls=\"\" data-v-400c2eb9=\"\"></video>");
-                        }
-                        if(playDay != elem.dayNum){
-                            $(".content_add_div[daynum="+ elem.dayNum +"] .play_div .scenic_spot_div:last").after("<!-- 悬浮效果 -->\n" +
-                                "                    <div class=\"operation\" data-v-67b53f28=\"\" data-v-5161540f=\"\" onmouseover=\"operationOver(this)\" onmouseout=\"operationOut(this)\">\n" +
-                                "                        <div class=\"operation-leader\" data-v-67b53f28=\"\">\n" +
-                                "                            <svg viewBox=\"0 0 1024 1024\" xmlns=\"http://www.w3.org/2000/svg\" data-v-67b53f28=\"\">\n" +
-                                "                                <path fill=\"currentColor\" d=\"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z\"></path>\n" +
-                                "                            </svg>\n" +
-                                "                        </div>\n" +
-                                "                        <div class=\"icon-group\" data-v-67b53f28=\"\">\n" +
-                                "                            <div class=\"icon-item\" data-v-67b53f28=\"\" onClick=\"addDay(this)\">\n" +
-                                "                                <i class=\"icon icon-dir\" data-v-67b53f28=\"\"></i>\n" +
-                                "                                <span data-v-67b53f28=\"\">添加目录/天</span>\n" +
-                                "                            </div>\n" +
-                                "                            <div class=\"icon-item\" data-v-67b53f28=\"\" onClick=\"addPlace(this)\">\n" +
-                                "                                <i class=\"icon icon-location\" data-v-67b53f28=\"\"></i>\n" +
-                                "                                <span data-v-67b53f28=\"\">添加地点</span>\n" +
-                                "                            </div>\n" +
-                                "                        </div>\n" +
-                                "                    </div>");
-                            playDay = elem.dayNum;
-                        }
-                    })
-                    addUrl(uuid);
+                    console.log(data)
+                    elementDrawing(data);
                 } else {
                     urlAddUpate = "addSupplierRelease";
                 }
@@ -682,8 +709,15 @@ function submitAddTemplate(){
     var releaseDay = new Array();//天信息数组
     var releasePlay = new Array();//游玩信息数组
     var priceAll = $(".all_price input[name=priceAll]").val(); //总价
+    var titleName = $("input[name=offerName]").val();
+    if(titleName == null || titleName == ""){
+        layer.msg("请输入报价单名称", {icon: 2, time: 1000});
+        layer.closeAll("loading");
+        return false;
+    }
     if(priceAll == null || priceAll == ""){
-        layer.msg("请输入总价", {icon: 2});
+        layer.msg("请输入总价", {icon: 2, time: 1000});
+        layer.closeAll("loading");
         return false;
     }
     //取值
@@ -782,7 +816,10 @@ function submitAddTemplate(){
         data: JSON.stringify({
             "releaseDayString": releaseDayString,
             "releasePlayString": releasePlayString,
-            "priceAll": priceAll
+            "priceAll": priceAll,
+            "titleImg": titleImg,
+            "offerName": titleName,
+            "travelTime": $(".start_end_time").text()
         }),
         headers: {"token": token},
         contentType: "application/json",
@@ -798,4 +835,82 @@ function submitAddTemplate(){
             layer.closeAll("loading");
         }
     });
+}
+//点击其他
+function radioClick(obj){
+    if($(obj).find(".radio_icon").hasClass("radio_icon_color")){
+        $(obj).find(".radio_icon").removeClass("radio_icon_color");
+    } else {
+        $(obj).find(".radio_icon").addClass("radio_icon_color");
+    }
+}
+//关闭选择订单弹框
+function closeVan(obj){
+    layer.closeAll();
+}
+//监听输入框搜索
+function getValue(obj){
+    let name = $(obj).val();
+    loadTemplate(name);
+}
+//加载模板
+function loadTemplate(name){
+    $.ajax({
+        url: "/template/getSupplierRelease",
+        type: "get",
+        data: {
+            "offerName": name
+        },
+        headers: {"token": token},
+        dataType: "json",
+        success: (data) => {
+            if(data.msg == "200"){
+                $(".van-popup .info .list").find("article").remove();
+                $.each(data.data, function(index, item){
+                    $(".van-popup .info .list").append("<article onclick='clickTemplae(this)' uuidTemplate="+ item.uuid +" class=\"order\" data-v-429d1032=\"\"><img alt=\"orderCover\" src="+ item.titleImg +" data-v-429d1032=\"\">\n" +
+                        "                    <div class=\"order-description\" data-v-429d1032=\"\">\n" +
+                        "                        <div class=\"order-description-info\" data-v-429d1032=\"\"><h3 data-v-429d1032=\"\">\n" +
+                        "                            "+ item.offerName +"</h3>\n" +
+                        "                            <div class=\"introduce\" data-v-429d1032=\"\"><p data-v-429d1032=\"\">该方案由三亚国际旅行社定制师为您提供</p>\n" +
+                        "                                <p data-v-429d1032=\"\">出行时间:"+ item.travelTime +"</p></div>\n" +
+                        "                        </div>\n" +
+                        "                        <div class=\"order-description-money\" data-v-429d1032=\"\"><p data-v-429d1032=\"\">报价 <i data-v-429d1032=\"\">¥</i><span data-v-429d1032=\"\">"+ item.priceAll +"</span></p></div>\n" +
+                        "                    </div>\n" +
+                        "                </article>");
+                });
+            }
+            layer.closeAll("loading");
+        },
+        error: () => {
+            layer.alert("服务器异常,请联系管理员", {icon: 2});
+            layer.closeAll("loading");
+        }
+    });
+}
+//选择模板
+function selectTemplate(uuidTemplate){
+    layer.load(3);
+    $.ajax({
+        url: "/template/getSupplierRelease",
+        type: "get",
+        data: {
+            "uuid": uuidTemplate
+        },
+        headers: {"token": token},
+        dataType: "json",
+        success: (data) => {
+            if(data.msg == "200"){
+                elementDrawing(data);
+            }
+            layer.closeAll();
+        },
+        error: () => {
+            layer.alert("服务器异常,请联系管理员", {icon: 2});
+            layer.closeAll("loading");
+        }
+    });
+}
+//选择模板
+function clickTemplae(obj){
+    $(obj).addClass("order-selected");
 }

+ 17 - 1
src/main/resources/static/js/demandForSingle/offer/index.js

@@ -71,7 +71,7 @@ layui.use(["layer", "form", "laydate", "upload"], function(){
         // ,acceptMime: 'file/pdf'
         ,headers: {token: token}
         ,done: function(res){
-            console.log(res)
+            titleImg = res.data;
         }
         ,error: function(){
             //请求异常回调
@@ -91,6 +91,22 @@ layui.use(["layer", "form", "laydate", "upload"], function(){
         ,type: 'time'
         ,format: 'HH:mm'
     });
+    //选择模板
+    $(".select_template").click(function(e){
+        loadTemplate(null);//渲染
+        layer.open({
+            title: false,
+            type: 1,
+            anim: 5,
+            closeBtn: 0,
+            content: $(".van-pop-transparent")
+        });
+    });
+    //选择模板确定
+    $(".confirm-button").click((e) => {
+        let uuidTemplate = $(".order-selected").attr("uuidTemplate");
+        selectTemplate(uuidTemplate);
+    });
 
     getPrivateOrder(); //数据渲染
     getData();//内容渲染

Datei-Diff unterdrückt, da er zu groß ist
+ 71 - 8
src/main/resources/templates/demandForSingle/offer.html