总计(不含运费)>

共选中了{{ $store.getter" />

小言_互联网的博客

购物车底部卡片动画

251人阅读  评论(0)

<footer class="footer" ref='panel'>
			<span class="pu">总计(不含运费)</span><span @click="down" ref='upordown' class="arrow">></span><br>
			<br>
			<span class="acc">共选中了<span class="red">{{ $store.getters.selectNum.number }}</span>,<span class="red">{{ $store.getters.selectNum.money }}</span></span>
			<button class="account">去结算</button>
		</footer>
down(){
				if(this.$refs.upordown.innerText == '<'){
					this.$refs.panel.style.bottom = '54px';
					this.$refs.panel.style.transition = 'all 1s ease';
					setTimeout(()=>{this.$refs.upordown.innerHTML = '>';},1000)
				}else{
					this.$refs.panel.style.bottom = '0px';
					this.$refs.panel.style.transition = 'all 1s ease';
					setTimeout(()=>{this.$refs.upordown.innerHTML = '<';},1000)
				}
			},
.arrow{
		display: block;
		width: 30px;
		height: 40px;
		background-color: #ccc;
		text-align: center;
		line-height: 40px;
		font-size: 25px;
		transform: rotate(90deg) translateY(-20px) scale(.5,1) translateX(4px);
		margin: -15px auto;
	}

转载:https://blog.csdn.net/printf_hello/article/details/104839878
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场