Bläddra i källkod

Merge branch 'dev2.8.5' of http://192.168.3.207:10080/qmx/jy into dev2.8.5

xuzhiheng 5 år sedan
förälder
incheckning
94956a0da0
27 ändrade filer med 324 tillägg och 165 borttagningar
  1. 6 21
      src/jfw/modules/subscribepay/src/util/vrew.go
  2. 2 1
      src/web/staticres/css/wxkeyset.css
  3. 11 0
      src/web/staticres/vipsubscribe/css/messageType.css
  4. 25 1
      src/web/staticres/vipsubscribe/css/subscribe_list.css
  5. 31 2
      src/web/staticres/vipsubscribe/css/vip_index.css
  6. 2 1
      src/web/staticres/vipsubscribe/css/vip_service_expire.css
  7. 0 9
      src/web/staticres/vipsubscribe/js/common.js
  8. 4 4
      src/web/staticres/vipsubscribe/js/keyWord.js
  9. 3 0
      src/web/templates/weixin/email/bind_email.html
  10. 24 4
      src/web/templates/weixin/historypush.html
  11. 22 44
      src/web/templates/weixin/vipsubscribe/choose_area.html
  12. 21 18
      src/web/templates/weixin/vipsubscribe/choose_industry.html
  13. 0 1
      src/web/templates/weixin/vipsubscribe/edit_subscribe.html
  14. 0 1
      src/web/templates/weixin/vipsubscribe/edit_subscribe_allArea.html
  15. 0 1
      src/web/templates/weixin/vipsubscribe/edit_subscribe_city.html
  16. 7 6
      src/web/templates/weixin/vipsubscribe/edit_subscribe_industry.html
  17. 0 1
      src/web/templates/weixin/vipsubscribe/edit_subscribe_province.html
  18. 0 1
      src/web/templates/weixin/vipsubscribe/edit_subscribe_success.html
  19. 4 6
      src/web/templates/weixin/vipsubscribe/keyWord.html
  20. 85 11
      src/web/templates/weixin/vipsubscribe/messageType.html
  21. 1 1
      src/web/templates/weixin/vipsubscribe/renew_notice.html
  22. 35 21
      src/web/templates/weixin/vipsubscribe/vip_index.html
  23. 1 1
      src/web/templates/weixin/vipsubscribe/vip_order_detail.html
  24. 0 1
      src/web/templates/weixin/vipsubscribe/vip_pay_success.html
  25. 22 2
      src/web/templates/weixin/vipsubscribe/vip_purchase.html
  26. 1 1
      src/web/templates/weixin/wxinfocontent.html
  27. 17 5
      src/web/templates/weixin/wxkeyset/index.html

+ 6 - 21
src/jfw/modules/subscribepay/src/util/vrew.go

