密码修改优化

master
gongfuxiang 2025-07-30 14:55:27 +08:00
parent 9638e5da9f
commit d95a638df3
4 changed files with 39 additions and 18 deletions

View File

@ -3065,6 +3065,13 @@
var client_value = this.application_client_type();
//
var url = this.current_page(false);
//
var no_setup_pages = [
'pages/login/login'
];
if(no_setup_pages.indexOf(url) != -1) {
return false;
}
//
if(client_value == 'alipay') {
//
@ -3076,6 +3083,7 @@
'pages/plugins/signin/detail/detail',
'pages/plugins/membershiplevelvip/index/index',
'pages/plugins/ask/index/index',
'pages/cashier/cashier'
];
// tab
if(this.is_system_tabbar_pages('/'+url) != -1 || pages_always.indexOf(url) != -1) {

View File

@ -186,18 +186,19 @@
}
},
"__usePrivacyCheck__" : true,
"plugins" : {}
"plugins" : {
// 线->->线 https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wx50b5593e81dd937a
// "routePlan" : {
// "version" : "1.0.19",
// "provider" : "wx50b5593e81dd937a"
// },
// ->-> https://mp.weixin.qq.com/wxopen/pluginbasicprofile?action=intro&appid=wx2b03c6e691cd7370
// "live-player-plugin" : {
// "version" : "1.3.5",
// "provider" : "wx2b03c6e691cd7370"
// }
}
},
// 线->->线 https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wx50b5593e81dd937a
// "routePlan" : {
// "version" : "1.0.19",
// "provider" : "wx50b5593e81dd937a"
// },
// ->-> https://mp.weixin.qq.com/wxopen/pluginbasicprofile?action=intro&appid=wx2b03c6e691cd7370
// "live-player-plugin" : {
// "version" : "1.3.5",
// "provider" : "wx2b03c6e691cd7370"
// }
"mp-alipay" : {
"usingComponents" : true,
"appid" : "2021001173639600"

View File

@ -541,6 +541,7 @@
current_opt_type_title: {
auth: this.$t('login.login.jw378f'),
bind: this.$t('login.login.np9177'),
bind_verify: 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'),
@ -1473,6 +1474,7 @@
//
this.set_resources_data();
//
console.log( this.current_opt_type_title[this.navigation_bar_title_key] )
uni.setNavigationBarTitle({
title: this.current_opt_type_title[this.navigation_bar_title_key],
});

View File

@ -6,7 +6,7 @@
<view class="padding-main">
<form @submit="form_bind_pwd">
<view class="margin-top-xxxl">
<view class="pr">
<view v-if="(user.is_setup_pwd || 0) == 1" class="pr">
<input type="text" :placeholder="$t('password.password.4e24j1')" minlength="6" maxlength="18" name="my_pwd" :password="!eyes1" class="form-item margin-bottom-main" />
<view class="eyes pa" data-index="1" @tap="eyes_event"><iconfont :name="eyes1 ? 'icon-wodeqianbao-eye' : 'icon-eye-half'" color="#666" size="32rpx"></iconfont></view>
</view>
@ -46,6 +46,7 @@
data_list_loding_status: 1,
data_list_loding_msg: '',
form_submit_loading: false,
user: {},
//
eyes1: false,
eyes2: false,
@ -107,11 +108,12 @@
//
form_bind_pwd(e) {
//
var validation = [
{ fields: 'my_pwd', msg: this.$t('login.login.277w03') },
{ fields: 'new_pwd', msg: this.$t('password.password.1lwiaz') },
{ fields: 'confirm_new_pwd', msg: this.$t('password.password.3pp6t7') },
];
var validation = [];
if((this.user.is_setup_pwd || 0) == 1) {
validation.push({ fields: 'my_pwd', msg: this.$t('login.login.277w03') });
}
validation.push({ fields: 'new_pwd', msg: this.$t('password.password.1lwiaz') });
validation.push({ fields: 'confirm_new_pwd', msg: this.$t('password.password.3pp6t7') });
if (app.globalData.fields_check(e.detail.value, validation)) {
uni.showLoading({
title: this.$t('common.processing_in_text'),
@ -131,12 +133,20 @@
this.setData({
form_submit_loading: false,
});
app.globalData.showToast(res.data.msg, 'success');
if (res.data.code == 0) {
app.globalData.showToast(res.data.msg, 'success');
if((res.data.data || null) != null) {
this.setData({
user: res.data.data
});
uni.setStorageSync(app.globalData.data.cache_user_info_key, res.data.data);
}
setTimeout(() => {
//
uni.navigateBack();
}, 1500);
} else {
app.globalData.showToast(res.data.msg);
}
},
fail: () => {