选择线稿图后下一步

This commit is contained in:
X1627315083@163.com
2026-04-27 11:07:51 +08:00
parent bd603e1bf9
commit 6d41e8cc34
6 changed files with 48 additions and 19 deletions

View File

@@ -3,6 +3,7 @@ import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue";
import { Https } from '@/tool/https' import { Https } from '@/tool/https'
import { setPubDate } from "@/tool/util"; import { setPubDate } from "@/tool/util";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import { useStore } from "vuex";
const props = defineProps({ const props = defineProps({
getCollectionListData: { getCollectionListData: {
@@ -14,6 +15,7 @@ const emit = defineEmits([
'selectCollectionItem', 'selectCollectionItem',
]) ])
const {t} = useI18n() const {t} = useI18n()
const store = useStore()
const page = ref(1) const page = ref(1)
const size = ref(6) const size = ref(6)
const total = ref(0) const total = ref(0)
@@ -29,9 +31,13 @@ const getListData = ()=>{
} }
const getCreateList = ()=>{ const getCreateList = ()=>{
let data = getListData() let data = getListData()
store.commit("set_loading", true)
Https.axiosPost(Https.httpUrls.historyProject, data).then((rv)=>{ Https.axiosPost(Https.httpUrls.historyProject, data).then((rv)=>{
list.value = rv.content || [] list.value = rv.content || []
total.value = rv.total || 0 total.value = rv.total || 0
store.commit("set_loading", false)
}).catch(()=>{
store.commit("set_loading", false)
}) })
} }
const selectCollectionItem = (item:any)=>{ const selectCollectionItem = (item:any)=>{

View File

@@ -11,8 +11,8 @@ import { useRouter } from "vue-router"
//]) //])
const router = useRouter() const router = useRouter()
let getCollectionListData = reactive({ let getCollectionListData = reactive({
searchType: '', process: [],
searchText: '', projectName: '',
}) })
const isShowMark = ref(false) const isShowMark = ref(false)
@@ -20,8 +20,12 @@ const historyListRef = ref(null) as any
const handleSearch = () => { const handleSearch = () => {
historyListRef.value.getCreateList() historyListRef.value.getCreateList()
} }
const setSearchType = (type:any) => { const setProcess = (type:any) => {
getCollectionListData.searchType = type if(type){
getCollectionListData.process = [type]
}else{
getCollectionListData.process = []
}
historyListRef.value.getCreateList() historyListRef.value.getCreateList()
} }
const selectCollectionItem = (item:any) => { const selectCollectionItem = (item:any) => {
@@ -47,15 +51,15 @@ defineExpose({})
<div class="content"> <div class="content">
<div class="title"> <div class="title">
<div class="left"> <div class="left">
<div :class="{active:getCollectionListData.searchType == ''}" @click="setSearchType('')">All</div> <div :class="{active:!getCollectionListData.process?.[0]}" @click="setProcess('')">All</div>
<div :class="{active:getCollectionListData.searchType == 'SERIES_DESIGN'}" @click="setSearchType('SERIES_DESIGN')">Series Design</div> <div :class="{active:getCollectionListData.process[0] == 'SERIES_DESIGN'}" @click="setProcess('SERIES_DESIGN')">Series Design</div>
<div :class="{active:getCollectionListData.searchType == 'SINGLE_DESIGN'}" @click="setSearchType('SINGLE_DESIGN')">Single Design</div> <div :class="{active:getCollectionListData.process[0] == 'SINGLE_DESIGN'}" @click="setProcess('SINGLE_DESIGN')">Single Design</div>
</div> </div>
<div class="right"> <div class="right">
<div class="search_input flex flex-align-center"> <div class="search_input flex flex-align-center">
<input <input
class="search_input_inner" class="search_input_inner"
v-model="getCollectionListData.searchText" v-model="getCollectionListData.projectName"
:bordered="false" :bordered="false"
@keydown.enter="handleSearch" @keydown.enter="handleSearch"
placeholder="123123" placeholder="123123"

View File

@@ -30,6 +30,7 @@ const domSizeList = ref([
value:'Large', value:'Large',
}, },
]) ])
const router = useRouter()
const list = ref([ const list = ref([
]) ])
const showList = ref([]) const showList = ref([])
@@ -40,6 +41,14 @@ const chooseItem = (item:any)=>{
const next = ()=>{ const next = ()=>{
if(chooseList.value.length == 0)return if(chooseList.value.length == 0)return
let designItemIds = chooseList.value.map((item:any)=>({designOutfitUrl:item.designOutfitUrl,designItemId:item.id}))
router.push({
path:'/home/seller/myListings/edit',
state: {
id:route.params.collectionId,
designItemIds,
}
})
} }
const config = ref({ const config = ref({

View File

@@ -5,24 +5,28 @@ import sellerContent from "./content.vue"
import myEvent from "@/tool/myEvents.js" import myEvent from "@/tool/myEvents.js"
import { Https } from '@/tool/https' import { Https } from '@/tool/https'
import { useStore } from "vuex"; import { useStore } from "vuex";
import { useRouter } from 'vue-router'
//const props = defineProps({ //const props = defineProps({
//}) //})
//const emit = defineEmits([ //const emit = defineEmits([
//]) //])
const router = useRouter()
const store = useStore() const store = useStore()
let data = reactive({ let data = reactive({
listingPopup: true,
}) })
const newListing = ()=>{ const newListing = async ()=>{
myEvent.emit('newListing',) let path = '/home/seller/myListings/select'
}
const getListingPopup = ()=>{
store.commit("set_loading", true) store.commit("set_loading", true)
Https.getListingPopup().then(res=>{ //1弹窗 0不弹窗
Https.axiosGet(Https.httpUrls.getListingPopup,).then((rv)=>{
if(rv == 0){
router.push({path:'/home/seller/myListings/select'})
}else{
myEvent.emit('newListing',path)
}
store.commit("set_loading", false) store.commit("set_loading", false)
data.listingPopup = res.data
}).catch(()=>{ }).catch(()=>{
store.commit("set_loading", false) store.commit("set_loading", false)
}) })

View File

@@ -13,7 +13,7 @@
</div> </div>
<router-view></router-view> <router-view></router-view>
<toolTipBox v-model:visible="visible" @close="() => {}"></toolTipBox> <toolTipBox v-model:visible="visible" @close="() => {}" ref="toolTipBoxRef"></toolTipBox>
</div> </div>
</template> </template>
@@ -48,13 +48,15 @@
path: "/home/seller/settings" path: "/home/seller/settings"
} }
]) ])
const toolTipBoxRef = ref(null)
const activePath = computed(() => route.path) const activePath = computed(() => route.path)
const handleClick = (path) => { const handleClick = (path) => {
if (path === activePath.value) return if (path === activePath.value) return
router.push(path) router.push(path)
} }
onMounted(()=>{ onMounted(()=>{
myEvent.add('newListing',()=>{ myEvent.add('newListing',(path)=>{
toolTipBoxRef.value.routerPath = path
visible.value = true visible.value = true
}) })
}) })

View File

@@ -5,6 +5,7 @@ import sellerToolTipImg2 from '@/assets/images/seller/sellerToolTip-2.png'
import sellerToolTipImg3 from '@/assets/images/seller/sellerToolTip-3.png' import sellerToolTipImg3 from '@/assets/images/seller/sellerToolTip-3.png'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { Https } from '@/tool/https'
const props = defineProps({ const props = defineProps({
visible: { visible: {
type: Boolean, type: Boolean,
@@ -38,6 +39,8 @@ let data = reactive({
showAgain: false, showAgain: false,
}) })
let toolTipBoxRef = ref(null) let toolTipBoxRef = ref(null)
const routerPath = ref('')
const cleardata = ()=>{ const cleardata = ()=>{
emit('update:visible', false) emit('update:visible', false)
@@ -45,8 +48,9 @@ const cleardata = ()=>{
} }
const getStarted = ()=>{ const getStarted = ()=>{
if(data.showAgain){Https.axiosPost(Https.httpUrls.setListingPopup)}
emit('update:visible', false) emit('update:visible', false)
router.push({path:'/home/seller/myListings/select'}) router.push({path:routerPath.value})
} }
@@ -54,7 +58,7 @@ onMounted(()=>{
}) })
onUnmounted(()=>{ onUnmounted(()=>{
}) })
defineExpose({}) defineExpose({routerPath})
const { showAgain } = toRefs(data); const { showAgain } = toRefs(data);
</script> </script>
<template> <template>