选择线稿图后下一步

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

@@ -5,24 +5,28 @@ import sellerContent from "./content.vue"
import myEvent from "@/tool/myEvents.js"
import { Https } from '@/tool/https'
import { useStore } from "vuex";
import { useRouter } from 'vue-router'
//const props = defineProps({
//})
//const emit = defineEmits([
//])
const router = useRouter()
const store = useStore()
let data = reactive({
listingPopup: true,
})
const newListing = ()=>{
myEvent.emit('newListing',)
}
const getListingPopup = ()=>{
const newListing = async ()=>{
let path = '/home/seller/myListings/select'
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)
data.listingPopup = res.data
}).catch(()=>{
store.commit("set_loading", false)
})