|
@@ -129,7 +129,7 @@
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import Api from '@/api/api'
|
|
import Api from '@/api/api'
|
|
|
- import { ShoppingCartOutlined,LeftOutlined ,ExclamationCircleOutlined} from '@ant-design/icons-vue'
|
|
|
|
|
|
|
+ import { ShoppingCartOutlined,LeftOutlined ,ExclamationCircleOutlined,StarOutlined,StarFilled,FireOutlined} from '@ant-design/icons-vue'
|
|
|
import { message,Modal } from 'ant-design-vue';
|
|
import { message,Modal } from 'ant-design-vue';
|
|
|
import {ref,onMounted,createVNode} from 'vue'
|
|
import {ref,onMounted,createVNode} from 'vue'
|
|
|
import { useRouter } from "vue-router"
|
|
import { useRouter } from "vue-router"
|
|
@@ -323,6 +323,28 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ const onCollection = (data)=>{
|
|
|
|
|
+ let collection = async (bool)=>{
|
|
|
|
|
+ const res = await Api.requested({
|
|
|
|
|
+ "id": 20231121143403,
|
|
|
|
|
+ "version":1,
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "itemid":data.itemid,
|
|
|
|
|
+ "iscollection":bool
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ if (data.iscollection == 0) {
|
|
|
|
|
+ group.value.item[0].iscollection = 1
|
|
|
|
|
+ collection(true)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ group.value.item[0].iscollection = 0
|
|
|
|
|
+ collection(false)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ const linkToPromotion = (item)=>{
|
|
|
|
|
+ router.push({path:'/promotionDetail',query:{id:item.sa_promotionid}})
|
|
|
|
|
+ }
|
|
|
onMounted(()=>{
|
|
onMounted(()=>{
|
|
|
groupDetail(true)
|
|
groupDetail(true)
|
|
|
})
|
|
})
|