|
@@ -11,6 +11,7 @@
|
|
|
|
|
|
<script>
|
|
|
import {setPayPwd, changePayPwd} from '@/api/order.js'
|
|
|
+ import md5 from 'md5'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -103,8 +104,9 @@
|
|
|
let params = {
|
|
|
mobile: this.mobile,
|
|
|
verifiCode: this.verifiCode,
|
|
|
- payPassword: this.value
|
|
|
+ payPassword: md5(this.value)
|
|
|
}
|
|
|
+ console.log(params,'--------mima')
|
|
|
setPayPwd(params).then(res=>{
|
|
|
if(res.status==200) {
|
|
|
uni.showToast({ title: res.message, icon: 'none' })
|
|
@@ -120,8 +122,8 @@
|
|
|
// 修改密码
|
|
|
changePsw () {
|
|
|
let params = {
|
|
|
- oldPayPassword: this.oldPwd,
|
|
|
- payPassword: this.value
|
|
|
+ oldPayPassword: md5(this.oldPwd),
|
|
|
+ payPassword: md5(this.value)
|
|
|
}
|
|
|
changePayPwd(params).then(res=>{
|
|
|
if(res.status==200) {
|