Browse Source

白色边框切换

lzm_web
Linzm 6 months ago
parent
commit
37aded4333
  1. 8
      src/views/badge/preview.vue

8
src/views/badge/preview.vue

@ -234,8 +234,9 @@ function sureReload() { @@ -234,8 +234,9 @@ function sureReload() {
const imgKey = ref(101)
const frameUrl = ref('')
const changeImage = (item: any) => {
console.log('changeImage', item)
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
imageWater.value = item.url
}
@ -732,6 +733,7 @@ const calculateByteLength = (str: string) => { @@ -732,6 +733,7 @@ const calculateByteLength = (str: string) => {
// }
const shapeChange = (item: any) => {
console.log('shapeChange', item)
sizeList.value.map((item: any) => {
if (item.shape_id !== item.id) {
item.count = 0
@ -743,7 +745,9 @@ const shapeChange = (item: any) => { @@ -743,7 +745,9 @@ const shapeChange = (item: any) => {
custom_switch.value = item.custom_switch
limitCount.value = item.text_limit_max
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)
if (custom_switch.value == 1) {

Loading…
Cancel
Save