<template>
	<view>
		<view class="copy">
			<view class="copy-logo ddflex">
				<image :src="picUrlss+'lvluo/bot_logo.png'"></image>·{{content?content:'诊所私域专家'}}
			</view>
			<view class="copy-open" @click="toZhiqiyun()">我要开通</view>
		</view>
	</view>
</template>

<script>
	// components/footer-logo/footer-logo.js
	const req = require("../../utils/request");

	export default {
		data() {
			return {
				picUrlss: req.public.picUrls,
				copyrighttitle: req.public.copyrighttitle,
				//头部页面背景链接
				copyrighttel: req.public.copyrighttel,
				copyrightlogo: req.public.copyrightlogo
			};
		},

		components: {},
		props: {
			hidden: {
				type: Boolean
			},
			content:{
				type: String
			},
		},
		methods: {
			phone() {
				uni.makePhoneCall({
					phoneNumber: req.public.copyrighttel
				});
			},
			jumpUrl(url) {
				uni.navigateTo({
					url: url
				})
			},
			toZhiqiyun() {
				// #ifdef MP-WEIXIN
				uni.navigateToMiniProgram({
					appId: 'wx5373f8753a5463ea',
					path: 'pages/index/index',
					envVersion: req.env.NODE_ENV == 'prd' ? 'release' : 'trial'
				});
				// #endif
				
				// #ifdef H5
				req.postRequestKDX('/api/v3/getAppletUrl', {
					path: 'pages/index/index',
					query: '',
					envVersion: req.env.NODE_ENV == 'prd' ? 'release' : 'trial',
					sysParameterVos: []
				}, json => {
					console.log('打开小程序》》》》', json);
					//跳入打开小程序
					window.location.href = json;
				}, true);
				// #endif
				
			}

		}
	};
</script>
<style>
	@import "./footer-copyright.css";
</style>
