Footer.vue 7.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
<template>
	<div ref="container" id="footNavBox">
		<div class="footNav">
			<div id="footNavClassify">
				<footNavItem :list="footNavList" />
			</div>
			<div id="aboutusBox">
				<footNavItem :list="aboutusList" />
			</div>
		</div>
		<div class="hbLogo"></div>
		<div class="companyBox">
			<span class="companyInfo">DCloud 即数字天堂(北京)网络技术有限公司是</span>
			<div style="display: inline; margin-left: 5px" class="companyInfo">
				<a href="//www.w3.org/" target="_blank" class="w3c">W3C</a>
				成员及
				<a href="//www.html5plus.org/" target="_blank" class="html5">HTML5中国产业联盟</a>
				发起单位
			</div>
		</div>
		<div class="beianBox">
			<a
				id="domain"
				class="beian"
				href="https://beian.miit.gov.cn/#/Integrated/index"
				target="_blank"
			>
				{{ domain }}
			</a>
			<div class="domainImgBox">
				<img
					class="domainImg"
					src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/769929a3-65eb-4d11-815d-84f88197a152.png"
				/>
				<a
					class="beian"
					href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802035340"
					target="_blank"
				>
					京公网安备:11010802035340号
				</a>
			</div>

			<span class="anbaoInfo">国家信息安全等级保护三级,证书编号:11010813802-20001</span>
		</div>
	</div>
</template>