@@ -234,34 +234,19 @@ func getKeyWordArrFromDbResult(a_items []interface{}) (arr []ViewKeyWord) {
 //初始化vip订阅关键词
 func MergeKws(userId string) {
 	defer qutil.Catch()
-	if userId == "" {
+	if userId == "" { //11-11 取消此操作
 		return
 	}
 	data, ok := MQFW.FindById("user", userId, `{"o_jy":1,"o_vipjy":1}`)
-	var o_jy map[string]interface{}
 	var o_vipjy map[string]interface{}
 	if ok && data != nil && len(*data) > 0 {
 		o_vipjy, _ = (*data)["o_vipjy"].(map[string]interface{})
 		a_items, _ := o_vipjy["a_items"].([]interface{})
-		o_jy, _ = (*data)["o_jy"].(map[string]interface{})
-		a_key, _ := o_jy["a_key"].([]interface{})
-		if a_items == nil && len(a_key) > 0 { //首次
-			var o_kws = make(map[string]interface{})
-			var _key = make([]map[string]interface{}, len(a_key))
-			o_kws["s_item"] = "未分类"
-			for k, v := range a_key {
-				keyarr := v.(map[string]interface{})
-				_key[k] = map[string]interface{}{"key": keyarr["key"].([]interface{})}
-			}
-			o_kws["a_key"] = _key
-			o_kws["i_tips"] = 0
-			if o_kws != nil && len(o_kws) > 0 {
-				a := MQFW.UpdateById("user", userId, bson.M{
-					"$push": bson.M{"o_vipjy.a_items": o_kws},
-					"$set":  bson.M{"o_vipjy.i_matchway": 1, "o_vipjy.i_ratemode": 1, "o_vipjy.i_wxpush": 1, "o_vipjy.i_projectmatch": 0, "o_vipjy.l_modifydate": time.Now().Unix()},
-				})
-				log.Println(a)
-			}
+		if a_items == nil { //首次
+			a := MQFW.UpdateById("user", userId, bson.M{
+				"$set": bson.M{"o_vipjy.i_matchway": 1, "o_vipjy.i_ratemode": 1, "o_vipjy.i_wxpush": 1, "o_vipjy.i_projectmatch": 0, "o_vipjy.a_infotype": []string{}, "o_vipjy.a_items": []string{}, "o_vipjy.l_modifydate": time.Now().Unix()},
+			})
+			log.Println(a)
 		}
 	}
 }

+ 2 - 1
src/web/staticres/css/wxkeyset.css

@@ -66,7 +66,8 @@ html.hidden,body.hidden,.keysetpage .keyWordContent.adjustment{
 	position: absolute;
     left: 0px;
     right: 0px;
-    top: 0px;
+/*    top: 0px;*/
+    top: 47px;
 	z-index: 1;
 }
 .keysetpage .keyWordContent.adjustment{

+ 11 - 0
src/web/staticres/vipsubscribe/css/messageType.css

@@ -118,3 +118,14 @@ body .industry .resetOne button:first-child {
   background: #fff;
   color: #2cb7ca;
 }
+/*----*/
+.result {
+    position: fixed;
+    padding: .2rem .3rem;
+    font-size: .26rem;
+    text-align: justify;
+    width: 100%;
+    background: rgba(245,244,249,1);
+    z-index: 999;
+	    top: 0px;
+}

+ 25 - 1
src/web/staticres/vipsubscribe/css/subscribe_list.css

@@ -6,7 +6,7 @@
   align-items: center;
 }
 
-.flex_alginC_justB, .vip_banner .box, .filter_tab, .filter_tab .area_container .area_wrap .handle_menu, .set_keyword > div, .renew_toast > div, .open_remind .remind_box {
+.flex_alginC_justB, .vip_banner .box, .filter_tab, .filter_tab .area_container .area_wrap .handle_menu, .set_keyword > div, .renew_toast > div,.nv_renew_toast > div, .open_remind .remind_box {
   display: flex;
   align-items: center;
   justify-content: space-between;
@@ -498,3 +498,27 @@ text-decoration: none;
   border-radius: .32rem;
   text-align: center;
 }
+
+.nv_renew_toast > div {
+  padding: .15rem .3rem;
+  color: #fff;
+  font-size: .26rem;
+}
+
+.nv_renew_toast > div i {
+  font-size: .32rem;
+}
+
+.nv_renew_toast > div a {
+  width: 1.24rem;
+  height: .64rem;
+  line-height: .64rem;
+  color: #fff;
+  text-align: center;
+  background: transparent;
+  border: 1px solid white;
+  border-radius: .32rem;
+}
+.nv_renew_toast > div {
+  background-color: #FE737A;
+}

+ 31 - 2
src/web/staticres/vipsubscribe/css/vip_index.css

@@ -246,8 +246,8 @@
 }
 
 .custom-dialog .weui-dialog__hd {
-  background: #F5F4F9;
-  padding: .17rem 0;
+  background: #fff;
+  padding:  0.38rem 0 0;
   color: #000;
   font-size: .34rem;
   text-align: center;
@@ -726,4 +726,33 @@ i.icon-wenhao{
     color: #2CB7CA;
 /*    padding-top: .05rem;*/
     margin-left: .2rem;
+}
+
+.vip_index .footer .nv_renew_toast {
+  width: 100%;
+}
+
+.vip_index .footer .nv_renew_toast div {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  padding: .15rem .3rem;
+  color: #fff;
+  font-size: .26rem;
+  background-color: #FE737A;
+}
+
+.vip_index .footer .nv_renew_toast div i {
+  font-size: .32rem;
+}
+
+.vip_index .footer .nv_renew_toast div a {
+  width: 1.24rem;
+  height: .64rem;
+  line-height: .64rem;
+  color: #fff;
+  text-align: center;
+  background: transparent;
+  border: 1px solid white;
+  border-radius: .32rem;
 }

+ 2 - 1
src/web/staticres/vipsubscribe/css/vip_service_expire.css

@@ -232,11 +232,12 @@
   justify-content: space-between;
   align-items: center;
   padding: 0 .3rem;
-  padding-top: 1.3rem;
+  /*padding-top: 1.3rem;*/
 }
 
 .vip_service_expire .service_expire_tip {
   width: 100%;
+  padding-top: 1.3rem;
 }
 
 .vip_service_expire .service_expire_tip .tip_title_box {

+ 0 - 9
src/web/staticres/vipsubscribe/js/common.js

@@ -1,12 +1,3 @@
-$(function() {
-    // 解决ios系统click 事件300毫秒的延迟
-    try{
-	    FastClick.attach(document.body); 
-    }catch(e){
-		console.log(e)    	
-    }
-});
-
 //请求同意调用
 function $DoPost(url,param={},callback,async=true){
 	$.ajax({

+ 4 - 4
src/web/staticres/vipsubscribe/js/keyWord.js

@@ -66,6 +66,10 @@ var reloadFunc = function(){
                 callback: function () { console.log('close') }
             });
         }else if (saveData("SK")){
+            // 设置状态 首次添加关键词
+            if(a_items.length==0){
+                setEmptyHistory();
+            }
             //
             doSessionData();
             $(".add-keyword-container .addNewKeyword").show();
@@ -112,10 +116,6 @@ var reloadFunc = function(){
             var buttonDOM = $('.enter.addkeyWord .btn button')[0]
             buttonDOM.style.opacity = .5
             buttonDOM.setAttribute("disabled", true)
-            // 设置状态 首次添加关键词
-            if(a_items.length==0){
-                setEmptyHistory();
-            }
             //保存关键词 查看关键词数量 未分类 超过20 100提示
             if(classify_name.indexOf("未分类")>-1){
                 if((kws_tips==0&&$(".showKeyWord li").length>=20)||(kws_tips==20&&$(".showKeyWord li").length>=100)){

+ 3 - 0
src/web/templates/weixin/email/bind_email.html

@@ -24,6 +24,9 @@
 			    background: transparent;
 			    display: none;
 			}
+			.email_input,.code_input{
+				line-height: 20px !important;
+			}
 		</style>
 		<div class="bind_email">
			<div class="input mgT26">
				<input type="email" placeholder="输入邮箱" name="" id="" value="" class="email_input" />
				<input type="text" placeholder="输入验证码" name="" id="" value="" class="code_input" />
				<button class="sendcode" >获取验证码</button>
 				<button class="code_true"><i class="icon iconfont email_check_ok" style="display: inline;"></i></button>

+ 24 - 4
src/web/templates/weixin/historypush.html

@@ -125,10 +125,14 @@
 						}
 						if(parseInt(data.isOnTail)!=1){
 							$('.free7days_pic').append("<style>.free7days_pic:after{display:none}</style>");
-						}
-						if(parseInt(data.isExpire)!=0){
-							$(".isExpire").text(parseInt(data.isExpire));
-							$(".renew_toast").show();
+							if(parseInt(data.isExpire)!=0){
+								$(".isExpire").text(parseInt(data.isExpire));
+								$(".renew_toast").show();
+							}
+						}else{
+							if(parseInt(data.isExpire)!=0){
+								$(".nv_renew_toast").show();
+							}
 						}
 						$(".vip_set").show();
 						$(".tab_left .area").show();
@@ -611,6 +615,11 @@
 			setSessionStorage();
 			window.location.href="/weixin/pay/renewPayPage";
 		}
+		//购买
+		function topay(){
+			setSessionStorage();
+			window.location.href="/weixin/pay/vipsubscribe_new";
+		}
 	</script>
 	<style type="text/css">
 		.findnull{
@@ -851,6 +860,14 @@
       			<a onclick="torepay()">去续费</a>
       		</div>
       	</div>
+      	<!-- 试用用户 到期 去购买 提醒 -->
+      	<div class="nv_renew_toast" style="display: none;">
+      		<div>
+      			<i class="icon iconfont" id="nv_close_renew">&#xe61a;</i>
+      			<span>VIP订阅服务试用已过期,请及时购买!</span>
+      			<a onclick="topay()">去购买</a>
+      		</div>
+      	</div>
       	<!-- 设置关键词 -->
       	<div class="set_keyword" style="display: none;">
       		<div>
@@ -1135,6 +1152,9 @@
             $('#close_renew').on('click',() =>{
             	$('.renew_toast').hide()
             })
+            $('#nv_close_renew').on('click',() =>{
+            	$('.nv_renew_toast').hide()
+            })
             
         })
     </script>

+ 22 - 44
src/web/templates/weixin/vipsubscribe/choose_area.html

@@ -354,12 +354,12 @@
         </div>
         <div class="tips_btn">
             <div class="tips_discount">
-                <div class="tips_d_money" style="display: block">&yen;38</div>
+                <div class="tips_d_money" style="display: none">&yen;38</div>
                 <div class="tips_d_text">已选择4个市,建议购买“全省”更划算哦~</div>
             </div>
             <div class="btns">
-                <button class="reset-btn">重置</button>
-                <button class="save-btn">确认</button>
+                <button class="reset-btn" disabled >重置</button>
+                <button class="save-btn" disabled >确认</button>
             </div>
         </div>
         <div class="slide">
@@ -382,7 +382,6 @@
         </div>
     </div>
     <script src="/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
-    <script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/mapJSON.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>
     <script>
@@ -469,13 +468,12 @@
             $(".checkbox.other").trigger("click");           
             return
           }
-          this.selectObj = {};
+          var tmpSelect = {};
           $('.result_name').empty()
           var data = []; //定义一个总数组
           var cityArr =[]; //定义一个选中城市数组
           var val = $('.other').parents('.province').text().trim();
           if ($('.other').is(':checked')) {
-            // data.push(val)
             data =[{name:val,children:[]}] //全国
             $(".tips_d_text").slideUp();
           }
@@ -526,6 +524,7 @@
           var html = '';
           var selectProvince = 0;
           var selectCityMax = 0;
+
           for (var i = 0; i < result.length; i++) {
               let children = result[i].children;
               if( children.length >0){
@@ -548,7 +547,7 @@
                   }else{
                       html += `)`
                   }
-                  this.selectObj[result[i].name]=childrenArr;//
+                  tmpSelect[result[i].name]=childrenArr;//
               }else{
                   selectProvince++
                  
@@ -557,7 +556,7 @@
                   }else{
                       html += `${result[i].name}`
                   }
-                  this.selectObj[result[i].name]=[];//
+                  tmpSelect[result[i].name]=[];//
               }
           }
           
@@ -573,14 +572,16 @@
               } 
             }
           }
