解决微信小程序首页空白问题。
This commit is contained in:
@@ -1,227 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const uni_modules_uniIdPages_common_loginPage_mixin = require("../../common/login-page.mixin.js");
|
||||
const uni_modules_uniIdPages_common_password = require("../../common/password.js");
|
||||
const uniIdCo = common_vendor.tr.importObject("uni-id-co", {
|
||||
errorOptions: {
|
||||
type: "toast"
|
||||
}
|
||||
});
|
||||
const _sfc_main = {
|
||||
mixins: [uni_modules_uniIdPages_common_loginPage_mixin.mixin],
|
||||
data() {
|
||||
return {
|
||||
lock: false,
|
||||
focusEmail: true,
|
||||
focusPassword: false,
|
||||
focusPassword2: false,
|
||||
formData: {
|
||||
"email": "",
|
||||
"code": "",
|
||||
"password": "",
|
||||
"password2": "",
|
||||
"captcha": ""
|
||||
},
|
||||
rules: {
|
||||
email: {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
errorMessage: "请输入邮箱"
|
||||
},
|
||||
{
|
||||
format: "email",
|
||||
errorMessage: "邮箱格式不正确"
|
||||
}
|
||||
]
|
||||
},
|
||||
code: {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
errorMessage: "请输入邮箱验证码"
|
||||
},
|
||||
{
|
||||
pattern: /^.{6}$/,
|
||||
errorMessage: "请输入6位验证码"
|
||||
}
|
||||
]
|
||||
},
|
||||
...uni_modules_uniIdPages_common_password.passwordMod.getPwdRules()
|
||||
},
|
||||
logo: "/static/logo.png"
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
isEmail() {
|
||||
let reg_email = /@/;
|
||||
let isEmail = reg_email.test(this.formData.email);
|
||||
return isEmail;
|
||||
},
|
||||
isPwd() {
|
||||
let reg_pwd = /^.{6,20}$/;
|
||||
let isPwd = reg_pwd.test(this.formData.password);
|
||||
return isPwd;
|
||||
},
|
||||
isCode() {
|
||||
let reg_code = /^\d{6}$/;
|
||||
let isCode = reg_code.test(this.formData.code);
|
||||
return isCode;
|
||||
}
|
||||
},
|
||||
onLoad(event) {
|
||||
if (event && event.emailNumber) {
|
||||
this.formData.email = event.emailNumber;
|
||||
if (event.lock) {
|
||||
this.lock = event.lock;
|
||||
this.focusEmail = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
if (this.formData.email) {
|
||||
this.$refs.shortCode.start();
|
||||
}
|
||||
this.$refs.form.setRules(this.rules);
|
||||
},
|
||||
onShow() {
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 完成并提交
|
||||
*/
|
||||
submit() {
|
||||
this.$refs.form.validate().then((res) => {
|
||||
let {
|
||||
email,
|
||||
password,
|
||||
captcha,
|
||||
code
|
||||
} = this.formData;
|
||||
uniIdCo.resetPwdByEmail({
|
||||
email,
|
||||
code,
|
||||
password,
|
||||
captcha
|
||||
}).then((e) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/uni_modules/uni-id-pages/pages/login/login-withpwd",
|
||||
complete: (e2) => {
|
||||
}
|
||||
});
|
||||
}).catch((e) => {
|
||||
if (e.errCode == "uni-id-captcha-required") {
|
||||
this.$refs.popup.open();
|
||||
}
|
||||
}).finally((e) => {
|
||||
this.formData.captcha = "";
|
||||
});
|
||||
}).catch((errors) => {
|
||||
let key = errors[0].key;
|
||||
if (key == "code") {
|
||||
return this.$refs.shortCode.focusSmsCodeInput = true;
|
||||
}
|
||||
key = key.replace(key[0], key[0].toUpperCase());
|
||||
this["focus" + key] = true;
|
||||
});
|
||||
},
|
||||
retrieveByPhone() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/uni_modules/uni-id-pages/pages/retrieve/retrieve"
|
||||
});
|
||||
},
|
||||
backLogin() {
|
||||
common_vendor.index.redirectTo({
|
||||
url: "/uni_modules/uni-id-pages/pages/login/login-withpwd"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
|
||||
const _easycom_uni_forms_item2 = common_vendor.resolveComponent("uni-forms-item");
|
||||
const _easycom_uni_id_pages_email_form2 = common_vendor.resolveComponent("uni-id-pages-email-form");
|
||||
const _easycom_uni_forms2 = common_vendor.resolveComponent("uni-forms");
|
||||
const _easycom_uni_popup_captcha2 = common_vendor.resolveComponent("uni-popup-captcha");
|
||||
(_easycom_uni_easyinput2 + _easycom_uni_forms_item2 + _easycom_uni_id_pages_email_form2 + _easycom_uni_forms2 + _easycom_uni_popup_captcha2)();
|
||||
}
|
||||
const _easycom_uni_easyinput = () => "../../../uni-easyinput/components/uni-easyinput/uni-easyinput.js";
|
||||
const _easycom_uni_forms_item = () => "../../../uni-forms/components/uni-forms-item/uni-forms-item.js";
|
||||
const _easycom_uni_id_pages_email_form = () => "../../components/uni-id-pages-email-form/uni-id-pages-email-form.js";
|
||||
const _easycom_uni_forms = () => "../../../uni-forms/components/uni-forms/uni-forms.js";
|
||||
const _easycom_uni_popup_captcha = () => "../../../uni-captcha/components/uni-popup-captcha/uni-popup-captcha.js";
|
||||
if (!Math) {
|
||||
(_easycom_uni_easyinput + _easycom_uni_forms_item + _easycom_uni_id_pages_email_form + _easycom_uni_forms + _easycom_uni_popup_captcha)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: $data.logo,
|
||||
b: common_vendor.o(($event) => $data.focusEmail = false),
|
||||
c: common_vendor.o(($event) => $data.formData.email = $event),
|
||||
d: common_vendor.p({
|
||||
focus: $data.focusEmail,
|
||||
disabled: $data.lock,
|
||||
inputBorder: false,
|
||||
trim: "both",
|
||||
placeholder: "请输入邮箱",
|
||||
modelValue: $data.formData.email
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
name: "email"
|
||||
}),
|
||||
f: common_vendor.sr("shortCode", "f265c638-4,f265c638-3"),
|
||||
g: common_vendor.o(($event) => $data.formData.code = $event),
|
||||
h: common_vendor.p({
|
||||
email: $data.formData.email,
|
||||
type: "reset-pwd-by-email",
|
||||
modelValue: $data.formData.code
|
||||
}),
|
||||
i: common_vendor.p({
|
||||
name: "code"
|
||||
}),
|
||||
j: common_vendor.o(($event) => $data.focusPassword = false),
|
||||
k: common_vendor.o(($event) => $data.formData.password = $event),
|
||||
l: common_vendor.p({
|
||||
focus: $data.focusPassword,
|
||||
type: "password",
|
||||
inputBorder: false,
|
||||
trim: "both",
|
||||
placeholder: "请输入新密码",
|
||||
modelValue: $data.formData.password
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
name: "password"
|
||||
}),
|
||||
n: common_vendor.o(($event) => $data.focusPassword2 = false),
|
||||
o: common_vendor.o(($event) => $data.formData.password2 = $event),
|
||||
p: common_vendor.p({
|
||||
focus: $data.focusPassword2,
|
||||
type: "password",
|
||||
inputBorder: false,
|
||||
trim: "both",
|
||||
placeholder: "请再次输入新密码",
|
||||
modelValue: $data.formData.password2
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
name: "password2"
|
||||
}),
|
||||
r: common_vendor.o((...args) => $options.submit && $options.submit(...args)),
|
||||
s: common_vendor.o((...args) => $options.retrieveByPhone && $options.retrieveByPhone(...args)),
|
||||
t: common_vendor.o((...args) => $options.backLogin && $options.backLogin(...args)),
|
||||
v: common_vendor.sr("form", "f265c638-0"),
|
||||
w: common_vendor.p({
|
||||
value: $data.formData,
|
||||
["err-show-type"]: "toast"
|
||||
}),
|
||||
x: common_vendor.sr("popup", "f265c638-9"),
|
||||
y: common_vendor.o($options.submit),
|
||||
z: common_vendor.o(($event) => $data.formData.captcha = $event),
|
||||
A: common_vendor.p({
|
||||
scene: "reset-pwd-by-sms",
|
||||
modelValue: $data.formData.captcha
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email.js.map
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "通过邮箱重置密码",
|
||||
"usingComponents": {
|
||||
"uni-easyinput": "../../../uni-easyinput/components/uni-easyinput/uni-easyinput",
|
||||
"uni-forms-item": "../../../uni-forms/components/uni-forms-item/uni-forms-item",
|
||||
"uni-id-pages-email-form": "../../components/uni-id-pages-email-form/uni-id-pages-email-form",
|
||||
"uni-forms": "../../../uni-forms/components/uni-forms/uni-forms",
|
||||
"uni-popup-captcha": "../../../uni-captcha/components/uni-popup-captcha/uni-popup-captcha"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="uni-content"><match-media min-width="{{690}}"><view class="login-logo"><image src="{{a}}"></image></view><text class="title title-box">通过邮箱验证码找回密码</text></match-media><uni-forms wx:if="{{w}}" class="r" u-s="{{['d']}}" u-r="form" u-i="f265c638-0" bind:__l="__l" u-p="{{w}}"><uni-forms-item wx:if="{{e}}" u-s="{{['d']}}" u-i="f265c638-1,f265c638-0" bind:__l="__l" u-p="{{e}}"><uni-easyinput wx:if="{{d}}" bindblur="{{b}}" class="input-box" u-i="f265c638-2,f265c638-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></uni-easyinput></uni-forms-item><uni-forms-item wx:if="{{i}}" u-s="{{['d']}}" u-i="f265c638-3,f265c638-0" bind:__l="__l" u-p="{{i}}"><uni-id-pages-email-form wx:if="{{h}}" class="r" u-r="shortCode" u-i="f265c638-4,f265c638-3" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></uni-id-pages-email-form></uni-forms-item><uni-forms-item wx:if="{{m}}" u-s="{{['d']}}" u-i="f265c638-5,f265c638-0" bind:__l="__l" u-p="{{m}}"><uni-easyinput wx:if="{{l}}" bindblur="{{j}}" class="input-box" u-i="f265c638-6,f265c638-5" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></uni-easyinput></uni-forms-item><uni-forms-item wx:if="{{q}}" u-s="{{['d']}}" u-i="f265c638-7,f265c638-0" bind:__l="__l" u-p="{{q}}"><uni-easyinput wx:if="{{p}}" bindblur="{{n}}" class="input-box" u-i="f265c638-8,f265c638-7" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p}}"></uni-easyinput></uni-forms-item><button class="uni-btn send-btn-box" type="primary" bindtap="{{r}}">提交</button><match-media min-width="{{690}}"><view class="link-box"><text class="link" bindtap="{{s}}">通过手机验证码找回密码</text><view></view><text class="link" bindtap="{{t}}">返回登录</text></view></match-media></uni-forms><uni-popup-captcha wx:if="{{A}}" class="r" bindconfirm="{{y}}" u-r="popup" u-i="f265c638-9" bind:__l="__l" bindupdateModelValue="{{z}}" u-p="{{A}}"></uni-popup-captcha></view>
|
||||
@@ -1,101 +0,0 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.uni-content {
|
||||
padding: 0 60rpx;
|
||||
}
|
||||
.login-logo {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (min-width: 690px) {
|
||||
.uni-content {
|
||||
padding: 0;
|
||||
max-width: 300px;
|
||||
margin-left: calc(50% - 200px);
|
||||
}
|
||||
}
|
||||
.uni-content view {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.title {
|
||||
display: flex;
|
||||
padding: 18px 0;
|
||||
font-weight: 800;
|
||||
flex-direction: column;
|
||||
}
|
||||
.tip {
|
||||
display: flex;
|
||||
color: #BDBDC0;
|
||||
font-size: 11px;
|
||||
margin: 6px 0;
|
||||
}
|
||||
.uni-content .uni-easyinput__content,
|
||||
.input-box {
|
||||
height: 44px;
|
||||
background-color: #F8F8F8 !important;
|
||||
border-radius: 0;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
}
|
||||
.link {
|
||||
color: #04498c;
|
||||
cursor: pointer;
|
||||
}
|
||||
.uni-content .uni-forms-item__inner {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
.uni-btn {
|
||||
text-align: center;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
margin: 15px 0 10px 0;
|
||||
color: #FFF !important;
|
||||
border-radius: 5px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd {
|
||||
height: auto !important;
|
||||
}
|
||||
@media screen and (max-width: 690px) {
|
||||
.uni-content {
|
||||
margin-top: 15px;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 690px) {
|
||||
.uni-content {
|
||||
padding: 30px 40px 40px;
|
||||
max-height: 650px;
|
||||
}
|
||||
.link-box {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.link {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
@@ -1,255 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const uni_modules_uniIdPages_common_loginPage_mixin = require("../../common/login-page.mixin.js");
|
||||
const uniIdCo = common_vendor.tr.importObject("uni-id-co", {
|
||||
errorOptions: {
|
||||
type: "toast"
|
||||
}
|
||||
});
|
||||
const _sfc_main = {
|
||||
mixins: [uni_modules_uniIdPages_common_loginPage_mixin.mixin],
|
||||
data() {
|
||||
return {
|
||||
lock: false,
|
||||
focusPhone: true,
|
||||
focusPassword: false,
|
||||
focusPassword2: false,
|
||||
formData: {
|
||||
"phone": "",
|
||||
"code": "",
|
||||
"password": "",
|
||||
"password2": "",
|
||||
"captcha": ""
|
||||
},
|
||||
rules: {
|
||||
phone: {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
errorMessage: "请输入手机号"
|
||||
},
|
||||
{
|
||||
pattern: /^1\d{10}$/,
|
||||
errorMessage: "手机号码格式不正确"
|
||||
}
|
||||
]
|
||||
},
|
||||
code: {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
errorMessage: "请输入短信验证码"
|
||||
},
|
||||
{
|
||||
pattern: /^.{6}$/,
|
||||
errorMessage: "请输入6位验证码"
|
||||
}
|
||||
]
|
||||
},
|
||||
password: {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
errorMessage: "请输入新密码"
|
||||
},
|
||||
{
|
||||
pattern: /^.{6,20}$/,
|
||||
errorMessage: "密码为6 - 20位"
|
||||
}
|
||||
]
|
||||
},
|
||||
password2: {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
errorMessage: "请确认密码"
|
||||
},
|
||||
{
|
||||
pattern: /^.{6,20}$/,
|
||||
errorMessage: "密码为6 - 20位"
|
||||
},
|
||||
{
|
||||
validateFunction: function(rule, value, data, callback) {
|
||||
if (value != data.password) {
|
||||
callback("两次输入密码不一致");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
logo: "/static/logo.png"
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
isPhone() {
|
||||
let reg_phone = /^1\d{10}$/;
|
||||
let isPhone = reg_phone.test(this.formData.phone);
|
||||
return isPhone;
|
||||
},
|
||||
isPwd() {
|
||||
let reg_pwd = /^.{6,20}$/;
|
||||
let isPwd = reg_pwd.test(this.formData.password);
|
||||
return isPwd;
|
||||
},
|
||||
isCode() {
|
||||
let reg_code = /^\d{6}$/;
|
||||
let isCode = reg_code.test(this.formData.code);
|
||||
return isCode;
|
||||
}
|
||||
},
|
||||
onLoad(event) {
|
||||
if (event && event.phoneNumber) {
|
||||
this.formData.phone = event.phoneNumber;
|
||||
if (event.lock) {
|
||||
this.lock = event.lock;
|
||||
this.focusPhone = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
if (this.formData.phone) {
|
||||
this.$refs.shortCode.start();
|
||||
}
|
||||
this.$refs.form.setRules(this.rules);
|
||||
},
|
||||
onShow() {
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 完成并提交
|
||||
*/
|
||||
submit() {
|
||||
this.$refs.form.validate().then((res) => {
|
||||
let {
|
||||
"phone": mobile,
|
||||
"password": password,
|
||||
captcha,
|
||||
code
|
||||
} = this.formData;
|
||||
uniIdCo.resetPwdBySms({
|
||||
mobile,
|
||||
code,
|
||||
password,
|
||||
captcha
|
||||
}).then((e) => {
|
||||
common_vendor.index.navigateBack();
|
||||
}).catch((e) => {
|
||||
if (e.errCode == "uni-id-captcha-required") {
|
||||
this.$refs.popup.open();
|
||||
}
|
||||
}).finally((e) => {
|
||||
this.formData.captcha = "";
|
||||
});
|
||||
}).catch((errors) => {
|
||||
let key = errors[0].key;
|
||||
if (key == "code") {
|
||||
return this.$refs.shortCode.focusSmsCodeInput = true;
|
||||
}
|
||||
key = key.replace(key[0], key[0].toUpperCase());
|
||||
this["focus" + key] = true;
|
||||
});
|
||||
},
|
||||
retrieveByEmail() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email"
|
||||
});
|
||||
},
|
||||
backLogin() {
|
||||
common_vendor.index.redirectTo({
|
||||
url: "/uni_modules/uni-id-pages/pages/login/login-withpwd"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_uni_easyinput2 = common_vendor.resolveComponent("uni-easyinput");
|
||||
const _easycom_uni_forms_item2 = common_vendor.resolveComponent("uni-forms-item");
|
||||
const _easycom_uni_id_pages_sms_form2 = common_vendor.resolveComponent("uni-id-pages-sms-form");
|
||||
const _easycom_uni_forms2 = common_vendor.resolveComponent("uni-forms");
|
||||
const _easycom_uni_popup_captcha2 = common_vendor.resolveComponent("uni-popup-captcha");
|
||||
(_easycom_uni_easyinput2 + _easycom_uni_forms_item2 + _easycom_uni_id_pages_sms_form2 + _easycom_uni_forms2 + _easycom_uni_popup_captcha2)();
|
||||
}
|
||||
const _easycom_uni_easyinput = () => "../../../uni-easyinput/components/uni-easyinput/uni-easyinput.js";
|
||||
const _easycom_uni_forms_item = () => "../../../uni-forms/components/uni-forms-item/uni-forms-item.js";
|
||||
const _easycom_uni_id_pages_sms_form = () => "../../components/uni-id-pages-sms-form/uni-id-pages-sms-form.js";
|
||||
const _easycom_uni_forms = () => "../../../uni-forms/components/uni-forms/uni-forms.js";
|
||||
const _easycom_uni_popup_captcha = () => "../../../uni-captcha/components/uni-popup-captcha/uni-popup-captcha.js";
|
||||
if (!Math) {
|
||||
(_easycom_uni_easyinput + _easycom_uni_forms_item + _easycom_uni_id_pages_sms_form + _easycom_uni_forms + _easycom_uni_popup_captcha)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: $data.logo,
|
||||
b: common_vendor.o(($event) => $data.focusPhone = false),
|
||||
c: common_vendor.o(($event) => $data.formData.phone = $event),
|
||||
d: common_vendor.p({
|
||||
focus: $data.focusPhone,
|
||||
disabled: $data.lock,
|
||||
type: "number",
|
||||
inputBorder: false,
|
||||
trim: "both",
|
||||
maxlength: "11",
|
||||
placeholder: "请输入手机号",
|
||||
modelValue: $data.formData.phone
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
name: "phone"
|
||||
}),
|
||||
f: common_vendor.sr("shortCode", "5f2b6c7f-4,5f2b6c7f-3"),
|
||||
g: common_vendor.o(($event) => $data.formData.code = $event),
|
||||
h: common_vendor.p({
|
||||
phone: $data.formData.phone,
|
||||
type: "reset-pwd-by-sms",
|
||||
modelValue: $data.formData.code
|
||||
}),
|
||||
i: common_vendor.p({
|
||||
name: "code"
|
||||
}),
|
||||
j: common_vendor.o(($event) => $data.focusPassword = false),
|
||||
k: common_vendor.o(($event) => $data.formData.password = $event),
|
||||
l: common_vendor.p({
|
||||
focus: $data.focusPassword,
|
||||
type: "password",
|
||||
inputBorder: false,
|
||||
trim: "both",
|
||||
placeholder: "请输入新密码",
|
||||
modelValue: $data.formData.password
|
||||
}),
|
||||
m: common_vendor.p({
|
||||
name: "password"
|
||||
}),
|
||||
n: common_vendor.o(($event) => $data.focusPassword2 = false),
|
||||
o: common_vendor.o(($event) => $data.formData.password2 = $event),
|
||||
p: common_vendor.p({
|
||||
focus: $data.focusPassword2,
|
||||
type: "password",
|
||||
inputBorder: false,
|
||||
trim: "both",
|
||||
placeholder: "请再次输入新密码",
|
||||
modelValue: $data.formData.password2
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
name: "password2"
|
||||
}),
|
||||
r: common_vendor.o((...args) => $options.submit && $options.submit(...args)),
|
||||
s: common_vendor.o((...args) => $options.retrieveByEmail && $options.retrieveByEmail(...args)),
|
||||
t: common_vendor.o((...args) => $options.backLogin && $options.backLogin(...args)),
|
||||
v: common_vendor.sr("form", "5f2b6c7f-0"),
|
||||
w: common_vendor.p({
|
||||
value: $data.formData,
|
||||
["err-show-type"]: "toast"
|
||||
}),
|
||||
x: common_vendor.sr("popup", "5f2b6c7f-9"),
|
||||
y: common_vendor.o($options.submit),
|
||||
z: common_vendor.o(($event) => $data.formData.captcha = $event),
|
||||
A: common_vendor.p({
|
||||
scene: "reset-pwd-by-sms",
|
||||
modelValue: $data.formData.captcha
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uni-id-pages/pages/retrieve/retrieve.js.map
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "重置密码",
|
||||
"usingComponents": {
|
||||
"uni-easyinput": "../../../uni-easyinput/components/uni-easyinput/uni-easyinput",
|
||||
"uni-forms-item": "../../../uni-forms/components/uni-forms-item/uni-forms-item",
|
||||
"uni-id-pages-sms-form": "../../components/uni-id-pages-sms-form/uni-id-pages-sms-form",
|
||||
"uni-forms": "../../../uni-forms/components/uni-forms/uni-forms",
|
||||
"uni-popup-captcha": "../../../uni-captcha/components/uni-popup-captcha/uni-popup-captcha"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="uni-content"><match-media min-width="{{690}}"><view class="login-logo"><image src="{{a}}"></image></view><text class="title title-box">通过手机验证码找回密码</text></match-media><uni-forms wx:if="{{w}}" class="r" u-s="{{['d']}}" u-r="form" u-i="5f2b6c7f-0" bind:__l="__l" u-p="{{w}}"><uni-forms-item wx:if="{{e}}" u-s="{{['d']}}" u-i="5f2b6c7f-1,5f2b6c7f-0" bind:__l="__l" u-p="{{e}}"><uni-easyinput wx:if="{{d}}" bindblur="{{b}}" class="input-box" u-i="5f2b6c7f-2,5f2b6c7f-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></uni-easyinput></uni-forms-item><uni-forms-item wx:if="{{i}}" u-s="{{['d']}}" u-i="5f2b6c7f-3,5f2b6c7f-0" bind:__l="__l" u-p="{{i}}"><uni-id-pages-sms-form wx:if="{{h}}" class="r" u-r="shortCode" u-i="5f2b6c7f-4,5f2b6c7f-3" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"></uni-id-pages-sms-form></uni-forms-item><uni-forms-item wx:if="{{m}}" u-s="{{['d']}}" u-i="5f2b6c7f-5,5f2b6c7f-0" bind:__l="__l" u-p="{{m}}"><uni-easyinput wx:if="{{l}}" bindblur="{{j}}" class="input-box" u-i="5f2b6c7f-6,5f2b6c7f-5" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></uni-easyinput></uni-forms-item><uni-forms-item wx:if="{{q}}" u-s="{{['d']}}" u-i="5f2b6c7f-7,5f2b6c7f-0" bind:__l="__l" u-p="{{q}}"><uni-easyinput wx:if="{{p}}" bindblur="{{n}}" class="input-box" u-i="5f2b6c7f-8,5f2b6c7f-7" bind:__l="__l" bindupdateModelValue="{{o}}" u-p="{{p}}"></uni-easyinput></uni-forms-item><button class="uni-btn send-btn-box" type="primary" bindtap="{{r}}">提交</button><match-media min-width="{{690}}"><view class="link-box"><text class="link" bindtap="{{s}}">通过邮箱验证码找回密码</text><view></view><text class="link" bindtap="{{t}}">返回登录</text></view></match-media></uni-forms><uni-popup-captcha wx:if="{{A}}" class="r" bindconfirm="{{y}}" u-r="popup" u-i="5f2b6c7f-9" bind:__l="__l" bindupdateModelValue="{{z}}" u-p="{{A}}"></uni-popup-captcha></view>
|
||||
@@ -1,101 +0,0 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.uni-content {
|
||||
padding: 0 60rpx;
|
||||
}
|
||||
.login-logo {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (min-width: 690px) {
|
||||
.uni-content {
|
||||
padding: 0;
|
||||
max-width: 300px;
|
||||
margin-left: calc(50% - 200px);
|
||||
}
|
||||
}
|
||||
.uni-content view {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.title {
|
||||
display: flex;
|
||||
padding: 18px 0;
|
||||
font-weight: 800;
|
||||
flex-direction: column;
|
||||
}
|
||||
.tip {
|
||||
display: flex;
|
||||
color: #BDBDC0;
|
||||
font-size: 11px;
|
||||
margin: 6px 0;
|
||||
}
|
||||
.uni-content .uni-easyinput__content,
|
||||
.input-box {
|
||||
height: 44px;
|
||||
background-color: #F8F8F8 !important;
|
||||
border-radius: 0;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
}
|
||||
.link {
|
||||
color: #04498c;
|
||||
cursor: pointer;
|
||||
}
|
||||
.uni-content .uni-forms-item__inner {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
.uni-btn {
|
||||
text-align: center;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
margin: 15px 0 10px 0;
|
||||
color: #FFF !important;
|
||||
border-radius: 5px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.uni-body.uni_modules-uni-id-pages-pages-login-login-withoutpwd {
|
||||
height: auto !important;
|
||||
}
|
||||
@media screen and (max-width: 690px) {
|
||||
.uni-content {
|
||||
margin-top: 15px;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 690px) {
|
||||
.uni-content {
|
||||
padding: 30px 40px 40px;
|
||||
max-height: 650px;
|
||||
}
|
||||
.link-box {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.link {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user