1 . 11111111111111
2 . 222222222
3 . 33333333333
4 . 44444444444
debugJS F10
<%@ page language="java" import="java.util.*,com.wudaosoft.weixin.oauth2.*" pageEncoding="UTF-8"%>
<%@ page import="com.wudaosoft.weixin.CommonApi"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
String source = (String)request.getParameter("source");
String customerNo=request.getParameter("customerNo");
%>
<%-- var customerNo=<%=customerNo%>; --%>
$(function () {
searchYouHui();
/* var customerNo =$('#customerNo').val();
alert(customerNo); */
});
function showSqcgModel() {
document.getElementById('sqcgModel').style.display = 'block';
scrollTo(0,0);
}
function closeSqcgModel() {
document.getElementById('sqcgModel').style.display = 'none';
}
function showZytjModel() {
scrollTo(0,0);
document.getElementById('zytjModel').style.display = 'block';
}
function closeZytjModel() {
document.getElementById('zytjModel').style.display = 'none';
}
function showTjcgModel() {
scrollTo(0,0);
document.getElementById('tjcgModel').style.display = 'block';
}
function closeTjcgModel() {
document.getElementById('tjcgModel').style.display = 'none';
}
function showTjiaocgModel() {
document.getElementById('tjiaocgModel').style.display = 'block';
scrollTo(0,0);
}
function closeTjiaocgModel() {
document.getElementById('tjiaocgModel').style.display = 'none';
}
function clickidzhu(e) {
if($(e).is(':checked')){
$(e).parents("ul").next().find("input").prop('checked',true);
}
if(!$(e).is(':checked')){
$(e).parents("ul").next().find("input").prop('checked',false);
}
}
function clickidzi(e) {
if($(e).is(':checked')){
$(e).parents("table").prev().find("input").prop('checked',true);
}else{
var num=$(e).parents("table").find("input:checked").length;
/* alert(num); */
if(num>0){
$(e).parents("table").prev().find("input").prop('checked',true);
}else{
$(e).parents("table").prev().find("input").prop('checked',false);
}
}
}
function lianxiwo() {
var customerNo="<%=customerNo%>";
alert(customerNo);
var jxsdh="";
$(".zhu:checked").each(function(i,val){
var zz = $(this).attr("name");
jxsdh+= zz+",";
});
if(jxsdh==null||jxsdh==""){
alert("请选择活动商家和车型");
return;
}
$.ajax({
type: "POST",
url: "<%=request.getContextPath()%>/api/book!getLXW.action",
//url: "http://api.kx.cn/Account/commCode",
data: {
"customerNo":customerNo,
"jxsdh":jxsdh
},
success: function(data){
showZytjModel();
},error:function (data){
alert("系统异常");
}
});
}
function shenqingyouhui(e) {
var customerNo="<%=customerNo%>";
var status = "10";
var companyName = $(e).attr("id");
var selectAllowance="";
$(e).parents("ul").next().find("input:checked").each(function(i,val){
var zz= $(this).attr("id");
selectAllowance+= zz+","
});
if(selectAllowance==null||selectAllowance==""){
alert("请选择活动车型");
return;
}
//进行估价
$.ajax({
type: "POST",
url: "<%=request.getContextPath()%>/api/book!getSQYH.action",
//url: "http://api.kx.cn/Account/commCode",
data: {
"customerNo":customerNo,
"status":status,
"companyName":companyName,
"selectAllowance":selectAllowance
},
success: function(data){
/* alert(data); */
/* var data = eval("("+data+")"); */
showSqcgModel()
},error:function (data){
alert("系统异常");
}
});
}
function searchYouHui() {
var quyu =$('#quyu').val();
var pinpai =$('#pinpai').val();
var jingxiaoshang =$('#jingxiaoshang').val();
//进行估价
$.ajax({
type: "POST",
url: "<%=request.getContextPath()%>/api/book!getYH.action",
//url: "http://api.kx.cn/Account/commCode",
data: {
"areaNms":quyu,
"brandNms":pinpai,
"s4Nm":jingxiaoshang
},
success: function(data){
var data1 = eval("("+data+")");
console.log(data1.data);
var listPrivate = data1.data.listPrivate;
var listRecommend = data1.data.listRecommend;
var html = "";
if(listPrivate.length > 0){
for (var i in listPrivate){
var item=listPrivate[i];
/* alert(item.brandNm); */
html += "
活动车型 | ||
---|---|---|
" +item2.styleNm + " | "优惠金额:"+item2.allowanceFee + " | "" |
}
}
if(listRecommend.length > 0){
html +="
活动车型 | ||
---|---|---|
" +item2.styleNm + " | "优惠金额:"+item2.allowanceFee + " | "" |
}
function selectQuYu() {
var pinpai =$('#select_pinpai').val();
var jxs =$('#select_jingxiaoshang').val();
//进行估价
$.ajax({
type: "POST",
url: "<%=request.getContextPath()%>/api/book!getQuYu.action",
//url: "http://api.kx.cn/Account/commCode",
data: {
"brandNms":pinpai,
"s4Nm":jxs
},
success: function(data){
var data1 = eval("("+data+")");
var data2 = data1.data;
var quyu= "[";
if(data2.length>0){
for (var i in data2){
var item=data2[i];
if(i
quyu+="{id: " +i+" , title: '"+item.name+"'},";
}
}else{
if(item.name !="" ||item.name !=null){
quyu+="{id: " +i+" , title: '"+item.name+"'}]";
}
}
}
}
quyu = eval("("+quyu+")");
var comboTree1 = $('#select_quyu').comboTree({
source : quyu,
isMultiple: true
});
},error:function (data){
alert("系统异常");
}
});
}
function selectPinPai() {
var quyu =$('#select_quyu').val();
var jxs =$('#select_jingxiaoshang').val();
//进行估价
$.ajax({
type: "POST",
url: "<%=request.getContextPath()%>/api/book!getPinPai.action",
//url: "http://api.kx.cn/Account/commCode",
data: {
"areaNms":quyu,
"s4Nm":jxs
},
success: function(data){
var data1 = eval("("+data+")");
var data2 = data1.data;
var pinpai= "[";
if(data2.length>0){
for (var i in data2){
/* alert(i); */
var item=data2[i];
if(i
pinpai+="{id: " +i+" , title: '"+item.name+"'";
var sub = item.subordinateList;
if(sub.length>0){//有子
pinpai+=",subs: ["
for (var s in sub){//子循环开始
var m = 10000 + s;
var subitem=sub[s];
if(s
}else{//子循环不是最后一层
pinpai+="{id: " +m+" , title: '"+subitem.name+"'}]";
}
}//子循环开始结束
pinpai+="},";
}else{//无子
pinpai+="},";
}
}
}//第一层不是最后一个
else{//第一层最后一个
if(item.name !="" ||item.name !=null){
pinpai+="{id: " +i+" , title: '"+item.name+"'";
var sub = item.subordinateList;
if(sub.length>0){//有子
pinpai+=",subs: ["
for (var s in sub){//子循环开始
var m = 20000 + s;
var subitem=sub[s];
if(s
}else{//子循环是最后一层
pinpai+="{id: " +m+" , title: '"+subitem.name+"'}]";
}
} //子循环开始结束
pinpai+="}]";
}else{//无子
pinpai+="}]";
}
}
}//第一层最后一个
}
}
pinpai = eval("("+pinpai+")");
var comboTree1 = $('#select_pinpai').comboTree({
source : pinpai,
isMultiple: true
});
},error:function (data){
alert("系统异常");
}
});
}
function selectJingXiaoShang() {
var pinpai =$('#select_pinpai').val();
var quyu =$('#select_quyu').val();
//进行估价
$.ajax({
type: "POST",
url: "<%=request.getContextPath()%>/api/book!getJingXiaoShang.action",
data: {
"brandNms":pinpai,
"areaNms":quyu
},
success: function(data){
var data1 = eval("("+data+")");
var data2 = data1.data;
var JingXiaoShang= "[";
if(data2.length>0){
for (var i in data2){
var item=data2[i];
if(item !=null){
if(i
JingXiaoShang+="{id: " +i+" , title: '"+item.name+"'},";
}
}else{
if(item.name !="" ||item.name !=null){
JingXiaoShang+="{id: " +i+" , title: '"+item.name+"'}]";
}
}
}
}
}
JingXiaoShang = eval("("+JingXiaoShang+")");
var comboTree1 = $('#select_jingxiaoshang').comboTree({
source : JingXiaoShang,
isMultiple: true
});
},error:function (data){
alert("系统异常");
}
});
}
.container {
width: 100%;
height: 100%;
text-align: center;
margin: 0px auto;
}
#tjiaocgModel {
position: absolute;
top: 0;
left: 0;
display: none;
background-color: rgba(9, 9, 9, 0.63);
width: 100%;
height: 100%;
/* z-index: 1000; */
}
.tjiaocgModel-content {
width: 680px;
height: 620px;
text-align: center;
background: #ffffff;
border-radius: 6px;
margin: 100px auto;
line-height: 30px;
/* z-index: 10001; */
}
#tjcgModel {
position: absolute;
top: 0;
left: 0;
display: none;
background-color: rgba(9, 9, 9, 0.63);
width: 100%;
height: 100%;
/* z-index: 1000; */
}
.tjcgModel-content {
width: 680px;
height: 620px;
text-align: center;
background: #ffffff;
border-radius: 6px;
margin: 100px auto;
line-height: 30px;
/* z-index: 10001; */
}
#zytjModel {
position: absolute;
top: 0;
left: 0;
display: none;
background-color: rgba(9, 9, 9, 0.63);
width: 100%;
height: 100%;
/* z-index: 1000; */
}
.zytjModel-content {
width: 680px;
height: 620px;
text-align: center;
background: #ffffff;
border-radius: 6px;
margin: 100px auto;
line-height: 30px;
/* z-index: 10001; */
}
#sqcgModel {
position: absolute;
top: 0;
left: 0;
display: none;
background-color: rgba(9, 9, 9, 0.63);
width: 100%;
height: 100%;
/* z-index: 1000; */
}
.sqcgModel-content {
width: 680px;
height: 620px;
text-align: center;
background: #ffffff;
border-radius: 6px;
margin: 100px auto;
line-height: 30px;
/* z-index: 10001; */
}
<%-- --%>
活动车型 | ||
---|---|---|
${detail.styleNm} | 优惠金额:${detail.allowanceFee} |
活动车型 | ||
---|---|---|
c222 | 优惠金额:1000 | |
c222 | 优惠金额:1000 | |
c222 | 优惠金额:1000 |
如您无从选择,点击“帮我推荐”,我们将为您自动推荐最优方案。实际优惠政策以当日公布为准。 | |
<%@ page language="java" import="java.util.*,com.wudaosoft.weixin.oauth2.*" pageEncoding="UTF-8"%>
<%@ page import="com.wudaosoft.weixin.CommonApi"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
String source = (String)request.getParameter("source");
%>