-          
-          
-          
-          console.log("this.selectObj:",this.selectObj)
+          this.selectObj = tmpSelect;
+          console.log("this.selectObj:",tmpSelect)
           $('.result_name').append(html)
           AreaChoose.isOpen()
-          //刷新价格
-          AreaChoose.flushPrice();
+         
+          if(result.length>0){ //已选择
+            $('.reset-btn').removeAttr("disabled");
+            $('.save-btn').removeAttr("disabled");
+            AreaChoose.flushPrice(); //刷新价格
+          }
         },
         submitArea:function(){
           let addCity = $('.result_name').text(); //新增的城市
@@ -600,14 +601,6 @@
               $('.other').prop('checked', true);
           }
         },
-        getNationwide:function(){/*默认选中全国 */
-          $('.other').prop('checked', true);
-          $('.tab_content').slideUp(500)
-          $('.tab span i').css({
-              "display":"inline-block",
-              "transform":"rotate(0)"
-          });
-        },
         isOpen:function(){
           let pHeight = $('.result_text').height()
           let minHeight = $('.result_text').css('min-height')
@@ -674,21 +667,6 @@
             $('.checkbox').click(function (e) {  
                 e.stopPropagation();
             })
-            /*$('.province .checkbox:not(.other)').on('change', function () {
-                var isCheckded = $(this).is(':checked')
-                if (isCheckded) {
-                    $(this).parents('.tab').siblings('.tab_content').find('.city').addClass(
-                        'active')
-                    AreaChoose.isAllSelected()
-                    AreaChoose.getResult() 
-                } else {
-                    $(this).parents('.tab').siblings('.tab_content').find('.city').removeClass(
-                        'active')
-                    $(this).parents('.tab').siblings('.tab_content').find('.city').attr('disabled',false);    
-                    AreaChoose.isAllSelected()
-                    AreaChoose.getResult() 
-                }
-            })*/
             $('.tab .checkbox').on('click',function () {
                 if($(this).hasClass("other")){//点击全国
                   $(".province input").prop('checked', false);
@@ -763,12 +741,12 @@
             }
         },
         flushPrice:function(){
-          if(this.vipSubisTrial){
-            $('.tips_d_money').css("display","none");
-          }else{
-            var price=getsubVipOrderPrice(this.selectObj,this.selectedIndustryArr,this.timeSelect);
-            $('.tips_d_money').text('¥'+price);
-          }
+            if(!this.vipSubisTrial){
+              $('.tips_d_money').css("display","block");
+              var price=getsubVipOrderPrice(this.selectObj,this.selectedIndustryArr,this.timeSelect);
+              $('.tips_d_money').text('¥'+price);
+            }
+     
         }
       }
       
@@ -777,7 +755,7 @@
             AreaChoose.inintData(); //初始化 已选择和已购买数据
             AreaChoose.inintPage(); //初始化城市数据
 
-            AreaChoose.getNationwide();//默认选中全国 
+            //AreaChoose.getNationwide();//默认选中全国 
             AreaChoose.showSelected(true);//回显已选择
             /* 判断已购买的城市 在不在 全部城市里面,在,将按钮置灰,不可点击 */
 

+ 21 - 18
src/web/templates/weixin/vipsubscribe/choose_industry.html

@@ -24,7 +24,7 @@
                         <li class="list_item" id="all">
                             <div class="item_label"></div>
                             <div class="item_industry_list">
-                                <button class="industry_item active">全部行业</button>
+                                <button class="industry_item">全部行业</button>
                             </div>
                         </li>
                         <li class="list_item" id="A">
@@ -231,17 +231,16 @@
             </div>
             <div class="tips_btn">
                 <div class="tips_discount">
-                    <div class="tips_d_money" style="display: block">&yen;38</div>
+                    <div class="tips_d_money" style="display: none">&yen;38</div>
                     <div class="tips_d_text">已选择4个行业,建议购买“全部行业”更划算哦~</div>
                 </div>
                 <div class="btns">
-                    <button class="reset-btn">重置</button>
-                    <button class="save-btn">确认</button>
+                    <button class="reset-btn" disabled >重置</button>
+                    <button class="save-btn"  disabled >确认</button>
                 </div>
             </div>
         </main>
         <script src="/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
-        <script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>
         <script src="/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
         <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>
         <script>
@@ -278,7 +277,7 @@
                         }
                     }
                 })
