|
@@ -27,7 +27,7 @@ const router = useRouter()
|
|
|
const { userInfo } = storeToRefs(userStore)
|
|
|
const id = ref()
|
|
|
const show = ref(false)
|
|
|
-const a = ref(1)
|
|
|
+const nums = ref(1)
|
|
|
const type = ref<'add2Cart' | 'orderNow'>()
|
|
|
const { data, run: setData } = useRequest(() => getProduct(id.value))
|
|
|
|
|
@@ -41,7 +41,7 @@ const handleConfirm = async () => {
|
|
|
{
|
|
|
productId: id.value,
|
|
|
points: data.value.points,
|
|
|
- nums: 1,
|
|
|
+ nums: nums.value,
|
|
|
productName: data.value.prodcutName,
|
|
|
orderImgUrl: data.value.productCoverImgUrl,
|
|
|
vendorId: data.value.vendorId,
|
|
@@ -62,7 +62,7 @@ const handleConfirm = async () => {
|
|
|
userId: userInfo.value.userId,
|
|
|
productId: data.value?.productId || '',
|
|
|
points: data.value?.points,
|
|
|
- nums: 1,
|
|
|
+ nums: nums.value,
|
|
|
},
|
|
|
],
|
|
|
}),
|
|
@@ -188,6 +188,7 @@ onLoad(async (query: { id: string }) => {
|
|
|
</div>
|
|
|
<div class="flex-1"></div>
|
|
|
<!-- <wd-input-number v-model="a" /> -->
|
|
|
+ <wd-input-number v-model="nums" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|