浏览代码

政策资讯模块功能

Rockery 3 年之前
父节点
当前提交
816f7bab15

+ 1 - 1
h5_web/common/http.api.js

@@ -78,7 +78,7 @@ const install = (Vue, vm) => {
     // 政策资讯列表
     getPolicyInfoList: (params = {}) => vm.$u.get(apiurl.policyInfo.getPolicyInfoListUrl, params),
     // 政策资讯详情
-    getPolicyInfoDetails: (params = {}) => vm.$u.get(apiurl.policyInfo.getPolicyInfoDetailsUrl + params.id)
+    getPolicyInfoDetails: (params = {}) => vm.$u.get(apiurl.policyInfo.getPolicyInfoDetailsUrl, params)
   };
 	
 	// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下

+ 391 - 383
h5_web/pages.json

@@ -1,418 +1,426 @@
 {
-	"easycom": {
-		"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
-	},
-	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
-		{
-			"path": "pages/index/index",
-			"style": {
-				"navigationStyle": "custom", // 隐藏系统导航栏
-				"navigationBarTitleText": "首页"
-			}
-		}, {
-			"path": "pages/mycode/mycode",
-			"style": {
-				"navigationBarTitleText": "退役军人码"
-			}
+  "easycom": {
+    "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
+  },
+  "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+    {
+      "path": "pages/index/index",
+      "style": {
+        "navigationStyle": "custom", // 隐藏系统导航栏
+        "navigationBarTitleText": "首页"
+      }
+    }, {
+      "path": "pages/mycode/mycode",
+      "style": {
+        "navigationBarTitleText": "退役军人码"
+      }
 
-		},
-		{
-			"path": "pages/authentication/authentication",
-			"style": {
-				"navigationBarTitleText": "退役军人职业教育码申请"
-			}
+    },
+    {
+      "path": "pages/authentication/authentication",
+      "style": {
+        "navigationBarTitleText": "退役军人职业教育码申请"
+      }
 
-		},
-		{
-			"path": "pages/phoneLogin/phoneLogin",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "手机登录"
-			}
-		},
-		{
-			"path": "pages/bannerDetails/bannerDetails",
-			"style": {
-				"navigationBarTitleText": "详情页"
-			}
+    },
+    {
+      "path": "pages/phoneLogin/phoneLogin",
+      "style": {
+        "navigationStyle": "custom",
+        "navigationBarTitleText": "手机登录"
+      }
+    },
+    {
+      "path": "pages/bannerDetails/bannerDetails",
+      "style": {
+        "navigationBarTitleText": "详情页"
+      }
 
-		}, {
-			"path": "pages/policyNews/policyNews",
-			"style": {
-				"navigationBarTitleText": "政策资讯"
+    }, {
+      "path": "pages/policyNews/policyNews",
+      "style": {
+        "navigationBarTitleText": "政策资讯"
 
-			}
+      }
 
-		}, {
-			"path": "pages/policyNewsDetails/policyNewsDetails",
-			"style": {
-				"navigationBarTitleText": "文章详情"
+    }, {
+      "path": "pages/policyNewsDetails/policyNewsDetails",
+      "style": {
+        "navigationBarTitleText": "文章详情"
 
-			}
-		}, {
-			"path": "pages/newsDetails/newsDetails",
-			"style": {
-				"navigationBarTitleText": "新闻详情",
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
-		},
-		{
-			"path": "pages/login/code",
-			"style": {
-				"navigationBarTitleText": "验证码"
-			}
-		},
-		{
-			"path": "pages/mine/mine",
-			"style": {
-				"navigationBarTitleText": "个人中心",
-				"navigationStyle": "custom"
-			}
+      }
+    }, {
+      "path": "pages/newsDetails/newsDetails",
+      "style": {
+        "navigationBarTitleText": "新闻详情",
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
+    },
+    {
+      "path": "pages/login/code",
+      "style": {
+        "navigationBarTitleText": "验证码"
+      }
+    },
+    {
+      "path": "pages/mine/mine",
+      "style": {
+        "navigationBarTitleText": "个人中心",
+        "navigationStyle": "custom"
+      }
 
-		},
-		{
-			"path": "pages/center/center",
-			"style": {
-				"navigationBarTitleText": "中心",
-				"enablePullDownRefresh": false
-			}
+    },
+    {
+      "path": "pages/center/center",
+      "style": {
+        "navigationBarTitleText": "中心",
+        "enablePullDownRefresh": false
+      }
 
-		}, {
-			"path": "pages/privacyPolicy/privacyPolicy",
-			"style": {
-				"navigationBarTitleText": "隐私政策"
-			}
-		}, {
-			"path": "pages/schools/schools",
-			"style": {
-				"navigationBarTitleText": "学院列表",
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
-		}, {
-			"path": "pages/skillsTraining/skillsTraining",
-			"style": {
-				"navigationBarTitleText": "技能培训"
-			}
-		}, {
-			"path": "pages/basicTraining/basicTraining",
-			"style": {
-				"navigationBarTitleText": "适应性培训"
-			}
-		}, {
-			"path": "pages/basicTraining/myBasicTraining/myBasicTraining",
-			"style": {
-				"navigationBarTitleText": "我的适应性培训"
-			}
-		}, {
-			"path": "pages/basicTraining/basicTrainingDetails/basicTrainingDetails",
-			"style": {
-				"navigationBarTitleText": "在线上课"
-			}
-		}, {
-			"path": "pages/upgrade/upgrade",
-			"style": {
-				"navigationBarTitleText": "学历提升"
-			}
-		}, {
-			"path": "pages/inbuild/inbuild",
-			"style": {
-				"navigationBarTitleText": "建设中"
-			}
-		}, {
-			"path": "pages/recruitment/recruitment",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "招聘就业"
-			}
-		}, {
-			"path": "pages/myResume/myResume",
-			"style": {
-				"navigationBarTitleText": "简历",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
-		}, {
-			"path": "pages/myResume/addExperience",
-			"style": {
-				"navigationBarTitleText": "添加工作经历",
-				"enablePullDownRefresh": false,
-				"navigationStyle": "custom"
-			}
-		},
-		{
-			"path": "pages/myResume/addEducation",
-			"style": {
-				"navigationBarTitleText": "添加培训与教育经历",
-				"enablePullDownRefresh": false,
-				"navigationStyle": "custom"
-			}
-		},
-		{
-			"path": "pages/dynamicTracking/dynamicTracking",
-			"style": {
-				"navigationBarTitleText": "全链条动态跟踪",
-				"enablePullDownRefresh": false
-			}
+    }, {
+      "path": "pages/privacyPolicy/privacyPolicy",
+      "style": {
+        "navigationBarTitleText": "隐私政策"
+      }
+    }, {
+      "path": "pages/schools/schools",
+      "style": {
+        "navigationBarTitleText": "学院列表",
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
+    }, {
+      "path": "pages/skillsTraining/skillsTraining",
+      "style": {
+        "navigationBarTitleText": "技能培训"
+      }
+    }, {
+      "path": "pages/basicTraining/basicTraining",
+      "style": {
+        "navigationBarTitleText": "适应性培训"
+      }
+    }, {
+      "path": "pages/basicTraining/myBasicTraining/myBasicTraining",
+      "style": {
+        "navigationBarTitleText": "我的适应性培训"
+      }
+    }, {
+      "path": "pages/basicTraining/basicTrainingDetails/basicTrainingDetails",
+      "style": {
+        "navigationBarTitleText": "在线上课"
+      }
+    }, {
+      "path": "pages/upgrade/upgrade",
+      "style": {
+        "navigationBarTitleText": "学历提升"
+      }
+    }, {
+      "path": "pages/inbuild/inbuild",
+      "style": {
+        "navigationBarTitleText": "建设中"
+      }
+    }, {
+      "path": "pages/recruitment/recruitment",
+      "style": {
+        "navigationStyle": "custom",
+        "navigationBarTitleText": "招聘就业"
+      }
+    }, {
+      "path": "pages/myResume/myResume",
+      "style": {
+        "navigationBarTitleText": "简历",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
+    }, {
+      "path": "pages/myResume/addExperience",
+      "style": {
+        "navigationBarTitleText": "添加工作经历",
+        "enablePullDownRefresh": false,
+        "navigationStyle": "custom"
+      }
+    },
+    {
+      "path": "pages/myResume/addEducation",
+      "style": {
+        "navigationBarTitleText": "添加培训与教育经历",
+        "enablePullDownRefresh": false,
+        "navigationStyle": "custom"
+      }
+    },
+    {
+      "path": "pages/dynamicTracking/dynamicTracking",
+      "style": {
+        "navigationBarTitleText": "全链条动态跟踪",
+        "enablePullDownRefresh": false
+      }
 
-		}, {
-			"path": "pages/personalModify/personalModify",
-			"style": {
-				"navigationBarTitleText": "个人资料修改",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
-		}, {
-			"path": "pages/schools/schools",
-			"style": {
-				"navigationBarTitleText": "学院列表",
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
-		}, {
-			"path": "pages/skillsTraining/skillsTraining",
-			"style": {
-				"navigationBarTitleText": "技能培训"
-			}
-		}, {
-			"path": "pages/basicTraining/basicTraining",
-			"style": {
-				"navigationBarTitleText": "适应性培训"
-			}
-		}, {
-			"path": "pages/basicTraining/myBasicTraining/myBasicTraining",
-			"style": {
-				"navigationBarTitleText": "我的适应性培训"
-			}
-		}, {
-			"path": "pages/basicTraining/basicTrainingDetails/basicTrainingDetails",
-			"style": {
-				"navigationBarTitleText": "在线上课"
-			}
-		}, {
-			"path": "pages/upgrade/upgrade",
-			"style": {
-				"navigationBarTitleText": "学历提升"
-			}
-		}, {
-			"path": "pages/inbuild/inbuild",
-			"style": {
-				"navigationBarTitleText": "建设中"
-			}
-		}, {
-			"path": "pages/recruitment/recruitment",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "招聘就业"
-			}
-		}, {
-			"path": "pages/myResume/myResume",
-			"style": {
-				"navigationBarTitleText": "简历",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#2a82e4",
-				"navigationBarTextStyle": "white"
-			}
+    }, {
+      "path": "pages/personalModify/personalModify",
+      "style": {
+        "navigationBarTitleText": "个人资料修改",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
+    }, {
+      "path": "pages/schools/schools",
+      "style": {
+        "navigationBarTitleText": "学院列表",
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
+    }, {
+      "path": "pages/skillsTraining/skillsTraining",
+      "style": {
+        "navigationBarTitleText": "技能培训"
+      }
+    }, {
+      "path": "pages/basicTraining/basicTraining",
+      "style": {
+        "navigationBarTitleText": "适应性培训"
+      }
+    }, {
+      "path": "pages/basicTraining/myBasicTraining/myBasicTraining",
+      "style": {
+        "navigationBarTitleText": "我的适应性培训"
+      }
+    }, {
+      "path": "pages/basicTraining/basicTrainingDetails/basicTrainingDetails",
+      "style": {
+        "navigationBarTitleText": "在线上课"
+      }
+    }, {
+      "path": "pages/upgrade/upgrade",
+      "style": {
+        "navigationBarTitleText": "学历提升"
+      }
+    }, {
+      "path": "pages/inbuild/inbuild",
+      "style": {
+        "navigationBarTitleText": "建设中"
+      }
+    }, {
+      "path": "pages/recruitment/recruitment",
+      "style": {
+        "navigationStyle": "custom",
+        "navigationBarTitleText": "招聘就业"
+      }
+    }, {
+      "path": "pages/myResume/myResume",
+      "style": {
+        "navigationBarTitleText": "简历",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#2a82e4",
+        "navigationBarTextStyle": "white"
+      }
 
-		}, {
-			"path": "pages/dynamicTracking/dynamicTracking",
-			"style": {
-				"navigationBarTitleText": "全链条动态跟踪",
-				"enablePullDownRefresh": false
-			}
+    }, {
+      "path": "pages/dynamicTracking/dynamicTracking",
+      "style": {
+        "navigationBarTitleText": "全链条动态跟踪",
+        "enablePullDownRefresh": false
+      }
 
-		}, {
-			"path": "pages/personalModify/personalModify",
-			"style": {
-				"navigationBarTitleText": "个人资料修改",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#fff"
-			}
+    }, {
+      "path": "pages/personalModify/personalModify",
+      "style": {
+        "navigationBarTitleText": "个人资料修改",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#fff"
+      }
 
-		}, {
-			"path": "pages/evaluationIntention/evaluationIntention",
-			"style": {
-				"navigationBarTitleText": "求职意向自我评价",
-				"enablePullDownRefresh": false,
-				"navigationStyle": "custom"
-			}
+    }, {
+      "path": "pages/evaluationIntention/evaluationIntention",
+      "style": {
+        "navigationBarTitleText": "求职意向自我评价",
+        "enablePullDownRefresh": false,
+        "navigationStyle": "custom"
+      }
 
-		}, {
-			"path": "pages/myDelivery/myDelivery",
-			"style": {
-				"navigationBarTitleText": "我的投递",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
+    }, {
+      "path": "pages/myDelivery/myDelivery",
+      "style": {
+        "navigationBarTitleText": "我的投递",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
 
-		}, {
-			"path": "pages/myInterview/myInterview",
-			"style": {
-				"navigationBarTitleText": "我的面试",
-				"enablePullDownRefresh": false
-			}
+    }, {
+      "path": "pages/myInterview/myInterview",
+      "style": {
+        "navigationBarTitleText": "我的面试",
+        "enablePullDownRefresh": false
+      }
 
-		}, {
-			"path": "pages/mySkillsTraining/mySkillsTraining",
-			"style": {
-				"navigationBarTitleText": "我的技能培训",
-				"enablePullDownRefresh": false
-			}
+    }, {
+      "path": "pages/mySkillsTraining/mySkillsTraining",
+      "style": {
+        "navigationBarTitleText": "我的技能培训",
+        "enablePullDownRefresh": false
+      }
 
-		}, {
-			"path": "pages/myEvaluation/myEvaluation",
-			"style": {
-				"navigationBarTitleText": "我的评价",
-				"enablePullDownRefresh": false
-			}
+    }, {
+      "path": "pages/myEvaluation/myEvaluation",
+      "style": {
+        "navigationBarTitleText": "我的评价",
+        "enablePullDownRefresh": false
+      }
 
-		}, {
-			"path": "pages/setting/setting",
-			"style": {
-				"navigationBarTitleText": "设置",
-				"enablePullDownRefresh": false
-			}
+    }, {
+      "path": "pages/setting/setting",
+      "style": {
+        "navigationBarTitleText": "设置",
+        "enablePullDownRefresh": false
+      }
 
-		}, {
-			"path": "pages/progressiveIntegral/progressiveIntegral",
-			"style": {
-				"navigationBarTitleText": "进步积分",
-				"enablePullDownRefresh": false,
-				"navigationStyle": "custom"
-			}
+    }, {
+      "path": "pages/progressiveIntegral/progressiveIntegral",
+      "style": {
+        "navigationBarTitleText": "进步积分",
+        "enablePullDownRefresh": false,
+        "navigationStyle": "custom"
+      }
 
-		}, {
-			"path": "pages/cooperativeEnterprise/cooperativeEnterprise",
-			"style": {
-				"navigationBarTitleText": "企业列表",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
+    }, {
+      "path": "pages/cooperativeEnterprise/cooperativeEnterprise",
+      "style": {
+        "navigationBarTitleText": "企业列表",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
 
-		}, {
-			"path": "pages/businessDetails/businessDetails",
-			"style": {
-				"navigationBarTitleText": "企业详情",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#fff",
-				"backgroundColor": "#f2f2f2"
-			}
+    }, {
+      "path": "pages/businessDetails/businessDetails",
+      "style": {
+        "navigationBarTitleText": "企业详情",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#fff",
+        "backgroundColor": "#f2f2f2"
+      }
 
-		}, {
-			"path": "pages/jobDetails/jobDetails",
-			"style": {
-				"navigationBarTitleText": "职位详情",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
+    }, {
+      "path": "pages/jobDetails/jobDetails",
+      "style": {
+        "navigationBarTitleText": "职位详情",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
 
-		}, {
-			"path": "pages/resumeDeliveryResults/resumeDeliveryResults",
-			"style": {
-				"navigationBarTitleText": "简历投递结果",
-				"enablePullDownRefresh": false,
-				"navigationStyle": "custom"
-			}
+    }, {
+      "path": "pages/resumeDeliveryResults/resumeDeliveryResults",
+      "style": {
+        "navigationBarTitleText": "简历投递结果",
+        "enablePullDownRefresh": false,
+        "navigationStyle": "custom"
+      }
 
-		}, {
-			"path": "pages/applyEducationCode/applyEducationCode",
-			"style": {
-				"navigationBarTitleText": "退役军人职业教育码申请",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
+    }, {
+      "path": "pages/applyEducationCode/applyEducationCode",
+      "style": {
+        "navigationBarTitleText": "退役军人职业教育码申请",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
 
-		}, {
-			"path": "pages/applyEducationCode/applyEducationSuccess",
-			"style": {
-				"navigationBarTitleText": "退役军人职业教育码申请",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
+    }, {
+      "path": "pages/applyEducationCode/applyEducationSuccess",
+      "style": {
+        "navigationBarTitleText": "退役军人职业教育码申请",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
 
-		}, {
-			"path": "pages/newsInformation/newsInformation",
-			"style": {
-				"navigationBarTitleText": "新闻动态",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
+    }, {
+      "path": "pages/newsInformation/newsInformation",
+      "style": {
+        "navigationBarTitleText": "新闻动态",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
 
-		}, {
-			"path": "pages/schoolDetails/schoolDetails",
-			"style": {
-				"navigationBarTitleText": "学校详情",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#fff"
-			}
-		}, {
-			"path": "pages/professionalDetails/professionalDetails",
-			"style": {
-				"navigationBarTitleText": "专业详情",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
-		}, {
-			"path": "pages/policyInfo/policyInfo",
-			"style": {
-				"navigationBarTitleText": "政策资讯",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
-		}, {
-			"path": "pages/notification/notification",
-			"style": {
-				"navigationBarTitleText": "消息通知",
-				"enablePullDownRefresh": false,
-				"navigationBarBackgroundColor": "#3D5D4C",
-				"navigationBarTextStyle": "white"
-			}
-		}, {
+    }, {
+      "path": "pages/schoolDetails/schoolDetails",
+      "style": {
+        "navigationBarTitleText": "学校详情",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#fff"
+      }
+    }, {
+      "path": "pages/professionalDetails/professionalDetails",
+      "style": {
+        "navigationBarTitleText": "专业详情",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
+    }, {
+      "path": "pages/policyInfo/policyInfo",
+      "style": {
+        "navigationBarTitleText": "政策资讯",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
+    }, {
+      "path": "pages/notification/notification",
+      "style": {
+        "navigationBarTitleText": "消息通知",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
+    }, {
       "path": "pages/questionConsulting/questionConsulting",
       "style": {
         "navigationBarTitleText": "问题咨询",
         "enablePullDownRefresh": false,
         "navigationStyle": "custom"
       }
+    }, {
+      "path": "pages/policyInfo/policyInfoDetails",
+      "style": {
+        "navigationBarTitleText": "政策资讯详情",
+        "enablePullDownRefresh": false,
+        "navigationBarBackgroundColor": "#3D5D4C",
+        "navigationBarTextStyle": "white"
+      }
     }
-	],
-	"globalStyle": {
-		"navigationBarTextStyle": "black",
-		"navigationBarTitleText": "uni-app",
-		"navigationBarBackgroundColor": "#F2F2F2",
-		"backgroundColor": "#F2F2F2"
-	},
-	"tabBar": {
-		"color": "#909399",
-		"selectedColor": "#303133",
-		"borderStyle": "black",
-		"backgroundColor": "#ffffff",
-		"list": [{
-			"pagePath": "pages/index/index",
-			"iconPath": "static/icons/index-gray.png",
-			"selectedIconPath": "static/icons/index.png",
-			"text": "首页"
-		}, {
-			"pagePath": "pages/mycode/mycode",
-			"iconPath": "static/icons/code-gray.png",
-			"selectedIconPath": "static/icons/code.png",
-			"text": "退役军人码"
-		}, {
-			"pagePath": "pages/mine/mine",
-			"iconPath": "static/icons/mine-gray.png",
-			"selectedIconPath": "static/icons/mine.png",
-			"text": "我"
-		}]
-	}
+  ],
+  "globalStyle": {
+    "navigationBarTextStyle": "black",
+    "navigationBarTitleText": "uni-app",
+    "navigationBarBackgroundColor": "#F2F2F2",
+    "backgroundColor": "#F2F2F2"
+  },
+  "tabBar": {
+    "color": "#909399",
+    "selectedColor": "#303133",
+    "borderStyle": "black",
+    "backgroundColor": "#ffffff",
+    "list": [{
+      "pagePath": "pages/index/index",
+      "iconPath": "static/icons/index-gray.png",
+      "selectedIconPath": "static/icons/index.png",
+      "text": "首页"
+    }, {
+      "pagePath": "pages/mycode/mycode",
+      "iconPath": "static/icons/code-gray.png",
+      "selectedIconPath": "static/icons/code.png",
+      "text": "退役军人码"
+    }, {
+      "pagePath": "pages/mine/mine",
+      "iconPath": "static/icons/mine-gray.png",
+      "selectedIconPath": "static/icons/mine.png",
+      "text": "我"
+    }]
+  }
 }

+ 149 - 170
h5_web/pages/policyInfo/policyInfo.vue

@@ -5,79 +5,62 @@
 
 <template>
   <view class="policyInfo">
-    <view class="policyInfo-banner">
-      <u-swiper
-      	:list="bannerList"
-      	name="bannerUrl"
-      	border-radius="0"
-      	mode="round"
-      	height="372"
-      	img-mode="scaleToFill"
-      	@click="swiperClick"
-      ></u-swiper>
-    </view>
-    <view class="policyInfo-title">
-      <view>中华人民共和国英雄烈士保护法</view>
-    </view>
-    <view class="policyInfo-wrap">
-      <view class="u-tabs-box policyInfo-tabsswiper">
-      	<u-tabs-swiper bg-color="transparent" ref="policyInfoTabsSwiper" :list="tabsSwiperList" :current="current" @change="tabsSwiperChange" :is-scroll="false"></u-tabs-swiper>
+    <z-paging ref="paging"
+      v-model="policyInfoList"
+      @query="queryList">
+      <view class="policyInfo-banner"
+        slot="top">
+        <u-swiper :list="bannerList"
+          name="bannerUrl"
+          border-radius="0"
+          mode="round"
+          height="372"
+          img-mode="scaleToFill"
+          @click="swiperClick"
+          @change="swiperChange"></u-swiper>
       </view>
-      <swiper class="swiper-box" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish">
-      	<swiper-item class="swiper-item">
-      		<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
-            <view class="page-box">
-              <view class="policyInfo-container" v-for="(lawItem, index) in dataList[0]" :key="index + 'lawItem'">
-                <view class="item">
-                  <view class="title">{{lawItem.title}}</view>
-                  <view class="item-image">
-                    <image :src="lawItem.imgUrl" mode="aspectFill" class="image"></image>
-                  </view>
-                </view>
-              </view>
-              <u-loadmore :status="loadStatus[0]" bgColor="#f2f2f2"></u-loadmore>
-            </view>
-      		</scroll-view>
-      	</swiper-item>
-      	<swiper-item class="swiper-item">
-      		<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
-            <view class="page-box">
-              <view class="policyInfo-container" v-for="(administrativeItem, index) in dataList[1]" :key="index + 'administrativeItem'">
-                <view class="item">
-                  <view class="title">{{administrativeItem.title}}</view>
-                  <view class="item-image">
-                    <image :src="administrativeItem.imgUrl" mode="aspectFill" class="image"></image>
-                  </view>
-                </view>
-              </view>
-              <u-loadmore :status="loadStatus[1]" bgColor="#f2f2f2"></u-loadmore>
-            </view>
-      		</scroll-view>
-      	</swiper-item>
-      	</swiper-item>
-      	<swiper-item class="swiper-item">
-      		<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
-            <view class="page-box">
-              <view class="policyInfo-container" v-for="(regulationsItem, index) in dataList[2]" :key="index + 'regulationsItem'">
-                <view class="item">
-                  <view class="title">{{regulationsItem.title}}</view>
-                  <view class="item-image">
-                    <image :src="regulationsItem.imgUrl" mode="aspectFill" class="image"></image>
-                  </view>
-                </view>
-              </view>
-              <u-loadmore :status="loadStatus[2]" bgColor="#f2f2f2"></u-loadmore>
+
+      <view class="policyInfo-title"
+        slot="top">
+        <view>{{ policyInfoTitle }}</view>
+      </view>
+
+      <!-- u-tabs-swiper -->
+      <view class="policyInfo-tabsswiper"
+        slot="top">
+        <u-tabs bg-color="transparent"
+          :list="tabsList"
+          name="label"
+          :is-scroll="true"
+          :current="tabCurrent"
+          font-size="30"
+          @change="tabsChange" />
+      </view>
+
+      <view class="policyInfo-list">
+        <view class="list-container"
+          v-for="(item, index) in dataList"
+          :key="index + 'policyInfoList'"
+          @click="$u.route('/pages/policyInfo/policyInfoDetails',{artId:item.artId})">
+          <view class="item">
+            <view class="title">{{item.artTitle}}</view>
+            <view class="item-image">
+              <image :src="item.artImage"
+                mode="aspectFill"
+                class="image"></image>
             </view>
-      		</scroll-view>
-      	</swiper-item>
-      </swiper>
-    </view>
-    
+          </view>
+        </view>
+      </view>
+    </z-paging>
+
     <view class="policybtn">
       <view class="policybtn-container">
         <view class="policybtn-content">
           <view>
-            <u-button type="primary" @click="policySubmitBtnClick" class="policysubmitbtn">政策咨询</u-button>
+            <u-button type="primary"
+              @click="policySubmitBtnClick"
+              class="policysubmitbtn">政策咨询</u-button>
           </view>
         </view>
       </view>
@@ -90,134 +73,130 @@
     data() {
       return {
         bannerList: [],
-        tabsSwiperList: [
-        	{
-        		name: '法律'
-        	},
-        	{
-        		name: '行政法规'
-        	},
-        	{
-        		name: '部门规章'
-        	}
-        ],
-        current: 0,
-        swiperCurrent: 0,
-        loadStatus: ['loadmore','loadmore','loadmore'],
-        dataList: [
-          [],
-          [
-            {
-              id: 1,
-              title: '退役士兵安置条例',
-              imgUrl: require('@/static/jpeg/a72f1cb8e19d649902859638ea458812.jpg'),
-            },
-            {
-              id: 2,
-              title: '军人抚恤优待条例',
-              imgUrl: require('@/static/jpeg/a72f1cb8e19d649902859638ea458812.jpg'),
-            },
-            {
-              id: 2,
-              title: '烈士褒扬条例',
-              imgUrl: require('@/static/jpeg/a72f1cb8e19d649902859638ea458812.jpg'),
-            },
-            {
-              id: 2,
-              title: '军队专业干部安置暂行办法',
-              imgUrl: require('@/static/jpeg/a72f1cb8e19d649902859638ea458812.jpg'),
-            },
-            {
-              id: 2,
-              title: '退役士兵安置条例',
-              imgUrl: require('@/static/jpeg/a72f1cb8e19d649902859638ea458812.jpg'),
-            }
-          ],
-          []
-        ]
+        policyInfoTitle: '中华人民共和国英雄烈士保护法',
+        // 政策资讯列表
+        policyInfoList: [],
+        tabsList: [],
+        tabCurrent: 0,
+        dataList: []
       }
     },
     onLoad() {
-    	this.getDataList(0);
+      this.getPolicyType();
     },
     onShow() {
-    	this.getBannerList();
+      this.getBannerList();
     },
     methods: {
-      getBannerList(){
-      	this.$u.api.getIndexBannerList()
-      	.then(res=>{
-          if(!res) return;
-      		this.bannerList = res?.data || [];
-          this.bannerList = [];
-          this.bannerList.push(
-            {
+      /**
+       * 获取政策资讯类别
+       */
+      getPolicyType() {
+        this.$u.api.getDictdataUrl({
+          key: 'policy_type'
+        }).then(res => {
+          if (res.code == 200) {
+            this.tabsList = res.data;
+            this.getList(0, 1, 10, this.tabsList[0].text);
+          } else {
+            uni.showToast({
+              icon: 'none',
+              title: res.msg
+            });
+          }
+        });
+      },
+      getBannerList() {
+        this.$u.api.getIndexBannerList()
+          .then(res => {
+            if (!res) return;
+            this.bannerList = res?.data || [];
+            this.bannerList = [];
+            this.bannerList.push({
               bannerUrl: require('@/static/jpeg/e2f3c933be411c565ec65cd49e832ac8.jpeg'),
               content: '<p>代码固定测试内容999998</p>',
               id: "999998",
               name: "代码固定测试999998"
-            }
-          );
-          this.bannerList.push(
-            {
+            });
+            this.bannerList.push({
               bannerUrl: require('@/static/jpeg/836ee345ca125ef429c04cfbabac0154.jpeg'),
               content: '<p>代码固定测试内容999999</p>',
               id: "999999",
               name: "代码固定测试999999"
-            }
-          );
-      		console.log('bannerList',JSON.parse(JSON.stringify(res)));
-      	})
+            });
+            // console.log('bannerList',JSON.parse(JSON.stringify(res)));
+          })
       },
       // 轮播图点击
-      swiperClick (index) {
-      	// console.log('swiperClick',index);
-      	if(this.bannerList[index].jumpUrl){
-      		let url = this.bannerList[index].jumpUrl.split('#')[1];
-      		this.$u.route({
-      			url: url,
-      		});
-      	}else{
-      		this.$u.route({
-      			url: 'pages/bannerDetails/bannerDetails',
-      			params: {
-      			  id: this.bannerList[index].id
-      			}
-      		});
-      	}
+      swiperClick(index) {
+        if (this.bannerList[index].jumpUrl) {
+          let url = this.bannerList[index].jumpUrl.split('#')[1];
+          this.$u.route({
+            url: url,
+          });
+        } else {
+          this.$u.route({
+            url: 'pages/bannerDetails/bannerDetails',
+            params: {
+              id: this.bannerList[index].id
+            }
+          });
+        }
       },
-      // 页面数据
-      getDataList(idx) {
-      	this.loadStatus.splice(idx,1,"nomore")
+      swiperChange(index) {
+        // this.policyInfoTitle = this.bannerList[index]?.name || '';
       },
-      // tab栏切换
-      tabsSwiperChange(index) {
-      	this.swiperCurrent = index;
-      	this.getDataList(index);
-      },
-      transition({ detail: { dx } }) {
-      	this.$refs.policyInfoTabsSwiper.setDx(dx);
+      /**
+       * 获取列表
+       * @param { Number } idx
+       * @param { Number } pageNum
+       * @param { Number } pageSize
+       * @param { Number } artCategoryId
+       */
+      getList(idx, pageNum, pageSize, artCategoryId) {
+        this.$u.api.policyInfo.getPolicyInfoList({
+          pageNum,
+          pageSize,
+          artCategoryId
+        }).then(res => {
+          if (res.code === 200) {
+            this.dataList = res.rows;
+          } else {
+            uni.showToast({
+              icon: 'none',
+              title: res.msg
+            });
+          }
+        }).catch(err => {
+          // console.log("err: ",err);
+          uni.showToast({
+            title: '系统异常!',
+            type: 'error'
+          });
+        });
       },
-      animationfinish({ detail: { current } }) {
-      	this.$refs.policyInfoTabsSwiper.setFinishCurrent(current);
-      	this.swiperCurrent = current;
-      	this.current = current;
+      // tab栏切换
+      tabsChange(index) {
+        this.tabCurrent = index;
+        this.getList(index, 1, 10, this.tabsList[index]?.text);
       },
-      reachBottom() {
-        this.loadStatus.splice(this.current,1,"loading");
-        setTimeout(() => {
-        	this.getDataList(this.current);
-        }, 1200);
+      /**
+       * 列表加载触发
+       */
+      queryList(pageNo, pageSize) {
+        if (this.tabsList.length > 0) {
+          this.getList(this.tabCurrent, pageNo, pageSize, this.tabsList[this.tabCurrent]?.text);
+        }
       },
       /**
        * 政策咨询事件
        */
-      policySubmitBtnClick(){
+      policySubmitBtnClick() {
         this.$u.route({
-        	url: 'pages/questionConsulting/questionConsulting',
-        	params: {
-        	  id: '9999'
-        	}
+          url: 'pages/questionConsulting/questionConsulting',
+          params: {
+            id: '9999'
+          }
         });
       }
     }
@@ -227,4 +206,4 @@
 <style lang="scss"
   scoped>
   @import './scss/policyInfo.scss'
-</style>
+</style>

+ 95 - 0
h5_web/pages/policyInfo/policyInfoDetails.vue

@@ -0,0 +1,95 @@
+<template>
+	<view class="policyinfodetails">
+		<view class="policyinfodetails-header">
+			<view class="policyinfodetails-header-title">{{ policyInfoDetailsObj.artTitle }}</view>
+			<view class="policyinfodetails-header-subtitle">
+				<view>来源:{{ policyInfoDetailsObj.artAuthor }}</view>
+				<view>{{ formatDate(policyInfoDetailsObj.createTime) }}</view>
+			</view>
+		</view>
+		<view class="policyinfodetails-content">
+      <view class="ql-editor">
+        <u-parse :html="policyInfoDetailsObj.artContent"></u-parse>
+      </view>
+		</view>
+		<u-toast ref="uToast" />
+	</view>
+</template>
+
+<script>
+	export default{
+		data(){
+			return{
+				policyInfoDetailsObj: ''
+			}
+		},
+		onLoad(page){
+			if (page.artId) {
+				this.getDetails(page.artId);
+			}
+		},
+		onShow(){
+			
+		},
+		methods:{
+			// 获取详情
+			getDetails(id) {
+				this.$u.api.policyInfo.getPolicyInfoDetails({ id: id })
+				.then(res=>{
+					if (res.code === 200) {
+						this.policyInfoDetailsObj = res.data;
+					} else {
+						this.$refs.uToast.show({
+							title: res.msg,
+							type: 'error'
+						});
+					}
+				})
+				.catch(err => {
+					this.$refs.uToast.show({
+						title: '操作失败!',
+						type: 'error'
+					});
+				})
+			},
+			/**
+			 * 初始化日期 MM-dd hh:mm
+			 */
+			formatDate(date) {
+				let value;
+				if (date) {
+					value = this.$u.timeFormat(date.replace(/-/g, '/'), 'mm-dd hh:MM')
+				}
+				return value;
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	@import  '@/static/css/quill.bubble.scss';
+	@import  '@/static/css/quill.core.scss';
+	@import  '@/static/css/quill.snow.scss';
+	.policyinfodetails {
+		padding: 30rpx 44rpx;
+		font-family: 'PingFangSC-Regular, PingFang SC';
+		&-header {
+			border-bottom: solid 1px #DBDBDB;
+			padding-bottom: 22rpx;
+			&-title {
+				color: #000;
+				font-size: 36rpx;
+			}
+			&-subtitle {
+				margin-top: 20rpx;
+				display: flex;
+				justify-content: space-between;
+				color: #6F6F6F;
+				font-size: 20rpx;
+			}
+		}
+		&-content {
+			padding: 18rpx 0;
+		}
+	}
+</style>

+ 30 - 47
h5_web/pages/policyInfo/scss/policyInfo.scss

@@ -1,7 +1,7 @@
 /* #ifndef H5 */
 page {
 	height: 100%;
-	// background-color: #f2f2f2;
+	background-color: #f2f2f2;
 }
 /* #endif */
 
@@ -23,56 +23,39 @@ page {
     }
   }
   
-  &-wrap{
-    background-color: #f2f2f2;
-    display: flex;
-    flex-direction: column;
-    height: calc(100vh - var(--window-top) - 458rpx);
-    width: 100%;
-    padding-bottom: 120rpx;
+  &-list{
+    padding: 30rpx 30rpx 120rpx;
     
-    .swiper-box{
-      flex: 1;
+    .list-container{
+      padding: 0 32rpx;
+      margin-bottom: 20rpx;
+      background-color: #FFFFFF;
+      border-radius: 10rpx;
       
-      .swiper-item{
-        height: 100%;
+      .item{
+        display: flex;
+        flex-wrap: wrap;
+        justify-content: space-between;
+        
+        .title{
+          width: 70%;
+          padding: 30rpx 0;
+          font-size: 30rpx;
+          font-family: PingFangSC-Regular, PingFang SC;
+          font-weight: 400;
+          color: #000000;
+          line-height: 42rpx;
+          letter-spacing: 1px;
+        }
         
-        .page-box{
-          padding: 20rpx 30rpx;
+        .item-image{
+          padding: 30rpx 0;
           
-          .policyInfo-container{
-            padding: 0 32rpx;
-            margin-bottom: 20rpx;
-            background-color: #FFFFFF;
-            border-radius: 10rpx;
-            
-            .item{
-              display: flex;
-              flex-wrap: wrap;
-              justify-content: space-between;
-              
-              .title{
-                padding: 55rpx 0;
-                font-size: 30rpx;
-                font-family: PingFangSC-Regular, PingFang SC;
-                font-weight: 400;
-                color: #000000;
-                line-height: 42rpx;
-                letter-spacing: 1px;
-              }
-              
-              .item-image{
-                padding: 26rpx 0;
-                text-align: center;
-                
-                .image{
-                  width: 128rpx;
-                  height: 101rpx;
-                  box-shadow: 0 0 10rpx 0 rgba(77, 77, 77, 0.23);
-                  border-radius: 7rpx;
-                }
-              }
-            }
+          .image{
+            width: 128rpx;
+            height: 101rpx;
+            box-shadow: 0 0 10rpx 0 rgba(77, 77, 77, 0.23);
+            border-radius: 7rpx;
           }
         }
       }