This commit is contained in:
X1627315083@163.com
2026-04-23 14:30:09 +08:00
parent 45298e5f23
commit 66b019eb2a
6 changed files with 57 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue";
import { useRouter } from "vue-router";
import img from "@/assets/images/collectionStory/Rectangle.png";
import scList from '@/views/shoppingCart/sc-list.vue'
import myEvent from '@/utils/myEvent'
//const props = defineProps({
@@ -12,9 +12,8 @@ import scList from '@/views/shoppingCart/sc-list.vue'
const router = useRouter()
let data = reactive({
})
const isShoppingShow = ref(false)
const addShopping = (item) => {
isShoppingShow.value = true
myEvent.emit('addShopping', item)
}
onMounted(()=>{
})
@@ -100,9 +99,6 @@ const {} = toRefs(data);
</div>
</div>
<Footer></Footer>
<el-drawer v-model="isShoppingShow" width="50rem" :close-on-click-modal="false" title="I am the title" :with-header="false">
<sc-list is-mini style="flex: 0.6;" @close="isShoppingShow = false"/>
</el-drawer>
</div>
</template>
<style lang="less" scoped>