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

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

View File

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