Commit 2e3bb9c3 by hanpeng

-mark- 推送消息

parent 154d48b7
#content{
width:100%;
}
.basic_header{
padding:0.64rem 0.32rem 0 0.32rem;
}
.basic_header .basic_title{
color:#2CBCA0;
font-size:0.56rem;
font-family:PingFangSC;
font-weight:500;
}
.basic_header .basic_tip{
color:#333333;
font-size:0.28rem;
margin-top:0.24rem;
line-height: 0.4rem;
}
.input_list{
width:100%;
padding-left:0.32rem;
margin-top:0.2rem;
font-size:0.32rem;
color:#000000;
}
.txt_red{
color:#F45E19;
}
.input_list .input_item{
width:7.18rem;
border-bottom:0.01rem solid #f1f1f1;
height:0.94rem;
line-height:0.94rem;
padding-right:0.32rem;
}
.input_list .input_item .left_tip{
float: left;
}
.left_icon{
float: left;
margin-top:0.1rem;
}
.input_list input{
float:right;
height:0.9rem;
text-align:right;
border:none;
padding-right:0.2rem;
}
.arrow_icon{
float: right;
}
.arrow_icon img{
width:0.16rem;
}
#content {
width: 100%;
}
.login_bg_warp {
width: 100%
}
.login_bg_warp img {
width: 100%
}
/* input提示颜色 */
input::-webkit-input-placeholder {
color: #8BD3C5;
}
input:-moz-placeholder {
color: #8BD3C5;
}
input::-moz-placeholder {
color: #8BD3C5;
}
input:-ms-input-placeholder {
color: #8BD3C5;
}
/* login组件 */
.login_content {
width: 100%;
padding: 4.4rem 0.72rem 0rem 0.72rem;
position: absolute;
top: 0;
}
.login_content .mobile {
width: 4.06rem;
border: none;
background: transparent;
border-bottom: 0.01rem solid #2CBCA0;
height: 0.8rem;
font-size: 0.32rem;
color: #111111;
float: left;
}
.login_content .smsCode {
width: 100%;
border: none;
background: transparent;
border-bottom: 0.01rem solid #2CBCA0;
height: 0.8rem;
font-size: 0.32rem;
color: #111111;
display:none;
}
.login{
width:6.06rem;
height:0.88rem;
background: #8BD3C5;
line-height: 0.88rem;
text-align: center;
color:#AEE4DA;
font-size: 0.36rem;
margin-top:0.3rem;
border-radius:0.08rem;
}
.loginOn{
background: #2CBCA0;
color:#FFFFFF;
}
.getSms {
width: 1.68rem;
height: 0.56rem;
line-height: 0.56rem;
text-align: center;
color: #2CBCA0;
font-size: 0.28rem;
float: left;
border: 0.01rem solid #2CBCA0;
border-radius: 0.04rem;
margin-top: 0.24rem;
margin-left: 0.24rem;
}
.SmsOn {
background: #8BD3C5;
color: #AEE4DA;
border: none;
}
/* 滑块验证 */
._nc .stage1 .slider {
width: 6.04rem;
height: 0.8rem !important;
border-radius: 0.4rem !important;
box-shadow: 0 0 0.03rem #fff !important;
background-color: #9FECD8 !important;
left: 0
}
._nc .stage1 .track div {
border-radius: 0.4rem !important;
color: #fff !important;
}
._nc .stage1 .bg-green {
background-color: #37D488 !important;
}
._nc .stage1 .bg-red {
background-color: #78c430 !important;
}
._nc .stage1 .icon {
position: absolute;
left: 0.25rem;
top: 0.08rem;
bottom: 0;
margin: auto;
}
._nc .stage1 .button {
position: absolute;
left: 0.02rem;
top: 0.02rem;
width: 1.04rem;
height: 0.75rem;
background-color: #fff;
cursor: pointer;
border-radius: 0.4rem;
}
._nc .stage1 .track div,
._nc .stage1 .label {
line-height: 0.8rem;
height: 0.8rem;
text-align: center;
font-size: 0.32rem;
}
._nc .icon-slide-arrow {
font-size: 0.48rem;
color: #dbdbdb;
}
define(['zepto','medtap'],function($,medtap){
})
\ No newline at end of file
define(['zepto','medtap'],function($,medtap){
var login = {
wechatId:medtap.getRequest('wechatId'),
init:function(){
}
}
})
\ No newline at end of file
define(['zepto','medtap'],function($,medtap){
var main = {
wechatId:medtap.getRequest('wechatId'),
init:function(){
main.getToken();
},
getToken:function(){
localStorage.wxLungToken = '';
medtap.loading(1);
medtap.submitAjax({
url: 'https://devgw.medtap.cn/user/auth/token',
type: 'POST',
async: false,
contentType: 'application/json',
data: {
wechatId: main.wechatId
},
success: function(res) {
medtap.loading(0);
if (res.success == true) {
var token = res.content.token;
localStorage.setItem('wxLungToken', token);
} else {
}
},
error: function(res) {
console.log(res.resultDesc);
}
})
},
//获取用户详情
getUserDetail:function(){
},
//获取微信用户信息
getWechatUserInfo:function(){
}
}
main.init()
})
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<link rel="stylesheet" type="text/css" href="https://review-formal.iplusmed.com/Common/css/wechat_Reset.min.css" />
<link rel="stylesheet" type="text/css" href="../css/basicUserInfo.css"/>
<script src="https://review-formal.iplusmed.com/Common/javaScript/calRem.js" type="text/javascript" charset="utf-8"></script>
<title>完善信息</title>
<script src="https://review-formal.iplusmed.com/Common/javaScript/require.min.js"></script>
<script type="text/javascript">
require.config({
baseUrl: "./",
paths: {
"zepto": "https://review-formal.iplusmed.com/Common/javaScript/zepto.min",
"medtap": "https://review-formal.iplusmed.com/Common/javaScript/medtap_core_wx",
"md5": "https://review-formal.iplusmed.com/Common/javaScript/md5.min"
},
shim: {
"zepto": {
exports: "$"
}
}
});
</script>
</head>
<body>
<div id="content">
<div class="basic_header">
<p class="basic_title">完善患者信息</p>
<p class="basic_tip">为了便于医生提供准确的咨询建议,请尽量填写真实详尽的信息(填写的信息仅您和医生可见)</p>
</div>
<div class="input_list">
<div class="input_item clearfix">
<span class="txt_red left_icon">*</span>
<span class="left_tip">您的身份</span>
<span class="arrow_icon">
<img src="../images/_arrows _right@2x.png" >
</span>
<input type="text" name="" id="" value="" placeholder="请选择"/>
</div>
<div class="input_item clearfix">
<span class="txt_red left_icon">*</span>
<span class="left_tip">姓名</span>
<input type="text" name="" id="" value="" placeholder="请选择"/>
</div>
</div>
</div>
</body>
<script type="text/javascript">
require['../javaScript/basicUserInfo.js']
</script>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<link rel="stylesheet" type="text/css" href="https://review-formal.iplusmed.com/Common/css/wechat_Reset.min.css" />
<title>用户协议</title>
<style type="text/css">
#content {
width:100%;
}
#content img{
width:100%;
}
</style>
</head>
<body>
<div id="content">
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<link rel="stylesheet" type="text/css" href="https://review-formal.iplusmed.com/Common/css/wechat_Reset.min.css" />
<title>注册</title>
<script type="text/javascript" charset="utf-8" src="//g.alicdn.com/sd/nch5/index.js?t=2015052012"></script>
<link rel="stylesheet" type="text/css" href="../css/login.css"/>
<script src="https://review-formal.iplusmed.com/Common/javaScript/calRem.js" type="text/javascript" charset="utf-8"></script>
<script src="https://review-formal.iplusmed.com/Common/javaScript/require.min.js"></script>
<script type="text/javascript">
require.config({
baseUrl: "./",
paths: {
"zepto": "https://review-formal.iplusmed.com/Common/javaScript/zepto.min",
"medtap": "https://review-formal.iplusmed.com/Common/javaScript/medtap_core_wx",
"md5": "https://review-formal.iplusmed.com/Common/javaScript/md5.min"
},
shim: {
"zepto": {
exports: "$"
}
}
});
</script>
</head>
<body>
<div id="content">
<div class="login_bg_warp">
<img src="../images/enroll_bg_jpg@2x.png" >
</div>
<ul class="login_content">
<li class="box-cell icon-mobile clearfix">
<input type="tel" class="mobile" placeholder="请输入手机号" id="mobile" name="mobile" onkeyup="value=value.replace(/[^\d]/g,'')" />
<div class="getSms" id="getSms">获取验证码</div>
</li>
<li class="box-cell icon-nc">
<div id="__nc" style="margin-left:auto;margin-right:auto;width:100%;height:0.9rem;margin-top:0.35rem">
<div id="nc"></div>
</div>
</li>
<li class="box-cell icon-smsCode">
<input class="smsCode" type="tel" placeholder="请输入验证码" id="smsCode" name="smsCode" maxlength="4" />
</li>
<div class="login">
登录
</div>
</ul>
</div>
</body>
<script type="text/javascript">
var nc_token = ["FFFF0N0N000000007FD1", (new Date()).getTime(), Math.random()].join(':');
var nc = NoCaptcha.init({
renderTo: '#nc',
appkey: 'FFFF0N0N000000007FD1',
scene: 'nc_message_h5',
token: nc_token,
trans: {
"key1": "code200"
},
elementID: ["usernameID"],
is_Opt: 0,
language: "cn",
timeout: 10000,
retryTimes: 5,
errorTimes: 5,
inline: false,
apimap: {
// 'analyze': '//a.com/nocaptcha/analyze.jsonp',
// 'uab_Url': '//aeu.alicdn.com/js/uac/909.js',
},
bannerHidden: false,
initHidden: false,
callback: function(data) {
$('.icon-smsCode').show();
nc.reset()
$('#__nc').hide();
$.ajax({
url: 'https://devgw.medtap.cn/user/3.0/sendCode/login',
type: 'post',
async: true,
contentType: "application/json",
headers:{
'apptype': 'wechat_lung',
'user-os':'wechat'
},
data: JSON.stringify({
sessionId: data.csessionid,
sig: data.sig,
ncToken: nc_token,
scene: 'nc_message_h5',
mobile: $('#mobile').val()
}),
success: function(data) {
if (data.success) {
sendCode(document.getElementById('getSms'));
winPop('验证码已发送,请注意查收!');
} else {
winPop(data.resultDesc);
}
},
error: function(err) {
console.log('err: ' + err);
}
});
},
error: function(s) {
}
});
NoCaptcha.setEnabled(true);
nc.reset(); //请务必确保这里调用一次reset()方法
NoCaptcha.upLang('cn', {
'LOADING': "加载中...", //加载
'SLIDER_LABEL': "向右滑动验证", //等待滑动
'CHECK_Y': "验证通过!", //通过
'ERROR_TITLE': "非常抱歉,这出错了...", //拦截
'CHECK_N': "验证未通过", //准备唤醒二次验证
'OVERLAY_INFORM': "经检测你当前操作环境存在风险,请输入验证码", //二次验证
'TIPS_TITLE': "验证码错误,请重新输入" //验证码输错时的提示
});
require(['../javaScript/login.js'])
</script>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<title>加载中...</title>
<script src="https://review-formal.iplusmed.com/Common/javaScript/require.min.js"></script>
<script type="text/javascript">
require.config({
baseUrl: "./",
paths: {
"zepto": "https://review-formal.iplusmed.com/Common/javaScript/zepto.min",
"medtap": "https://review-formal.iplusmed.com/Common/javaScript/medtap_core_wx",
"md5": "https://review-formal.iplusmed.com/Common/javaScript/md5.min"
},
shim: {
"zepto": {
exports: "$"
}
}
});
</script>
</head>
<body>
</body>
<script type="text/javascript">
require(['javaScript/rukou.js'])
</script>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment