fix(pay): 充值支付字段缺失导致报错问题修复

This commit is contained in:
ywk 2025-04-11 10:05:35 +08:00
parent 1a7dd1b626
commit 8779a723cd
3 changed files with 288 additions and 302 deletions

View File

@ -7,57 +7,50 @@
<template> <template>
<view class="main"> <view class="main">
<view class="contents"> <view class="contents">
<u-form ref="uForm" <u-form ref="uForm" :model="loginObj" class="paddings" label-width="90px">
:model="loginObj" <u-form-item :label="'新密码'" prop="newPassword" style="display: flex">
class="paddings" <u-input
label-width="90px" v-model="loginObj.newPassword"
>
<u-form-item :label="'新密码'"
prop="newPassword"
style="display: flex;">
<u-input v-model="loginObj.newPassword"
class="border-color" class="border-color"
:password="true" :password="true"
:placeholder="'请输入新密码'" :placeholder="'请输入新密码'"
placeholder-class="place-class" /> placeholder-class="place-class"
/>
</u-form-item> </u-form-item>
<u-form-item :label="'请确认密码'" <u-form-item
:label="'请确认密码'"
prop="payPassword" prop="payPassword"
style="display: flex;"> style="display: flex"
<u-input v-model="loginObj.payPassword" >
<u-input
v-model="loginObj.payPassword"
class="border-color" class="border-color"
:password="true" :password="true"
:placeholder="'请确认密码'" :placeholder="'请确认密码'"
placeholder-class="place-class" /> placeholder-class="place-class"
/>
</u-form-item> </u-form-item>
<u-form-item :label="'验证码'" <u-form-item :label="'验证码'" prop="code">
<view class="code-box">
prop="code"> <u-input
<u-input v-model="loginObj.code" v-model="loginObj.code"
class="border-color width-s" class="border-color"
style="width: auto;"
:placeholder="'请输入验证码'" :placeholder="'请输入验证码'"
placeholder-class="place-class" /> placeholder-class="place-class"
/>
<!-- <view class="yzm" @click="submit"> <button :disabled="disabled" class="yzm" @click.stop="getCode()">
{{getCodeText}}
</view> -->
<button :disabled="disabled"
class="yzm"
@click.stop="getCode()">
{{ getCodeText }} {{ getCodeText }}
</button> </button>
</view>
</u-form-item> </u-form-item>
</u-form> </u-form>
</view> </view>
<u-button class="btn" <u-button class="btn" shape="circle" type="success" @click="submit">{{
shape="circle" '确定'
type="success" }}</u-button>
@click="submit">{{'确定'}}</u-button> <view style="height: 20rpx"></view>
<view style="height: 20rpx;"></view>
</view> </view>
</template> </template>
@ -118,20 +111,9 @@ export default {
this.$refs.uForm.setRules(this.rules) this.$refs.uForm.setRules(this.rules)
}, },
methods: { methods: {
// getMemberInfo() {
// api.getData().then((res) => {
// // safty: {
// // loginPwd: 111111,
// // payPwd: 111111,
// // email: 111111,
// // tel: 111111,
// // },
// this.loginObj.emailed = res.data.email || ''
// })
// },
submit() { submit() {
this.$refs.uForm.validate().then((res) => { this.$refs.uForm.validate().then(res => {
api.forgetPayPassword(this.loginObj).then((res) => { api.forgetPayPassword(this.loginObj).then(res => {
if (res.code == '200') { if (res.code == '200') {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
@ -161,7 +143,7 @@ export default {
this.getYzm() this.getYzm()
}, },
getYzm() { getYzm() {
api.selfVerification().then((res) => { api.selfVerification().then(res => {
if (res.code == '200') { if (res.code == '200') {
setTimeout(() => { setTimeout(() => {
uni.showToast({ uni.showToast({
@ -180,8 +162,11 @@ export default {
//setInterval //setInterval
//setInterval clearInterval //setInterval clearInterval
this.time = setInterval(() => { this.time = setInterval(() => {
console.log(
console.log('%c [ holdTime ]-183', 'font-size:13px; background:#5f6e08; color:#a3b24c;', holdTime) '%c [ holdTime ]-183',
'font-size:13px; background:#5f6e08; color:#a3b24c;',
holdTime
)
if (holdTime <= 0) { if (holdTime <= 0) {
this.disabled = false this.disabled = false
this.getCodeisWaiting = false this.getCodeisWaiting = false
@ -193,7 +178,6 @@ export default {
this.getCodeText = '重新获取' + '(' + holdTime + ')' this.getCodeText = '重新获取' + '(' + holdTime + ')'
holdTime-- holdTime--
} }
}, 1000) }, 1000)
}, },
}, },
@ -207,6 +191,11 @@ export default {
:v-deep .u-form-item__body__right__message { :v-deep .u-form-item__body__right__message {
margin-left: 170rpx !important; margin-left: 170rpx !important;
} }
.code-box {
display: flex;
align-items: center;
justify-content: space-between;
}
.yzm { .yzm {
// width: 161rpx; // width: 161rpx;
height: 74rpx; height: 74rpx;

View File

@ -21,38 +21,36 @@
</template> </template>
<script> <script>
import * as mar from "@/config/market.js" import * as mar from '@/config/market.js'
import direct from '@/components/invest/direct.vue' import direct from '@/components/invest/direct.vue'
import circulation from '@/components/invest/circulation.vue' import circulation from '@/components/invest/circulation.vue'
import hignFans from '@/components/invest/hignFans.vue' import hignFans from '@/components/invest/hignFans.vue'
import { import { formatMsToDate } from '@/util/index'
formatMsToDate
} from '@/util/index'
export default { export default {
components: { direct, hignFans, circulation }, components: { direct, hignFans, circulation },
data() { data() {
return { return {
navIndex: 0, navIndex: 0,
navList: [ navList: [
{ name: '直推列表',path:"0",menuKey:'' }, { name: '直推列表', path: '0', menuKey: '' },
{ name: '三单循环',path:"0",menuKey:''}, { name: '三单循环', path: '0', menuKey: '' },
{ name: '免费注册' ,path:"0",menuKey:'' }, { name: '免费注册', path: '0', menuKey: '' },
], ],
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 50, pageSize: 50,
memberInfo: "", memberInfo: '',
startCreationTime: "", startCreationTime: '',
endCreationTime: "", endCreationTime: '',
pkRegisterGrade: "" pkRegisterGrade: '',
}, },
dataShow: false, dataShow: false,
timeIndex: 0, timeIndex: 0,
listShow: false, listShow: false,
thegrade: "", thegrade: '',
value1: '', value1: '',
gradeList: [], gradeList: [],
dataList: [] dataList: [],
} }
}, },
onLoad() { onLoad() {
@ -62,7 +60,7 @@
}, },
async onReachBottom() { async onReachBottom() {
this.queryParams.pageNum + 1 this.queryParams.pageNum + 1
this.$refs.sgsyData.getDataList(this.queryParams.pageNum+=1); this.$refs.sgsyData.getDataList((this.queryParams.pageNum += 1))
}, },
methods: { methods: {
clickHref(index) { clickHref(index) {
@ -70,8 +68,8 @@
this.queryParams.pageNum = 1 this.queryParams.pageNum = 1
}, },
getMenuLists() { getMenuLists() {
mar.menuList().then((res) => { mar.menuList().then(res => {
res.data.forEach((item)=>{ res.data.forEach(item => {
if (item.menuKey == 'directList') { if (item.menuKey == 'directList') {
this.navList[0].menuKey = 'directList' this.navList[0].menuKey = 'directList'
} }
@ -85,9 +83,9 @@
}) })
}, },
getOthers() { getOthers() {
mar.getGradeList().then((res) => { mar.getGradeList().then(res => {
this.gradeList = [res.data]; this.gradeList = [res.data]
}); })
}, },
getDataList() { getDataList() {
mar.tripleCycleList(this.queryParams).then(res => { mar.tripleCycleList(this.queryParams).then(res => {
@ -111,7 +109,7 @@
} }
this.dataShow = false this.dataShow = false
}, },
} },
} }
</script> </script>
@ -127,7 +125,7 @@
background: #d61820; background: #d61820;
} }
.top-lists { .top-lists {
width: fit-content; width: 100%;
display: flex; display: flex;
padding: 30rpx 30rpx 0 0; padding: 30rpx 30rpx 0 0;
background-color: #fff; background-color: #fff;
@ -148,7 +146,7 @@
} }
} }
.content { .content {
background: #F2F2F2; background: #f2f2f2;
.seach { .seach {
background: #fff; background: #fff;
@ -178,8 +176,6 @@
color: #999999; color: #999999;
margin-left: 20rpx; margin-left: 20rpx;
} }
} }
.timeSlide { .timeSlide {
@ -187,7 +183,7 @@
align-items: center; align-items: center;
padding: 38rpx 26rpx; padding: 38rpx 26rpx;
justify-content: space-between; justify-content: space-between;
background-color: #FFFFFF; background-color: #ffffff;
.timeA { .timeA {
font-size: 26rpx; font-size: 26rpx;
@ -214,7 +210,7 @@
} }
.thecontent { .thecontent {
background-color: #FFFFFF; background-color: #ffffff;
margin-top: 25rpx; margin-top: 25rpx;
margin-bottom: 21rpx; margin-bottom: 21rpx;
padding: 10rpx 23rpx 30rpx 23rpx; padding: 10rpx 23rpx 30rpx 23rpx;

View File

@ -930,6 +930,7 @@ export default {
}, },
payPw() { payPw() {
let url, obj let url, obj
console.log(this.paramsPost, '....%257B%2522ifcz%2522%253Atrue%257D')
// //
if (this.isBank) { if (this.isBank) {
if (this.isBank == 'hf') { if (this.isBank == 'hf') {
@ -963,10 +964,10 @@ export default {
specialArea: this.specialArea, specialArea: this.specialArea,
payPwd: this.codeValue, payPwd: this.codeValue,
pkSettleCountry: this.pkCountry, pkSettleCountry: this.pkCountry,
makerSpaceMember: this.paramsPost.makerSpaceMember||'', makerSpaceMember: this.paramsPost?.makerSpaceMember||'',
} }
} }
if (this.paramsPost.orderType == 4) { if (this.paramsPost?.orderType === 4) {
// //
let obj = { let obj = {
payPwd: this.codeValue, payPwd: this.codeValue,