方诺官网改正版
 
 
 

288 lines
5.4 KiB

  1. <template>
  2. <div
  3. class="card_body intro-x"
  4. @change="isCard == true ? (isCard = true) : ''"
  5. v-if="CardData"
  6. >
  7. <div class="card_header">
  8. <div class="img-box">
  9. <div class="LeftPng">
  10. <img src="@/assets/images/niao.png" alt="" />
  11. </div>
  12. <span>{{ CardData.app_name }}</span>
  13. </div>
  14. <div class="cardRihgt">
  15. <div class="icon-box" @click="setCard">
  16. <i class="el-icon-more" style="font-size: 20px; color: #bbc6da"></i>
  17. </div>
  18. </div>
  19. <div class="cardRight2">
  20. <img :src="CardDataImg" alt="" />
  21. <span>{{ CardData.module_count }}个模块</span>
  22. </div>
  23. </div>
  24. <div class="cardListText">
  25. <ul>
  26. <li>
  27. <span class="leftText">版本信息</span>
  28. <span class="rightText">{{ CardData.name }} </span>
  29. </li>
  30. <li>
  31. <span class="leftText">APPID</span>
  32. <span class="rightText">{{ CardData.id }}</span>
  33. </li>
  34. <li>
  35. <span class="leftText">到期时间</span>
  36. <span class="rightText">{{ CardData.expire }}</span>
  37. </li>
  38. </ul>
  39. </div>
  40. <div class="cardButtom">查看详情</div>
  41. <div class="Card-box -intro-x" v-if="isCard">
  42. <div class="card-item cardClass" @click="getCardIiem('停用此软件')">
  43. 停用此软件
  44. </div>
  45. <div class="card-item cardClass" @click="getCardIiem('前往后台设置')">
  46. 前往后台设置
  47. </div>
  48. <div
  49. class="card-item"
  50. style="color: #ff4242"
  51. @click="getCardIiem('删除此软件')"
  52. >
  53. 删除此软件
  54. </div>
  55. </div>
  56. </div>
  57. </template>
  58. <script>
  59. export default {
  60. props: ["CardData"],
  61. computed: {
  62. CardDataImg: function () {
  63. var url = null;
  64. // if (this.CardData.platform === "ios") {
  65. // url = require("../assets/images/ios.png");
  66. // }
  67. // if (this.CardData.platform === "android") {
  68. // url = require("../assets/images/anzhuo.png");
  69. // }
  70. // if (this.CardData.platform === "web") {
  71. // url = require("../assets/images/h5.png");
  72. // }
  73. // if (this.CardData.platform === "applet") {
  74. // url = require("../assets/images/xiaochengxu.png");
  75. // }
  76. return url;
  77. },
  78. },
  79. data() {
  80. return {
  81. isCard: false,
  82. };
  83. },
  84. mounted() {},
  85. created() {},
  86. methods: {
  87. setCard: function () {
  88. this.isCard = !this.isCard;
  89. },
  90. getCardIiem: function (value) {
  91. if (value === "删除此软件") {
  92. this.$emit("getCardPop", true);
  93. this.isCard = false;
  94. } else {
  95. this.isCard = false;
  96. }
  97. },
  98. },
  99. };
  100. </script>
  101. <style scoped>
  102. /* pc */
  103. @media screen and (max-width: 1172px) {
  104. .card_body {
  105. min-width: 47.2% !important;
  106. }
  107. .itemBoxB {
  108. width: 100% !important;
  109. margin-left: 0 !important;
  110. padding: 24px !important;
  111. display: block !important;
  112. float: none !important;
  113. }
  114. }
  115. @media screen and (max-width: 690px) {
  116. .card_body {
  117. width: 100% !important;
  118. display: block !important;
  119. float: none !important;
  120. padding-right: 54px !important;
  121. border-radius: 0 !important;
  122. min-width: 420px !important;
  123. }
  124. }
  125. .card_body {
  126. float: left;
  127. width: 23%;
  128. /* width: 372px; */
  129. min-width: 310px;
  130. background: #fff;
  131. height: 328px;
  132. margin: 0 2% 20px 0;
  133. border-radius: 8%;
  134. box-sizing: border-box;
  135. padding: 24px;
  136. position: relative;
  137. }
  138. .card_body:hover {
  139. box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.1);
  140. }
  141. .card_header {
  142. width: 100%;
  143. font-size: 26px;
  144. color: #333333;
  145. overflow: hidden;
  146. margin-bottom: 5px;
  147. }
  148. .img-box {
  149. float: left;
  150. }
  151. .LeftPng {
  152. width: 75px;
  153. height: 75px;
  154. border-right: 16px;
  155. overflow: hidden;
  156. border-radius: 23px;
  157. }
  158. .LeftPng > img {
  159. height: 75px;
  160. width: 75px;
  161. vertical-align: middle;
  162. }
  163. .cardRihgt {
  164. float: right;
  165. }
  166. .icon-box {
  167. width: 32px;
  168. height: 32px;
  169. text-align: center;
  170. line-height: 26px;
  171. border: 1px solid #bbc6da;
  172. box-sizing: border-box;
  173. border-radius: 50%;
  174. cursor: pointer;
  175. }
  176. .cardRight2 {
  177. width: 105px;
  178. height: 32px;
  179. background: #ffffff;
  180. border: 1px solid #bbc6da;
  181. border-radius: 16px;
  182. float: right;
  183. margin-right: 10px;
  184. color: #bbc6da;
  185. font-size: 12px;
  186. line-height: 32px;
  187. font-weight: 400;
  188. position: relative;
  189. text-indent: 40px;
  190. }
  191. .cardRight2 > img {
  192. height: 32px;
  193. width: 32px;
  194. border-radius: 50%;
  195. position: absolute;
  196. left: -1px;
  197. top: -1px;
  198. }
  199. .cardListText,
  200. ul,
  201. li {
  202. overflow: hidden;
  203. width: 100%;
  204. }
  205. .cardListText li {
  206. line-height: 28px;
  207. }
  208. .leftText {
  209. float: left;
  210. color: #999999;
  211. font-size: 16px;
  212. }
  213. .rightText {
  214. float: right;
  215. color: #333333;
  216. font-size: 16px;
  217. }
  218. .cardButtom {
  219. background: #f7f7fa;
  220. width: 100%;
  221. height: 56px;
  222. box-sizing: border-box;
  223. border-radius: 22px;
  224. text-align: center;
  225. line-height: 56px;
  226. color: #8f9cc6;
  227. font-size: 16px;
  228. margin-top: 30px;
  229. }
  230. .cardButtom:hover {
  231. background: #1890fa;
  232. color: #fff;
  233. cursor: pointer;
  234. }
  235. .cardButtom:active {
  236. background: #58b0fd;
  237. }
  238. .Card-box {
  239. position: absolute;
  240. width: 200px;
  241. height: 138px;
  242. background: #fff;
  243. border-radius: 22px;
  244. box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  245. right: 20px;
  246. top: 65px;
  247. }
  248. .card-item {
  249. line-height: 46px;
  250. height: 46px;
  251. width: 100%;
  252. text-indent: 16px;
  253. font-size: 14;
  254. color: #bbc6da;
  255. cursor: pointer;
  256. }
  257. .cardClass:hover {
  258. background: #f7f8fb;
  259. color: #1890ff;
  260. }
  261. </style>