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

View File

@ -1,251 +1,247 @@
<template>
<view class="content">
<scroll-view class="left_scrol_style" scroll-x="false" scroll-y="true">
<view class="top-lists">
<view
v-for="(item, index) in navList"
v-show="item.menuKey!=''"
:key="index"
:class="navIndex == index ? 'styles' : ''"
class="nav-view"
@click="clickHref(index)"
>
{{ item.name }}
</view>
</view>
</scroll-view>
<direct v-if="navIndex==0" ref="sgsyData"/>
<circulation v-if="navIndex==1" ref="sgsyData"/>
<hignFans v-if="navIndex==2" ref="sgsyData"/>
</view>
<view class="content">
<scroll-view class="left_scrol_style" scroll-x="false" scroll-y="true">
<view class="top-lists">
<view
v-for="(item, index) in navList"
v-show="item.menuKey != ''"
:key="index"
:class="navIndex == index ? 'styles' : ''"
class="nav-view"
@click="clickHref(index)"
>
{{ item.name }}
</view>
</view>
</scroll-view>
<direct v-if="navIndex == 0" ref="sgsyData" />
<circulation v-if="navIndex == 1" ref="sgsyData" />
<hignFans v-if="navIndex == 2" ref="sgsyData" />
</view>
</template>
<script>
import * as mar from "@/config/market.js"
import direct from '@/components/invest/direct.vue'
import circulation from '@/components/invest/circulation.vue'
import hignFans from '@/components/invest/hignFans.vue'
import {
formatMsToDate
} from '@/util/index'
export default {
components:{direct,hignFans,circulation},
data() {
return {
navIndex:0,
navList: [
{ name: '直推列表',path:"0",menuKey:'' },
{ name: '三单循环',path:"0",menuKey:''},
{ name: '免费注册' ,path:"0",menuKey:'' },
],
queryParams: {
pageNum: 1,
pageSize: 50,
memberInfo: "",
startCreationTime: "",
endCreationTime: "",
pkRegisterGrade: ""
},
dataShow: false,
timeIndex: 0,
listShow: false,
thegrade: "",
value1: '',
gradeList: [],
dataList: []
}
},
onLoad() {
// this.getOthers()
// this.getDataList()
this.getMenuLists()
},
async onReachBottom() {
this.queryParams.pageNum+1
this.$refs.sgsyData.getDataList(this.queryParams.pageNum+=1);
},
methods: {
clickHref(index){
this.navIndex = index
this.queryParams.pageNum = 1
},
getMenuLists(){
mar.menuList().then((res) => {
res.data.forEach((item)=>{
if(item.menuKey == 'directList'){
this.navList[0].menuKey = 'directList'
}
if(item.menuKey == 'attractDetailList'){
this.navList[1].menuKey = 'attractDetailList'
}
if(item.menuKey == 'haiList'){
this.navList[2].menuKey = 'haiList'
}
})
})
},
getOthers() {
mar.getGradeList().then((res) => {
this.gradeList = [res.data];
});
},
getDataList() {
mar.tripleCycleList(this.queryParams).then(res => {
this.dataList = res.rows
})
},
openDate(index) {
this.timeIndex = index
this.dataShow = true
},
confirm(e) {
this.queryParams.pkRegisterGrade = e.value[0].pkId
this.thegrade = e.value[0].gradeName
this.listShow = false
},
getDate(e) {
if (this.timeIndex == 1) {
this.queryParams.endCreationTime = formatMsToDate(e.value)
} else {
this.queryParams.startCreationTime = formatMsToDate(e.value)
}
this.dataShow = false
},
}
}
import * as mar from '@/config/market.js'
import direct from '@/components/invest/direct.vue'
import circulation from '@/components/invest/circulation.vue'
import hignFans from '@/components/invest/hignFans.vue'
import { formatMsToDate } from '@/util/index'
export default {
components: { direct, hignFans, circulation },
data() {
return {
navIndex: 0,
navList: [
{ name: '直推列表', path: '0', menuKey: '' },
{ name: '三单循环', path: '0', menuKey: '' },
{ name: '免费注册', path: '0', menuKey: '' },
],
queryParams: {
pageNum: 1,
pageSize: 50,
memberInfo: '',
startCreationTime: '',
endCreationTime: '',
pkRegisterGrade: '',
},
dataShow: false,
timeIndex: 0,
listShow: false,
thegrade: '',
value1: '',
gradeList: [],
dataList: [],
}
},
onLoad() {
// this.getOthers()
// this.getDataList()
this.getMenuLists()
},
async onReachBottom() {
this.queryParams.pageNum + 1
this.$refs.sgsyData.getDataList((this.queryParams.pageNum += 1))
},
methods: {
clickHref(index) {
this.navIndex = index
this.queryParams.pageNum = 1
},
getMenuLists() {
mar.menuList().then(res => {
res.data.forEach(item => {
if (item.menuKey == 'directList') {
this.navList[0].menuKey = 'directList'
}
if (item.menuKey == 'attractDetailList') {
this.navList[1].menuKey = 'attractDetailList'
}
if (item.menuKey == 'haiList') {
this.navList[2].menuKey = 'haiList'
}
})
})
},
getOthers() {
mar.getGradeList().then(res => {
this.gradeList = [res.data]
})
},
getDataList() {
mar.tripleCycleList(this.queryParams).then(res => {
this.dataList = res.rows
})
},
openDate(index) {
this.timeIndex = index
this.dataShow = true
},
confirm(e) {
this.queryParams.pkRegisterGrade = e.value[0].pkId
this.thegrade = e.value[0].gradeName
this.listShow = false
},
getDate(e) {
if (this.timeIndex == 1) {
this.queryParams.endCreationTime = formatMsToDate(e.value)
} else {
this.queryParams.startCreationTime = formatMsToDate(e.value)
}
this.dataShow = false
},
},
}
</script>
<style lang="scss" scoped>
/*左侧分类视图*/
.left_scrol_style{
white-space: nowrap;
width: 100%;
}
.styles {
border: none !important;
color: #fff !important;
background: #d61820;
}
.top-lists{
width: fit-content;
display: flex;
padding: 30rpx 30rpx 0 0;
background-color: #fff;
height: 80rpx;
line-height: 80rpx;
.nav-view{
width: 200rpx;
cursor: pointer;
padding: 0 26rpx;
height: 44rpx;
border-radius: 10rpx;
border: 1rpx solid #999999;
font-size: 14rpx;
text-align: center;
line-height: 44rpx;
margin-left: 20rpx;
color: #999;
}
}
.content {
background: #F2F2F2;
/*左侧分类视图*/
.left_scrol_style {
white-space: nowrap;
width: 100%;
}
.styles {
border: none !important;
color: #fff !important;
background: #d61820;
}
.top-lists {
width: 100%;
display: flex;
padding: 30rpx 30rpx 0 0;
background-color: #fff;
height: 80rpx;
line-height: 80rpx;
.nav-view {
width: 200rpx;
cursor: pointer;
padding: 0 26rpx;
height: 44rpx;
border-radius: 10rpx;
border: 1rpx solid #999999;
font-size: 14rpx;
text-align: center;
line-height: 44rpx;
margin-left: 20rpx;
color: #999;
}
}
.content {
background: #f2f2f2;
.seach {
background: #fff;
overflow: hidden;
padding: 20rpx 23rpx;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
border-bottom: 2rpx solid #eee;
.seach {
background: #fff;
overflow: hidden;
padding: 20rpx 23rpx;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
border-bottom: 2rpx solid #eee;
.seach_i {
padding: 0 20rpx;
border-radius: 34rpx;
background: #fff;
flex: 1;
background: #f5f6f8;
// margin-right: 40rpx;
}
.seach_i {
padding: 0 20rpx;
border-radius: 34rpx;
background: #fff;
flex: 1;
background: #f5f6f8;
// margin-right: 40rpx;
}
.neibox {
display: flex;
align-items: center;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 400;
color: #999999;
margin-left: 20rpx;
}
.neibox {
display: flex;
align-items: center;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 400;
color: #999999;
margin-left: 20rpx;
}
}
.timeSlide {
display: flex;
align-items: center;
padding: 38rpx 26rpx;
justify-content: space-between;
background-color: #ffffff;
}
.timeA {
font-size: 26rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: #333;
margin-right: 46rpx;
}
.timeSlide {
display: flex;
align-items: center;
padding: 38rpx 26rpx;
justify-content: space-between;
background-color: #FFFFFF;
.timeB {
font-size: 24rpx;
font-family: Arial;
font-weight: 400;
color: #999999;
text-align: center;
}
.timeA {
font-size: 26rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: #333;
margin-right: 46rpx;
}
.seatch_r {
background: #fb3024;
border-radius: 50%;
padding: 8rpx;
margin-left: 24rpx;
}
}
.timeB {
font-size: 24rpx;
font-family: Arial;
font-weight: 400;
color: #999999;
text-align: center;
}
.thecontent {
background-color: #ffffff;
margin-top: 25rpx;
margin-bottom: 21rpx;
padding: 10rpx 23rpx 30rpx 23rpx;
.seatch_r {
background: #fb3024;
border-radius: 50%;
padding: 8rpx;
margin-left: 24rpx;
}
}
.line_box {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 25rpx;
.thecontent {
background-color: #FFFFFF;
margin-top: 25rpx;
margin-bottom: 21rpx;
padding: 10rpx 23rpx 30rpx 23rpx;
.line1 {
font-size: 26rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: #999999;
}
.line_box {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 25rpx;
.line2 {
font-size: 26rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: #333333;
}
.line1 {
font-size: 26rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: #999999;
}
.line2 {
font-size: 26rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: #333333;
}
.line3 {
font-size: 26rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: rgba(251, 48, 36, 1);
}
}
}
}
</style>
.line3 {
font-size: 26rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: rgba(251, 48, 36, 1);
}
}
}
}
</style>

View File

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