密码修改,邮箱绑定

master
gongfuxiang 2024-03-12 11:32:01 +08:00
parent de2b0d6ea0
commit 3d34bbe4ea
5 changed files with 13 additions and 22 deletions

View File

@ -76,6 +76,7 @@
"article-category": "All articles",
"article-detail": "Article details",
"setup": "set up",
"password": "password modify",
"personal": "personal data",
"logout": "Account cancellation",
"plugins-seckill-index": "Limited time flash sale",
@ -238,6 +239,7 @@
"s665h5": "Obtain verification code",
"jw378f": "Authorized User Information",
"np9177": "Bind phone",
"tgsa4d": "Bind email",
"158yg2": "Login with mobile verification code",
"r329eu": "Email verification code login",
"39hn6v": "Account password registration",

View File

@ -80,6 +80,7 @@
"article-detail": "文章详情",
"setup": "设置",
"personal": "个人资料",
"password": "密码修改",
"logout": "账号注销",
"plugins-seckill-index": "限时秒杀",
"plugins-coupon-index": "领券中心",
@ -241,6 +242,7 @@
"s665h5": "获取验证码",
"jw378f": "授权用户信息",
"np9177": "绑定手机",
"tgsa4d": "绑定邮箱",
"158yg2": "手机验证码登录",
"r329eu": "邮箱验证码登录",
"39hn6v": "账号密码注册",

View File

@ -524,9 +524,6 @@
uni.setStorageSync(app.globalData.data.cache_user_info_key, user);
}
}
//
this.init();
},
//
@ -537,6 +534,9 @@
//
this.init_config();
//
this.init();
//
app.globalData.page_share_handle();
},
@ -548,6 +548,7 @@
current_opt_type_title: {
auth: this.$t('login.login.jw378f'),
bind: this.$t('login.login.np9177'),
bind_email: this.$t('login.login.tgsa4d'),
login_username: this.$t('login.login.725312'),
login_sms: this.$t('login.login.158yg2'),
login_email: this.$t('login.login.r329eu'),
@ -595,10 +596,6 @@
}
}
// #endif
this.setData({
navigation_bar_title_key: type,
});
this.set_navigation_bar_title();
//
if ((this.params.opt_type || null) != null) {
@ -619,7 +616,9 @@
current_opt_form: form,
is_exist_base_data: is_base,
is_refreshed_base_data: 1,
navigation_bar_title_key: type
});
this.set_navigation_bar_title();
//
if (this.current_opt_form == 'success') {
@ -1369,8 +1368,8 @@
//
opt_form_event(e) {
var value = e.currentTarget.dataset.value;
//
if (value == 'bind' && (this.params.opt_form || null) != null && this.params.opt_form == 'bind_verify') {
//
if (value == 'bind' && (this.params.opt_form || null) != null && (this.params.opt_form == 'bind_verify' || this.params.opt_form == 'bind_email')) {
uni.navigateBack();
}

View File

@ -41,7 +41,6 @@
theme_view: app.globalData.get_theme_value_view(),
data_list_loding_status: 1,
data_list_loding_msg: '',
form_submit_loading: false,
//
eyes1: false,
@ -90,23 +89,12 @@
},
formBindPwd(e) {
//
// #ifdef MP
var field_openid = client_type + '_openid';
var field_unionid = client_type + '_unionid';
e.detail.value[field_openid] = user[field_openid] || '';
e.detail.value[field_unionid] = user[field_unionid] || '';
// #endif
//
var validation = [
{ fields: 'my_pwd', msg: '请输入密码' },
{ fields: 'new_pwd', msg: '请输入新密码' },
{ fields: 'confirm_new_pwd', msg: '确认新密码' },
];
// #ifdef MP
validation.push({ fields: field_openid, msg: this.$t('login.login.prqvf1') });
// #endif
if (app.globalData.fields_check(e.detail.value, validation)) {
uni.showLoading({
title: this.$t('common.processing_in_text'),

View File

@ -22,7 +22,7 @@
<text>更换密码</text>
<text class="fr cr-grey">{{ $t('setup.setup.j6skqh') }}</text>
</view>
<view v-if="home_use_multilingual_status == 1" class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-t" data-value="/pages/login/login?opt_form=bind_verify" @tap="open_language_event">
<view v-if="home_use_multilingual_status == 1" class="padding-top-xxl padding-bottom-xxl padding-right-xxxl arrow-right br-t" @tap="open_language_event">
<text>{{ $t('setup.setup.r7jz13') }}</text>
<text class="fr cr-grey">{{ language }}</text>
</view>