ソースを参照

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

wangshan 5 年 前
コミット
e60201b217

+ 3 - 0
src/jfw/front/dataExport.go

@@ -81,6 +81,7 @@ func (d *DataExport) SieveData() error {
 	subType := d.GetString("subtype")
 	buyer := d.GetString("buyer")
 	winner := d.GetString("winner")
+	selectType := d.GetString("selectType")
 
 	var areaArr []string
 	var cityArr []string
@@ -124,6 +125,7 @@ func (d *DataExport) SieveData() error {
 			log.Println("keywordList", len(keywordList), keywordList)
 		}
 	}
+	log.Println("selectType", selectType)
 	if buyer != "" {
 		buyerArr = strings.Split(buyer, ",")
 		log.Println("buyerArr", buyerArr)
@@ -139,6 +141,7 @@ func (d *DataExport) SieveData() error {
 		"region":      regionArr,
 		"industry":    industryArr,
 		"keywords":    keywordList,
+		"selectType":  selectType,
 		"minprice":    minPrice,
 		"maxprice":    maxPrice,
 		"subtype":     subType,

+ 7 - 8
src/jfw/modules/app/src/web/staticres/jyapp/dataExport/css/keyWord.css

@@ -2,20 +2,19 @@
   display: flex;
   flex-direction: column;
   justify-content: space-between;
-  width: 100%;
-  height: 100%;
-  overflow: hidden;
+  overflow: scroll;
+  flex: 1;
 }
 .keyWord .content {
   flex: 1;
   overflow-y: scroll;
 }
 .keyWord .title {
-  height: 1.12rem;
-  font-size: .26rem;
-  color: #888;
-  padding: .2rem;
-  line-height: .85rem;
+  	height: .85rem;
+    font-size: .26rem;
+    color: #888;
+    padding: 0 .2rem;
+    line-height: .85rem;
 }
 .keyWord .enter{
   overflow: hidden;

+ 12 - 8
src/jfw/modules/app/src/web/staticres/jyapp/dataExport/js/keyWord.js

@@ -57,14 +57,18 @@ $(function(){
         this.style.height = 'auto';
         this.style.height = this.scrollHeight + "px";
     });
-
-    //防止键盘把当前输入框给挡住
-    $('input[type="text"],textarea').focus(function () {
-        var target = this;
-        setTimeout(function(){
-            target.scrollIntoViewIfNeeded();
-        },400);
-    });
+    var u = navigator.userAgent;
+	var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
+	var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
+	if(isAndroid){
+		//防止键盘把当前输入框给挡住
+	    $('input[type="text"],textarea').focus(function () {
+	        var target = this;
+	        setTimeout(function(){
+	            target.scrollIntoViewIfNeeded();
+	        },400);
+	    });
+	}
 
     // 添加 按钮的点击事件
     $('.addkeyWord .btn .save').on('click', function(){

+ 2 - 1
src/jfw/modules/app/src/web/staticres/jyapp/js/wxSupersearch.js

@@ -718,7 +718,8 @@ var SuperSearch = {
 			return false;
 		}
 		SuperSearch.reqParam.searchvalue=SuperSearch.s_words;
-		localStorage.keyWord = JSON.stringify([{"keyWord":SuperSearch.s_words}]);
+		//预览数据需要用
+		localStorage.keyWords = JSON.stringify([{"keyWord":SuperSearch.s_words}]);
 		//信息范围
 		var scope = [];
 		$("#supersearchPage .contentone .btn.active").each(function(){

+ 9 - 0
src/jfw/modules/app/src/web/templates/dataExport/dataExport.html

@@ -328,6 +328,13 @@
         /* 选择匹配方式*/
         $('input:radio[name="way"]').click(function() {
             var checkValue = $('input:radio[name="way"]:checked').val();
+        	$(".read").each(function () {
+                var p = $(this).children().text();
+                if(p!==checkValue){
+                	$(".confirm").hide();
+                	$(".resetOne").show();
+                }
+           	});
             $('.match_way').hide(200);
             $('.match').html(checkValue);
             var selectType = "";
@@ -699,6 +706,8 @@
                 type = "按全文匹配";
             }
             $(".match").text(type);
+            $(".confirm").hide();
+            $(".resetOne").show();
         }
         //信息类型
         if(localStorage.subTypes!==undefined && localStorage.subTypes!==""){

+ 32 - 9
src/jfw/modules/app/src/web/templates/dataExport/dataExport_keyWord.html

@@ -9,24 +9,30 @@
     <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/jyapp/dataExport/css/base.css?v={{Msg "seo" "version"}}">
     <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/jyapp/dataExport/iconfont/iconfont.css?v={{Msg "seo" "version"}}">
     <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/jyapp/dataExport/css/weui.min.css?v={{Msg "seo" "version"}}">
-    <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/jyapp/dataExport/css/keyWord.css?v={{Msg "seo" "version"}}23">
-    <script src="{{Msg "seo" "cdn"}}/jyapp/dataExport/js/rem.js?v={{Msg "seo" "version"}}"></script>
+    <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/jyapp/dataExport/css/keyWord.css?v={{Msg "seo" "version"}}25">
+    <script src="{{Msg "seo" "cdn"}}/jyapp/dataExport/js/rem.js?v={{Msg "seo" "version"}}6"></script>
     <script src="{{Msg "seo" "cdn"}}/jyapp/js/jquery.js"></script>
     <link rel="stylesheet" type="text/css" href="/jyapp/css/font.css?v={{Msg "seo" "version"}}" />
 </head>
 <style>
+	.page{
+		display: flex;
+		flex-direction: column;
+		height: 100%;
+		justify-content: space-between;
+	}
     .app-layout-header{
         line-height: 44px;
         background-color: #FFFFFF;
         text-align: center;
         border-bottom: 1px solid #E6E6E6;
         font-size: 17px;
-        position: fixed;
+        /*position: fixed;*/
         padding-top: 20px;
-        z-index: 99999;
-        left: 0;
-        right: 0;
-        top: 0;
+        /*z-index: 99999;*/
+        /*left: 0;*/
+        /*right: 0;*/
+        /*top: 0;*/
         color: #444444;
     }
     body{
@@ -65,11 +71,12 @@
 
 </style>
 <body>
+	<div class="page">
     <div class="app-layout-header">
         <span class="app-back jyapp-icon jyapp-icon-zuojiantou"></span>
         关键词
     </div>
-    <div class="keyWord" style="padding-top:53px">
+    <div class="keyWord">
         <section class="content">
         <p class="title">示例:软件系统(关键词);  开发(附加词);  运维(排除词)</p>
         <!-- 添加关键词 -->
@@ -136,16 +143,32 @@
 
         </div>
 
+    </div>
     </div>
     <script src="{{Msg "seo" "cdn"}}/jyapp/dataExport/js/zepto.js?v={{Msg "seo" "version"}}"></script>
     <script src="{{Msg "seo" "cdn"}}/jyapp/dataExport/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
-    <script src="/jyapp/dataExport/js/keyWord.js?v={{Msg "seo" "version"}}48"></script>
+    <script src="/jyapp/dataExport/js/keyWord.js?v={{Msg "seo" "version"}}53"></script>
     <script>
         $(window).bind("pageshow", function(event){
             if(event.originalEvent.persisted){
                 window.location.reload();
             }
         });
+        
+        
+//		console.dir($('body').scrollHeight)
+	    document.body.addEventListener('focusin', () => {  //软键盘弹起事件
+//	    	document.body.height = document.documentElement.clientHeight;
+//      	alert("键盘弹起")
+			
+		})
+		document.body.addEventListener('focusout', () => { //软键盘关闭事件
+//		    alert("键盘收起")
+//			alert(document.documentElement.clientHeight)
+//			alert(document.getElementsByClassName("app-layout-header").scrollTop)
+		})
+        
+        
         var keyWordArr = [];
         if(localStorage.keyWord !== "" && localStorage.keyWord !== undefined){
             var keyWord = localStorage.keyWord;

+ 5 - 5
src/jfw/modules/weixin/src/config.json

@@ -8,11 +8,11 @@
     "weixinrpcport": "8083",
     "webrpcport": "127.0.0.1:8084",
     "jyop_webrpcport": "127.0.0.1:8012",
-    "webdomain": "http://web-jydev-ws.jianyu360.cn",
-    "appid": "wx5b1c6e7cc4dac0e4",
-    "apptoken": "top2015top2015",
-    "appsecret": "b026103ffebd2291b3edb7a269612112",
-    "proxysess": "http://web-jydev-ws.jianyu360.cn/front/sess/%s",
+    "webdomain": "http://web-jydev-xzh.jianyu360.cn",
+    "appid": "wx41a95e706276804d",
+    "apptoken": "topnet2018topnet2018",
+    "appsecret": "1b385c7dd14274c5e0898b9b208580b7",
+    "proxysess": "http://web-jydev-xzh.jianyu360.cn/front/sess/%s",
     "followCompany": 10,
     "welcomemsg": "用剑鱼标讯,所有功能完全免费,\n和传统的会员制说再见!\n\n<a href='%s'>点击这里</a>设置关键词,或直接回复“订阅 关键词”,如“订阅 教学设备”,您将随时随地接收招标信息!\n\n剑鱼标讯,让投标无限可能!",
     "tpl_subscribe_push_id": "IY_RWWzMlwDK6hcd6RAzTec6qre8n5r8PNOOUM_hgk0",

BIN
src/jfw/modules/weixin/src/src.exe~


+ 6 - 6
src/web/staticres/dataExport/css/conditions.css

@@ -130,13 +130,13 @@ button {
       width: 130px; }
   .conditions-box .line-box {
     width: 1140px;
-    border-bottom: 1px solid #E0E0E0;
+    /*border-bottom: 1px solid #E0E0E0;*/
     padding-bottom: 20px;
     box-sizing: border-box; }
     .conditions-box .line-box.p20 {
       padding: 20px 0; }
     .conditions-box .line-box .left {
-      width: 70px;
+      width: 114px;
       line-height: 36px;
       text-align: right;
       color: #1D1D1D;
@@ -176,8 +176,8 @@ button {
   box-sizing: border-box; }
   .select-area-box > span.select-area {
     cursor: pointer;
-    padding: 0 6px;
-    margin-right: 10px; }
+    padding: 0 6.9px;
+    /*margin-right: 10px;*/}
     .select-area-box > span.select-area.click {
       background: #F5F5FB;
       border: 1px solid #e0e0e0;
@@ -430,10 +430,10 @@ input {
   #inputDel_0 .delete-close {
     float: left;
     height: auto;
-    width: 336px;
+    width: 324px;
     text-align: left;
     line-height: 22px;
-    padding: 11px 25px 11px 15px;
+    padding: 8px 25px 9px 15px;
     text-overflow: ellipsis;
     white-space: nowrap;
     overflow: hidden;

+ 2 - 1
src/web/staticres/js/wxSupersearch.js

@@ -683,7 +683,8 @@ var SuperSearch = {
 			return false;
 		}
 		SuperSearch.reqParam.searchvalue=SuperSearch.s_words;
-		localStorage.keyWord = JSON.stringify([{"keyWord":SuperSearch.s_words}]);
+		//预览数据需要用
+		localStorage.keyWords = JSON.stringify([{"keyWord":SuperSearch.s_words}]);
 		//信息范围
 		var scope = [];
 		$("#supersearchPage .contentone .btn.active").each(function(){

+ 12 - 7
src/web/staticres/wx_dataExport/js/additionWord.js

@@ -35,13 +35,18 @@ $(function(){
         this.style.height = this.scrollHeight + "px";
     });
 
-    //防止键盘把当前输入框给挡住
-    $('input[type="text"],textarea').focus(function () {
-        var target = this;
-        setTimeout(function(){
-            target.scrollIntoViewIfNeeded();
-        },400);
-    });
+    var u = navigator.userAgent;
+	var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
+	var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
+	if(isAndroid){
+		//防止键盘把当前输入框给挡住
+	    $('input[type="text"],textarea').focus(function () {
+	        var target = this;
+	        setTimeout(function(){
+	            target.scrollIntoViewIfNeeded();
+	        },400);
+	    });
+	}
 
     // 添加keyWords检查输入框内是否有文字,如果有才能点击添加按钮
     $('.addkeyWord input.enterOne').on('input', function() {

+ 12 - 10
src/web/staticres/wx_dataExport/js/keyWord.js

@@ -272,16 +272,18 @@ $(function(){
         $(oSpan).val('').focus().val(val);
         $(".addKeyWord").hide();
     });
-    //
-    //防止键盘把当前输入框给挡住
-    $('input[type="text"],textarea').focus(function () {
-        var target = this;
-        setTimeout(function(){
-            target.scrollIntoViewIfNeeded();
-        },400);
-    });
-
-
+    var u = navigator.userAgent;
+	var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
+	var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
+	if(isAndroid){
+		//防止键盘把当前输入框给挡住
+	    $('input[type="text"],textarea').focus(function () {
+	        var target = this;
+	        setTimeout(function(){
+	            target.scrollIntoViewIfNeeded();
+	        },400);
+	    });
+	}
     // 编辑删除
     $('.showKeyWord').on('click', '.deleteKey', function(e) {
         var jQueryDOM = $(this).parents('li');

+ 103 - 7
src/web/templates/pc/dataExport_sieve.html

@@ -6,7 +6,7 @@
     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/dataExport/css/font_624651_c3e1rnkx3cn.css?v={{Msg "seo" "version"}}">
     <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/dataExport/css/reset_pc.css?v={{Msg "seo" "version"}}">
-    <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/dataExport/css/conditions.css?v={{Msg "seo" "version"}}">
+    <link rel="stylesheet" href="{{Msg "seo" "cdn"}}/dataExport/css/conditions.css?v={{Msg "seo" "version"}}7">
     <script language="javascript" type="text/javascript" src="{{Msg "seo" "cdn"}}/My97DatePicker/WdatePicker.js?v={{Msg "seo" "version"}}"></script>
     <script language="javascript" type="text/javascript" src="{{Msg "seo" "cdn"}}/dataExport/js/delbox.js?v={{Msg "seo" "version"}}"></script>
 
@@ -136,7 +136,7 @@
         }
 
         .ss {
-            width: 336px;
+            width: 324px;
         }
     </style>
     <style>
@@ -219,7 +219,7 @@
             font-size: 14px;
             line-height: 30px;
             position: absolute;
-            right: 0;
+            right: 40px;
             top: 0;
             cursor: pointer;
         }
@@ -336,14 +336,14 @@
 		    padding: 14px 0;
 		}
 		.conditions-box .line-box {
-		    width: 1140px;
-		    border-bottom: 1px solid #E0E0E0;
+		    width: 1200px;
+		    /*border-bottom: 1px solid #E0E0E0;*/
 		    padding-bottom: 15px;
 		    box-sizing: border-box;
 		}
 
         .tro{
-            width:1048px;
+            width:1010px;
             height:110px;
             background:rgba(254,254,254,1);
             border:1px dashed rgba(224,224,224,1);
@@ -353,7 +353,7 @@
         }
         .tro img{
             position: relative;
-            left: -500px;
+            left: -480px;
             top: 15px;
         }
         .tro p:nth-of-type(1){
@@ -381,6 +381,45 @@
             margin-top: 8px;
             margin-left: 42px;
         }
+        .heng{
+        	width:1140px;
+			height:1px;
+			background:rgba(224,224,224,1);
+			opacity:1;
+        }
+        .selectType{
+        	padding: 0 15px;
+        }
+        .textAll{
+        	width:102px;
+			height:36px;
+			text-align: center;
+			line-height: 30px;
+			border:1px solid rgba(224,224,224,1);
+			border-radius:4px;
+			font-size:14px;
+			font-family:Microsoft YaHei;
+			font-weight:400;
+			color:rgba(29,29,29,1);
+			opacity:1;
+        }
+        .textTitle{
+        	width:102px;
+			height:36px;
+			text-align: center;
+			line-height: 30px;
+			border:1px solid rgba(224,224,224,1);
+			border-radius:4px;
+			font-size:14px;
+			font-family:Microsoft YaHei;
+			font-weight:400;
+			color:rgba(29,29,29,1);
+			opacity:1;
+        }
+        .select{
+        	border-color: #2CB7CA;
+    		color: #2CB7CA;
+        }
     </style>
 </head>
 <body>
@@ -444,6 +483,7 @@
                 </div>
             </div>
         </div>
+        <div class="heng"></div>
         <!--区域-->
         <div class="line-box float-box">
             <div class="left" style="padding-top: 8px">区域</div>
@@ -479,6 +519,7 @@
                 </div>
             </div>
         </div>
+        <div class="heng"></div>
         <!--行业-->
         <div class="line-box float-box p20">
             <div class="left">行业</div>
@@ -496,6 +537,7 @@
                 </div>
             </div>
         </div>
+        <div class="heng"></div>
         <!--关键词-->
         <div class="line-box float-box p20">
             <div class="left" style="position: relative">
@@ -553,6 +595,22 @@
                 </div>
             </div>
         </div>
+        <div class="heng"></div>
+        <!--
+        	作者:1151584137@qq.com
+        	时间:2019-10-15
+        	描述:关键词匹配方式
+        -->
+        <div class="line-box float-box p20">
+        	<div class="left" style="position: relative">
+                	关键词匹配方式
+            </div>
+            <div class="selectType">
+                <button class="textAll select">按全文匹配</button>
+                <button class="textTitle">按标题匹配</button>
+            </div>
+        </div>
+        <div class="heng"></div>
         <!--金额-->
         <div class="line-box float-box p20">
             <div class="left" style="padding-top: 8px;">金额</div>
@@ -573,6 +631,7 @@
                 </div>
             </div>
         </div>
+        <div class="heng"></div>
         <!--信息类型-->
         <!--信息类型-->
         <div class="line-box float-box p20">
@@ -591,6 +650,7 @@
                 </div>
             </div>
         </div>
+        <div class="heng"></div>
         <!--采购单位-->
         <div class="line-box float-box p20">
             <div class="left">采购单位</div>
@@ -607,6 +667,7 @@
                 </div>
             </div>
         </div>
+        <div class="heng"></div>
         <!--中标单位-->
         <div class="line-box float-box p20">
             <div class="left">中标单位</div>
@@ -623,6 +684,7 @@
                 </div>
             </div>
         </div>
+        <div class="heng"></div>
         <!--确定筛选-->
         <div class="button-box">
             <button class="sussecc" id="sieve">确定</button>
@@ -868,6 +930,22 @@
             $("#minprice").val("");
             $("#maxprice").val("");
         }
+        //
+        if(localStorage.selectType!==""&&localStorage.selectType!==undefined){
+        	var selectType = localStorage.selectType;
+        	var select = '';
+        	if(selectType === "title"){
+        		select = "按标题匹配";
+        	}else if(selectType === "all"){
+        		select = "按全文匹配";
+        	}
+        	$(".selectType button").each(function(){
+        		if($(this).text()===select){
+        			$(".selectType button").removeClass("select");
+        			$(this).addClass("select");
+        		}
+        	});
+        }
 
         //行业
         var industryhtml = '<span class="info-select-now all">全部</span>';
@@ -1351,6 +1429,15 @@
         var subType = getSubType();
         var buyer = getBuyers();
         var winner = getWinners();
+        //关键词匹配方式
+        var select = $(".selectType .select").text();
+        var selectType = '';
+        if(select === "按全文匹配"){
+        	selectType = "all";
+        }else if(select === "按标题匹配"){
+        	selectType = "title";
+        }
+        localStorage.selectType = selectType;
 
         var param = {
             "publishtime": date,
@@ -1359,6 +1446,7 @@
             "region":region.toString() == "全国" ? "" : region.toString(),
             "industry": industry.toString() == "全部" ? "" : industry.toString(),
             "keyword": JSON.stringify(keyword),
+            "selectType":selectType,
             "minprice": price[0],
             "maxprice": price[1],
             "subtype": subType.toString() == "全部" ? "" : subType.toString(),
@@ -1405,6 +1493,9 @@
         $(".add-input-w > div > input").remove();
         $(".add-input-w").hide();
         window["inputDel_0"] = [];
+        //selectType
+        $(".selectType button").removeClass("select");
+        $(".selectType button").eq(0).addClass("select");
         //price
         $("#minprice").val("");
         $("#maxprice").val("");
@@ -1644,6 +1735,11 @@
         }
         openMore = !openMore
     })
+    //关键词匹配方式
+    $(".selectType button").on('click', function(){
+    	$(".selectType button").removeClass("select")
+    	$(this).addClass("select")
+    });
 
 </script>
 </html>

+ 12 - 1
src/web/templates/weixin/dataExport/dataExport.html

@@ -278,7 +278,14 @@
         });
         /* 选择匹配方式*/
         $('input:radio[name="way"]').click(function() {
-            var checkValue = $('input:radio[name="way"]:checked').val();
+        	var checkValue = $('input:radio[name="way"]:checked').val();
+        	$(".read").each(function () {
+                var p = $(this).children().text();
+                if(p!==checkValue){
+                	$(".confirm").hide();
+                	$(".resetOne").show();
+                }
+           	});
             $('.match_way').hide(200);
             $('.match').html(checkValue);
             var selectType = "";
@@ -653,6 +660,8 @@
                 type = "按全文匹配";
             }
             $(".match").text(type);
+            $(".confirm").hide();
+            $(".resetOne").show();
         }
         //信息类型
         if(localStorage.subTypes!==undefined && localStorage.subTypes!==""){
@@ -852,6 +861,7 @@
             localStorage.removeItem("area");
             localStorage.removeItem("industry");
             localStorage.removeItem("keyWord");
+            localStorage.removeItem("selectType");
             localStorage.removeItem("price");
             localStorage.removeItem("subType");
             localStorage.removeItem("subTypes");
@@ -869,6 +879,7 @@
             $("#subType").text("");
             $("#winner").text("");
             $("#buyer").text("");
+            $(".match").text("按标题匹配");
             //
             $(".chooseTime ul li").removeClass('active');
             $(".chooseTime ul li:eq(0)").addClass('active');

+ 12 - 7
src/web/templates/weixin/dataExport/dataExport_appended.html

@@ -221,13 +221,18 @@
                 this.style.height = this.scrollHeight + "px";
             });
 
-            //防止键盘把当前输入框给挡住
-            $('input[type="text"],textarea').focus(function () {
-                var target = this;
-                setTimeout(function(){
-                    target.scrollIntoViewIfNeeded();
-                },400);
-            });
+            var u = navigator.userAgent;
+			var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
+			var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
+			if(isAndroid){
+				//防止键盘把当前输入框给挡住
+			    $('input[type="text"],textarea').focus(function () {
+			        var target = this;
+			        setTimeout(function(){
+			            target.scrollIntoViewIfNeeded();
+			        },400);
+			    });
+			}
 
             // 添加keyWords检查输入框内是否有文字,如果有才能点击添加按钮
             $('.addkeyWord input.enterOne').on('input', function() {

+ 2 - 1
src/web/templates/weixin/dataExport/dataExport_buyerEdit.html

@@ -20,10 +20,11 @@
 		color: #2cb7ca;
 	}
 	.addKeyWord {
-		width: 100%;
+		/*width: 100%;*/
 		position: fixed;
 		text-align: center;
 		bottom: 10%;
+		left: 45%;
 	}
 	.keyWord .enter .btn .save-btn {
 		float: right;

+ 12 - 7
src/web/templates/weixin/dataExport/dataExport_exclude.html

@@ -234,13 +234,18 @@
                 }
             });
 
-            //防止键盘把当前输入框给挡住
-            $('input[type="text"],textarea').focus(function () {
-                var target = this;
-                setTimeout(function(){
-                    target.scrollIntoViewIfNeeded();
-                },400);
-            });
+            var u = navigator.userAgent;
+			var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
+			var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
+			if(isAndroid){
+				//防止键盘把当前输入框给挡住
+			    $('input[type="text"],textarea').focus(function () {
+			        var target = this;
+			        setTimeout(function(){
+			            target.scrollIntoViewIfNeeded();
+			        },400);
+			    });
+			}
 
             // 添加 按钮的点击事件
             $('.addkeyWord .btn .save').on('click', function(){

+ 5 - 1
src/web/templates/weixin/dataExport/dataExport_keyWord.html

@@ -110,13 +110,15 @@
     </div>
     <script src="{{Msg "seo" "cdn"}}/wx_dataExport/js/zepto.js?v={{Msg "seo" "version"}}"></script>
     <script src="{{Msg "seo" "cdn"}}/wx_dataExport/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
-    <script src="{{Msg "seo" "cdn"}}/wx_dataExport/js/keyWord.js?v={{Msg "seo" "version"}}82"></script>
+    <script src="{{Msg "seo" "cdn"}}/wx_dataExport/js/keyWord.js?v={{Msg "seo" "version"}}85"></script>
     <script>
         initShare({{.T.signature}},{{.T.openid}},2,"jy_wxmyorder",{{.T.nickname}},{{.T.avatar}});
+        //回退刷新
         $(function(){
             var isinitpage = false;
             $(window).bind("pageshow", function(event){
                 if(event.originalEvent.persisted){
+                	//监听到了回退
                     IOSsession();
                     var buttonDOM = $('.enter.addkeyWord .btnChoose .appended');
             		buttonDOM.prop("disabled", false);
@@ -128,10 +130,12 @@
                 isinitpage = true;
             }
         });
+        //history.back刷新
         window.addEventListener('pageshow', function(e) {
             // 通过persisted属性判断是否存在 BF Cache
             if (e.persisted) {
                 if (sessionStorage.IOSsession!==""&&sessionStorage.IOSsession!==undefined){
+                    //监听到了history.back
                     location.reload();
                 }
             }

+ 0 - 2
src/web/templates/weixin/dataExport/dataExport_previewData.html

@@ -183,7 +183,6 @@
 			}
 			function tab(t){
 				$.post("/front/wx_dataExport/getPreview",{dataType:t,_id:{{.T.id}}},function(r){
-					console.log(r.res)
 					if(r.res.data){
 						var res = r.res.data;
 						var aHtml = bz;
@@ -193,7 +192,6 @@
 							aHtml = gj;
 							var a = 0;
 							for(var i in res){
-								console.log(res[i]["title"])
 								if(localStorage.keyWord!==""&&localStorage.keyWord!==undefined){
 									for(var m in keys){
 										var re =new RegExp(keys[m], "g");

+ 14 - 8
src/web/templates/weixin/dataExport/dataExport_winnerEdit.html

@@ -20,10 +20,11 @@
 			color: #2cb7ca;
 		}
 		.addKeyWord {
-			width: 100%;
+			/*width: 100%;*/
 			position: fixed;
 			text-align: center;
 			bottom: 10%;
+			left: 45%;
 		}
 		.keyWord .enter .btn .save-btn {
 			float: right;
@@ -140,13 +141,18 @@
 				}
 			});
 
-			//防止键盘把当前输入框给挡住
-			$('input[type="text"],textarea').focus(function () {
-				var target = this;
-				setTimeout(function(){
-					target.scrollIntoViewIfNeeded();
-				},400);
-			});
+			var u = navigator.userAgent;
+			var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
+			var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
+			if(isAndroid){
+				//防止键盘把当前输入框给挡住
+			    $('input[type="text"],textarea').focus(function () {
+			        var target = this;
+			        setTimeout(function(){
+			            target.scrollIntoViewIfNeeded();
+			        },400);
+			    });
+			}
 
 			// 添加 按钮的点击事件
 			$('.addkeyWord .btn .save-btn').on('click', function(){