wangshan 7 年之前
父節點
當前提交
c71a61b9bc

二進制
pkg/windows_amd64/apiservice/config.a


二進制
pkg/windows_amd64/apiservice/oamanager.a


二進制
pkg/windows_amd64/apiservice/tools.a


+ 27 - 0
src/apiservice/config/config.go

@@ -1,11 +1,38 @@
 package config
 
 import (
+	"log"
 	"qfw/util"
+	"regexp"
+
+	"github.com/go-xweb/xweb"
 )
 
+type Config struct {
+	*xweb.Action
+	article xweb.Mapper `xweb:"/article/(.*).html"`
+}
+
 var Sysconfig map[string]interface{}
+var regex = regexp.MustCompile("(Android|Mobile)")
 
 func init() {
+	xweb.AddAction(&Config{})
 	util.ReadConfig(&Sysconfig)
 }
+
+func (c *Config) Article(id string) {
+	log.Println(id)
+	bm := false
+	client := c.Header("User-Agent")
+	bm = regex.MatchString(client)
+	log.Println("bm-----", bm)
+	if bm { //手机访问
+		//解密id
+		log.Println(2222)
+	} else { //pc端访问
+		sid_openid := util.DecodeArticleId2ByCheck(id)[0]
+		log.Println("id-----", sid_openid)
+		c.Render("/pc/pc.html")
+	}
+}

+ 107 - 0
src/web/staticres/css/app.css

@@ -0,0 +1,107 @@
+#jyapp header {
+  display: flex;
+  align-items: center;
+  box-sizing: border-box;
+  width: 100%;
+  height: .8rem;
+  line-height: .8rem;
+  background: #2cb7ca;
+  padding-left: .2rem;
+  margin-bottom: .44rem;
+}
+
+#jyapp header .logo {
+  display: flex;
+  align-items: center;
+  width: .86rem;
+  height: .8rem;
+  margin-right: .27rem;
+}
+
+#jyapp header .logo img {
+  width: .86rem;
+  height: .46rem;
+}
+
+#jyapp header .logo-text .text {
+  font-family: PingFang-SC-Medium;
+  font-size: .3rem;
+  color: #FFFFFF;
+}
+
+#jyapp .main .title {
+  width: 100%;
+  box-sizing: border-box;
+  font-family: PingFang-SC-Bold;
+  font-size: .36rem;
+  line-height: .52rem;
+  letter-spacing: 0px;
+  color: #101010;
+  padding: 0 .31rem;
+  margin-bottom: .3rem;
+}
+
+#jyapp .main .title-sub {
+  width: 100%;
+  box-sizing: border-box;
+  height: .54rem;
+  line-height: .54rem;
+  padding: 0 .31rem;
+  display: flex;
+  justify-content: flex-start;
+  margin-bottom: .6rem;
+}
+
+#jyapp .main .title-sub .link {
+  width: 2.52rem;
+  height: .54rem;
+  border-radius: .27rem;
+  border: solid 1px #d0d0d0;
+  margin-right: .21rem;
+}
+
+#jyapp .main .title-sub .link a {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  font-size: .24rem;
+  color: #888;
+}
+
+#jyapp .main .title-sub .date {
+  font-size: .22rem;
+  color: #888;
+}
+
+#jyapp .main .main-info {
+  box-sizing: border-box;
+  width: 100%;
+  padding: 0 .31rem;
+  font-family: PingFang-SC-Medium;
+  font-size: .32rem;
+  line-height: .5rem;
+  color: #101010;
+  padding-bottom: .7rem;
+}
+
+#jyapp .main .main-info a {
+  font-size: .32rem;
+  color: deepskyblue;
+}
+
+#jyapp footer {
+  position: fixed;
+  left: 0;
+  bottom: 0;
+  width: 100%;
+  height: .7rem;
+  line-height: .7rem;
+  text-align: center;
+  font-size: .28rem;
+  background-color: rgba(255, 255, 255, 0.9);
+}
+
+#jyapp footer a {
+  color: #0c58b5;
+  font-size: .28rem;
+}