-                
+                              
                 // 显示隐藏优惠tips
                 if (selectedArr.length >= 4 && !vipSubisTrial) {
                     $('.tips_btn .tips_d_text').text("已选择"+selectedArr.length+"个行业,建议购买“全部行业”更划算哦~").slideDown()
@@ -286,12 +285,19 @@
                     $('.tips_btn .tips_d_text').slideUp()
                 }
           
-                selectedIndustryArr = selectedArr
+                if(selectedArr.length>0){//是否已选择
+                  selectedIndustryArr = selectedArr
+                  
+                  $(".reset-btn").removeAttr("disabled");
+                  $(".save-btn").removeAttr("disabled");
+                  flushPrice()//刷新价格
+                }
+          
                 
                 var selectedStr = selectedArr.join('、')
                 $('.result .result_name').text(selectedStr)
 
-                if (selectedArr.length === 0) {
+                if (selectedArr.length === 0&&selectedIndustryArr[0]!="一个行业") {
                     var allButton = $('#all button')
                     allButton.trigger('click')
                     $('.result .result_name').text(allButton.text())
@@ -302,6 +308,9 @@
                 }
                 //调整高度
                 $(".select-area-box .list").css("margin-top",$(".result").height()+20);
+                
+                
+                               
             }
                       
             function showSelect(arr,canclick){
@@ -319,11 +328,9 @@
             }
             
             function flushPrice(){
-              if(vipSubisTrial){
-                $('.tips_d_money').css("display","none");
-              }else{
+              if(!vipSubisTrial){
                 var price=getsubVipOrderPrice(selectedAreaObj,selectedIndustryArr,timeSelect);
-                $('.tips_d_money').text('¥'+price);
+                $('.tips_d_money').css("display","bolck").text('¥'+price);
               }
             }
             
@@ -340,8 +347,7 @@
                     $('#all button').removeClass('active')
                 }
                 
