19
This commit is contained in:
@@ -22,10 +22,11 @@
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import user from "../../../store/modules/user";
|
||||
import { businessSendSms, businessVerifyCode } from "@/api/login";
|
||||
import { SmsUserFor } from "@/constant";
|
||||
import { checkLoginError } from "@/util/common";
|
||||
import user from "@/store/modules/user";
|
||||
import {businessSendSms,businessVerifyCode} from "@/api/login";
|
||||
import {SmsUserFor} from "@/constant";
|
||||
import {checkLoginError } from "@/util/common";
|
||||
import util from "@/util/index.js"
|
||||
let timer;
|
||||
export default {
|
||||
data() {
|
||||
@@ -49,7 +50,7 @@
|
||||
resend
|
||||
} = options;
|
||||
console.log(userInfo,isRegister)
|
||||
this.userInfo = JSON.parse(userInfo);
|
||||
this.userInfo = util.aesdecode(userInfo);
|
||||
this.isRegister = JSON.parse(isRegister);
|
||||
if(resend == 1){
|
||||
this.count = 0;
|
||||
@@ -61,7 +62,7 @@
|
||||
onReady() {},
|
||||
methods: {
|
||||
back() {
|
||||
uni.$u.route("/pages/common/login/index", {
|
||||
uni.$u.route("/pages/common/registerOrForget/index", {
|
||||
isRegister: this.isRegister,
|
||||
});
|
||||
},
|
||||
@@ -76,15 +77,16 @@
|
||||
};
|
||||
businessVerifyCode(options)
|
||||
.then(() => {
|
||||
const s = util.aesencode(this.userInfo);
|
||||
if (this.isRegister) {
|
||||
uni.$u.route("/pages/common/setSelfInfo/index", {
|
||||
userInfo: JSON.stringify(this.userInfo),
|
||||
userInfo: s,
|
||||
isRegister: this.isRegister,
|
||||
codeValue: this.codeValue,
|
||||
});
|
||||
} else {
|
||||
uni.$u.route("/pages/common/setPassword/index", {
|
||||
userInfo: JSON.stringify(this.userInfo),
|
||||
userInfo: s,
|
||||
isRegister: !this.isRegister,
|
||||
codeValue: this.codeValue,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user