diff --git a/apis/interfaces/index.js b/apis/interfaces/index.js index 8ae4a47..235d4a8 100644 --- a/apis/interfaces/index.js +++ b/apis/interfaces/index.js @@ -164,9 +164,6 @@ const amountType = (bigFive) => { // 办理业务 const bigfiveStore = data => { - - console.log(data) - return request({ url : "bigfive/order/store", method : "POST", diff --git a/pages/business/handle.vue b/pages/business/handle.vue index 814649b..279438b 100644 --- a/pages/business/handle.vue +++ b/pages/business/handle.vue @@ -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({