| | |
| | | <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.15&key=77b37f0753049c4e712ea79a24e0719c"></script> |
| | | <div class="ibox float-e-margins"> |
| | | <input hidden id="roleType" value="${roleType}"> |
| | | <input hidden id="type" value="${type}"> |
| | | <input hidden id="type1" value="${type}"> |
| | | <input hidden id="turnId" value="${data.turnId}"> |
| | | <input hidden id="id" value="${data.id}"> |
| | | <input hidden id="img1" value="${data.img}"> |
| | |
| | | range:true |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | function updateType(e) { |
| | | let name = $("#model").val(); |
| | | console.log(name); |
| | |
| | | $("#t1").hide() |
| | | $("#t2").hide() |
| | | $("#t3").hide() |
| | | $("#t1").val("") |
| | | $("#t2").val("") |
| | | $("#t3").val("") |
| | | $("#page").val("") |
| | | $("#type").val("") |
| | | $("#pageId").val("") |
| | | }else { |
| | | $("#t1").show() |
| | | $("#t2").show() |
| | |
| | | ajax.set("name",oneId); |
| | | ajax.start(); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | function updateOne(e) { |
| | | console.log($('#page option:selected').text()) |
| | | var page= $('#page option:selected').text(); |
| | | if (page=="门店列表" || page=="主页" || page=="充值中心"){ |
| | | $("#t3").hide(); |
| | | $("#t2").hide(); |
| | | $("#t2").val("") |
| | | $("#t3").val("") |
| | | $("#type").val("") |
| | | $("#pageId").val("") |
| | | } |
| | | var oneId=$(e).val(); |
| | | var ajax = new $ax(Feng.ctxPath + "/tShop/typeChangeOne", function(data){ |
| | | if(data!=null){ |
| | | if(data!=null&&data.length>0){ |
| | | $("#t2").show() |
| | | var content1 = '<option value="">请选择</option>'; |
| | | $.each(data, function(k,v) { |
| | | content1 += "<option value='"+v.id+"'>"+v.name+"</option>"; |
| | | }); |
| | | $("#type").empty().append(content1); |
| | | }else{ |
| | | console.log("=-======0000") |
| | | $("#t2").val("") |
| | | $("#t2").hide() |
| | | $("#type").val("") |
| | | |
| | | } |
| | | }); |
| | | if (oneId==2 || oneId==25|| oneId==27){ |
| | | $("#t3").val("") |
| | | $("#t3").hide() |
| | | |
| | | $("#pageId").val("") |
| | | } |
| | | ajax.set("id",oneId); |
| | | ajax.start(); |
| | | updateT(document.getElementById("type")); |
| | | |
| | | } |
| | | |
| | | function updatePosition(e) { |
| | |
| | | function updateT(e) { |
| | | var oneId = $('#type option:selected').text(); |
| | | console.log(oneId); |
| | | if (oneId!="详情"){ |
| | | if (oneId!="详情"&&oneId!="指定商品"&&oneId!="指定折扣"){ |
| | | $("#t3").hide() |
| | | $("#t3").val("") |
| | | $("#pageId").val("") |
| | | |
| | | }else{ |
| | | $("#t3").show() |
| | | } |
| | | var page = $('#page option:selected').text(); |
| | | if (page=="线上课得积分" || page=="看视频得奖励"){ |
| | | if (oneId == "列表"){ |
| | | $("#t3").show() |
| | | } |
| | | } |
| | | } |
| | | window.onload = function() { |
| | | if ($('#model option:selected').text()=="不跳转"){ |
| | | $("#t1").hide(); |
| | | $("#t2").hide(); |
| | | $("#t3").hide(); |
| | | $("#page").val("") |
| | | $("#type").val("") |
| | | $("#pageId").val("") |
| | | } |
| | | |
| | | var temp = $("#turnId").val(); |
| | | var res= document.getElementById("imgPX"); |
| | | res.innerHTML ="推荐像素:780x472px"; |
| | | console.log("看看temp",temp); |
| | | if (temp==""){ |
| | | $("#t3").hide(); |
| | | $("#t3").val("") |
| | | $("#pageId").val("") |
| | | } |
| | | // 查看跳转页面 有没有跳转类型 |
| | | var page = $('#page option:selected').text(); |
| | | if (page=="门店列表" || page=="主页" || page=="充值中心" ){ |
| | | $("#t2").hide(); |
| | | $("#t3").hide(); |
| | | $("#t2").val("") |
| | | $("#t3").val("") |
| | | $("#type").val("") |
| | | $("#pageId").val("") |
| | | } |
| | | } |
| | | </script> |