|
@@ -89,7 +89,7 @@ export default {
|
|
|
applyStatus: []
|
|
|
}, //页面数据
|
|
|
radioInfo: '',
|
|
|
- goodsIdBK:null,//补考商品ID
|
|
|
+ goodsIdBK: null //补考商品ID
|
|
|
};
|
|
|
},
|
|
|
onLoad(option) {
|
|
@@ -136,22 +136,26 @@ export default {
|
|
|
applyId: this.listData.applyId,
|
|
|
applyStatus: this.radioInfo,
|
|
|
goodsId: this.goodsId,
|
|
|
- dataId:res.data.data
|
|
|
+ dataId: res.data.data
|
|
|
});
|
|
|
}
|
|
|
if (res.data.data === 3) {
|
|
|
- this.$api.goodsList({makeGoodsId:this.goodsId}).then(res => {
|
|
|
- if(res.data.code === 200 && res.data.rows.length){
|
|
|
- this.goodsIdBK = res.data.rows[0].goodsId
|
|
|
+ this.$api.goodsList({ makeGoodsId: this.goodsId }).then(res => {
|
|
|
+ if (res.data.code === 200 && res.data.rows.length) {
|
|
|
+ this.goodsIdBK = res.data.rows[0].goodsId;
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
this.showTip = true;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
submit() {
|
|
|
- console.log(this.goodsId,this.goodsIdBK)
|
|
|
+ this.showTip = false;
|
|
|
+ this.$navTo.togo('/pages2/order/confirm_list', {
|
|
|
+ id: this.goodsIdBK,
|
|
|
+ isBK:'1'
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|