From ed21515707113710f2136a6e44fe5e6bdbf609e1 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Fri, 26 Aug 2022 16:30:40 +0800
Subject: [PATCH] upup
---
components/menubar/menubar.vue | 20 ++-
components/tabbar/tabbar.vue | 2 +-
manifest.json | 49 +++---
pages.json | 11 +-
pages/content/content.vue | 44 +++++-
pages/index/index.vue | 39 +++--
pages/list/list.vue | 189 +++++++++++++++++++++++
pages/list/tpxw.vue | 272 ++++++++++++++++++++++++++-------
utils/util.js | 25 ++-
9 files changed, 546 insertions(+), 105 deletions(-)
create mode 100644 pages/list/list.vue
diff --git a/components/menubar/menubar.vue b/components/menubar/menubar.vue
index 2f8b42d..8a5fb31 100644
--- a/components/menubar/menubar.vue
+++ b/components/menubar/menubar.vue
@@ -25,12 +25,16 @@
- {{item.title}}{{current}}
- {{item.times}}
+ {{item.title}}
+ {{item.time}}
+
+ 查看更多
+
+
@@ -114,6 +118,13 @@
this.$refs.uTabs.setFinishCurrent(current);
},
+ golist(index){
+ let url = "/pages/list/list?index="+index
+ uni.redirectTo({
+ url:url
+ })
+
+ },
// scroll-view到底部加载更多
onreachBottom() {
@@ -172,4 +183,9 @@
color:#808080;
font-size: 26rpx;
}
+ .more{
+ text-align: center;
+ padding: 20px 0;
+ font-size: 20px;
+ }
\ No newline at end of file
diff --git a/components/tabbar/tabbar.vue b/components/tabbar/tabbar.vue
index 4ef2a04..6282b23 100644
--- a/components/tabbar/tabbar.vue
+++ b/components/tabbar/tabbar.vue
@@ -34,7 +34,7 @@
path: "/pages/list/tpxw",
icon: "/static/tab/tpxw.png",
selectIcon: "/static/tab/tpxwcur.png",
- text: "图片新闻",
+ text: "新闻资讯",
centerItem: false,
imgclass:"tpxw item-top"
},{
diff --git a/manifest.json b/manifest.json
index 999745d..092bb11 100644
--- a/manifest.json
+++ b/manifest.json
@@ -68,22 +68,35 @@
"uniStatistics": {
"enable": false
},
- "vueVersion": "2",
- "h5":{
- "devServer": {
- "port" : 8081, //端口号
- "disableHostCheck" : true,
- "proxy": {
- "": {
- "target":"http://czga.langye.net/e/extend/api/index.php",
- "changeOrigin": true,//是否跨域
- "secure": false
- }
- }
- },
- "router" : {
- "base" : "/"
- }
+ "vueVersion": "2",
+ "h5": {
+ "devServer": {
+ "port": 8081, //端口号
+ "disableHostCheck": true,
+ "proxy": {
+ "/abs": {
+ "target": "http://czga.langye.net",
+ "changeOrigin": true, //是否跨域
+ "secure": false,
+ "pathRewrite": {
+ "^/api": "/"
+ }
+ }
+ }
+ }
}
-
-}
+}
+// "devServer": {
+// "port" : 8081, //端口号
+// "disableHostCheck" : true,
+// "proxy": {
+// "8081/": {
+// "target":"http://czga.langye.net/e/extend/api/index.php",
+// "changeOrigin": true,//是否跨域
+// "secure": false,
+// "pathRewrite" : {
+// "8081/":"/api"
+// }
+// }
+// }
+// }
diff --git a/pages.json b/pages.json
index 014682b..1cce4c4 100644
--- a/pages.json
+++ b/pages.json
@@ -16,6 +16,13 @@
}
}, {
+ "path": "pages/list/list",
+ "style": {
+ "navigationBarTitleText": "常安门户",
+ "enablePullDownRefresh": false
+ }
+
+ },{
"path": "pages/list/zhxw",
"style": {
"navigationBarTitleText": "综合新闻",
@@ -25,7 +32,7 @@
},{
"path": "pages/list/tpxw",
"style": {
- "navigationBarTitleText": "图片新闻",
+ "navigationBarTitleText": "新闻资讯",
"enablePullDownRefresh": false
}
@@ -60,7 +67,7 @@
},{
"path": "pages/content/content",
"style": {
- "navigationBarTitleText": "",
+ "navigationBarTitleText": "常安门户",
"enablePullDownRefresh": false
}
diff --git a/pages/content/content.vue b/pages/content/content.vue
index c9c90eb..43be9db 100644
--- a/pages/content/content.vue
+++ b/pages/content/content.vue
@@ -20,7 +20,7 @@
-
+
@@ -29,24 +29,56 @@
export default {
data() {
return {
- title:"图片新闻",
+ titleindex:0,
+ titlelist:[{
+ name: '图片新闻'
+ }, {
+ name: '综合新闻'
+ }, {
+ name: '市局通知'
+ },{
+ name: '市局文件'
+ },{
+ name: '各地警讯'
+ }, {
+ name: '机关动态'
+ }, {
+ name: '好警纪实'
+ }, {
+ name: '警营文化'
+ }],
+ title:"",
list:{
title:"于贵平到金坛督导检查党的二十大安保调研指",
times:"2022-06-29",
from:"常州公安",
view:"456",
- content:"6月28日下午,副市长、公安局长于贵平到金坛调研,传达李耀光厅长来常视察时的重要指示精神,督导检查党的二十大安保“常安行动”推进情况,调研指导全区公安工作,看望慰问一线民警辅警。于贵平勉励金坛公安机关以李耀光厅长对常州公安工作的肯定和鼓励为新的动力,认真贯彻落实省公安厅、市公安局和区委、区政府部署要求,传承发扬“自强不息、勇攀高峰”的华罗庚精神,全面加快发展步伐,全面提振发展动能,全面提升整体水平,争当“常州公安品牌和工作绩效的最强增长极”。金坛区委书记陆秋明、代理区长胥亚伟,市公安局党委副书记、常务副局长张强,市公安局副局长金继英参加调研。金坛区委书记陆秋明、代理区长胥亚伟,市公安局党委副书记、常务副局长张强,市公安局副局长金继英参加调研参加调研参。"
+ content:"
7月7日下午,副市长、公安局长于贵平到高新区调研,传达李耀光厅长来常视察时的指示精神,督导检查党的二十大安保“常安行动”推进情况,调研指导全区公安工作,看望慰问一线民警辅警,勉励高新区公安机关以李耀光厅长对常州公安工作的肯定和鼓励为新动力。
"
}
}
},
onLoad() {
+ },
+ onShow(options) {
+ this.titleindex = this.util.RQ("index")?this.util.RQ("index"):0
+ this.title=this.titlelist[this.titleindex].name
+ // var that = this
+ // console.log('before',that.menuIndex)
+ // that.menuIndex = uni.getStorageSync('menuIndex')?uni.getStorageSync('menuIndex'):0
+ // console.log('after',that.menuIndex)
+ // uni.removeStorageSync('menuIndex')
},
methods: {
goback(){
- uni.navigateBack({
- delta:1,//返回层数,2则上上页
- })
+ console.log("aa")
+
+ // uni.switchTab({
+ // url:'/pages/index/index'
+ // })
+ // uni.navigateBack({
+ // delta:1,//返回层数,2则上上页
+ // })
}
}
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index d8786bf..6c6ef8b 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -34,6 +34,10 @@
{{item.time}}
+
+ 查看更多
+
+
@@ -113,27 +117,27 @@
index:7,
}],
list:[{
- title:"釉色渲染仕女图韵味被私藏,而你嫣然的一笑如含苞待放",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
+ title:"于贵平到高新区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/3b37b135aad8a23ca8b8d698400dad62.jpg",
url:"",
- time:"2022-08-21"
+ time:"2022-08-24"
},{
- title:"釉色渲染仕女图韵味被私藏,而你嫣然的一笑如含苞待放",
+ title:"陈志良到市公安局调研指导全国文明典范城市创建工作",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
url:"",
time:"2022-08-21"
},{
- title:"釉色渲染仕女图韵味被私藏,而你嫣然的一笑如含苞待放",
+ title:"于贵平到经开区督导检查党的二十大安保调研指导公安工作",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
url:"",
time:"2022-08-21"
},{
- title:"釉色渲染仕女图韵味被私藏,而你嫣然的一笑如含苞待放",
+ title:"市公安局召开半年度全市公安工作推进会暨“一月一观摩”活动",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
url:"",
time:"2022-08-21"
},{
- title:"釉色渲染仕女图韵味被私藏,而你嫣然的一笑如含苞待放",
+ title:"全市公安系统功模代表座谈会召开",
imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
url:"",
time:"2022-08-21"
@@ -146,13 +150,13 @@
},
methods: {
changeItem(item) {
- // uni.redirectTo({
- // url: '/pages/list/tpxw?menuindex='+item.index,
- // });
+ uni.redirectTo({
+ url: '/pages/list/list?index='+item.index,
+ });
// uni.setStorageSync("menuIndex", item.index);
- uni.switchTab({
- url: '/pages/list/tpxw',
- });
+ // uni.switchTab({
+ // url: '/pages/list/tpxw',
+ // });
},
gocontent(){
uni.redirectTo({
@@ -187,7 +191,7 @@
// }
// });
uni.request({
- url: '?action=list&classid='+id+'&page_size=10&page=1&ispic=1',
+ url: '/e/extend/api/index.php/abs?action=list&classid='+id+'&page_size=10&page=1&ispic=1',
method: "GET",
data: {
},
@@ -236,7 +240,7 @@
padding-top:0
}
.mb100{
- margin-bottom: 200rpx;
+ margin-bottom: 130rpx;
}
.list .u-card__body{
margin-bottom:160rpx
@@ -259,5 +263,10 @@
.list .listitem .times{
color:#808080;
font-size: 26rpx;
+ }
+ .more{
+ text-align: center;
+ padding: 20px 0;
+ font-size: 20px;
}
diff --git a/pages/list/list.vue b/pages/list/list.vue
new file mode 100644
index 0000000..752a78b
--- /dev/null
+++ b/pages/list/list.vue
@@ -0,0 +1,189 @@
+
+
+
+
+
+ {{title}}
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.time}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/list/tpxw.vue b/pages/list/tpxw.vue
index 0d398a3..50e9882 100644
--- a/pages/list/tpxw.vue
+++ b/pages/list/tpxw.vue
@@ -12,7 +12,6 @@
-
@@ -39,73 +38,228 @@
data() {
return {
menuIndex:0,
- imglist: [
- ],
+ imglist: [{
+ title:"于贵平到高新区督导检查党的二十大安保调研指导公安工作",
+ image:"http://czga.langye.net/d/file/p/2022/08-24/3b37b135aad8a23ca8b8d698400dad62.jpg",
+ url:"",
+ time:"2022-08-24"
+ },{
+ title:"陈志良到市公安局调研指导全国文明典范城市创建工作",
+ image:"http://czga.langye.net/d/file/p/2022/08-24/8add932b25cae61e29dba1dcc57702b0.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"于贵平到经开区督导检查党的二十大安保调研指导公安工作",
+ image:"http://czga.langye.net/d/file/p/2022/08-24/332b29eb92aebd076756b63aeefb8dce.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"市公安局召开半年度全市公安工作推进会暨“一月一观摩”活动",
+ image:"http://czga.langye.net/d/file/p/2022/08-24/88de79255eb9003cc81be1f085fe6597.jpg",
+ url:"",
+ time:"2022-08-21"
+ }],
list:[[{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
+ title:"于贵平到高新区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/3b37b135aad8a23ca8b8d698400dad62.jpg",
+ url:"",
+ time:"2022-08-24"
+ },{
+ title:"陈志良到市公安局调研指导全国文明典范城市创建工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/8add932b25cae61e29dba1dcc57702b0.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"于贵平到经开区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/332b29eb92aebd076756b63aeefb8dce.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"市公安局召开半年度全市公安工作推进会暨“一月一观摩”活动",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/88de79255eb9003cc81be1f085fe6597.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"全市公安系统功模代表座谈会召开",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/31eb5aaea4cf6702f699a2f17e8eee88.jpg",
+ url:"",
+ time:"2022-08-21"
+ }],[{
+ title:"于贵平到高新区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/3b37b135aad8a23ca8b8d698400dad62.jpg",
+ url:"",
+ time:"2022-08-24"
},{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
+ title:"陈志良到市公安局调研指导全国文明典范城市创建工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/8add932b25cae61e29dba1dcc57702b0.jpg",
+ url:"",
+ time:"2022-08-21"
},{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
+ title:"于贵平到经开区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/332b29eb92aebd076756b63aeefb8dce.jpg",
+ url:"",
+ time:"2022-08-21"
},{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
+ title:"市公安局召开半年度全市公安工作推进会暨“一月一观摩”活动",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/88de79255eb9003cc81be1f085fe6597.jpg",
+ url:"",
+ time:"2022-08-21"
},{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
+ title:"全市公安系统功模代表座谈会召开",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/31eb5aaea4cf6702f699a2f17e8eee88.jpg",
+ url:"",
+ time:"2022-08-21"
+ }],[{
+ title:"于贵平到高新区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/3b37b135aad8a23ca8b8d698400dad62.jpg",
+ url:"",
+ time:"2022-08-24"
+ },{
+ title:"陈志良到市公安局调研指导全国文明典范城市创建工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/8add932b25cae61e29dba1dcc57702b0.jpg",
+ url:"",
+ time:"2022-08-21"
},{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
+ title:"于贵平到经开区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/332b29eb92aebd076756b63aeefb8dce.jpg",
+ url:"",
+ time:"2022-08-21"
},{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
+ title:"市公安局召开半年度全市公安工作推进会暨“一月一观摩”活动",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/88de79255eb9003cc81be1f085fe6597.jpg",
+ url:"",
+ time:"2022-08-21"
},{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
+ title:"全市公安系统功模代表座谈会召开",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/31eb5aaea4cf6702f699a2f17e8eee88.jpg",
+ url:"",
+ time:"2022-08-21"
}],[{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
- },{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
- },{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
- },{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
- },{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
- },{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
- },{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
- },{
- title:"于贵平主持召开第9次周调度例会",
- times:"2022-08-21",
- imgs:"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg",
- }],[],[''],[''],[''],[],[]]
+ title:"于贵平到高新区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/3b37b135aad8a23ca8b8d698400dad62.jpg",
+ url:"",
+ time:"2022-08-24"
+ },{
+ title:"陈志良到市公安局调研指导全国文明典范城市创建工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/8add932b25cae61e29dba1dcc57702b0.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"于贵平到经开区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/332b29eb92aebd076756b63aeefb8dce.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"市公安局召开半年度全市公安工作推进会暨“一月一观摩”活动",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/88de79255eb9003cc81be1f085fe6597.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"全市公安系统功模代表座谈会召开",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/31eb5aaea4cf6702f699a2f17e8eee88.jpg",
+ url:"",
+ time:"2022-08-21"
+ }],[{
+ title:"于贵平到高新区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/3b37b135aad8a23ca8b8d698400dad62.jpg",
+ url:"",
+ time:"2022-08-24"
+ },{
+ title:"陈志良到市公安局调研指导全国文明典范城市创建工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/8add932b25cae61e29dba1dcc57702b0.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"于贵平到经开区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/332b29eb92aebd076756b63aeefb8dce.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"市公安局召开半年度全市公安工作推进会暨“一月一观摩”活动",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/88de79255eb9003cc81be1f085fe6597.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"全市公安系统功模代表座谈会召开",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/31eb5aaea4cf6702f699a2f17e8eee88.jpg",
+ url:"",
+ time:"2022-08-21"
+ }],[{
+ title:"于贵平到高新区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/3b37b135aad8a23ca8b8d698400dad62.jpg",
+ url:"",
+ time:"2022-08-24"
+ },{
+ title:"陈志良到市公安局调研指导全国文明典范城市创建工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/8add932b25cae61e29dba1dcc57702b0.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"于贵平到经开区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/332b29eb92aebd076756b63aeefb8dce.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"市公安局召开半年度全市公安工作推进会暨“一月一观摩”活动",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/88de79255eb9003cc81be1f085fe6597.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"全市公安系统功模代表座谈会召开",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/31eb5aaea4cf6702f699a2f17e8eee88.jpg",
+ url:"",
+ time:"2022-08-21"
+ }],[{
+ title:"于贵平到高新区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/3b37b135aad8a23ca8b8d698400dad62.jpg",
+ url:"",
+ time:"2022-08-24"
+ },{
+ title:"陈志良到市公安局调研指导全国文明典范城市创建工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/8add932b25cae61e29dba1dcc57702b0.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"于贵平到经开区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/332b29eb92aebd076756b63aeefb8dce.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"市公安局召开半年度全市公安工作推进会暨“一月一观摩”活动",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/88de79255eb9003cc81be1f085fe6597.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"全市公安系统功模代表座谈会召开",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/31eb5aaea4cf6702f699a2f17e8eee88.jpg",
+ url:"",
+ time:"2022-08-21"
+ }],[{
+ title:"于贵平到高新区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/3b37b135aad8a23ca8b8d698400dad62.jpg",
+ url:"",
+ time:"2022-08-24"
+ },{
+ title:"陈志良到市公安局调研指导全国文明典范城市创建工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/8add932b25cae61e29dba1dcc57702b0.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"于贵平到经开区督导检查党的二十大安保调研指导公安工作",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/332b29eb92aebd076756b63aeefb8dce.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"市公安局召开半年度全市公安工作推进会暨“一月一观摩”活动",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/88de79255eb9003cc81be1f085fe6597.jpg",
+ url:"",
+ time:"2022-08-21"
+ },{
+ title:"全市公安系统功模代表座谈会召开",
+ imgs:"http://czga.langye.net/d/file/p/2022/08-24/31eb5aaea4cf6702f699a2f17e8eee88.jpg",
+ url:"",
+ time:"2022-08-21"
+ }]]
}
},
methods: {
diff --git a/utils/util.js b/utils/util.js
index 5ce85c2..6580a3e 100644
--- a/utils/util.js
+++ b/utils/util.js
@@ -354,7 +354,28 @@ const isValidCardID = cardID => {
var last = parity[sum % 11];
return parity[sum % 11] == code[17];
-};
+};
+
+
+function RQ(pVar,pURL){
+ pURL = pURL || window.location.href;
+ try{
+ pURL=decodeURIComponent(pURL)
+ }catch(e){
+ }
+ var paraString = pURL.substring(pURL.indexOf("?") + 1, pURL.length).split("&");
+ var paraObj = {} //参数组
+ for (i = 0; j = paraString[i]; i++) {
+ paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);
+ }
+ var returnValue = paraObj[pVar.toLowerCase()];
+ if (typeof (returnValue) == "undefined") {
+ return "";
+ } else {
+ return returnValue;
+ }
+}
+
/**
* UTF16和UTF8转换对照表
* U+00000000 – U+0000007F 0xxxxxxx
@@ -555,5 +576,5 @@ module.exports = {
getUserInfo: getUserInfo,
toast: toast,
isValidCardID:isValidCardID,
-
+ RQ:RQ
};