-                findSelectedIndustry()
-                flushPrice()
+                findSelectedIndustry()                
             })
 
             // 重置按钮事件
@@ -359,7 +365,7 @@
                 history.go(-1);
             })
                        
-            var selectedIndustryArr //已选择行业
+            var selectedIndustryArr =["一个行业"] //已选择行业
             var selectedAreaObj = {"一个省":["一个市"]} //计算价格临时变量
             var timeSelect = [1,2]//计算价格临时变量 timeSelect[0]时长  timeSelect[1] 1:年 2:月
             var vipSubisTrial = false;
@@ -367,8 +373,6 @@
               try{
                 if(sessionStorage.getItem("vipSubSelectIndustry")){
                   selectedIndustryArr=JSON.parse(sessionStorage.getItem("vipSubSelectIndustry"));
-                }else{
-                  selectedIndustryArr=[];
                 }
                 if(sessionStorage.getItem("vipSubSelectArea")){
                   selectedAreaObj=JSON.parse(sessionStorage.getItem("vipSubSelectArea"));
@@ -384,7 +388,6 @@
               //已选择
               showSelect(selectedIndustryArr,true);
               findSelectedIndustry();
-              flushPrice();
             })
         </script>
     </body>

+ 0 - 1
src/web/templates/weixin/vipsubscribe/edit_subscribe.html

@@ -55,7 +55,6 @@
        </div>-->
     </div>
     <script src="/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
-    <script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>
     <script>

+ 0 - 1
src/web/templates/weixin/vipsubscribe/edit_subscribe_allArea.html

@@ -384,7 +384,6 @@
         </div>
     </div>
     <script src="/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
-    <script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/mapJSON.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>

+ 0 - 1
src/web/templates/weixin/vipsubscribe/edit_subscribe_city.html

@@ -385,7 +385,6 @@
         </div>
     </div>
     <script src="/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
-    <script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/mapJSON.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>

+ 7 - 6
src/web/templates/weixin/vipsubscribe/edit_subscribe_industry.html

@@ -242,7 +242,6 @@
             </div>
         </main>
         <script src="/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
-        <script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>
         <script src="/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
         <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>
         <script>
@@ -316,19 +315,21 @@
                       }
                       $('.select-area-box .list button').removeClass('active');
                       $('#all button').addClass('active');
+                      $('#enter').removeAttr('disabled');
                     }else{
                       $(this).toggleClass('active')
                       if($(".industry_item.active").length==0){//如果没有行业被选中 则选中全部行业
-                        if(EditIndustry.reqData.buyset.buyerclasscount!=-1){
-                          EditIndustry.showTip(`至少选择一个行业`);
-                          $(this).toggleClass('active'); 
-                          return
+                        if(EditIndustry.reqData.buyset.buyerclasscount==-1){
+                          $('#all button').addClass('active');
+                        }else{
+                          $('#enter').attr('disabled','disabled');//选择空不能提交
                         }
-                        $('#all button').addClass('active'); 
                       }else{
                         $('#all button').removeClass('active');
+                        $('#enter').removeAttr('disabled');
                       }
                     }
+                    
                     EditIndustry.findSelectedIndustry(false);
                 })
                 // 取消按钮事件 返回上一页

+ 0 - 1
src/web/templates/weixin/vipsubscribe/edit_subscribe_province.html

@@ -353,7 +353,6 @@
         </div>
     </div>
     <script src="/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
-    <script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
     <script>

+ 0 - 1
src/web/templates/weixin/vipsubscribe/edit_subscribe_success.html

@@ -19,7 +19,6 @@
             <button class="public_btn" id="back">返回(<em class="time">5</em>)</button>
         </div>
         <script src="/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
