调整提交数据

This commit is contained in:
唐明明
2024-03-13 17:01:47 +08:00
parent 604ace7e7a
commit ec92096f2b
2 changed files with 10 additions and 9 deletions

View File

@@ -164,9 +164,6 @@ const amountType = (bigFive) => {
// 办理业务
const bigfiveStore = data => {
console.log(data)
return request({
url : "bigfive/order/store",
method : "POST",

View File

@@ -69,7 +69,7 @@
this.needAmount = parentData.need_amount
this.pickerArr = parentData.child.data
this.pickertype = parentData.type
this.selectP = parentData.select_p
this.selectP = parentData.select_p || []
},
methods: {
// 获取标的额
@@ -121,7 +121,10 @@
let { type, need_amount, select_p } = res;
this.pickertype = type
this.needAmount = need_amount
this.selectP = select_p
console.log(select_p)
this.selectP = select_p || []
if(type == 'select'){
this.settleInfo()
}
@@ -172,16 +175,17 @@
uni.showLoading({
title: "提交中...",
mask : true
})
})
let params = {
big_id : pickerArr.length > 0 ? pickerArr[pickerIndex].id : this.$Route.query.bigFiveId,
name : name,
amount : amount,
mobile : phone,
price : pickertype == 'free' ? priceValue : price,
select_key : selectP[selectPIndex].key
}
select_key : selectP.length > 0 ? selectP[selectPIndex].key : ''
}
bigfiveStore(params).then(res => {
let { order_type, order_id, order_no } = res;
this.$Router.replace({