|
|
@@ -58,9 +58,8 @@
|
|
|
var parameters = GetRequest();
|
|
|
var phone = parameters["phone"];
|
|
|
var timer, flag = true;
|
|
|
+ // var baseUrl = 'http://14.18.190.141:24380'
|
|
|
$("#recv_ipt").val(phone ? phone : '');
|
|
|
-
|
|
|
-
|
|
|
$("#recv_ipt").bind('input propertychange', function (e) {
|
|
|
var ipt_phones = $('#recv_ipt').val();
|
|
|
var c = $(this);
|
|
|
@@ -80,11 +79,46 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ $('#mpanel2').eq(0).text('');
|
|
|
+ $('#mpanel2').slideVerify({
|
|
|
+ baseUrl: baseUrl + '/api/activity', //服务器请求地址, 默认地址为安吉服务器;
|
|
|
+ mode: 'pop', //展示模式
|
|
|
+ containerId: 'recv_btn', //pop模式 必填 被点击之后出现行为验证码的元素id
|
|
|
+ imgSize: { //图片的大小对象,有默认值{ width: '310px',height: '155px'},可省略
|
|
|
+ width: imgWidth,
|
|
|
+ height: imgHeight
|
|
|
+ },
|
|
|
+ barSize: {//下方滑块的大小对象,有默认值{ width: '310px',height: '50px'},可省略
|
|
|
+ width: imgWidth,
|
|
|
+ height: barHeight
|
|
|
+ },
|
|
|
+ beforeCheck: function () {
|
|
|
+ var tel = $("#recv_ipt").val()
|
|
|
+ if (!/^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(tel)) {
|
|
|
+ stopManyClick(() => {
|
|
|
+ toastr.error('请填写正确的手机号')
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ } else {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ready: function () { }, //加载完毕的回调
|
|
|
+ success: function (params) { //成功的回调
|
|
|
+ // params为返回的二次验证参数 需要在接下来的实现逻辑回传服务器
|
|
|
+ // 例如: login($.extend({}, params))
|
|
|
+ handleClick(params.captchaVerification)
|
|
|
+ },
|
|
|
+ error: function () {
|
|
|
+ console.log('error');
|
|
|
+ } //失败的回调
|
|
|
+ });
|
|
|
+
|
|
|
function getUserInfo() {
|
|
|
var userName = parameters['username'] ? parameters['username'] : null
|
|
|
userName = Base64.decode(userName)
|
|
|
$.ajax({
|
|
|
- url: baseUrl + '/api/user/v3/invitation/getNickname?username=' + userName,
|
|
|
+ url: baseUrl + '/api/activity/v3/invitation/getNickname?username=' + userName,
|
|
|
type: 'get',
|
|
|
cache: false,
|
|
|
dataType: 'text',
|
|
|
@@ -164,7 +198,7 @@
|
|
|
} else {
|
|
|
data.newPhone = ipt_phone
|
|
|
$.ajax({
|
|
|
- url: baseUrl + '/api/user/v1/promote',
|
|
|
+ url: baseUrl + '/api/activity/v1/promote',
|
|
|
data: JSON.stringify(data),
|
|
|
type: 'post',
|
|
|
contentType: "application/json",
|
|
|
@@ -262,7 +296,7 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- visit()
|
|
|
+ // visit()
|
|
|
//防止提示一秒内重复显示
|
|
|
function stopManyClick(fn) {
|
|
|
if (flag) {
|
|
|
@@ -290,6 +324,17 @@
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
+ .toast-center-center {
|
|
|
+ position: fixed;
|
|
|
+ min-width: 220px;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ text-align: center;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ color: #FFFFFF;
|
|
|
+ border-radius: 0.2rem;
|
|
|
+ }
|
|
|
+
|
|
|
@media (max-width: 480px) and (min-width: 241px) {
|
|
|
#toast-container>div {
|
|
|
min-width: 80px !important;
|