|
|
@ -9,8 +9,7 @@ |
|
|
|
<text class="name">{{ addressData.name }}</text> |
|
|
|
<text class="mobile">{{ addressData.phoneNumber }}</text> |
|
|
|
</view> |
|
|
|
<text |
|
|
|
class="address">{{ addressData.region }}-{{ addressData.detailAddress }}</text> |
|
|
|
<text class="address">{{ addressData.region }}-{{ addressData.detailAddress }}</text> |
|
|
|
</view> |
|
|
|
<view class="cen" v-else> |
|
|
|
<text>请设置收货地址</text> |
|
|
@ -110,7 +109,7 @@ |
|
|
|
<view class="price-content"> |
|
|
|
<text>实付款</text> |
|
|
|
<text class="price-tip">¥</text> |
|
|
|
<text class="price">{{ calcAmount.payAmount-coupon.amount }}</text> |
|
|
|
<text class="price">{{ (calcAmount.payAmount-coupon.amount) | numFilter}}</text> |
|
|
|
</view> |
|
|
|
<text class="submit" @click="submit">提交订单</text> |
|
|
|
</view> |
|
|
@ -223,6 +222,7 @@ |
|
|
|
|
|
|
|
this.groupId = option.groupId; |
|
|
|
if (this.skuId) { |
|
|
|
console.log(option) |
|
|
|
let params = { |
|
|
|
orderType: 2, |
|
|
|
groupId: option.groupId, |
|
|
@ -230,6 +230,7 @@ |
|
|
|
skuId: this.skuId |
|
|
|
}; |
|
|
|
data = await Api.apiCall('post', Api.order.addGroup, params); |
|
|
|
console.log("url1", Api.order.addGroup) |
|
|
|
} else { |
|
|
|
let params = { |
|
|
|
orderType: 2, |
|
|
@ -237,6 +238,7 @@ |
|
|
|
goodsId: option.id |
|
|
|
}; |
|
|
|
data = await Api.apiCall('post', Api.order.addGroup, params); |
|
|
|
console.log("url2", Api.order.addGroup) |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (option.type == 1) { // 详情 |
|
|
@ -247,6 +249,7 @@ |
|
|
|
type: option.type |
|
|
|
}; |
|
|
|
data = await Api.apiCall('get', Api.order.preOrder, params); |
|
|
|
console.log("url3", Api.order.preOrder) |
|
|
|
} else if (option.type == 2) { // 购物车 |
|
|
|
let params = { |
|
|
|
cartIds: option.cartIds, |
|
|
@ -254,6 +257,7 @@ |
|
|
|
}; |
|
|
|
data = await Api.apiCall('get', Api.order.preOrder, params); |
|
|
|
this.cartIds = option.cartIds; |
|
|
|
console.log("url4", Api.order.preOrder) |
|
|
|
} else if (option.type == 6) { // 秒杀 |
|
|
|
let params = { |
|
|
|
skillId: option.skillId, |
|
|
@ -261,6 +265,7 @@ |
|
|
|
}; |
|
|
|
data = await Api.apiCall('get', Api.order.preOrder, params); |
|
|
|
this.skillId = option.skillId; |
|
|
|
console.log("url5", Api.order.preOrder) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -271,7 +276,7 @@ |
|
|
|
}); |
|
|
|
} */ |
|
|
|
/* this.memberIntegration=data.memberIntegration; */ |
|
|
|
/* this.basicGiftsList = data.basicGiftsList; */ |
|
|
|
this.basicGiftsList = data.basicGiftsList; |
|
|
|
|
|
|
|
if (this.basicGiftsList) { |
|
|
|
let basicGiftsVar = ''; |
|
|
@ -309,6 +314,11 @@ |
|
|
|
let date = new Date(time); |
|
|
|
return formatDate(date, 'yyyy-MM-dd hh:mm:ss') |
|
|
|
}, |
|
|
|
numFilter(value) { |
|
|
|
// 截取当前数据到小数点后两位 |
|
|
|
let realVal = parseFloat(value).toFixed(2) |
|
|
|
return realVal |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getSource() { |
|
|
|