103 行
2.8 KiB
HTML
可执行文件
103 行
2.8 KiB
HTML
可执行文件
<!DOCTYPE html>
|
||
<html>
|
||
<!--[1.0.45]-->
|
||
<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/templateA/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;
|
||
}
|
||
</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> |