my-resetpassword.vue 3.3 KB
Newer Older
M
m0_74163447 已提交
1 2
<template>
	<view class="main">
M
m0_74163447 已提交
3
		<!-- <view class="return">
M
m0_74163447 已提交
4
			<view class="return-btn" @click="goBack"></view>
M
m0_74163447 已提交
5 6 7 8 9 10
			<text>重置密码</text>
		</view> -->
		<view class="top">
			<image @click="goBack" class="back" :src="'/static/my/exit-icon.png'"></image>
			<view class="title">重置密码</view>
			<span class="empty"></span>
M
m0_74163447 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
		</view>
		<view class="content">
			<veiw class="password">
				<span>&ensp;&ensp;码:</span>
				<input placeholder="请输入原密码" type="text" :password="showPassword" name="input"></input>
				<!-- <text :class="[!showPassword ?'cuIcon-attentionfill' : 'cuIcon-attentionforbidfill']" class="text-gray"  @click="showPwd" ></text> -->
				<!-- <input type="safe-password" :value="originalPassword" :valplaceholder='请输入原密码'></input> -->
			</veiw>
			<veiw class="password">
				<span>&ensp;&ensp;码:</span>
				<input placeholder="请输入新密码" type="text" :password="showPassword" name="input"></input>
			</veiw>
			<veiw class="password">
				<span>确认密码:</span>
				<input placeholder="请确认密码" type="text" :password="showPassword" name="input"></input>
			</veiw>
		</view>
		<view class="confirm">
			<button class="confirm-btn" @click="confirmModification()">确认修改</button>
		</view>
	</view>
</template>

<script>
	export default {
M
m0_74163447 已提交
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
		data() {
			return {
				showPassword: true,
			}
		},
		methods: {
			// showPwd: function() {
			//           this.showPassword = !this.showPassword;
			//            },
			confirmModification() {

				uni.showModal({
					title: '温馨提示', //提示标题
					content: '确认修改密码吗', //提示内容
					showCancel: true, //是否显示取消按钮
					success: function(res) {
						if (res.confirm) { //confirm为ture,代表用户点击确定
							console.log('点击了确定按钮');
						} else if (res.cancel) { //cancel为ture,代表用户点击取消
							console.log('点击了取消按钮');
						}
					}
				})
			},
			goBack() {
				uni.navigateBack({
					delta: 1, //返回层数,2则上上页
				})
M
m0_74163447 已提交
64
			},
M
m0_74163447 已提交
65 66 67
			onload(){
				plus.navigator.setStatusBarBackground('#EDEEF0');
			}
M
m0_74163447 已提交
68
		}
M
m0_74163447 已提交
69
	}
M
m0_74163447 已提交
70 71 72 73 74 75 76
</script>

<style>
	.main {
		position: absolute;
		width: 100%;
		height: 100%;
M
m0_74163447 已提交
77 78 79 80 81 82
		/* background-color: #EDEEF0; */
	}

	.top {
		width: 100%;
		height: 50px;
M
m0_74163447 已提交
83
		background-color: #EDEEF0;
M
m0_74163447 已提交
84
		text-align: center;
M
m0_74163447 已提交
85
	}
M
m0_74163447 已提交
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110

	.back {
		width: 40px;
		height: 30px;
		margin-top: 10px;
		margin-bottom: 10px;
		float: left;
		margin-left: 10px;
	}

	.empty {
		width: 40px;
		height: 30px;
		margin-top: 10px;
		margin-bottom: 10px;
		float: right;
		margin-right: 10px;
	}

	.title {
		font-size: 20px;
		margin-top: 10px;
		font-weight: bold;
		color: #f1992d;
		display: inline-block;
M
m0_74163447 已提交
111
	}
M
m0_74163447 已提交
112 113 114 115

	.content {

		width: 80%;
M
m0_74163447 已提交
116 117 118 119
		margin-top: 50%;
		margin-left: auto;
		margin-right: auto;
	}
M
m0_74163447 已提交
120 121 122

	.password {

M
m0_74163447 已提交
123
		margin-top: 50rpx;
M
m0_74163447 已提交
124
		height: 20%;
M
m0_74163447 已提交
125 126
		display: flex;
		align-items: center;
M
m0_74163447 已提交
127

M
m0_74163447 已提交
128 129
		/* border-bottom: 1px solid #ccc; */
	}
M
m0_74163447 已提交
130 131

	.password span {
M
m0_74163447 已提交
132 133
		font-size: 35rpx;
	}
M
m0_74163447 已提交
134 135

	.password input {
M
m0_74163447 已提交
136 137
		border-bottom: 1px solid #ccc;
	}
M
m0_74163447 已提交
138 139

	.confirm {
M
m0_74163447 已提交
140 141 142
		height: 20%;
		margin-top: 20%;
	}
M
m0_74163447 已提交
143 144 145

	.confirm-btn {
		background-color: #F1992D;
M
m0_74163447 已提交
146
		color: #FFFFFF;
M
m0_74163447 已提交
147
		width: 70%;
M
m0_74163447 已提交
148
		height: 85rpx;
M
m0_74163447 已提交
149
		line-height: 85rpx;
M
m0_74163447 已提交
150 151 152 153 154 155
		margin-top: 100rpx;
		margin-left: auto;
		margin-right: auto;
		border-radius: 20rpx;
	}
</style>