-        <script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>
         <script>
             function timer(obj,callback) { 
                 let t = 5; 

+ 4 - 6
src/web/templates/weixin/vipsubscribe/keyWord.html

@@ -279,7 +279,7 @@
 					if(a_items.length==0){
 		                window.history.go(-1)
 		            }
-		            var loading = weui.loading('loading...', {
+		            var loading = weui.loading('', {
 		                className: 'custom-classname'
 		            })
 		            $('.classify-show-pop').hide();
@@ -539,7 +539,6 @@
                         kwsHtml +='<div class="modify" style="display: none;">'
                     }
 					var p = kws_arr[_keyArr[i]["key"].join(" ")].split("-")[0]
-					console.log("p:"+p)
                     kwsHtml +='<textarea name="" rows="1" placeholder="" maxlength="20">'+_keyArr[i]["key"].join(" ")+'</textarea>'
                                 +'<button class="addAdjunctWord" onclick="toappendkey(this)">'+ak_remark+' 附加词 <i class="appendkey '+ak_showClass+'">('+appendkeylth+')</i></button>'
                                 +'<button class="addExclusion" onclick="tonotkey(this)">'+nk_remark+' 排除词 <i class="notkey '+nk_showClass+'">('+notkeylth+')</i></button>'
@@ -694,7 +693,6 @@
             //删除关键词
             if(t!="DK"){
 				kws_arr[kws_name] = kws_index+"-"+classify_index
-				console.log(kws_index,"----",$(".showKeyWord li").length)
                 if(kws_index == $(".showKeyWord li").length){
                     //新加
                     var karr = {"key":kws_name.split(" "),"appendkey":addition_kws,"notkey":not_kws}
@@ -794,11 +792,11 @@
             })
 
             // 点击分类目录的每一项,进入对应列表
-            $('.classify-list').on('click', '.classify-item-r', function() {
+            $('.classify-list').on('click', '.classify-item', function() {
                 // 添加一条空历史记录
                 history.pushState({id:1}, "","");
-                classify_name = $(this).parent('div').find('.classify-item-l').text();
-                classify_index = $(this).parent().parent("li.classify-item").index()
+                classify_name = $(this).find('.classify-item-l').text();
+                classify_index = $(this).index()
                 //展示此关键词信息
                 toSetKws();
             })

+ 85 - 11
src/web/templates/weixin/vipsubscribe/messageType.html

@@ -5,11 +5,12 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     <title>信息类型</title>
-    <link rel="stylesheet" href="/vipsubscribe/css/base.css">
-    <link rel="stylesheet" href="/vipsubscribe/iconfont/iconfont.css">
-    <link rel="stylesheet" href="/vipsubscribe/css/messageType.css">
-    <link rel="stylesheet" href="/css/common.css">
-    <script src="/vipsubscribe/js/rem.js"></script>
+    <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/vipsubscribe/css/base.css?v={{Msg "seo" "version"}}">
+    <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/vipsubscribe/iconfont/iconfont.css?v={{Msg "seo" "version"}}">
+    <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/vipsubscribe/css/messageType.css?v={{Msg "seo" "version"}}">    
+	<link rel="stylesheet" href="{{Msg "seo" "cdn"}}/vipsubscribe/css/weui.min.css?v={{Msg "seo" "version"}}">
+    <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/css/common.css?v={{Msg "seo" "version"}}">
+    <script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/rem.js?v={{Msg "seo" "version"}}"></script>
     <style type="text/css">
         body .industry .resetOne{
             position: fixed;
@@ -25,7 +26,11 @@
     </style>
 </head>
 <body>
-
+	<div class="result">
+        <p class="result_text line_two">
+          已选择:<span class="result_name"></span>
+        </p>
+    </div>
     <div class="easypopup" id="nijianTip">
         <div class="easypopup-alert">
             <div class="easypopup-content">
@@ -89,19 +94,52 @@
         </div>
 
     </div>
-    <script src="/js/jquery-3.2.1.min.js?v=1412"></script>
-    <script src="/js/common.js"></script>
-    <script>           
+    <script src="{{Msg "seo" "cdn"}}/js/jquery-3.2.1.min.js?v=1412"></script>
+    <script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
+    <script src="{{Msg "seo" "cdn"}}/js/common.js?v={{Msg "seo" "version"}}"></script>
+    <script>      
+		var hasZBGG = ""
+		var hasZBJG = ""
+		var hasZBXYXX = ""
+		var hasStr = ""     
         function hasActive(){
             var arr = "";
+			hasZBGG = ""
+			hasZBJG = ""
+			hasZBXYXX = ""
+			hasStr = ""  
             $(".list ul li dl dd").each(function(index){
                 if($(this).hasClass('active')){
                     arr = arr + "," + $(this).text()
+					if($(this).prevAll("dt").text()=="招标公告"){
+						if(hasZBGG!=""){
+							hasZBGG+="、"
+						}
+						hasZBGG += $(this).text()
+					}
+					if($(this).prevAll("dt").text()=="招标结果"){
+						if(hasZBJG!=""){
+							hasZBJG+="、"
+						}
+						hasZBJG += $(this).text()
+					}
+					if($(this).prevAll("dt").text()=="招标信用信息"){
+						if(hasZBXYXX!=""){
+							hasZBXYXX+="、"
+						}
+						hasZBXYXX += $(this).text()
+					}
                 }
             })
             $(".list ul li dl dt").each(function(index){
                 if($(this).hasClass('active')&&($(this).text()=="招标预告"||$(this).text()=="拟建项目")){
                     arr = arr + "," + $(this).attr("dataValue")
+					if($(this).text()=="招标预告"||$(this).text()=="拟建项目"){
+						if (hasStr!=""){
+							hasStr += " "
+						}
+						hasStr += $(this).text();
+					}
                 }
             })
             return arr.substr(1)
@@ -127,6 +165,34 @@
                 })
             }
         }
+		//
+		function getChecked(){
+			hasActive();
+			if (hasZBGG!=""||hasZBJG!=""|hasZBXYXX!=""){
+				if(hasStr != ""){
+					hasStr +=" "
+				}
+				if(hasZBGG!=""){
+					hasStr+=" 招标公告 ("+hasZBGG+")"
+				}
+				if(hasZBJG!=""){
+					hasStr+=" 招标结果 ("+hasZBJG+")"
+				}
+				if(hasZBXYXX!=""){
+					hasStr+=" 招标信用信息 ("+hasZBXYXX+")"
+				}
+			}
+			if(hasStr!=""){
+				$(".result_name").text(hasStr);
+			}else{
+				$(".result_name").text("全部");
+			}
+			
+	        weui.loading().hide();
+			$(".result").css("visibility","");
+          	$(".industry").css("margin-top",$('.result_text').height()+25);
+			$(".industry").css("visibility","");
+		}
         //
         isLockButton (false);
         // 传入false为锁定确认按钮
@@ -134,16 +200,19 @@
             var button = $('.reset').siblings()[0]
             if (flag) {
                 // true,解锁button
-                $(button).css({ opacity: 1}).removeAttr('disabled')
+                $(button).css({"background": "#2cb7ca"}).removeAttr('disabled')
             } else {
                 // false, 锁定button
-                $(button).css({ opacity: 0.5 }).attr('disabled', true)
+                $(button).css({"background": "#95DBE4"}).attr('disabled', true)
             }
         }
         //
         var njTipEasyPopup = null;
         //是否 修改
         $(function(){
+	        weui.loading();
+			$(".result").css("visibility","hidden");
+			$(".industry").css("visibility","hidden");
             //获取用户设置信息类型
             $.post("/subscribepay/afterPay/getUserInfo",{},function(r){
                 if(r.userData){
@@ -159,6 +228,7 @@
                 }else{
                     $('.all span').addClass('active');
                 }
+				getChecked();
             })
             //
             $(".sure").on("click",function(){
@@ -183,6 +253,7 @@
                     $('.list ul li dl dt').removeClass('active')
                     $('.list ul li dl dd').removeClass('active')
                 }
+				getChecked();
             })
             $(".list ul li dl dt").on("click", function(){
                 isLockButton (true);
@@ -195,6 +266,7 @@
                     $('.all span').removeClass('active')
                 }
                 isAllSelected ()
+				getChecked();
             })
             $(".list ul li dl dd").on('click',function(){
                 isLockButton (true);
@@ -209,6 +281,7 @@
                 // 决定dt是否被选中
                 isDtSelected (this)
                 isAllSelected ()
+				getChecked();
             })
 
             $('.reset').on('click',function(){
@@ -216,6 +289,7 @@
                 $('.all span').addClass('active')
                 $('.list ul li dl dt').removeClass('active')
                 $('.list ul li dl dd').removeClass('active')
+				getChecked();
             })
         })
 

