与牧同行-小程序用户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

311 lines
11 KiB

  1. // policy-interpretation.js
  2. Page({
  3. data: {
  4. currentDate: '2023年11月15日',
  5. searchKeyword: '',
  6. activeFilter: 'all',
  7. showPolicyDetail: false,
  8. currentPolicy: {},
  9. // 所有政策数据
  10. allPolicies: [
  11. {
  12. id: 1,
  13. title: '2023年农业补贴资金申报指南',
  14. summary: '明确了今年农业补贴的申请条件、标准和流程,重点支持粮食生产和特色农业',
  15. date: '2023-10-20',
  16. source: '农业农村部',
  17. type: 'financial',
  18. typeText: '财政补贴',
  19. keyPoints: [
  20. '提高粮食生产者补贴标准,每亩增加10-20元',
  21. '新增特色农产品种植补贴,最高每亩补贴500元',
  22. '简化申报流程,推行线上申报系统',
  23. '强化补贴资金监管,确保专款专用'
  24. ],
  25. interpretation: '此次农业补贴政策调整体现了国家保障粮食安全和促进农业高质量发展的决心。通过提高补贴标准、扩大补贴范围,调动农民种粮积极性,同时支持特色农业发展,优化农业产业结构。',
  26. applicableObjects: [
  27. '种粮大户',
  28. '家庭农场',
  29. '农民专业合作社',
  30. '农业企业'
  31. ],
  32. applicationGuide: [
  33. '登录农业农村部政务服务平台',
  34. '填写申报信息并上传证明材料',
  35. '乡镇农业部门初审',
  36. '县级农业农村部门审核',
  37. '公示7个工作日',
  38. '拨付补贴资金'
  39. ],
  40. expertAdvice: '建议符合条件的农业经营主体尽早准备申报材料,重点关注今年新增的特色农产品补贴项目。同时注意申报时间节点,避免错过申报期限。',
  41. relatedLinks: [
  42. { name: '政策原文链接', url: 'https://example.com/policy1' },
  43. { name: '申报平台入口', url: 'https://example.com/apply1' }
  44. ]
  45. },
  46. {
  47. id: 2,
  48. title: '畜牧业高质量发展支持政策',
  49. summary: '针对畜牧业规模化、标准化发展提出具体扶持措施,加强动物疫病防控',
  50. date: '2023-09-15',
  51. source: '农业农村部',
  52. type: 'financial',
  53. typeText: '财政补贴',
  54. keyPoints: [
  55. '对标准化养殖场建设给予30%资金补贴',
  56. '引进优良种畜每头补贴500-2000元',
  57. '支持畜禽粪污资源化利用项目',
  58. '加强动物疫病防控体系建设'
  59. ],
  60. interpretation: '本政策旨在推动畜牧业转型升级,提高产业竞争力。通过支持标准化养殖和粪污资源化利用,促进畜牧业绿色发展,保障畜产品有效供给和质量安全。',
  61. applicableObjects: [
  62. '规模化养殖场',
  63. '畜牧专业合作社',
  64. '畜禽育种企业'
  65. ],
  66. applicationGuide: [
  67. '准备养殖场备案证明等相关材料',
  68. '向县级畜牧部门提交申请',
  69. '现场审核验收',
  70. '审批公示',
  71. '拨付补贴资金'
  72. ],
  73. expertAdvice: '建议养殖场重点考虑粪污资源化利用项目申报,这既是政策支持重点,也符合环保要求。同时加强疫病防控,确保养殖安全。',
  74. relatedLinks: [
  75. { name: '政策详细解读', url: 'https://example.com/policy2' }
  76. ]
  77. },
  78. {
  79. id: 3,
  80. title: '智慧农业技术推广实施方案',
  81. summary: '推动物联网、大数据等现代信息技术在农业生产中的应用',
  82. date: '2023-11-05',
  83. source: '农业农村部、工信部',
  84. type: 'technology',
  85. typeText: '技术推广',
  86. keyPoints: [
  87. '建设智慧农业示范基地,每个补贴50-100万元',
  88. '推广农业物联网设备,补贴比例达40%',
  89. '开展智慧农业技术培训,每年培训10万人次',
  90. '支持农业大数据平台建设'
  91. ],
  92. interpretation: '智慧农业是农业现代化的重要方向。本方案通过示范基地建设、设备补贴和技术培训,加快现代信息技术与农业深度融合,提升农业生产智能化水平。',
  93. applicableObjects: [
  94. '农业科技示范园',
  95. '现代农业园区',
  96. '农业科技企业',
  97. '新型农业经营主体'
  98. ],
  99. applicationGuide: [
  100. '制定智慧农业建设方案',
  101. '县级农业农村部门推荐',
  102. '市级部门审核',
  103. '省级部门审批立项',
  104. '组织项目实施',
  105. '验收评估'
  106. ],
  107. expertAdvice: '建议有条件的农业经营主体积极申报智慧农业项目,重点关注物联网设备应用和数据平台建设。同时加强技术人员培训,确保技术有效应用。',
  108. relatedLinks: [
  109. { name: '技术标准手册', url: 'https://example.com/policy3' }
  110. ]
  111. },
  112. {
  113. id: 4,
  114. title: '草原生态保护补助奖励政策',
  115. summary: '实施草原禁牧、草畜平衡奖励,促进草原生态恢复',
  116. date: '2023-08-30',
  117. source: '国家林草局',
  118. type: 'environment',
  119. typeText: '生态保护',
  120. keyPoints: [
  121. '禁牧草原每亩每年补贴7.5元',
  122. '草畜平衡草原每亩每年补贴2.5元',
  123. '实施草原生态修复工程',
  124. '支持草原畜牧业转型发展'
  125. ],
  126. interpretation: '草原生态保护补助奖励政策是生态文明建设的重要内容。通过实施禁牧和草畜平衡,减轻草原生态压力,促进草原植被恢复,实现生态保护和牧民增收双赢。',
  127. applicableObjects: [
  128. '草原牧户',
  129. '草原生态保护合作社',
  130. '草原管护员'
  131. ],
  132. applicationGuide: [
  133. '牧户申报草原承包面积',
  134. '村级公示',
  135. '乡镇审核',
  136. '县级审定',
  137. '资金发放'
  138. ],
  139. expertAdvice: '建议牧户严格按照核定的载畜量放牧,避免超载过牧。同时可考虑发展草原生态旅游等替代产业,增加收入来源。',
  140. relatedLinks: [
  141. { name: '政策实施细则', url: 'https://example.com/policy4' }
  142. ]
  143. },
  144. {
  145. id: 5,
  146. title: '农业保险保费补贴管理办法',
  147. summary: '扩大农业保险覆盖面,提高保障水平,优化理赔服务',
  148. date: '2023-10-10',
  149. source: '财政部、农业农村部',
  150. type: 'insurance',
  151. typeText: '农业保险',
  152. keyPoints: [
  153. '三大粮食作物保险保费补贴比例提高至70%',
  154. '扩大特色农产品保险试点范围',
  155. '简化理赔流程,缩短理赔时间',
  156. '建立农业保险信息共享平台'
  157. ],
  158. interpretation: '农业保险是防范农业风险的重要工具。新办法通过提高补贴比例、扩大保险范围,增强农业抗风险能力,为农民提供更全面的风险保障。',
  159. applicableObjects: [
  160. '所有从事农业生产的农户',
  161. '农业经营主体',
  162. '农业保险公司'
  163. ],
  164. applicationGuide: [
  165. '选择符合条件的农业保险产品',
  166. '与保险公司签订保险合同',
  167. '缴纳自付部分保费',
  168. '出险后及时报案',
  169. '保险公司查勘定损',
  170. '理赔款支付'
  171. ],
  172. expertAdvice: '建议农户积极投保农业保险,特别是特色农产品保险。注意了解保险责任范围、免赔条款等重要内容,确保自身权益。',
  173. relatedLinks: [
  174. { name: '农业保险产品目录', url: 'https://example.com/policy5' }
  175. ]
  176. }
  177. ],
  178. // 筛选后的政策
  179. filteredPolicies: []
  180. },
  181. onLoad: function(options) {
  182. // 初始化时显示所有政策
  183. this.setData({
  184. filteredPolicies: this.data.allPolicies
  185. });
  186. },
  187. // 搜索输入处理
  188. onSearchInput: function(e) {
  189. this.setData({
  190. searchKeyword: e.detail.value
  191. });
  192. },
  193. // 搜索按钮点击
  194. onSearch: function() {
  195. this.filterPolicies();
  196. },
  197. // 筛选标签点击
  198. onFilterTap: function(e) {
  199. const filter = e.currentTarget.dataset.filter;
  200. this.setData({
  201. activeFilter: filter
  202. }, () => {
  203. this.filterPolicies();
  204. });
  205. },
  206. // 筛选政策
  207. filterPolicies: function() {
  208. const { allPolicies, activeFilter, searchKeyword } = this.data;
  209. let filtered = allPolicies;
  210. // 按类型筛选
  211. if (activeFilter !== 'all') {
  212. if (activeFilter === 'latest') {
  213. // 最新政策:最近30天内发布的
  214. const thirtyDaysAgo = new Date();
  215. thirtyDaysAgo.setDate(thirtyDaysAgo.getDate() - 30);
  216. filtered = filtered.filter(policy => {
  217. const policyDate = new Date(policy.date);
  218. return policyDate >= thirtyDaysAgo;
  219. });
  220. } else {
  221. filtered = filtered.filter(policy => policy.type === activeFilter);
  222. }
  223. }
  224. // 按关键词搜索
  225. if (searchKeyword.trim() !== '') {
  226. const keyword = searchKeyword.toLowerCase();
  227. filtered = filtered.filter(policy =>
  228. policy.title.toLowerCase().includes(keyword) ||
  229. policy.summary.toLowerCase().includes(keyword) ||
  230. (policy.keyPoints && policy.keyPoints.some(point => point.toLowerCase().includes(keyword)))
  231. );
  232. }
  233. this.setData({
  234. filteredPolicies: filtered
  235. });
  236. },
  237. // 政策卡片点击
  238. onPolicyTap: function(e) {
  239. const policyId = e.currentTarget.dataset.id;
  240. const policy = this.data.allPolicies.find(p => p.id === policyId);
  241. if (policy) {
  242. this.setData({
  243. currentPolicy: policy,
  244. showPolicyDetail: true
  245. });
  246. }
  247. },
  248. // 隐藏政策详情
  249. hidePolicyDetail: function() {
  250. this.setData({
  251. showPolicyDetail: false
  252. });
  253. },
  254. // 阻止事件冒泡
  255. stopPropagation: function() {
  256. // 空函数,仅用于阻止事件冒泡
  257. },
  258. // 链接点击
  259. onLinkTap: function(e) {
  260. const url = e.currentTarget.dataset.url;
  261. wx.showModal({
  262. title: '提示',
  263. content: '即将打开外部链接: ' + url,
  264. success: function(res) {
  265. if (res.confirm) {
  266. // 在实际小程序中,这里需要使用web-view或复制链接
  267. wx.setClipboardData({
  268. data: url,
  269. success: function() {
  270. wx.showToast({
  271. title: '链接已复制',
  272. icon: 'success'
  273. });
  274. }
  275. });
  276. }
  277. }
  278. });
  279. },
  280. // 收藏政策
  281. onSavePolicy: function() {
  282. const policyTitle = this.data.currentPolicy.title;
  283. wx.showToast({
  284. title: `"${policyTitle}"已收藏`,
  285. icon: 'success',
  286. duration: 2000
  287. });
  288. // 在实际应用中,这里可以将政策保存到本地或发送到服务器
  289. setTimeout(() => {
  290. this.hidePolicyDetail();
  291. }, 1500);
  292. }
  293. });