| | |
| | | <!-- 修改密码 --> |
| | | <template> |
| | | <view class="container"> |
| | | <u-navbar |
| | | title="修改密码" |
| | | :is-back="true" |
| | | back-text="" |
| | | :back-icon-size="40" |
| | | @left-click="onBackClick" |
| | | > |
| | | |
| | | </u-navbar> |
| | | <view class="pageBg"></view> |
| | | <view class="detailBox"> |
| | | <div class="detailCon"> |
| | |
| | | password2: password2, |
| | | code |
| | | }; |
| | | console.log('canshu',resetData) |
| | | |
| | | resetPassword(resetData).then(res => { |
| | | if (res.data.code === 200) { |
| | | uni.showToast({ |
| | |
| | | }); |
| | | }); |
| | | }; |
| | | // 返回按钮点击事件 |
| | | const onBackClick = () => { |
| | | uni.navigateBack() |
| | | } |
| | | onShow(async () => { |
| | | clearForm(); |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .container { |
| | | width: 100%; |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | position: relative; |
| | | } |
| | | |
| | | .container { |
| | | width: 100%; |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | position: relative; |
| | | box-sizing: border-box; |
| | | // 添加导航栏高度的padding-top,避免内容被遮挡 |
| | | padding-top: 88rpx; |
| | | |
| | | } |
| | | :deep(){ |
| | | .u-navbar__content{ |
| | | background: url("@/static/images/user/userbg.svg") no-repeat !important; |
| | | background-size: 100%!important; |
| | | height: 44px !important; |
| | | } |
| | | } |
| | | |
| | | .pageBg { |
| | | position: fixed; |
| | | top: 0; |
| | |
| | | |
| | | .detailBox { |
| | | position: absolute; |
| | | top: 180rpx; |
| | | // top: 180rpx; |
| | | // margin-top: 40rpx; |
| | | width: 702rpx; |
| | | |
| | |
| | | background: #FFFFFF; |
| | | border-radius: 12rpx; |
| | | box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05); |
| | | |
| | | margin-top: 88rpx; |
| | | .detailCon { |
| | | padding: 0 24rpx; |
| | | } |
| | |
| | | |
| | | .custom-style { |
| | | width: 276rpx; |
| | | height: 100rpx; |
| | | height: 76rpx; |
| | | font-family: "Source Han Sans CN"; |
| | | font-weight: 400; |
| | | font-size: 36rpx; |
| | | font-size: 28rpx; |
| | | } |
| | | :deep(.u-button.data-v-461e713c){ |
| | | width: 276rpx !important; |
| | | height: 100rpx !important; |
| | | height: 76rpx !important; |
| | | } |
| | | .getCode { |
| | | margin-left: 20rpx; |