+ 1 - 1
src/web/templates/weixin/vipsubscribe/renew_notice.html

@@ -8,7 +8,7 @@
 		<link rel="stylesheet" type="text/css" href="/vipsubscribe/css/base.css?v={{Msg "seo" "version"}}"/>
 		<link rel="stylesheet" href="/vipsubscribe/css/weui.min.css?v={{Msg "seo" "version"}}">
 		<link rel="stylesheet" href="/vipsubscribe/iconfont/iconfont.css?v={{Msg "seo" "version"}}">
-		<link rel="stylesheet" href="/vipsubscribe/css/vip_service_expire.css?v={{Msg "seo" "version"}}">
+		<link rel="stylesheet" href="/vipsubscribe/css/vip_service_expire.css?v={{Msg "seo" "version"}}1">
 		{{include "/common/weixin.html"}}
 	</head>
 	<style type="text/css">

+ 35 - 21
src/web/templates/weixin/vipsubscribe/vip_index.html

@@ -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">&#xe61a;</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"]="全部类型"
 	                        }

+ 1 - 1
src/web/templates/weixin/vipsubscribe/vip_order_detail.html

@@ -166,7 +166,7 @@
 </body>
 <script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
 <script src="{{Msg "seo" "cdn"}}/vipsubscribe/js/common.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>
 <script>
 try{

+ 0 - 1
src/web/templates/weixin/vipsubscribe/vip_pay_success.html

@@ -40,7 +40,6 @@
 	</body>
   <script src="/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
   <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>
-  <script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>
   <script src="/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
   <script>
     $(function(){

+ 22 - 2
src/web/templates/weixin/vipsubscribe/vip_purchase.html

@@ -68,7 +68,6 @@
                     <a href="javascript:;">
                         <span class="label">支付方式</span>
                         <span class="info choose_way">微信支付</span>
-                        <i class="iconfont icon-arrow choose_way"></i>
                     </a>
                 </div>
                 {{end}}
@@ -257,7 +256,6 @@
         </div>
     </div>
     <script src="/vipsubscribe/js/jquery-2.1.4.js?v={{Msg "seo" "version"}}"></script>
-    <!--<script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>-->
     <script src="/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
     <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>
     {{include "/common/weixin.html"}}
@@ -358,6 +356,28 @@
                 },false)
               }
             {{end}}
