应用资源详情页-应用详情

This commit is contained in:
851673013@qq.com 2022-07-18 13:53:01 +08:00
parent 71a8a3ef59
commit 1dce78dc92
2 changed files with 32 additions and 33 deletions

View File

@ -48,15 +48,12 @@
password2: '',
})
if (props.dataList.infoList) {
// let obj = props.dataList.infoList.filter(
// (item) => item.attrType === '' && item.attrValue === ''
// )[0]
// if (obj) {
// flag.value = false
// } else {
let obj = props.dataList.applyState
if (obj !== '已申请') {
flag.value = false
} else {
props.dataList.infoList.map((item) => {
if (item.attrType == '访问地址') {
debugger
dataFrom.value.link = item.attrValue
} else if (item.attrType == '试用用户名') {
dataFrom.value.number = item.attrValue
@ -64,7 +61,7 @@
dataFrom.value.password2 = item.attrValue
}
})
// }
}
}
const clickLink = (link) => {
window.open(link)
@ -95,12 +92,10 @@
() => props.dataList,
(val) => {
if (val) {
// let obj = val.infoList.filter(
// (item) => item.attrType === '' && item.attrValue === ''
// )[0]
// if (!obj) {
// flag.value = false
// } else {
let obj = props.dataList.applyState
if (obj !== '已申请') {
flag.value = false
} else {
props.dataList.infoList.map((item) => {
if (item.attrType == '访问地址') {
dataFrom.value.link = item.attrValue
@ -110,7 +105,7 @@
dataFrom.value.password2 = item.attrValue
}
})
// }
}
}
}
)

View File

@ -100,6 +100,8 @@
list.value.push(item.attrType)
} else if (item.attrType === '应用展示视频') {
list.value.push('应用展示')
} else if (item.attrType === '访问地址') {
list.value.push('应用详情')
}
})
list.value.unshift('关联组件')
@ -141,6 +143,8 @@
list.value.push(item.attrType)
} else if (item.attrType === '应用展示视频') {
list.value.push('应用展示')
} else if (item.attrType === '访问地址') {
list.value.push('应用详情')
}
})
list.value.unshift('关联组件')