bug
This commit is contained in:
@@ -1332,14 +1332,18 @@ function initBaseInfo(city,region,address,lat,lng){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(response.data.data.momRateType>0){
|
if(response.data.data.momRateType>0){
|
||||||
|
$("#momRateTypeClass").removeClass("icon-arrow-green");
|
||||||
$("#momRateTypeClass").addClass("icon-arrow-red");
|
$("#momRateTypeClass").addClass("icon-arrow-red");
|
||||||
}else{
|
}else{
|
||||||
|
$("#momRateTypeClass").removeClass("icon-arrow-red");
|
||||||
$("#momRateTypeClass").addClass("icon-arrow-green");
|
$("#momRateTypeClass").addClass("icon-arrow-green");
|
||||||
}
|
}
|
||||||
if(response.data.data.priceRateType>0){
|
if(response.data.data.priceRateType>0){
|
||||||
|
$("#priceRateTypeClass").removeClass("icon-arrow-green");
|
||||||
$("#priceRateTypeClass").addClass("icon-arrow-red");
|
$("#priceRateTypeClass").addClass("icon-arrow-red");
|
||||||
$("#priceInfo").text("上涨概率");
|
$("#priceInfo").text("上涨概率");
|
||||||
}else{
|
}else{
|
||||||
|
$("#priceRateTypeClass").removeClass("icon-arrow-red");
|
||||||
$("#priceRateTypeClass").addClass("icon-arrow-green");
|
$("#priceRateTypeClass").addClass("icon-arrow-green");
|
||||||
$("#priceInfo").text("下跌概率");
|
$("#priceInfo").text("下跌概率");
|
||||||
}
|
}
|
||||||
@@ -1359,6 +1363,7 @@ function initBaseInfo(city,region,address,lat,lng){
|
|||||||
|
|
||||||
}
|
}
|
||||||
var regionList=[];
|
var regionList=[];
|
||||||
|
|
||||||
function loadRegion(){
|
function loadRegion(){
|
||||||
$("#region").picker({
|
$("#region").picker({
|
||||||
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01c">\
|
toolbarTemplate: '<header class="bar bar-nav bar-nav01 bar-nav01c">\
|
||||||
@@ -1373,6 +1378,20 @@ function loadRegion(){
|
|||||||
],onOpen:function(p){
|
],onOpen:function(p){
|
||||||
p.cols[0].replaceValues(regionList)
|
p.cols[0].replaceValues(regionList)
|
||||||
//p.updateValue();
|
//p.updateValue();
|
||||||
|
},onClose:function(p){
|
||||||
|
var region_copy = $("#region_copy").val();
|
||||||
|
var flag = false;
|
||||||
|
$("body").delegate("#regionStatusButton", "click", function () {
|
||||||
|
flag = true;
|
||||||
|
if(region_copy != p.value[0]){
|
||||||
|
$("#region_copy").val(p.value[0]);
|
||||||
|
$("#region").val(p.value[0]);
|
||||||
|
changeRegion();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if(!flag){
|
||||||
|
$("#region").val(region_copy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1463,7 +1482,7 @@ function initNews(){
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$("body").delegate("#regionStatusButton", "click", function () {
|
/*$("body").delegate("#regionStatusButton", "click", function () {
|
||||||
var region_copy = $("#region_copy").val();
|
var region_copy = $("#region_copy").val();
|
||||||
var value = $(".picker-selected").text();
|
var value = $(".picker-selected").text();
|
||||||
if(region_copy != value && value!="" && value!=null){
|
if(region_copy != value && value!="" && value!=null){
|
||||||
@@ -1478,7 +1497,7 @@ $("#region").click(function(e){
|
|||||||
changeRegion();
|
changeRegion();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})*/
|
||||||
|
|
||||||
$("body").delegate(".icon-light-red", "click", function () {
|
$("body").delegate(".icon-light-red", "click", function () {
|
||||||
var id = $(this).attr("data-val");
|
var id = $(this).attr("data-val");
|
||||||
@@ -1540,17 +1559,22 @@ function changeRegion(){
|
|||||||
|
|
||||||
regionChange(response.data.data.region);
|
regionChange(response.data.data.region);
|
||||||
if(response.data.data.momRateType>0){
|
if(response.data.data.momRateType>0){
|
||||||
|
$("#momRateTypeClass").removeClass("icon-arrow-green");
|
||||||
$("#momRateTypeClass").addClass("icon-arrow-red");
|
$("#momRateTypeClass").addClass("icon-arrow-red");
|
||||||
}else{
|
}else{
|
||||||
|
$("#momRateTypeClass").removeClass("icon-arrow-red");
|
||||||
$("#momRateTypeClass").addClass("icon-arrow-green");
|
$("#momRateTypeClass").addClass("icon-arrow-green");
|
||||||
}
|
}
|
||||||
if(response.data.data.priceRateType>0){
|
if(response.data.data.priceRateType>0){
|
||||||
|
$("#priceRateTypeClass").removeClass("icon-arrow-green");
|
||||||
$("#priceRateTypeClass").addClass("icon-arrow-red");
|
$("#priceRateTypeClass").addClass("icon-arrow-red");
|
||||||
$("#priceInfo").text("上涨概率");
|
$("#priceInfo").text("上涨概率");
|
||||||
}else{
|
}else{
|
||||||
|
$("#priceRateTypeClass").removeClass("icon-arrow-red");
|
||||||
$("#priceRateTypeClass").addClass("icon-arrow-green");
|
$("#priceRateTypeClass").addClass("icon-arrow-green");
|
||||||
$("#priceInfo").text("下跌概率");
|
$("#priceInfo").text("下跌概率");
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#region_copy").val(response.data.data.region);
|
$("#region_copy").val(response.data.data.region);
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user