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: '选择商品',
SelectSketch: '选择线稿图',
EditListingDetails: '编辑商品详情',
VideoWarning: '首次选中的图片素材会作为产品主图,视频不可作为产品主图'
VideoWarning: '首次选中的图片素材会作为产品主图,视频不可作为产品主图',
selectSketchMaxNum: '最多选择9个线稿图',
},
ApplySeller: {
applySellerTitle: '申请成为卖家',

View File

@@ -1910,7 +1910,8 @@ export default {
SelectCollection: 'Select Collection',
SelectSketch: 'Select Sketch',
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: {
applySellerTitle: 'Apply to Become a Seller',

View File

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