| | |
| | | <img :src="item.path"/> |
| | | </mt-swipe-item> |
| | | </mt-swipe> |
| | | <div class="swipe-tip">{{ swipeTip.current }}/{{ swipeTip.total }}</div> |
| | | </div> |
| | | <div class="content"> |
| | | <mt-navbar v-model="navIndex"> |
| | |
| | | path: "", |
| | | keyWord: "", |
| | | introduction: "", |
| | | }, |
| | | swipeTip: { |
| | | current: 0, |
| | | total: 0 |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | ChangeImage: function (index) { |
| | | this.image = this.images.data[index]; |
| | | this.swipeTip.current = index + 1; |
| | | }, |
| | | }, |
| | | created() { |
| | |
| | | Api_GetImageDetail(imageId, 1, objId, 999).then(res => { |
| | | this.images = res; |
| | | this.image = res.data[0]; |
| | | this.swipeTip.current = 1; |
| | | this.swipeTip.total = res.data.length; |
| | | }, rej => { |
| | | alert(rej); |
| | | }).catch(err => { |
| | |
| | | .images { |
| | | width: 100%; |
| | | height: 31.5vh; |
| | | position: relative; |
| | | } |
| | | |
| | | .images img { |
| | |
| | | opacity: 1; |
| | | margin-top: 2vh; |
| | | } |
| | | |
| | | .swipe-tip { |
| | | width: 15vw; |
| | | position: absolute; |
| | | right: 5vw; |
| | | bottom: 2vh; |
| | | |
| | | font-size: 1.5rem; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: 400; |
| | | line-height: 3.37rem; |
| | | color: #FFFFFF; |
| | | background: rgba(0, 0, 0, 0.6); |
| | | border-radius: 100px |
| | | } |
| | | </style> |