<script>
	export default {
		components: {
			footNavItem: {
				functional: true,
				props: {
					list: {
						type: Array,
						default: () => [],
					},
				},
				render: (h, { props }) => {
					return props.list.map((footNavListItem, _index) =>
D
DCloud_LXH 已提交
62 63 64
						h('div', { staticClass: 'footNavItem', key: footNavListItem.title || _index }, [
							h('div', { staticClass: 'navItemTitle' }, footNavListItem.title),
							h('div', { staticClass: 'navLine' }),
65 66
							h(
								'div',
D
DCloud_LXH 已提交
67
								{ staticClass: 'navItemDetailBox' },
68 69 70 71
								footNavListItem.content.map((item, index) =>
									h(
										'a',
										{
D
DCloud_LXH 已提交
72
											staticClass: 'navItemDetail',
73
											key: item.url || index,
D
DCloud_LXH 已提交
74 75 76 77
											attrs: {
												target: '_blank',
												href: item.url,
											},
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
										},
										item.subTitle
									)
								)
							),
						])
					);
				},
			},
		},
		data: () => ({
			footNavList: [
				{
					title: '开发产品',
					content: [
						{
							subTitle: 'HBuilderX',
							url: 'https://www.dcloud.io/hbuilderx.html',
						},
						{
							subTitle: 'uni-app',
							url: 'https://uniapp.dcloud.net.cn/',
						},
						{
							subTitle: 'uniCloud',
							url: 'https://uniapp.dcloud.net.cn/uniCloud/README',
						},
						{
							subTitle: 'uniMPsdk',
							url: 'https://nativesupport.dcloud.net.cn/',
						},
						{
							subTitle: '5+Runtime',
							url: 'https://www.dcloud.io/runtime.html',
						},
						{
							subTitle: 'wap2app',
							url: 'https://www.dcloud.io/wap2app.html?platform=wap2app',
						},
						{
							subTitle: 'MUI',
							url: 'https://www.dcloud.io/mui.html',
						},
						{
							subTitle: 'uni-id',
							url: 'https://uniapp.dcloud.net.cn/uniCloud/uni-id',
						},
						{
							subTitle: 'uniPay',
							url: 'https://uniapp.dcloud.net.cn/uniCloud/unipay',
						},
						{
							subTitle: 'uniPush',
							url: 'https://uniapp.dcloud.net.cn/unipush',
						},
						{
							subTitle: 'uni-verify',
							url: 'https://uniapp.dcloud.io/univerify',
						},
						{
							subTitle: 'sms',
							url: 'https://uniapp.dcloud.net.cn/uniCloud/send-sms',
						},
						{
							subTitle: 'uni-starter',
							url: 'https://ext.dcloud.net.cn/plugin?id=5057',
						},
						{
							subTitle: 'uni-admin',
							url: 'https://uniapp.dcloud.net.cn/uniCloud/admin',
						},
						{
							subTitle: 'uni-upgrade-center',
							url: 'https://uniapp.dcloud.io/uniCloud/upgrade-center',
						},
					],
				},
			],
			aboutusList: [
				{
					title: '运营产品',
					content: [
						{
							subTitle: 'uni-AD',
							url: 'https://uniad.dcloud.net.cn/login',
						},
						{
							subTitle: 'uni统计',
							url: 'https://tongji.dcloud.net.cn/',
						},
						{
							subTitle: 'uni发行',
							url: 'https://www.dcloud.io/dportal.html',
						},
						{
							subTitle: '',
							url: '',
						},
						{
							subTitle: '',
							url: '',
						},
						{
							subTitle: '',
							url: '',
						},
					],
				},
				/* {
	         'title': '',
	         'content': []
	       }, */
				{
					title: '开发者服务',
					content: [
						{
							subTitle: '问答社区',
							url: 'https://ask.dcloud.net.cn/explore/',
						},
						{
							subTitle: '开发者后台',
							url: 'https://dev.dcloud.net.cn/',
						},
					],
				},
				{
					title: '技术文档',
					content: [
						{
							subTitle: 'uni-app文档',
							url: 'https://uniapp.dcloud.io/',
						},
						{
							subTitle: 'uniCloud文档',
							url: 'https://uniapp.dcloud.io/uniCloud/README',
						},
						{
							subTitle: '原生开发者支持文档',
							url: 'https://nativesupport.dcloud.net.cn/',
						},
						{
							subTitle: 'HBuilder文档',
							url: 'https://hx.dcloud.net.cn/',
						},
					],
				},
				{
					title: '生态服务',
					content: [
						{
							subTitle: '插件市场',
							url: 'https://ext.dcloud.net.cn/',
						},
						{
							subTitle: 'OAuth用户开放平台',
							url: 'https://open.dcloud.net.cn/pages/login/login',
						},
					],
				},
				{
					title: '关于我们',
					content: [
						{
							subTitle: 'DCloud官网',
							url: 'https://dcloud.io/',
						},
						{
							subTitle: '案例',
							url: 'https://uniapp.dcloud.io/case',
						},
						{
							subTitle: '需求墙',
							url: 'https://dev.dcloud.net.cn/wish/?channel=uniapp',
						},
						{
							subTitle: '许可协议',
							url: 'https://ask.dcloud.net.cn/article/35623',
						},
						{
							subTitle: '加入我们',
							url: 'https://www.dcloud.io/hr/',
						},
						{
							subTitle: '赞助我们',
							url: 'https://dev.dcloud.net.cn/sponsor/',
						},
					],
				},
				{
					title: '联系我们',
					content: [
						{
							subTitle: '商务合作:bd@dcloud.io',
							url: 'mailto:bd@dcloud.io',
						},
						{
							subTitle: '广告合作:uniad@dcloud.io',
							url: 'mailto:uniad@dcloud.io',
						},
					],
				},
			],
			domain: '',
		}),
		mounted() {
			if (document.domain === 'uniapp.dcloud.net.cn') {
				this.domain = '京ICP备12046007号-4';
			} else {
				this.domain = '蒙ICP备14002744号-1';
			}
			this.fixBottom();
		},
		methods: {
			fixBottom() {
				this.$nextTick(() => {
					this.$refs.container.style.bottom = `0px`;
					const bottom =
						document.documentElement.clientHeight -
						this.$refs.container.getBoundingClientRect().bottom;
					if (bottom > 0) {
						const preBottom = parseFloat(this.$refs.container.style.bottom);
						this.$refs.container.style.position = 'relative';
						this.$refs.container.style.bottom = `-${bottom}px`;
					} else {
						this.$refs.container.removeAttribute('style');
					}
				});
			},
		},
		watch: {
			$route() {
				this.fixBottom();
			},
		},
	};
</script>

D
DCloud_LXH 已提交
315
<style lang="stylus" scoped>
316 317
	@import '../styles/footer.styl'
</style>