|
@@ -351,9 +351,18 @@ export default {
|
|
|
|
|
|
this.runing = true
|
|
|
|
|
|
- let data = await this.$api.request('/order/createIntegral','POST',{
|
|
|
- id,
|
|
|
- addressId
|
|
|
+ let data = await this.$api.request('/order/submitIntegral','POST',{
|
|
|
+ city_id: this.addressData.city.id,
|
|
|
+ address_id: this.addressData.id,
|
|
|
+ delivery_id: this.info.delivery_id,
|
|
|
+ coupon_id: 0,
|
|
|
+ remark: '积分换购',
|
|
|
+ product_id: this.info.product_id,
|
|
|
+ spec: this.info.spec,
|
|
|
+ number: 1,
|
|
|
+ cart: '',
|
|
|
+ flash_id: 0,
|
|
|
+ score: this.info.sales_price
|
|
|
});
|
|
|
|
|
|
|