@@ -146,4 +146,27 @@ background: none; | |||||
.el-pagination button:disabled { | .el-pagination button:disabled { | ||||
background: none; | background: none; | ||||
} | } | ||||
} | |||||
.infoBgPng { | |||||
.el-progress-bar__outer { | |||||
background:rgba(255,255,255,0.3); | |||||
width: 70px; | |||||
} | |||||
} | |||||
.divButtom { | |||||
.el-progress-bar { | |||||
padding: 0; | |||||
} | |||||
.el-progress-bar__outer { | |||||
width: 100%; | |||||
} | |||||
} | |||||
.el-progress__text { | |||||
display: none; | |||||
} | } |
@@ -5,7 +5,7 @@ | |||||
<div class="LeftPng"> | <div class="LeftPng"> | ||||
<img src="@/assets/images/niao.png" alt="" /> | <img src="@/assets/images/niao.png" alt="" /> | ||||
</div> | </div> | ||||
<span> 嗨如意</span> | |||||
<span>嗨如意</span> | |||||
</div> | </div> | ||||
<div class="cardRihgt"> | <div class="cardRihgt"> | ||||
<div class="icon-box"> | <div class="icon-box"> | ||||
@@ -1,11 +1,15 @@ | |||||
<template> | <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="card_header"> | ||||
<div class="img-box"> | <div class="img-box"> | ||||
<div class="LeftPng"> | <div class="LeftPng"> | ||||
<img src="@/assets/images/niao.png" alt="" /> | <img src="@/assets/images/niao.png" alt="" /> | ||||
</div> | </div> | ||||
<span> 智莺生活</span> | |||||
<span>{{ CardData.app_name }}</span> | |||||
</div> | </div> | ||||
<div class="cardRihgt"> | <div class="cardRihgt"> | ||||
<div class="icon-box" @click="setCard"> | <div class="icon-box" @click="setCard"> | ||||
@@ -13,63 +17,91 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="cardRight2"> | <div class="cardRight2"> | ||||
<img :src="CardData.img" alt="" /> | |||||
<span>11个模块</span> | |||||
<img :src="CardDataImg" alt="" /> | |||||
<span>{{ CardData.module_count }}个模块</span> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="cardListText"> | <div class="cardListText"> | ||||
<ul> | <ul> | ||||
<li> | <li> | ||||
<span class="leftText">版本信息</span> | <span class="leftText">版本信息</span> | ||||
<span class="rightText">授信版本</span> | |||||
<span class="rightText">{{ CardData.name }} </span> | |||||
</li> | </li> | ||||
<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> | ||||
<li> | <li> | ||||
<span class="leftText">到期时间</span> | <span class="leftText">到期时间</span> | ||||
<span class="rightText">2021-01-10</span> | |||||
<span class="rightText">{{ CardData.expire }}</span> | |||||
</li> | </li> | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
<div class="cardButtom">查看详情</div> | <div class="cardButtom">查看详情</div> | ||||
<div class="Card-box -intro-x" v-if="isCard"> | <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> | ||||
</div> | </div> | ||||
</template> | </template> | ||||
<script> | <script> | ||||
export default { | export default { | ||||
props: ["CardData"], | 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() { | data() { | ||||
return { | return { | ||||
isCard: false, | isCard: false, | ||||
}; | }; | ||||
}, | }, | ||||
mounted(){ | |||||
}, | |||||
mounted() {}, | |||||
created() {}, | created() {}, | ||||
methods: { | methods: { | ||||
setCard: function () { | setCard: function () { | ||||
this.isCard = !this.isCard; | 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> | </script> | ||||
@@ -240,21 +272,17 @@ li { | |||||
top: 65px; | top: 65px; | ||||
} | } | ||||
.card-item { | .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 { | .cardClass:hover { | ||||
background: #F7F8FB; | |||||
color: #1890FF; | |||||
background: #f7f8fb; | |||||
color: #1890ff; | |||||
} | } | ||||
</style> | </style> |
@@ -57,8 +57,8 @@ export default { | |||||
overflow: hidden; | overflow: hidden; | ||||
position: relative; | position: relative; | ||||
img { | img { | ||||
height: 100%; | |||||
float: left; | float: left; | ||||
width: 166px; | |||||
} | } | ||||
.rightUl { | .rightUl { | ||||
float: left; | float: left; | ||||
@@ -109,4 +109,10 @@ export default { | |||||
.left-box:nth-child(1) { | .left-box:nth-child(1) { | ||||
margin-right: 20px; | margin-right: 20px; | ||||
} | } | ||||
@media screen and (max-width: 1140px) { | |||||
.left-box:nth-child(1) { | |||||
margin-right: 0; | |||||
} | |||||
} | |||||
</style> | </style> |
@@ -42,7 +42,6 @@ import lodash from "lodash"; | |||||
export default { | export default { | ||||
filters: { | filters: { | ||||
phoneFilter: function (phone) { | phoneFilter: function (phone) { | ||||
return String(phone).substring(0, 3) + '****' + String(phone).substring(7, 13); | return String(phone).substring(0, 3) + '****' + String(phone).substring(7, 13); | ||||
}, | }, | ||||
}, | }, | ||||
@@ -3,6 +3,8 @@ import { FastForwardIcon } from 'vue-feather-icons'; | |||||
import VueRouter from 'vue-router'; | import VueRouter from 'vue-router'; | ||||
import { apost } from '../utils/api/login' | import { apost } from '../utils/api/login' | ||||
import Cookies from "js-cookie"; | |||||
Vue.use(VueRouter); | Vue.use(VueRouter); | ||||
const routes = [ | const routes = [ | ||||
@@ -411,20 +413,15 @@ router.beforeEach((to, from, next) => { | |||||
document.title = to.meta.title ? to.meta.title + ' - ZhiOS智莺' : 'ZhiOS智莺' | document.title = to.meta.title ? to.meta.title + ' - ZhiOS智莺' : 'ZhiOS智莺' | ||||
if (to.path != '/' && to.path != '/register' && to.path != '/isRegister') { | if (to.path != '/' && to.path != '/register' && to.path != '/isRegister') { | ||||
apost("/api/sign/status").then((res) => { | apost("/api/sign/status").then((res) => { | ||||
Cookies.set('discount',res.data.discount) | |||||
// 用户登录未失效, 直接跳转到会员中心页面 | // 用户登录未失效, 直接跳转到会员中心页面 | ||||
if (to.path === '/') { | if (to.path === '/') { | ||||
next('/Dashboard') | next('/Dashboard') | ||||
} | } | ||||
}).catch(err => { | }).catch(err => { | ||||
next('/login') | next('/login') | ||||
}) | }) | ||||
} | } | ||||
next() | next() | ||||
}) | }) | ||||
@@ -0,0 +1,20 @@ | |||||
import request from '@/utils/request' | |||||
export function apost (url,data){ | |||||
return request({ | |||||
url: url,//自己的接口地址 | |||||
method: 'post',//请求方法 | |||||
data //需要携带的参数 | |||||
}) | |||||
} | |||||
export function aget(url){ | |||||
return request({ | |||||
url:url, | |||||
method:'get' | |||||
}) | |||||
} | |||||
@@ -10,25 +10,25 @@ | |||||
v-for="(item, index) in messageData" | v-for="(item, index) in messageData" | ||||
:key="index" | :key="index" | ||||
@click="getDetails(item)" | @click="getDetails(item)" | ||||
> | > | ||||
<div class="PopStatus -intro-x" v-show="item.type"> | |||||
<div class="div1"> | |||||
<i | |||||
class="el-icon-share" | |||||
style="font-size: 15px; margin-right: 5px" | |||||
></i | |||||
><span>分享</span> | |||||
</div> | |||||
<div class="div1"> | |||||
<i | |||||
class="el-icon-download" | |||||
style="font-size: 15px; margin-right: 5px" | |||||
></i> | |||||
<span>下载</span> | |||||
<el-collapse-transition> | |||||
<div class="PopStatus" v-show="item.type"> | |||||
<div class="div1"> | |||||
<i | |||||
class="el-icon-share" | |||||
style="font-size: 15px; margin-right: 5px" | |||||
></i | |||||
><span>分享</span> | |||||
</div> | |||||
<div class="div1"> | |||||
<i | |||||
class="el-icon-download" | |||||
style="font-size: 15px; margin-right: 5px" | |||||
></i> | |||||
<span>下载</span> | |||||
</div> | |||||
</div> | </div> | ||||
</div> | |||||
</el-collapse-transition> | |||||
<div class="mssageHeader"> | <div class="mssageHeader"> | ||||
<div class="headerItem"> | <div class="headerItem"> | ||||
<div class="head-"> | <div class="head-"> | ||||
@@ -248,9 +248,9 @@ export default { | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
getDetails: function( data ){ | |||||
this.$router.push('chat/CreateAn') | |||||
} | |||||
getDetails: function (data) { | |||||
this.$router.push("chat/CreateAn"); | |||||
}, | |||||
}, | }, | ||||
}; | }; | ||||
</script> | </script> | ||||
@@ -86,9 +86,7 @@ import createAn6 from "../modules/createAn6"; | |||||
import createAn7 from "../modules/createAn7"; | import createAn7 from "../modules/createAn7"; | ||||
import createAn8 from "../modules/createAn8"; | import createAn8 from "../modules/createAn8"; | ||||
import { aget } from '../utils/api/myapp' | |||||
import { aget } from "../utils/api/myapp"; | |||||
export default { | export default { | ||||
data() { | data() { | ||||
@@ -109,16 +107,9 @@ export default { | |||||
mounted() { | mounted() { | ||||
this.getInit() | |||||
}, | }, | ||||
methods: { | methods: { | ||||
getInit: function(){ | |||||
console.log(123) | |||||
aget('/api/myapp/list').then(res=>{ | |||||
console.log(res) | |||||
}) | |||||
}, | |||||
nextStep: function () { | nextStep: function () { | ||||
if (this.component === 1) { | if (this.component === 1) { | ||||
// 第一步 | // 第一步 | ||||
@@ -236,7 +227,6 @@ export default { | |||||
this.isButtom2 = false; | this.isButtom2 = false; | ||||
this.isSucceed = true; | this.isSucceed = true; | ||||
}, | }, | ||||
}, | }, | ||||
components: { | components: { | ||||
createAn1, | createAn1, | ||||
@@ -162,7 +162,7 @@ | |||||
<a | <a | ||||
class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md" | class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md" | ||||
>January</a | |||||
>Januar1y</a | |||||
> | > | ||||
<a | <a | ||||
@@ -648,7 +648,7 @@ | |||||
<a | <a | ||||
class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md" | class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md" | ||||
>January</a | |||||
>January1</a | |||||
> | > | ||||
<a | <a | ||||
@@ -703,7 +703,7 @@ | |||||
<a | <a | ||||
class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md" | class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md" | ||||
>January</a | |||||
>January2</a | |||||
> | > | ||||
<a | <a | ||||
@@ -99,67 +99,41 @@ | |||||
<script> | <script> | ||||
import CardView from "../modules/Crad2"; | import CardView from "../modules/Crad2"; | ||||
import { aget } from "../utils/api/myapp"; | |||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
isACT: "全部", | isACT: "全部", | ||||
isCardPop: false, | isCardPop: false, | ||||
CardData: [ | |||||
{ | |||||
img: require("../assets/images/ios.png"), | |||||
value:'IOS端' | |||||
}, | |||||
{ | |||||
img: require("../assets/images/anzhuo.png"), | |||||
value:'安卓端' | |||||
}, | |||||
{ | |||||
img: require("../assets/images/xiaochengxu.png"), | |||||
value:'小程序端' | |||||
}, | |||||
{ | |||||
img: require("../assets/images/h5.png"), | |||||
value:'WEB端' | |||||
}, | |||||
], | |||||
CardDatas: [ | |||||
{ | |||||
img: require("../assets/images/ios.png"), | |||||
value:'IOS端' | |||||
}, | |||||
{ | |||||
img: require("../assets/images/anzhuo.png"), | |||||
value:'安卓端' | |||||
}, | |||||
{ | |||||
img: require("../assets/images/xiaochengxu.png"), | |||||
value:'小程序端' | |||||
}, | |||||
{ | |||||
img: require("../assets/images/h5.png"), | |||||
value:'WEB端' | |||||
}, | |||||
], | |||||
CardData: [], | |||||
}; | }; | ||||
}, | }, | ||||
components: { | components: { | ||||
CardView, | CardView, | ||||
}, | }, | ||||
mounted() { | |||||
this.getAppInit(); | |||||
}, | |||||
methods: { | methods: { | ||||
getAppInit: function () { | |||||
aget("/api/myapp/list").then((res) => { | |||||
console.log(res); | |||||
this.CardData = res.data | |||||
}); | |||||
}, | |||||
getTitle: function (value) { | getTitle: function (value) { | ||||
this.isACT = value; | this.isACT = value; | ||||
if(value != '全部') { | |||||
this.CardData = this.CardDatas.filter(item=>{ | |||||
return item.value === value | |||||
}) | |||||
}else { | |||||
this.CardData = this.CardDatas | |||||
if (value != "全部") { | |||||
this.CardData = this.CardDatas.filter((item) => { | |||||
return item.value === value; | |||||
}); | |||||
} else { | |||||
this.CardData = this.CardDatas; | |||||
} | } | ||||
}, | }, | ||||
getCardPop(event) { | getCardPop(event) { | ||||
this.isCardPop = true; | this.isCardPop = true; | ||||
@@ -927,7 +927,7 @@ | |||||
<a | <a | ||||
class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md" | class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md" | ||||
>January</a | |||||
>January4</a | |||||
> | > | ||||
<a | <a | ||||
@@ -109,10 +109,8 @@ | |||||
<el-carousel | <el-carousel | ||||
width="296px;" | width="296px;" | ||||
height="612px" | height="612px" | ||||
:autoplay="false" | :autoplay="false" | ||||
ref="swiper" | ref="swiper" | ||||
> | > | ||||
<el-carousel-item | <el-carousel-item | ||||
v-for="item in carouselData" | v-for="item in carouselData" | ||||
@@ -1335,7 +1333,7 @@ export default { | |||||
.intro-Y { | .intro-Y { | ||||
transform: translateY(100px); | transform: translateY(100px); | ||||
animation: .5s intro-y-animation linear 0.5s; | |||||
animation: 0.5s intro-y-animation linear 0.5s; | |||||
animation-fill-mode: forwards; | animation-fill-mode: forwards; | ||||
animation-delay: 0; | animation-delay: 0; | ||||
@apply opacity-0 relative; | @apply opacity-0 relative; | ||||
@@ -20,8 +20,6 @@ module.exports = { | |||||
} | } | ||||
}, | }, | ||||
}, | }, | ||||
configureWebpack: { | configureWebpack: { | ||||
plugins: [ | plugins: [ | ||||
new webpack.ProvidePlugin({ | new webpack.ProvidePlugin({ | ||||