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