修复已知问题
This commit is contained in:
@@ -84,12 +84,13 @@
|
||||
const getData = async productId => {
|
||||
const res = await getProductDetail(productId)
|
||||
viewData.value = res.data
|
||||
|
||||
const {
|
||||
id,
|
||||
price,
|
||||
stockQuantity,
|
||||
originalPrice: nub
|
||||
} = res.data.skuList.find(v => v.isDefault == 1)
|
||||
} = res.data.skuList[0]
|
||||
originalPrice.value = nub
|
||||
formData.maxNum = stockQuantity
|
||||
formData.spec = id
|
||||
@@ -142,7 +143,7 @@
|
||||
const res = await addOrder(data)
|
||||
await refreshUserInfo()
|
||||
await showToast('订单提交成功', 'success')
|
||||
navigateBack()
|
||||
navigateTo('/pages/shop-together/detail', { id: res.data.groupId })
|
||||
}
|
||||
|
||||
onShow(() => {
|
||||
|
||||
Reference in New Issue
Block a user