|
|
@@ -1,11 +1,15 @@ |
|
|
|
<template> |
|
|
|
<div class="card_body intro-x" @change="isCard == true?isCard = true :''"> |
|
|
|
<div |
|
|
|
class="card_body intro-x" |
|
|
|
@change="isCard == true ? (isCard = true) : ''" |
|
|
|
v-if="CardData" |
|
|
|
> |
|
|
|
<div class="card_header"> |
|
|
|
<div class="img-box"> |
|
|
|
<div class="LeftPng"> |
|
|
|
<img src="@/assets/images/niao.png" alt="" /> |
|
|
|
</div> |
|
|
|
<span> 智莺生活</span> |
|
|
|
<span>{{ CardData.app_name }}</span> |
|
|
|
</div> |
|
|
|
<div class="cardRihgt"> |
|
|
|
<div class="icon-box" @click="setCard"> |
|
|
@@ -13,63 +17,91 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="cardRight2"> |
|
|
|
<img :src="CardData.img" alt="" /> |
|
|
|
<span>11个模块</span> |
|
|
|
<img :src="CardDataImg" alt="" /> |
|
|
|
<span>{{ CardData.module_count }}个模块</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="cardListText"> |
|
|
|
<ul> |
|
|
|
<li> |
|
|
|
<span class="leftText">版本信息</span> |
|
|
|
<span class="rightText">授信版本</span> |
|
|
|
<span class="rightText">{{ CardData.name }} </span> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<span class="leftText">APPKEY</span> |
|
|
|
<span class="rightText">21524564545</span> |
|
|
|
<span class="leftText">APPID</span> |
|
|
|
<span class="rightText">{{ CardData.id }}</span> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<span class="leftText">到期时间</span> |
|
|
|
<span class="rightText">2021-01-10</span> |
|
|
|
<span class="rightText">{{ CardData.expire }}</span> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
<div class="cardButtom">查看详情</div> |
|
|
|
|
|
|
|
<div class="Card-box -intro-x" v-if="isCard"> |
|
|
|
<div class="card-item cardClass" @click="getCardIiem('停用此软件')">停用此软件</div> |
|
|
|
<div class="card-item cardClass" @click="getCardIiem('前往后台设置')" >前往后台设置</div> |
|
|
|
<div class="card-item" style="color:#FF4242" @click="getCardIiem('删除此软件')">删除此软件</div> |
|
|
|
<div class="card-item cardClass" @click="getCardIiem('停用此软件')"> |
|
|
|
停用此软件 |
|
|
|
</div> |
|
|
|
<div class="card-item cardClass" @click="getCardIiem('前往后台设置')"> |
|
|
|
前往后台设置 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="card-item" |
|
|
|
style="color: #ff4242" |
|
|
|
@click="getCardIiem('删除此软件')" |
|
|
|
> |
|
|
|
删除此软件 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
export default { |
|
|
|
props: ["CardData"], |
|
|
|
computed: { |
|
|
|
CardDataImg: function () { |
|
|
|
|
|
|
|
var url = null; |
|
|
|
|
|
|
|
// if (this.CardData.platform === "ios") { |
|
|
|
// url = require("../assets/images/ios.png"); |
|
|
|
// } |
|
|
|
// if (this.CardData.platform === "android") { |
|
|
|
// url = require("../assets/images/anzhuo.png"); |
|
|
|
// } |
|
|
|
// if (this.CardData.platform === "web") { |
|
|
|
// url = require("../assets/images/h5.png"); |
|
|
|
// } |
|
|
|
|
|
|
|
// if (this.CardData.platform === "applet") { |
|
|
|
// url = require("../assets/images/xiaochengxu.png"); |
|
|
|
// } |
|
|
|
|
|
|
|
return url; |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
isCard: false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted(){ |
|
|
|
|
|
|
|
}, |
|
|
|
mounted() {}, |
|
|
|
created() {}, |
|
|
|
methods: { |
|
|
|
setCard: function () { |
|
|
|
this.isCard = !this.isCard; |
|
|
|
}, |
|
|
|
|
|
|
|
getCardIiem: function( value ){ |
|
|
|
if(value === '删除此软件') { |
|
|
|
this.$emit('getCardPop', true) |
|
|
|
this.isCard = false |
|
|
|
} else { |
|
|
|
this.isCard = false |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
getCardIiem: function (value) { |
|
|
|
if (value === "删除此软件") { |
|
|
|
this.$emit("getCardPop", true); |
|
|
|
this.isCard = false; |
|
|
|
} else { |
|
|
|
this.isCard = false; |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
@@ -240,21 +272,17 @@ li { |
|
|
|
top: 65px; |
|
|
|
} |
|
|
|
.card-item { |
|
|
|
line-height: 46px; |
|
|
|
height: 46px; |
|
|
|
width: 100%; |
|
|
|
text-indent: 16px; |
|
|
|
font-size: 14; |
|
|
|
color: #BBC6DA; |
|
|
|
cursor: pointer; |
|
|
|
line-height: 46px; |
|
|
|
height: 46px; |
|
|
|
width: 100%; |
|
|
|
text-indent: 16px; |
|
|
|
font-size: 14; |
|
|
|
color: #bbc6da; |
|
|
|
cursor: pointer; |
|
|
|
} |
|
|
|
|
|
|
|
.cardClass:hover { |
|
|
|
background: #F7F8FB; |
|
|
|
color: #1890FF; |
|
|
|
|
|
|
|
background: #f7f8fb; |
|
|
|
color: #1890ff; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style> |