Commit 4b3926f4 authored by 黄媛媛's avatar 黄媛媛
parents aa8e42bc 83b65b20
......@@ -254,7 +254,7 @@ p{
.use_news img{
width: 0.4rem;
height: 0.4rem;
border-radius: 0.2rem;
/*border-radius: 0.2rem;*/
overflow: hidden;
}
.use_news div{
......
......@@ -107,10 +107,10 @@
<img src="" alt="" class="received_img">
<div class="use_oupon">
<div class="use_news">
<img src="../images/default_head_img.jpg" alt="">
<img src="../images/tx_bg.png" alt="">
<div>
<p>李思思</p>
<p>此处为门店信息</p>
<p class="use_o"></p>
<p class="use_t"></p>
</div>
</div>
<div class="click_use">
......@@ -149,8 +149,8 @@
<script>
// let href = 'http://activity.oytour.com/html/Appmd/draw.html?customerId=1549&accountId=1182&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NzE5NzA5MDUuMCwiZXhwIjoxNTc0NTYyOTA1LjAsInVzZXJJbmZvIjp7InVpZCI6IjExODIiLCJyZXF1ZXN0RnJvbSI6M319.vlAcXCx4C_0KOmfLm4cLRxU28gTHmuMK6jgJtwjsSPM&secretKey=5d5e16254bd741c486fe2b83b42171d2&platform=App';
let href = window.location.href;
// let href='http://127.0.0.1:5500/html/GT_activities.html?customerId=1549&accountId=1182&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NzM0NjY2NjMuMCwiZXhwIjoxNTczNTUzMDYzLjAsInVzZXJJbmZvIjp7InVpZCI6IjExODIiLCJyZXF1ZXN0RnJvbSI6NH19.hX2b2MqSWYmWS0k3YsthxW-T6UxarIm5rdbqCVQtxdQ&secretKey=5d5e16254bd741c486fe2b83b42171d2&platform=App';
// let href = window.location.href;
let href='http://127.0.0.1:5500/html/GT_activities.html?customerId=1549&accountId=1182&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NzM0NjY2NjMuMCwiZXhwIjoxNTczNTUzMDYzLjAsInVzZXJJbmZvIjp7InVpZCI6IjExODIiLCJyZXF1ZXN0RnJvbSI6NH19.hX2b2MqSWYmWS0k3YsthxW-T6UxarIm5rdbqCVQtxdQ&secretKey=5d5e16254bd741c486fe2b83b42171d2&platform=App';
// 如果进入页面没有登录的参数 处理跳到h5页面登录
if(href.split('?')[1]){
......@@ -196,6 +196,8 @@
$('.box_title h5').html(res.data.remark);
$('.explain p').html('使用说明'+ '<br/>' + res.data.instructions );
$('.use_o').html(res.data.contact );
$('.use_t').html(res.data.customerName );
......@@ -431,6 +433,10 @@
});
});
}
//跳转到h5优惠券
if(platform == 'H5'){
window.location.href = 'http://activity.oytour.com/html/coupons.html';
}
})
</script>
</body>
......
This diff is collapsed.
......@@ -219,7 +219,7 @@
float:left;
}
.layui-layer-content{
font-size:2rem!important;
font-size:1.8rem!important;
padding:2rem 1rem!important;
}
</style>
......@@ -282,7 +282,7 @@
<div class='form_item_inBox'>
<img class='form_item_ico' src='../images/login/ico_lock2.png'/>
<span class="login_Zh">密码</span>
<input class='form_item_input' id="Activation_password" placeholder="请输入密码"></input>
<input class='form_item_input' type="password" id="Activation_password" placeholder="请输入密码"></input>
</div>
</div>
<div class='form_item2'>
......@@ -294,7 +294,7 @@
</div>
</div>
</div>
<button class="login_btn">激活并登录</button>
<button class="login_btn" onclick="Activation()">激活并登录</button>
</div>
<div class="jihuoDiv">
<span class="jilijihuo" onclick="backToLogin()">返回登录</span>
......@@ -384,8 +384,10 @@
let accountId=res.data.accountId;
let token=res.data.token;
let secretKey=res.data.secretKey;
window.location.href = 'http://activity.oytour.com/html/GT_activities.html?customerId='+customerId+'&accountId='+accountId+'&token='+token+'&secretKey='+secretKey+'&platform=H5';
//window.location.href = 'http://activity.oytour.com/html/GT_activities.html?customerId='+customerId+'&accountId='+accountId+'&token='+token+'&secretKey='+secretKey+'&platform=H5';
window.location.href = 'http://127.0.0.1:5500/html/GT_activities.html?customerId='+customerId+'&accountId='+accountId+'&token='+token+'&secretKey='+secretKey+'&platform=H5';
}else{
layer.msg(res.message);
}
},
error: function (res) {
......@@ -445,15 +447,18 @@
}
//点击激活
function Activation(){
if ($('#Activation_Account').val() == "")
if ($('#Activation_Account').val() == ""){
layer.msg('请输入账号!');
return
if ($('#Activation_password').val() == "")
}
if ($('#Activation_password').val() == ""){
layer.msg('请输入密码!');
return
if ($('#Activation_valicode').val() == "")
}
if ($('#Activation_valicode').val() == ""){
layer.msg('请输入验证码!');
return
}
let activeMsg= {
account: $('#Activation_Account').val(),
mobileNumber: $('#Activation_Account').val(),
......@@ -464,7 +469,7 @@
type: "POST",
url: `${getApiUrl().urlPost}`,
contentType: "application/json",
data: getAjaxData('b2b_post_AccountActivation', msg),
data: getAjaxData('b2b_post_AccountActivation', activeMsg),
async: false,
success: function (res) {
if (res.resultCode === 1) {
......@@ -474,6 +479,8 @@
password: $('#Activation_password').val()
};
Login(msg)
}else{
layer.msg(res.message);
}
},
error: function (res) {
......
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