fix
This commit is contained in:
@@ -5,12 +5,14 @@ import MerchantInfo from "./merchant-info.vue";
|
|||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import scListNull from '@/views/shoppingCart/sc-list-null.vue'
|
import scListNull from '@/views/shoppingCart/sc-list-null.vue'
|
||||||
import { getListingMallListApi } from '@/api/listing'
|
import { getListingMallListApi } from '@/api/listing'
|
||||||
import { get } from "http";
|
|
||||||
|
|
||||||
// 定义组件名称
|
// 定义组件名称
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'digitalItem'
|
name: 'digitalItem'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const categories = ref([''])
|
||||||
|
const gender = ref([''])
|
||||||
//const props = defineProps({
|
//const props = defineProps({
|
||||||
//})
|
//})
|
||||||
//const emit = defineEmits([
|
//const emit = defineEmits([
|
||||||
@@ -19,7 +21,7 @@ const digitalItemRef = ref(null)
|
|||||||
const scrollTop = ref(0)
|
const scrollTop = ref(0)
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
const categoriesList = ref([
|
const searechTypeList = ref([
|
||||||
{
|
{
|
||||||
value:'Best Selling',
|
value:'Best Selling',
|
||||||
label:'Best Selling'
|
label:'Best Selling'
|
||||||
@@ -31,7 +33,7 @@ const categoriesList = ref([
|
|||||||
label:'Newest First'
|
label:'Newest First'
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
const categories = ref('Newest First')
|
const searechType = ref('Newest First')
|
||||||
const addShopping = (item) => {}
|
const addShopping = (item) => {}
|
||||||
const openDetail = (item) => {
|
const openDetail = (item) => {
|
||||||
scrollTop.value = digitalItemRef.value.scrollTop
|
scrollTop.value = digitalItemRef.value.scrollTop
|
||||||
@@ -46,9 +48,9 @@ const getListingMallList = ()=>{
|
|||||||
let data = {
|
let data = {
|
||||||
// designFor
|
// designFor
|
||||||
}
|
}
|
||||||
getListingMallListApi().then(res => {
|
// getListingMallListApi().then(res => {
|
||||||
|
|
||||||
})
|
// })
|
||||||
}
|
}
|
||||||
onActivated(()=>{
|
onActivated(()=>{
|
||||||
digitalItemRef.value.scrollTop = scrollTop.value
|
digitalItemRef.value.scrollTop = scrollTop.value
|
||||||
|
|||||||
Reference in New Issue
Block a user