|
@@ -15,7 +15,7 @@
|
|
|
<link rel="stylesheet" type="text/css" href="{{Msg "seo" "cdn"}}/vipsubscribe/css/base.css?v={{Msg "seo" "version"}}" />
|
|
|
<link rel="stylesheet" type="text/css" href="{{Msg "seo" "cdn"}}/vipsubscribe/iconfont/iconfont.css?v={{Msg "seo" "version"}}" />
|
|
|
<link rel="stylesheet" href="{{Msg "seo" "cdn"}}/vipsubscribe/css/public.css?v={{Msg "seo" "version"}}">
|
|
|
- <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/vipsubscribe/css/vip_index.css?v={{Msg "seo" "version"}}1">
|
|
|
+ <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/vipsubscribe/css/vip_index.css?v={{Msg "seo" "version"}}2">
|
|
|
</head>
|
|
|
|
|
|
<body style="visibility:hidden;">
|
|
@@ -123,6 +123,14 @@
|
|
|
<a href="/weixin/pay/renewPayPage">去续费</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 试用用户-去购买提醒 -->
|
|
|
+ <div class="nv_renew_toast" style="display: none;">
|
|
|
+ <div>
|
|
|
+ <i class="icon iconfont" id="nv_close_renew"></i>
|
|
|
+ <span>VIP订阅服务试用即将过期,请及时购买!</span>
|
|
|
+ <a href="/weixin/pay/vipsubscribe_new">去购买</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<!-- 升级 续费 -->
|
|
|
<div class="tabbar">
|
|
|
<a href="/weixin/pay/toUpgradePage" class="update_btn">升级</a>
|
|
@@ -134,7 +142,7 @@
|
|
|
<div class="weui-mask weui-animate-fade-in"></div>
|
|
|
<div class="weui-dialog weui-animate-fade-in">
|
|
|
<div class="weui-dialog__hd"><strong class="weui-dialog__title" style="font-weight: bold;">项目匹配</strong></div>
|
|
|
- <div class="weui-dialog__bd" style="line-height: .4rem;padding: .37rem .3rem;font-size: 14px;text-align: left;color: #686868;">开启后,系统将根据你订阅的关键词自动匹配出相关联的项目,并将相关联项目的后续动态在VIP订阅内一并推送。</div>
|
|
|
+ <div class="weui-dialog__bd" style="line-height: .4rem;padding: .37rem .45rem;font-size: 14px;text-align: left;color: #686868;">开启后,系统将根据你订阅的关键词自动匹配出相关联的项目,并将相关联项目的后续动态在VIP订阅内一并推送。</div>
|
|
|
<div class="weui-dialog__ft" style="border-top: 1px solid #eee;padding-bottom: .2rem;padding-top: .2rem;">
|
|
|
<a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary" style="background: #fff;color: #2CB7CA;text-align: center;margin-right: unset;">我知道了</a>
|
|
|
</div>
|
|
@@ -142,7 +150,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- <script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+<!-- <script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>-->
|
|
|
<script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
|
|
|
{{include "/common/weixin.html"}}
|
|
|
<script src="{{Msg "seo" "cdn"}}/wxswordfish/share.js?v={{Msg "seo" "version"}}11"></script>
|
|
@@ -158,7 +166,6 @@
|
|
|
}
|
|
|
});
|
|
|
//
|
|
|
- let isChecked = false; //是否开通项目匹配
|
|
|
if(!isinitpage){
|
|
|
getuserinfo();
|
|
|
}
|
|
@@ -169,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,
|
|
@@ -187,7 +188,6 @@
|
|
|
})
|
|
|
setprojectmatch(1);
|
|
|
} else {
|
|
|
- isChecked = false;
|
|
|
$(that).removeClass('checked');
|
|
|
$('.custom-dialog').hide()
|
|
|
// $('#auto_renew').hide(500);
|
|
@@ -202,6 +202,11 @@
|
|
|
$('#close_renew').on('click', () => {
|
|
|
$('.renew_toast').hide()
|
|
|
})
|
|
|
+ $('#nv_close_renew').on('click', () => {
|
|
|
+ $('.nv_renew_toast').hide();
|
|
|
+ $(".tabbar").html('<a style="width: 100%;color: #fff;background: #2CB7CA;" href="/weixin/pay/vipsubscribe_new" class="update_btn">去购买</a>');
|
|
|
+ $(".tabbar").show();
|
|
|
+ })
|
|
|
})
|
|
|
//
|
|
|
function getuserinfo(){
|
|
@@ -220,29 +225,38 @@
|
|
|
var _vipstatus = _userData["i_vip_status"];
|
|
|
// console.log(_userData)
|
|
|
if(_vipstatus&&_vipstatus=="1"){
|
|
|
- $(".tabbar").html('<a style="width: 100%;color: #fff;background: #2CB7CA;" href="/weixin/pay/vipsubscribe_new" class="update_btn">去购买</a>')
|
|
|
+ if(parseInt(_vipData["expRemind"])>0){
|
|
|
+ $(".to_expired").show();
|
|
|
+ $(".nv_renew_toast").show();
|
|
|
+ $(".tabbar").hide();
|
|
|
+ }else{
|
|
|
+ $(".to_expired").hide();
|
|
|
+ $(".tabbar").html('<a style="width: 100%;color: #fff;background: #2CB7CA;" href="/weixin/pay/vipsubscribe_new" class="update_btn">去购买</a>')
|
|
|
+ }
|
|
|
$('.free7days_pic').text("VIP订阅服务");
|
|
|
$('.free7days_pic').append("<style>.free7days_pic::after{display:inline-block}</style>");
|
|
|
}else{
|
|
|
+ if(parseInt(_vipData["expRemind"])>0){
|
|
|
+ $(".to_expired").show();
|
|
|
+ $(".renew_day").text(parseInt(_vipData["expRemind"]))
|
|
|
+ $(".renew_toast").show();
|
|
|
+ }else{
|
|
|
+ $(".to_expired").hide();
|
|
|
+ }
|
|
|
$(".tabbar").html('<a href="/weixin/pay/toUpgradePage" class="update_btn">升级</a><a href="/weixin/pay/renewPayPage" class="renew_btn">续费</a>')
|
|
|
$('.free7days_pic').text("已开通VIP订阅服务");
|
|
|
$('.free7days_pic').append("<style>.free7days_pic::after{display:none}</style>");
|
|
|
}
|
|
|
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"]);
|
|
|
$("._activeDate").text(_userData["l_vip_starttime"]+" - "+_userData["l_vip_endtime"]);
|
|
|
- if(parseInt(_vipData["expRemind"])>0){
|
|
|
- $(".to_expired").show();
|
|
|
- $(".renew_day").text(parseInt(_vipData["expRemind"]))
|
|
|
- $(".renew_toast").show();
|
|
|
- }else{
|
|
|
- $(".to_expired").hide();
|
|
|
- }
|
|
|
if(_vipData["a_infotype"]==""){
|
|
|
_vipData["a_infotype"]="全部类型"
|
|
|
}
|