forked from natuka/web.puabadge.com
白色边框切换
This commit is contained in:
1 parent
1115abecce
commit
37aded4333
1 file changed
+6
-2
@@ -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) => {
|
||||
// }
|
||||
|
||||
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) => {
|
||||
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) {
|
||||
|
||||
Reference in new issue
Block a user