文件
mashangyoujiu/Application/Vip/View/Set/resetpwd2.html

106 行
2.8 KiB
HTML
可执行文件

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/vip/css/templateB/card-password.css" />
<script type="text/javascript" src="__PUBLIC__/vip/js/templateA/rem2.js"></script>
<title>重置密码</title>
<style type="text/css">
[v-cloak] {
display: none;
}
.submit>span{
background: #6FA1FB;
}
</style>
</head>
<body>
<div id="app" v-cloak class="wrap">
<div class="content">
<div class="content-info">
<input v-model="value2" type="" maxlength="6" placeholder="请输入新密码" />
</div>
<div class="content-info">
<input v-model="value3" type="" maxlength="6" placeholder="请再次输入新密码" />
</div>
</div>
<div class="submit" @click="sure">
<span>确认修改</span>
</div>
<transition name="slide-fade">
<div v-if="isshow" class="tips">{{tips}}</div>
</transition>
<transition name="bounce">
<div v-if="isbounce" class="tips">{{successtext}}</div>
</transition>
</div>
</body>
<script src="__PUBLIC__/vip/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="__PUBLIC__/vue/js/vue2.5.16.js"></script>
<script src="__PUBLIC__/vip/js/window-reload.js"></script>
<script type="text/javascript">
var app = new Vue({
el: "#app",
data: {
value2: '',
value3: '',
tips: '',
isshow: false,
successtext: '',
isbounce: false
},
methods: {
sure: function() {
var that = this;
if(!that.value2) {
fn(that, '请输入新密码');
} else if(that.value2.length < 6) {
fn(that, '支付密码为6位哈!');
} else if(!that.value3) {
fn(that, '请再次输入新密码');
} else if(that.value2 != that.value3) {
fn(that, '两次输入的密码不一致');
} else {
this.subPwd()
}
},
subPwd: function() {
var that = this;
$.post("/index.php/Vip/Set/resetpaswd", {
pwd: that.value2,
verifyCode: "<php>echo I('get.verifyCode');</php>"
}, function(data) {
if(data.success) {
fn(that, data.msg);
setTimeout(function() {
// if(type) {
// window.history.go(-1);
// } else {
//
// }
window.history.go(-3);
}, 1000)
} else {
fn(that, data.msg);
}
})
}
}
})
function fn(that, text) {
that.isshow = true;
that.tips = text;
setTimeout(function() {
that.isshow = false;
that.tips = '';
}, 1000);
}
</script>
</html>