Browse Source

Signed-off-by: xiezongxing <xx123456>

xiezongxing 2 years ago
parent
commit
ddd0f2f3b4
1 changed files with 12 additions and 3 deletions
  1. 12 3
      pages/intergalShop/confirm.vue

+ 12 - 3
pages/intergalShop/confirm.vue

@@ -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
 		   });