星油云站更新

This commit is contained in:
caoliancun
2022-03-02 16:22:09 +08:00
parent d5eea27607
commit bb229d2eb3
71 changed files with 6188 additions and 904 deletions

View File

@@ -44,15 +44,15 @@
<script>
import cloudSiteApi from '@/api/cloud-site.js'
import oliUserApi from '@/api/oli-user.js'
import md5 from 'js-md5'
export default {
data() {
return {
tips: '发送验证码',
frozen: false, // 验证码冷却时间
auth: {
},
auth: {},
verifyCodeToken:'',
loginUser: uni.getStorageSync('loginUser')
}
},
@@ -91,11 +91,13 @@
if (this.pwd === this.authpwd) {
const data3 = {
phone: this.loginUser.userPhone,
authCode: this.auth.authCode,
code: this.auth.authCode,
oldPassword: md5(this.pwd),
newPassword: md5(this.authpwd)
verifyCodeToken:this.verifyCodeToken,
password: md5(this.authpwd),
id:this.loginUser.id
}
cloudSiteApi.setPassword(data3).then(res => {
oliUserApi.changePwd(data3).then(res => {
if (res.code == 20000) {
uni.showToast({
title: res.msg
@@ -117,8 +119,9 @@
const data2 = {
phone: this.loginUser.userPhone
}
cloudSiteApi.sendPwdSms(data2).then(res => {
oliUserApi.changePwdSms(data2).then(res => {
console.log('res', res)
this.verifyCodeToken = res.data.verifyCodeToken
uni.showToast({
title: res.msg,
icon: 'none'