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"
> class="border-color"
<u-form-item :label="'新密码'" :password="true"
prop="newPassword" :placeholder="'请输入新密码'"
style="display: flex;"> placeholder-class="place-class"
<u-input v-model="loginObj.newPassword" />
class="border-color"
:password="true"
:placeholder="'请输入新密码'"
placeholder-class="place-class" />
</u-form-item> </u-form-item>
<u-form-item :label="'请确认密码'" <u-form-item
prop="payPassword" :label="'请确认密码'"
style="display: flex;"> prop="payPassword"
<u-input v-model="loginObj.payPassword" style="display: flex"
class="border-color" >
:password="true" <u-input
:placeholder="'请确认密码'" v-model="loginObj.payPassword"
placeholder-class="place-class" /> class="border-color"
:password="true"
:placeholder="'请确认密码'"
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"
:placeholder="'请输入验证码'" style="width: auto;"
placeholder-class="place-class" /> :placeholder="'请输入验证码'"
placeholder-class="place-class"
<!-- <view class="yzm" @click="submit"> />
{{getCodeText}} <button :disabled="disabled" class="yzm" @click.stop="getCode()">
</view> --> {{ getCodeText }}
<button :disabled="disabled" </button>
class="yzm" </view>
@click.stop="getCode()">
{{getCodeText}}
</button>
</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,27 +111,16 @@ 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,
icon: 'none', icon: 'none',
success() { success() {
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()
}, 2000) }, 2000)
}, },
}) })
@ -147,7 +129,7 @@ export default {
icon: 'none', icon: 'none',
title: res.msg, title: res.msg,
}) })
clearInterval(this.time) clearInterval(this.time)
this.setTimer(0) this.setTimer(0)
} }
}) })
@ -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
@ -189,11 +174,10 @@ export default {
this.getCodeText = '获取验证码' this.getCodeText = '获取验证码'
clearInterval(this.time) // clearInterval(this.time) //
return // return //
}else{ } else {
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;
@ -252,4 +241,4 @@ page {
margin: 40rpx auto; margin: 40rpx auto;
width: 690rpx; width: 690rpx;
} }
</style> </style>

View File

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

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,