|
@@ -11,6 +11,7 @@
|
|
|
<li
|
|
|
v-for="item in Object.entries($gConfigInfo.objInfo).slice(pageSize * (currentPage - 1), pageSize * currentPage)"
|
|
|
:key="item[0]"
|
|
|
+ @click="onClickItem"
|
|
|
>
|
|
|
<img
|
|
|
class=""
|
|
@@ -59,6 +60,9 @@ export default {
|
|
|
methods: {
|
|
|
...mapMutations([
|
|
|
]),
|
|
|
+ onClickItem(item) {
|
|
|
+ this.$router.push({ name: 'RelicDetail' })
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -89,31 +93,32 @@ export default {
|
|
|
height: 50px;
|
|
|
background: url('@/assets/images/titleBac.png') no-repeat center;
|
|
|
background-size: 100% 100%;
|
|
|
- margin-bottom: 20px;
|
|
|
}
|
|
|
> ul {
|
|
|
width: 100%;
|
|
|
- height: calc(100% - 70px);
|
|
|
+ height: calc(100% - 80px);
|
|
|
+ padding-top: 30px;
|
|
|
padding-left: 20px;
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
+ align-content: start;
|
|
|
overflow: auto;
|
|
|
> li {
|
|
|
display: inline-block;
|
|
|
width: calc((100% - 20px * 4) / 3 - 1px);
|
|
|
margin-right: 20px;
|
|
|
margin-bottom: 20px;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: all 0.3s;
|
|
|
+ &:hover {
|
|
|
+ transform: translateY(-10px);
|
|
|
+ }
|
|
|
> img {
|
|
|
width: 100%;
|
|
|
padding: 10px;
|
|
|
background: url(@/assets/images/divBac.png);
|
|
|
background-size: 100% 100%;
|
|
|
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
|
|
|
- transition: all 0.3s;
|
|
|
- cursor: pointer;
|
|
|
- &:hover {
|
|
|
- transform: translateY(-10px);
|
|
|
- }
|
|
|
}
|
|
|
> .title {
|
|
|
color: #fff;
|