+ 103 - 0
src/web/staticres/css/pc.css

@@ -0,0 +1,103 @@
+#jy-pc .header {
+  height: 55px;
+  margin-bottom: 15px;
+}
+
+#jy-pc .header a {
+  display: inline-block;
+  width: inherit;
+  height: 55px;
+  line-height: 55px;
+  padding-left: 85px;
+  box-sizing: border-box;
+  background: #fff url(../images/pc-logo.png) 0 center no-repeat;
+  background-size: 55px 30px;
+}
+
+#jy-pc .main {
+  background: #f5f5f9;
+  padding-top: 20px;
+}
+
+#jy-pc .main .inner .left {
+  width: 890px;
+  background: #fff;
+  padding-left: 50px;
+  padding-right: 50px;
+  overflow: hidden;
+}
+
+#jy-pc .main .inner .left .title {
+  padding: 20px 0;
+  border-bottom: 1px dashed #e9e9e9;
+}
+
+#jy-pc .main .inner .left .title h3 {
+  font-family: MicrosoftYaHei;
+  font-size: 24px;
+  line-height: 52px;
+  color: #101010;
+}
+
+#jy-pc .main .inner .left .title .sub-title a {
+  display: inline-block;
+  width: 136px;
+  height: 26px;
+  line-height: 26px;
+  text-align: center;
+  border-radius: 13px;
+  border: solid 1px #d0d0d0;
+  font-size: 12px;
+  margin-right: 12px;
+  color: #686868;
+}
+
+#jy-pc .main .inner .left .title .sub-title a:hover {
+  color: #2cb7ca;
+  border: 1px solid #2cb7ca;
+}
+
+#jy-pc .main .inner .left .title .sub-title .date {
+  font-size: 14px;
+  line-height: 48px;
+  color: #686868;
+}
+
+#jy-pc .main .inner .left .list {
+  padding: 42px 0;
+}
+
+#jy-pc .main .inner .left .list li {
+  font-family: MicrosoftYaHei;
+  font-size: 16px;
+  font-weight: normal;
+  font-stretch: normal;
+  line-height: 30px;
+  letter-spacing: 0px;
+  color: #101010;
+}
+
+#jy-pc .main .inner .left .bottom {
+  height: 60px;
+  line-height: 60px;
+  text-align: center;
+  font-size: 14px;
+  border-top: 1px solid #EEEEEE;
+}
+
+#jy-pc .main .inner .left .bottom a {
+  display: inline-block;
+  font-size: 14px;
+  color: #0c58b5;
+}
+
+#jy-pc .main .inner .right {
+  width: 195px;
+  height: 250px;
+  text-align: center;
+  font-size: 14px;
+  line-height: 16px;
+  box-sizing: border-box;
+  padding: 190px 12px 0 11px;
+  background: #fff url(../images/jy-ewm.jpg) 12px 16px no-repeat;
+}

二進制
src/web/staticres/images/app-logo.png


二進制
src/web/staticres/images/jy-ewm.jpg


二進制
src/web/staticres/images/pc-logo.png


+ 18 - 0
src/web/staticres/lib/n_rem.js

@@ -0,0 +1,18 @@
+(function() {
+	var doc = document,
+		win = window;
+	var docEl = doc.documentElement,
+		resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
+		recalc = function() {
+			var clientWidth = docEl.clientWidth;
+			if(!clientWidth) return;
+			//如果屏幕大于750(750是根据我效果图设置的,具体数值参考效果图),就设置clientWidth=750,防止font-size会超过100px
+			if(clientWidth > 750) { clientWidth = 750 }
+			//设置根元素font-size大小
+			docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
+		};
+	//屏幕大小改变,或者横竖屏切换时,触发函数
+	win.addEventListener(resizeEvt, recalc, false);
+	//文档加载完成时,触发函数
+	doc.addEventListener('DOMContentLoaded', recalc, false);
+})();

+ 74 - 0
src/web/staticres/lib/reset-app.css

