白色边框切换

This commit is contained in:
Linzm committed 2025-08-17 16:58:37 +08:00
1 parent 1115abecce
commit 37aded4333
1 file changed
+6 -2
+6 -2
View File
@@ -234,8 +234,9 @@ function sureReload() {
const imgKey = ref(101) const imgKey = ref(101)
const frameUrl = ref('') const frameUrl = ref('')
const changeImage = (item: any) => { const changeImage = (item: any) => {
console.log('changeImage', item)
imgKey.value = item.key imgKey.value = item.key
imageUrl.value = item.origin_url imageUrl.value = shapeId.value == 17 || shapeId.value == 18 ? item.frame_url : item.origin_url
frameUrl.value = item.frame_url frameUrl.value = item.frame_url
imageWater.value = item.url imageWater.value = item.url
} }
@@ -732,6 +733,7 @@ const calculateByteLength = (str: string) => {
// } // }
const shapeChange = (item: any) => { const shapeChange = (item: any) => {
console.log('shapeChange', item)
sizeList.value.map((item: any) => { sizeList.value.map((item: any) => {
if (item.shape_id !== item.id) { if (item.shape_id !== item.id) {
item.count = 0 item.count = 0
@@ -743,7 +745,9 @@ const shapeChange = (item: any) => {
custom_switch.value = item.custom_switch custom_switch.value = item.custom_switch
limitCount.value = item.text_limit_max limitCount.value = item.text_limit_max
if (typeId.value == 3) { if (typeId.value == 3) {
imageUrl.value = item.name == '无边框' ? originUrl.value : frameUrl.value imageUrl.value = item.id == 15 || item.id == 16 ? originUrl.value : frameUrl.value
} else {
imageUrl.value = item.origin_url
} }
ImageShow(item) ImageShow(item)
if (custom_switch.value == 1) { if (custom_switch.value == 1) {