PageSourceSearch

https://www.xinyuan.gov.cn/xinyuan/xhtml/js/hd_common.js

js xinyuan.gov.cn collected 2026-10-02 16:57:25 UTC 6,275 bytes, 170 lines download raw bytes

1// 接口地址域名(需更改)
2var path = '', /* fylxg - 原为let,改为var,避免与yhzx.js中var path重复声明报错 */
3	// 部门ID(需更改)
4	deptId = '707118c455614593ae9d042b7c28109c',
5	column = $('meta[name="ColumnName"]').attr('content');
6	var _ylWyxx='/xinyuan/c113979/hd_mail_wyxx.shtml';
7	var _sourceId='f68052f733ad47b38f7f28201956afcb';
8	// if(column=='书记信箱'){
9	// 	_ylWyxx='/xinyuan/c113978/hd_mail_wyxx.shtml';
10	// 	_sourceId='272e9ef88ee7456aa56e562302e5d39d';
11	// }else if(column=="县长信箱"){
12	// 	_ylWyxx='/xinyuan/c113979/hd_mail_wyxx.shtml';
13	// 	 _sourceId='f68052f733ad47b38f7f28201956afcb';
14	// }
15	// 互动-信件
16	hd_mail = {
17		// 信件详情预览地址(需修改)
18		ylDetail: '/xinyuan/c113978/hd_mail_result.shtml',
19		// 我要写信预览地址(需修改)
20		ylWyxx: _ylWyxx,
21		// 信件列表接口
22		urlList: path + '/communication/api-mailbox/frontMail/mailList',
23		// 查询信件接口
24		urlSearch: path + '/communication/api-mailbox/frontMail/detailByPhoneAndSearchCode',
25		// 信件详情接口
26		urlDetail: path + '/communication/api-mailbox/frontMail/detail',
27		// 信件操作流程接口
28		urlCzlc: path + '/communication/api-mailbox/rest/1.0/tpiLaShaMailLogList',
29		// 我要写信接口
30		urlWyxx: path + '/communication/api-mailbox/frontMail/save',
31		// 部门列表接口
32		utlBmlb: path + '/communication/api-base/department/deptTree',
33		// 问题类别、内容类别接口
34		urlWtlb: path + '/communication/api-base/dict/findLi',
35	},
36	// 互动-征集
37	hd_zj = {
38		// 结束征集预览地址(需修改)
39		ylDetail: '/hdjltest/c100334/hd_zj_result.shtml',
40		// 我要征集预览地址(需修改)
41		ylWyzz: '/hdjltest/c100334/hd_zj_wyzj.shtml',
42		// 征集列表接口
43		urlList: path + '/communication/api-collect/frontArticle/pageList',
44		// 征集详情接口
45		urlDetail: path + '/communication/api-collect/frontArticle/detailsPage',
46		// 我要征集接口
47		urlWyzj: path + '/communication/api-collect/frontArticle/frontInsert',
48		// 征集评论接口
49		urlZjpl: path + '/communication/api-collect/frontArticle/opinionPageList',
50		// 征集评论反馈接口
51		urlZjFk: path + '/communication/api-collect/frontArticle/feedback',
52		// 征集详情附件接口
53		urlZjFile: path + '/communication//api-collect/frontArticle/fileLoad',
54		// 征集反馈附件接口
55		urlZjfeedbackFile: path + "/communication/api-collect/frontArticle/feedbackFileLoad"
56	},
57	// 互动-调查
58	hd_dc = {
59		// 结束调查预览地址(需修改)
60		ylDetail: '/xjylz/c112870/hd_dc_result.shtml',
61		// 我要调查预览地址(需修改)
62		ylWydc: '/xjylz/c112870/hd_dc_wydc.shtml',
63		// 调查列表接口
64		urlList: path + '/communication/api-question/frontquestionPaper/pageList1',
65		// 调查主题接口
66		urlTheme: path + '/communication/api-question/frontquestionPaper/detailsPage',
67		// 调查结果参与人数统计接口
68		urlPeopleTotal: path + '/communication/api-question/frontquestionPaper/peopleNumber',
69		// 调查结果列表统计接口
70		urlListTotal: path + '/communication/api-question/frontquestionPaper/statisticalDetails',
71		// 调查结果文本统计接口
72		urlStrTotal: path + '/communication/api-question/frontquestionPaper/answerDetails',
73		// 我要调查提交接口
74		urlWydc: path + '/communication/api-question/frontItem/optionsCount',
75		// 我要调查选项列表接口
76		urlOption: path + '/communication/api-question/frontItem/selectItem',
77	},
78	// 互动-访谈
79	hd_ft = {
80		// 访谈详情预览地址(需修改)
81		ylDetail: '/xjylz/c112871/hd_ft_result.shtml',
82		// 访谈详情图片拼接地址
83		imgStr: '/communication/api-common/file/download?path=',
84		// 访谈详情视频拼接地址
85		videoStr: '/communication/api-common/file/source/',
86		// 预告访谈列表接口
87		urlBeforeList: path + '/communication/api-inter/frontInterview/getBeforeList',
88		// 正在访谈列表接口
89		urlInList: path + '/communication/api-inter/frontInterview/getInList',
90		// 往期访谈列表接口
91		urlOverList: path + '/communication/api-inter/frontInterview/getOverList',
92		// 访谈详情接口
93		urlDetail: path + '/communication/api-inter/frontInterview/getDetail',
94		// 访谈实录列表接口
95		urlRecordlist: path + '/communication/api-inter/frontInterview/listRecord',
96		// 网友留言接口
97		urlWyly: path + '/communication/api-inter/frontInterview/addComment',
98		// 留言锦集列表接口
99		urlLyjj: path + '/communication/api-inter/frontInterview/listComment',
100	}
101// 获取地址栏参数
102function getUrlParam(name, url) {
103	url = url || window.location.search
104	// 构造一个含有目标参数的正则表达式对象
105	var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)')
106	// 匹配目标参数
107	var r = url.substr(1).match(reg)
108	if (r != null) return unescape(r[2])
109	// 返回参数值
110	return null
111}
112// 格式化字符串
113function formatStr(str, num, fillStr) {
114	if (str && arguments.length == 3 && str.length > num) {
115		str = str.substr(0, num) + fillStr
116	}
117	return str ? str : '--'
118}
119// 格式化标签数据
120function removeLabel(str) {
121	// return str.replace(/(<|&lt;).*?(>|&gt;)/ig, "");
122	return str.replace(/(<|&lt;)(?!\/?br\/?.+?>|\/?img.+?>)[^<>]*(>
122|&gt;)/gi, '')
123}
124
125function Select() {
126	this.determaine = true
127	// 点击获取下拉列表
128	this.selList = function (arg1, arg2) {
129		let that = this
130		if ($(arg1).length > 0 && $(arg2).length > 0) {
131			$(arg1).click(function () {
132				$('.select > ul').hide()
133				// $(arg2).is(":hidden") ? (that.determaine = true) : (that.determaine = false);
134				if ($(arg2).is(':hidden')) {
135					that.determaine = true
136				}
137				if (that.determaine) {
138					$(arg2).show()
139					that.determaine = false
140				} else {
141					$(arg2).hide()
142					that.determaine = true
143				}
144			})
145		}
146	}
147	// 下拉列表赋值
148	this.getSel = function (arg1, arg2, arg3) {
149		let that = this
150		if ($(arg1).length > 0 && $(arg2).length > 0) {
151			$(arg1).click(function () {
152				let txt = $(this).text(),
153					dataId = $(this).attr('data-id')
154				$(arg2).text(txt)
155				$(arg2).attr('data-id', dataId)
156				that.determaine = true
157				$(arg3).hide()
158			})
159		}
160	}
161}
162
163$(function () {
164	// 添加我要写信链接
165	$('#hd-wyxx').attr({
166		href: hd_mail.ylWyxx,
167		// href:' http://www.xinjiang.gov.cn/xinjiang/wyxx/hd_wyxx.shtml',
168		target: '_blank',
169	})
170})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.