This commit is contained in:
X1627315083@163.com
2026-05-13 16:36:23 +08:00
parent 848e7b4692
commit 5eaa77596e
3 changed files with 12 additions and 5 deletions

View File

@@ -1856,7 +1856,8 @@ export default {
SelectCollection: '选择商品', SelectCollection: '选择商品',
SelectSketch: '选择线稿图', SelectSketch: '选择线稿图',
EditListingDetails: '编辑商品详情', EditListingDetails: '编辑商品详情',
VideoWarning: '首次选中的图片素材会作为产品主图,视频不可作为产品主图' VideoWarning: '首次选中的图片素材会作为产品主图,视频不可作为产品主图',
selectSketchMaxNum: '最多选择9个线稿图',
}, },
ApplySeller: { ApplySeller: {
applySellerTitle: '申请成为卖家', applySellerTitle: '申请成为卖家',

View File

@@ -1910,7 +1910,8 @@ export default {
SelectCollection: 'Select Collection', SelectCollection: 'Select Collection',
SelectSketch: 'Select Sketch', SelectSketch: 'Select Sketch',
EditListingDetails: 'Edit Listing Details', EditListingDetails: 'Edit Listing Details',
VideoWarning:'The first selected item is the main product image. Videos cannot be used.' VideoWarning:'The first selected item is the main product image. Videos cannot be used.',
selectSketchMaxNum: 'Select up to 9 sketches',
}, },
ApplySeller: { ApplySeller: {
applySellerTitle: 'Apply to Become a Seller', applySellerTitle: 'Apply to Become a Seller',

View File

@@ -7,6 +7,7 @@ import { Https } from '@/tool/https'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { useStore } from 'vuex' import { useStore } from 'vuex'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import { message } from 'ant-design-vue';
// 定义组件名称 // 定义组件名称
defineOptions({ defineOptions({
@@ -45,6 +46,10 @@ const chooseItem = (item:any)=>{
if(chooseList.value.findIndex((i:any)=>i.designItemId == item.designItemId) != -1){ if(chooseList.value.findIndex((i:any)=>i.designItemId == item.designItemId) != -1){
chooseList.value.splice(chooseList.value.findIndex((i:any)=>i.designItemId == item.designItemId),1) chooseList.value.splice(chooseList.value.findIndex((i:any)=>i.designItemId == item.designItemId),1)
}else{ }else{
if(chooseList.value.length >= 9){
message.info(t('Seller.selectSketchMaxNum'))
return
}
chooseList.value.push(item) chooseList.value.push(item)
} }
} }
@@ -163,7 +168,7 @@ const {} = toRefs(data);
<template #right> <template #right>
<div class="header-right"> <div class="header-right">
<div class="chooseNum"> <div class="chooseNum">
{{ chooseList.length }} {{ t('Seller.sketchesSelected') }} {{ chooseList.length }} / 9 {{ t('Seller.sketchesSelected') }}
</div> </div>
<div class="button" @click="next"> <div class="button" @click="next">
<span>{{ $t('Seller.Next') }}</span> <span>{{ $t('Seller.Next') }}</span>