|
@@ -166,7 +166,6 @@
|
|
|
}
|
|
|
});
|
|
|
//
|
|
|
- let isChecked = false; //是否开通项目匹配
|
|
|
if(!isinitpage){
|
|
|
getuserinfo();
|
|
|
}
|
|
@@ -177,17 +176,11 @@
|
|
|
$('.custom-dialog').hide()
|
|
|
})
|
|
|
})
|
|
|
- if (isChecked === true) {
|
|
|
- $('.switch').addClass('checked')
|
|
|
- } else {
|
|
|
- $('.switch').removeClass('checked')
|
|
|
- }
|
|
|
$('.switch').on('click', function (e) {
|
|
|
console.log($(this).hasClass('checked'))
|
|
|
let that = this;
|
|
|
let hasChecked = $(this).hasClass('checked');
|
|
|
if (hasChecked == false) {
|
|
|
- isChecked = true;
|
|
|
$(that).addClass('checked');
|
|
|
weui.toast('项目匹配已开启',{
|
|
|
duration: 3000,
|
|
@@ -195,7 +188,6 @@
|
|
|
})
|
|
|
setprojectmatch(1);
|
|
|
} else {
|
|
|
- isChecked = false;
|
|
|
$(that).removeClass('checked');
|
|
|
$('.custom-dialog').hide()
|
|
|
// $('#auto_renew').hide(500);
|
|
@@ -257,8 +249,10 @@
|
|
|
}
|
|
|
if(_vipData){
|
|
|
if(Number(_vipData["i_projectmatch"])==1){
|
|
|
- isChecked = true;
|
|
|
- }
|
|
|
+ $('.switch').addClass('checked')
|
|
|
+ }else{
|
|
|
+ $('.switch').removeClass('checked')
|
|
|
+ }
|
|
|
$("._area").text(_vipData["o_area"]);
|
|
|
$("._buyerClass").text(_vipData["a_buyerclass"]);
|
|
|
$("._cycleCount").text(_vipData["cycle"]);
|