|
@@ -1,51 +1,139 @@
|
|
|
<!-- 找回密码 -->
|
|
|
<template>
|
|
|
- <view class="resetpassword">
|
|
|
- <view class="goback" @tap="navBack"><image src="../../static/images/backicon.png" class="backicon"></image></view>
|
|
|
- <view class="title">找回密码</view>
|
|
|
- <view class=""></view>
|
|
|
- </view>
|
|
|
+ <view class="resetpassword">
|
|
|
+ <view class="goback" @tap="navBack"
|
|
|
+ ><image src="../../static/images/backicon.png" class="backicon"></image
|
|
|
+ ></view>
|
|
|
+ <view class="title">找回密码</view>
|
|
|
+ <view class="input-item cellphone">
|
|
|
+ <input type="text" placeholder="请输入手机号" />
|
|
|
+ </view>
|
|
|
+ <view class="input-item imgcode">
|
|
|
+ <input type="text" class="inputcode" placeholder="请输入图形验证码" />
|
|
|
+ <image class="gifimg" :src="codeImage" @tap="getimgcode"></image>
|
|
|
+ </view>
|
|
|
+ <view class="input-item sellcode">
|
|
|
+ <input type="text" class="inputcode" placeholder="请输入短信验证码" />
|
|
|
+ <view class="getcode" @tap="getsellcode">获取短信</view>
|
|
|
+ </view>
|
|
|
+ <view class="btn-warp">
|
|
|
+ <view class="btn" @tap="next">确认</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
- name: 'resetpassword',
|
|
|
- components: {},
|
|
|
- data() {
|
|
|
- //这里存放数据
|
|
|
- return {};
|
|
|
- },
|
|
|
- //监控data中的数据变化
|
|
|
- watch: {},
|
|
|
- onLoad () {
|
|
|
- console.log(1);
|
|
|
- },
|
|
|
- //方法集合
|
|
|
- methods: {
|
|
|
- // 返回上一页
|
|
|
- navBack() {
|
|
|
- this.$mRouter.back();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
+ name: 'resetpassword',
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ //这里存放数据
|
|
|
+ return {
|
|
|
+ codeImage: ''
|
|
|
+ };
|
|
|
+ },
|
|
|
+ //监控data中的数据变化
|
|
|
+ watch: {},
|
|
|
+ onLoad() {
|
|
|
+ this.getimgcode();
|
|
|
+ },
|
|
|
+ //方法集合
|
|
|
+ methods: {
|
|
|
+ // 返回上一页
|
|
|
+ navBack() {
|
|
|
+ this.$mRouter.back();
|
|
|
+ },
|
|
|
+ // 获取图形验证码
|
|
|
+ async getimgcode() {
|
|
|
+ // 获取验证码
|
|
|
+ await this.$http.get('captchaImage', {}).then(async res => {
|
|
|
+ console.log(res);
|
|
|
+ this.codeImage = 'data:image/gif;base64,' + res.data.img;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 获取短信验证码
|
|
|
+ getsellcode() {
|
|
|
+ console.log(2);
|
|
|
+ },
|
|
|
+ // 验证规则图片验证码和短信验证码成功后可以点击确认进入下一步
|
|
|
+
|
|
|
+ // 确认进入下一步
|
|
|
+ next() {
|
|
|
+ this.$mRouter.push({ route: '/pages/public/confirmpassword' });
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
-<style lang='scss' scoped>
|
|
|
- .resetpassword {
|
|
|
- padding-left: 50upx;
|
|
|
- .goback{
|
|
|
- padding-top: 100upx;
|
|
|
- .backicon{
|
|
|
- width: 24upx;
|
|
|
- height: 43upx;
|
|
|
- }
|
|
|
- }
|
|
|
- .title {
|
|
|
- font-size: 48upx;
|
|
|
- color: $titleColor;
|
|
|
- background: url('../../static/images/passworddown.png') no-repeat left 82%;
|
|
|
- background-size: 192upx 14upx;
|
|
|
- margin-top: 65upx;
|
|
|
- }
|
|
|
- }
|
|
|
-</style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.resetpassword {
|
|
|
+ padding: 0 50upx;
|
|
|
+ .goback {
|
|
|
+ padding-top: 100upx;
|
|
|
+ .backicon {
|
|
|
+ width: 24upx;
|
|
|
+ height: 43upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .title {
|
|
|
+ font-size: 48upx;
|
|
|
+ color: $titleColor;
|
|
|
+ background: url('../../static/images/passworddown.png') no-repeat left 82%;
|
|
|
+ background-size: 192upx 14upx;
|
|
|
+ margin-top: 65upx;
|
|
|
+ }
|
|
|
+ .input-item {
|
|
|
+ height: 95upx;
|
|
|
+ border-bottom: 1px solid #e7e7e7;
|
|
|
+ margin-top: 50upx;
|
|
|
+ position: relative;
|
|
|
+ input {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ font-size: 32upx;
|
|
|
+ }
|
|
|
+ .inputcode {
|
|
|
+ width: 65%;
|
|
|
+ }
|
|
|
+ .gifimg {
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: -17upx;
|
|
|
+ width: 200upx;
|
|
|
+ height: 80upx;
|
|
|
+ }
|
|
|
+ .getcode {
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 0;
|
|
|
+ width: 180upx;
|
|
|
+ height: 95upx;
|
|
|
+ font-size: 35upx;
|
|
|
+ color: #999999;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 95upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .cellphone {
|
|
|
+ margin-top: 100upx;
|
|
|
+ }
|
|
|
+ .btn-warp {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 170upx;
|
|
|
+ .btn {
|
|
|
+ width: 586upx;
|
|
|
+ height: 98upx;
|
|
|
+ border-radius: 35upx;
|
|
|
+ background-color: $barColor;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ font-size: 36upx;
|
|
|
+ font-weight: 700;
|
|
|
+ color: $titleColor;
|
|
|
+ letter-spacing: 5upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|