@@ -0,0 +1,74 @@
+html, body, div, span, applet, object, iframe, 
+h1, h2, h3, h4, h5, h6, p, blockquote, pre, 
+a, abbr, acronym, address, big, cite, code, 
+del, dfn, em, font, img, ins, kbd, q, s, samp, 
+small, strike, strong, sub, sup, tt, var, 
+dl, dt, dd, ol, ul, li, 
+fieldset, form, label, legend, 
+table, caption, tbody, tfoot, thead, tr, th, td { 
+margin: 0; 
+padding: 0; 
+border: 0; 
+outline: 0; 
+font-weight: inherit; 
+font-style: inherit; 
+font-size: 100%; 
+font-family: inherit; 
+vertical-align: baseline; 
+-webkit-tap-highlight-color: transparent;
+
+} 
+:focus { 
+outline: 0; 
+} 
+body { 
+line-height: 1; 
+/*color: black; 
+background: white; */
+font-family: "Microsoft YaHei",sans-serif;
+font-size: 16px;
+-webkit-font-smoothing: antialiased;
+} 
+input{
+	font-family: "Microsoft YaHei",sans-serif;
+	-webkit-appearance: none;
+	}
+ol, ul { 
+list-style: none; 
+} 
+button{ 
+	outline: none;border: none;
+	}
+table { 
+border-collapse: separate; 
+border-spacing: 0; 
+} 
+caption, th, td { 
+text-align: left; 
+font-weight: normal; 
+} 
+textarea { 
+	resize:none;
+	-webkit-appearance: none; 
+	}
+img{border:0;}
+a{
+	text-decoration:none;
+	color: #000;
+	font-size: 16px;
+}
+/*a:link {color:#606060;} 
+a:visited {color:#606060;} 
+a:hover{color:#8cb91e;	text-decoration: underline;}
+a:active {color:#606060;}*/
+
+/*去除表单黄色背景*/
+input:-webkit-autofill{-webkit-box-shadow: 0 0 0px 1000px white inset;}
+/*:-ms-input-placeholder {  color: #666666; }
+::-webkit-input-placeholder {  color: #666666; } */
+address,caption,cite,code,dfn,em,th,b,i {font-weight: normal;font-style: normal;}
+.text-center{text-align: center;}
+.clearfix:after {visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
+.clearfix {*zoom:1; }
+
+

+ 112 - 0
src/web/staticres/lib/reset_pc.css

@@ -0,0 +1,112 @@
+html, body, div, span, applet, object, iframe, 
+h1, h2, h3, h4, h5, h6, p, blockquote, pre, 
+a, abbr, acronym, address, big, cite, code, 
+del, dfn, em, font, img, ins, kbd, q, s, samp, 
+small, strike, strong, sub, sup, tt, var, 
+dl, dt, dd, ol, ul, li, 
+fieldset, form, label, legend, 
+table, caption, tbody, tfoot, thead, tr, th, td { 
+margin: 0; 
+padding: 0; 
+border: 0; 
+outline: 0; 
+font-weight: inherit; 
+font-style: inherit; 
+font-size: 100%; 
+font-family: inherit; 
+vertical-align: baseline; 
+-webkit-tap-highlight-color: transparent;
+} 
+:focus { 
+outline: 0; 
+} 
+body { 
+line-height: 1; 
+/*color: black; 
+background: white; */
+font-family: "Microsoft YaHei",sans-serif;
+font-size: 16px;
+-webkit-font-smoothing: antialiased;
+} 
+input{
+	font-family: "Microsoft YaHei",sans-serif;
+	-webkit-appearance: none;
+}
+ol, ul { 
+list-style: none; 
+} 
+button{ 
+	outline: none;border: none;
+	}
+table { 
+border-collapse: separate; 
+border-spacing: 0; 
+} 
+caption, th, td { 
+text-align: left; 
+font-weight: normal; 
+} 
+textarea { resize:none;-webkit-appearance: none; }
+img{border:0;}
+a{
+	text-decoration:none;
+	color: #101010;
+	font-size: 16px;
+}
+/*selet 下拉三角改变*/
+/*select {border: none;border-radius: 0;appearance:none;-moz-appearance:none;-webkit-appearance:none;background:#ffffff url(../images/public-img/pub-Xsj.png) no-repeat 95% center;}*/
+/*清除ie的默认选择框样式清除,隐藏下拉箭头*/
+/*select::-ms-expand { display: none;}
+html{-webkit-text-size-adjust: none;}	*/	
+	
+/*a:link {color:#606060;} 
+a:visited {color:#606060;} 
+a:hover{color:#8cb91e;	text-decoration: underline;}
+a:active {color:#606060;}*/
+
+/*文本不能选中*/
+.nos{
+    -webkit-user-select:none;
+    -moz-user-select:none;
+    -ms-user-select:none;
+    user-select:none;
+}
+/*check 复选框修改样式*/
+/*input[type=checkbox] {
+        position: relative;
+        width: 10px;
+        height: 1px;
+    }
+    input[type=checkbox]::before {
+        content: '';
+        position: absolute;
+        top: 0;
+        left: 0;
+        width: 14px;
+        height: 14px;
+        line-height: 14px;
+        text-align: center;
+        color: white;
+        font-size: 16px;
+        background:  url(../images/public/input-checkbox-1.png) 0 0 no-repeat;
+    }
+    input[type=checkbox]:checked::before {
+
+        content: url(../images/public/input-checkbox-2.png);
+    }*/
+/*IE下input去除 X*/
+::-ms-clear,::-ms-reveal{display:none;}
+/*去除input黄低*/
+input:-webkit-autofill {
+    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
+}
+
+
+
+address,caption,cite,code,dfn,em,th,b,i {font-weight: normal;font-style: normal;}
+.text-center{text-align: center;}
+.clearfix:after {visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
+.clearfix {*zoom:1; }
+.fl {float:left; }
+.fr {float: right; }
+.w {width: 1200px; margin: 0 auto;}

+ 68 - 0
src/web/templates/app/app.html

@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<html lang="zh">
+
+	<head>
+		<meta charset="UTF-8" />
+		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+		<meta name="format-detection" content="telephone=no" />
+		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
+		<link rel="stylesheet" type="text/css" href="../lib/reset-app.css" />
+		<script type="text/javascript" src="../lib/n_rem.js"></script>
+		<link rel="stylesheet" type="text/css" href="../css/app.css" />
+		<title>剑鱼招标订阅</title>
+
+	</head>
+
+	<body>
+		<div id="jyapp">
+			<header>
+				<a class="logo" href="#"><img src="../images/app-logo.png" /></a>
+				<a class="logo-text" href="#"><span class="text">全国招标信息免费看,不遮挡</span></a>
+			</header>
+			<section class="main">
+				<h3 class="title">兴宁市2018年农村公益电影放映主体采购项目竞争性谈判
+</h3>
+				<div class="title-sub">
+					<div class="link">
+						<a href="#">jianyu360.com ></a>
+					</div>
+					<div class="date">
+						<span>2018-01-09</span>
+						<span>15:39</span>
+					</div>
+				</div>
+				<div class="main-info">
+					<ul>
+						<li>广东粤能工程管理有限公司受兴宁市文化广电新闻出版局的委托,拟对兴宁市2018年农村公益电影放映主体采购项目进行竞争性谈判,欢迎符合资格条件的供应商参加。本项目将优先确定符合相应资格条件的自主创新产品、节能产品、环保产品供应商参加谈判。</li>
+						<li>一、采购项目编号: </li>
+						<li><span>441481-201801-606001-0001</span></li>
+						<li>二、采购项目名称:<span>兴宁市2018年农村公益电影放映主体采购项目</span></li>
+						<li>三、采购项目预算金额(元):<span>1,829,100</span></li>
+						<li>四、采购数量:<span>1家</span></li>
+						<li>五、项目内容及需求:<span>(采购项目技术规格、参数及要求,需要落实的政府采购政策)</span></li>
+						<li>1. 项目名称:<span>兴宁市2018年农村公益电影放映主体采购项目</span></li>
+						<li>2. 项目编号:<span>GDYNMZ20180122</span></li>
+						<li>项目内容、数量及交货期:(详见谈判文件用户需求书)</li>
+
+						<li>六、供应商资格:</li>
+						<li>1、具有独立承担民事责任能力的在中华人民共和国境内注册的法人或其他组织</li>
+						<li>2、投标人应提供自本项目招标公告发布之日起在信用中国网站(www.creditchina.gov.cn)“信用信息”、中国政府采购网(www.creditchina.gov.cn)“政府采购严重违法失信行为信息记录”查询情况证明(提供两个网站的信用记录查询结果打印页面或全部内容的网页截图并加盖投标人公章),如有被列入失信被执行人、重大税收违法案件当事人名单、政府采购严重违法失信行为记录名单的供应商,不得参与本次政府采购活动,否则在查核后将被拒绝;</li>
+						<li>3、符合《中华人民共和国政府采购法》第二十二条的规定,提供以下证明材料; </li>
+						<li>①法人或其他组织的营业执照(复印件);</li>
+						<li>②财务状况报告(复印件),或者提供由投标人基本开户银行出具的资信证明】;</li>
+						<li>③提供近期的缴纳税收和社会保障资金的凭证(复印件)。如依法免税或不需要缴纳社会保障资金的,应提供相应文件证明(复印件);</li>
+						<li>④具备履行合同所必需的设备和专业技术能力的书面承诺函(原件);</li>
+						<li>⑤参加政府采购活动前3年内在经营活动中没有重大违法记录的书面声明(原件);</li>
+						<li>4、本项目不接受联合体投标。</li>
+					</ul>
+				</div>
+				
+			</section>
+			<footer>
+				<a href="#">剑鱼招标订阅</a>提供数据支持
+			</footer>
+		</div>
+
+	</body>
+
+</html>

+ 91 - 0
src/web/templates/pc/pc.html

@@ -0,0 +1,91 @@
+<!DOCTYPE html>
+<html lang="zh">
+
+	<head>
+		<meta charset="UTF-8" />
+		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+		<meta name="format-detection" content="telephone=no" />
+		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
+		<link rel="stylesheet" type="text/css" href="../lib/reset_pc.css" />
+		<link rel="stylesheet" type="text/css" href="../css/pc.css" />
+		<title>剑鱼招标订阅</title>
+
+	</head>
+
+	<body>
+		<div id="jy-pc">
+			<div class="header w">
+				<a href="#">
+					全国招标信息免费看,不遮挡
+				</a>
+			</div>
+			<div class="main">
+				<div class="inner w clearfix">
+					<div class="left fl">
+						<div class="title">
+							<h3>兴宁市2018年农村公益电影放映主体采购项目竞争性谈判</h3>
+							<div class="sub-title">
+								<a href="#">jianyu360.com&nbsp;&nbsp;&gt;</a>
+								<span class="date">2018-01-09 15:25</span>
+							</div>
+						</div>
+						<ul class="list">
+							<li>广东粤能工程管理有限公司受兴宁市文化广电新闻出版局的委托,拟对兴宁市2018年农村公益电影放映主体采购项目进行竞争性谈判,欢迎符合资格条件的供应商参加。本项目将优先确定符合相应资格条件的自主创新产品、节能产品、环保产品供应商参加谈判。</li>
+							<li>一、采购项目编号: </li>
+							<li><span>441481-201801-606001-0001</span></li>
+							<li>二、采购项目名称:<span>兴宁市2018年农村公益电影放映主体采购项目</span></li>
+							<li>三、采购项目预算金额(元):<span>1,829,100</span></li>
+							<li>四、采购数量:<span>1家</span></li>
+							<li>五、项目内容及需求:<span>(采购项目技术规格、参数及要求,需要落实的政府采购政策)</span></li>
+							<li>1. 项目名称:<span>兴宁市2018年农村公益电影放映主体采购项目</span></li>
+							<li>2. 项目编号:<span>GDYNMZ20180122</span></li>
+							<li>项目内容、数量及交货期:(详见谈判文件用户需求书)</li>
+
+							<li>六、供应商资格:</li>
+							<li>1、具有独立承担民事责任能力的在中华人民共和国境内注册的法人或其他组织</li>
+							<li>2、投标人应提供自本项目招标公告发布之日起在信用中国网站
+								(www.creditchina.gov.cn)“信用信息”、中国政府采购网
+								(www.creditchina.gov.cn)“政府采购严重违法失信行为信息记录”查询情况证明(提供两个网站的信用记录查询结果打印页面或全部内容的网页截图并加盖投标人公章),如有被列入失信被执行人、重大税收违法案件当事人名单、政府采购严重违法失信行为记录名单的供应商,不得参与本次政府采购活动,否则在查核后将被拒绝;</li>
+							<li>3、符合《中华人民共和国政府采购法》第二十二条的规定,提供以下证明材料; </li>
+							<li>①法人或其他组织的营业执照(复印件);</li>
+							<li>②财务状况报告(复印件),或者提供由投标人基本开户银行出具的资信证明】;</li>
+							<li>③提供近期的缴纳税收和社会保障资金的凭证(复印件)。如依法免税或不需要缴纳社会保障资金的,应提供相应文件证明(复印件);</li>
+							<li>④具备履行合同所必需的设备和专业技术能力的书面承诺函(原件);</li>
+							<li>⑤参加政府采购活动前3年内在经营活动中没有重大违法记录的书面声明(原件);</li>
+							<li>4、本项目不接受联合体投标。</li>
+							<li>七、符合资格的供应商应当在2018年01月26日至2018年02月1日期间(上午08:30至11:30,下午14:30至17:30,法定节假日除外,不少于5个工作日)到(广东粤能工程管理有限公司)(详细地址:兴宁市岭东花园岭东门市24卡(广东粤能工程管理有限公司)购买谈判(磋商、询价)文件,谈判(磋商、询价)文件每套售价200元(人民币),售后不退。</li>
+							<li>八、提交谈判(磋商、询价)文件截止时间:<span>2018 年02 月08 日15 时00 分</span></li>
+							<li>九、提交谈判(磋商、询价)文件地点:<span>梅州市新都路67号(广东粤能工程管理有限公司)</span> </li>
+							<li>十、谈判(磋商、询价)时间:<span>2018 年02 月08 日15 时00 分</span></li>
+							<li>十一、谈判(磋商、询价)地点:<span>(详细地址) 梅州市新都路67号(广东粤能工程管理有限公司)</span> </li>
+							<li>十二、本公告期限 (3个工作日)自2018年01月25日至2018年01月29日止。</li>
+							<li>十三、联系事项 </li>
+							<li>(一)采购项目联系人(代理机构):王先生 联系电话:0753-3321132 采购项目联系人(采购人):钟先生 联系电话:0753-0753-3356589</li>
+							<li>(二)采购代理机构 :广东粤能工程管理有限公司 地址:广州市天河北路663号(广东机械研究所大院)自编8栋9层</li>
+							<li>联系人:古爱媚 联系电话:020-38730932</li>
+							<li>传真:020-38731486 邮编:510630</li>
+							<li>(三)采购人:兴宁市文化广电新闻出版局 地址:兴宁市中山西路74号</li>
+							<li>联系人:何培嵩 联系电话:0753-3356147</li>
+							<li>传真:0753-3356147 邮编:514500</li>
+							<li>附件</li>
+							<li>1、委托代理协议:委托代理协议</li>
+							<li>2、竞争性谈判(磋商)文件/询价通知书:竞争性谈判(磋商)文件/询价通知书</li>
+							<li>发布人:广东粤能工程管理有限公司</li>
+							<li>发布时间:2018年01月25日"</li>
+						</ul>
+						<div class="bottom">
+							<a href="#">剑鱼招标订阅</a>
+							<span>提供数据支持</span>
+						</div>
+					</div>
+					<div class="right fr">
+						扫码关注剑鱼招标订阅</br>
+						实时接收最新公告
+					</div>
+				</div>
+			</div>
+		</div>
+
+	</body>
+
+</html>