154 lines
5.6 KiB
Plaintext
154 lines
5.6 KiB
Plaintext
@{
|
||
Layout = null;
|
||
}
|
||
|
||
<!DOCTYPE html>
|
||
|
||
<html>
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title></title>
|
||
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
||
<link href="../css/mui.min.css" rel="stylesheet" />
|
||
</head>
|
||
<style>
|
||
|
||
body, html {
|
||
position: relative;
|
||
width: 100%;
|
||
height: 100%;
|
||
top: 0;
|
||
left: 0;
|
||
background: #fff;
|
||
}
|
||
|
||
.header {
|
||
width: 100%;
|
||
height: 200px;
|
||
background-image: url(../Images/banner-1.jpg) !important;
|
||
background-size: 100% 100%
|
||
}
|
||
|
||
.box {
|
||
padding: 5%;
|
||
width: 80%;
|
||
height: auto;
|
||
border-radius: 5px;
|
||
margin: 20px auto;
|
||
box-shadow: 0 5px 15px #777;
|
||
.boxBox p
|
||
|
||
{
|
||
color: #333333;
|
||
}
|
||
|
||
#btn {
|
||
width: 80%;
|
||
left: 10%;
|
||
padding: 10px 0;
|
||
}
|
||
</style>
|
||
<body>
|
||
<div class="header">
|
||
<img src="" />
|
||
</div>
|
||
<div class="container">
|
||
<div class="box">
|
||
<p>机构名称:德州市德城区疾病预防控制中心</p>
|
||
<p>联系电话:0534-2267111 & 0534-2267105</p>
|
||
<p>地址:德城区解放中大道537号</p>
|
||
</div>
|
||
|
||
<div id="boxBtn" style="display: none;">
|
||
<button type="button" class="mui-btn mui-btn-blue " style="width: 80%;left: 10%;padding: 10px 0;" onclick="fnToAudit();">个人信息审核</button>
|
||
</div>
|
||
</div>
|
||
|
||
<script src="../js/mui.min.js"></script>
|
||
<script type="text/javascript" src="../js/common.js"></script>
|
||
<script type="text/javascript" src="../js/jquery-2.1.0.js"></script>
|
||
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
|
||
<script type="text/javascript">
|
||
wx.config({
|
||
debug: false, //是否调试,true,会弹窗
|
||
appId: '@dccdc.Common.Global.InfectionAppId', //得到这个东西,首先必须有一个公众号,或者企业号,如果已经拥有了,你可以就知道AppId在哪里了。
|
||
timestamp: '@ViewBag.timeStamp',//生成签名的时间戳,随机数,之后会用这个生成一个签名
|
||
nonceStr: '@ViewBag.nonceStr',//生成签名的随机串,随机串,之后会用这个生成一个签名
|
||
signature: '@ViewBag.signature',//这个就是签名了,在步骤4,我会详细讲解
|
||
jsApiList: [
|
||
'onMenuShareTimeline',
|
||
'onMenuShareAppMessage',
|
||
'onMenuShareQQ',
|
||
'onMenuShareWeibo',
|
||
'onMenuShareQZone'
|
||
]
|
||
});
|
||
|
||
wx.ready(function () {
|
||
wx.checkJsApi({
|
||
jsApiList: [
|
||
'onMenuShareTimeline',
|
||
'onMenuShareAppMessage',
|
||
'onMenuShareQQ',
|
||
'onMenuShareWeibo',
|
||
'onMenuShareQZone'
|
||
], // 需要检测的JS接口列表,所有JS接口列表见附录2,
|
||
success: function (res) {
|
||
// 以键值对的形式返回,可用的api值true,不可用为false
|
||
// 如:{"checkResult":{"chooseImage":true},"errMsg":"checkJsApi:ok"}
|
||
}
|
||
});
|
||
var shareUrl = 'http://oa.dcqcdc.com/dccdc/infection/tjfx2?id=@ViewBag.id&recommend=@ViewBag.recommend&name=@ViewBag.name';
|
||
var obj = {//朋友圈
|
||
title: '德城健康e路', // 分享标题
|
||
desc: '@ViewBag.name 邀请您参与德城区卡车司机健康促进项目!', // 分享描述
|
||
link: shareUrl, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
||
// 该链接是重定向链接,因为需要获取用户code,但是该链接又无法直接写微信获取code的链接,
|
||
// 所以需要点击后重新加载新的页面,来实现重定向,重新打开获取code的微信链接,实现获取用户信息的功能;
|
||
imgUrl: '@ViewBag.license', // 分享图标
|
||
fail: function (res) {
|
||
alert(JSON.stringify(res));
|
||
},
|
||
success: function (res) {
|
||
}
|
||
};
|
||
|
||
// 2.1 监听“分享给朋友”,按钮点击、自定义分享内容及分享结果接口
|
||
wx.onMenuShareAppMessage(obj);
|
||
// 2.2 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
|
||
wx.onMenuShareTimeline(obj);
|
||
// 2.3 监听“分享到QQ”按钮点击、自定义分享内容及分享结果接口
|
||
wx.onMenuShareQQ(obj);
|
||
// 2.4 监听“分享到微博”按钮点击、自定义分享内容及分享结果接口
|
||
wx.onMenuShareWeibo(obj);
|
||
// 2.5 监听“分享到QZone”按钮点击、自定义分享内容及分享接口
|
||
wx.onMenuShareQZone(obj);
|
||
});
|
||
mui.init()
|
||
window.onload = function () {
|
||
var url1 = "@Url.Action("GetTypeByID_OpenUser")";
|
||
//var url1 = serverurl + "/Infection/GetTypeByID_OpenUser";
|
||
|
||
$.ajax(url1, {
|
||
data: {},
|
||
type: "post",
|
||
dataType: "text",
|
||
success: function(data) {
|
||
if(data == "1"){
|
||
var boxBtn = document.getElementById("boxBtn");
|
||
boxBtn.style.display = "block";
|
||
}
|
||
|
||
},
|
||
error: function(a, b, c) {
|
||
mui.toast("ajax传输失败2");
|
||
}
|
||
})
|
||
}
|
||
function fnToAudit(){
|
||
window.location.href="@Url.Action("personInfoAudit")";
|
||
}
|
||
</script>
|
||
</body>
|
||
</html>
|