+            
+             {{if eq .T.again 1 }}
+              //即将到期 回显已购买
+              if(!sessionStorage.getItem("vipSubSelectArea")||!sessionStorage.getItem("vipSubSelectIndustry")){
+                $DoPost("/subscribepay/editSub/getSubBuyMsg",{},function(r){
+                  if(r.success){
+                    if(!$.isEmptyObject(r.data.area)){
+                      purchase.areaSelect=r.data.area
+                    }else{
+                      purchase.areaSelect={"全国":[]}
+                    }
+                    if(r.data.industry.length!=0){
+                      purchase.industrySelect=r.data.industry
+                    }else{
+                      purchase.industrySelect=["全部行业"]
+                    }
+                    sessionStorage.setItem("vipSubSelectArea",JSON.stringify(purchase.areaSelect));
+                    sessionStorage.setItem("vipSubSelectIndustry",JSON.stringify(purchase.industrySelect));
+                  }
+                },false)
+              }
+            {{end}}
             if(sessionStorage.getItem("vipSubSelectTime")){
               this.timeSelect=JSON.parse(sessionStorage.getItem("vipSubSelectTime"));
             }

+ 1 - 1
src/web/templates/weixin/wxinfocontent.html

@@ -580,7 +580,7 @@ pre {
 					}
 			</script>
 		
-		{{if .T.obj.hasSession}}{{if or .T.obj.projectname .T.obj.projectcode}}<div class="follow_vip" >{{if .T.obj.followFlag}}<i class="glyphicon yiguanzhu"></i>已关注{{else}}<i class="glyphicon weiguanzhu"></i>关注项目{{end}}</div>{{end}}{{else}}<!--<a href="/swordfish/share/-1" style="text-decoration: none;color:#24C0D7;"><span class="follow"><i class="glyphicon weiguanzhu"></i></span>关注项目</a>-->{{end}}
+		{{if .T.obj.hasSession}}{{if or .T.obj.projectname .T.obj.projectcode}}<div class="follow" style="top:1px !important">{{if .T.obj.followFlag}}<i class="glyphicon yiguanzhu"></i>已关注{{else}}<i class="glyphicon weiguanzhu"></i>关注项目{{end}}</div>{{end}}{{else}}<!--<a href="/swordfish/share/-1" style="text-decoration: none;color:#24C0D7;"><span class="follow"><i class="glyphicon weiguanzhu"></i></span>关注项目</a>-->{{end}}
 		</div>
 		{{else}}
 		<!--非VIP-->

+ 17 - 5
src/web/templates/weixin/wxkeyset/index.html

@@ -138,6 +138,11 @@ $(function(){
 		if(!r || !r["a_key"]){
 			return;
 		}
+		if (r["a_key"].length>=10){
+			$(".open_remind").show();
+		}else{
+			$(".open_remind").hide();
+		}
 		for(var i=0;i<r["a_key"].length;i++){
 			var a_key = r["a_key"][i];
 			var key = a_key["key"];
@@ -194,8 +199,9 @@ $(function(){
 	}).on('compositionend', function(){
 	    $(this).prop('comStart', false);
 	}).blur(function(){
-		$("#ten").css("margin-bottom","1rem");
-		$(".vip_banner").show();
+		if(myArray.length>=10){
+			$("#ten").css("margin-bottom","1rem");
+		}
 		isfocusing = false;
 		var thisClass = $(this);
 		$(".keyword").attr("readonly",false);
@@ -218,13 +224,17 @@ $(function(){
 			$(".keyWordContent").removeClass('adjustment');
 			$(".keyWordGroup").show();
 			var valueArray = getKeyWords();
+			if (valueArray.length>=10){
+				$(".open_remind").show();
+			}else{
+				$(".open_remind").hide();
+			}
 			if(valueArray.length >= 1&&!disflag&&surpriseflag==""){
 				surswitch();
 			}
 		},300);
 	}).focus(function(){
 		$("#ten").css("margin-bottom","");
-		$(".vip_banner").hide();
 		$(".header,.keyWordContent").addClass("absolute");
 		if(focusinputindex != $(this).parents(".keyWordGroup").index()){
 			istiped = false;
@@ -292,7 +302,9 @@ $(function(){
     }
 	//
 	if(isIOS){
-		$("#ten").css("margin-bottom","1rem");
+		if(myArray.length>=10){
+			$("#ten").css("margin-bottom","1rem");
+		}
 	}
 });
 //
@@ -844,7 +856,7 @@ function tointroducepage(){
 		<span>您订阅的关键词包含特殊符号,可能会收不到推送信息。查看<a href="http://mp.weixin.qq.com/s/2u1rBaTZ7T_o8k7TbuM_fw">订阅帮助页面</a></span>
 	</div>
 	<div  class="msg_alert">
-		<div class="open_remind">
+		<div class="open_remind" style="display:none;">
             <div class="remind_box">
 				<i class="icon iconfont" id="close_set"></i>
                 <div class="remind_text">