不多bb,直接先贴代码,反正我是能用的,如果不能用的话就改改,改改后还不能用就不能用吧。
<template> <view class="undone-order"> <view :style="mainStyle"> <view style="height: 400rpx;width: 100%;background: transparent;overflow: hidden;"> <view class="t-content" style="text-align: center;background: transparent;" @transitionend="animationend" :animation="animationData" :style="animationStyle"> <view v-for="(item,index) in dataList" :key="index" class="img_cont_class"> <view class="img_view_class"> <image :src="item.headimg" style="height: 50rpx;width: 50rpx;border-radius: 25rpx;" mode=""></image> </view> <view class="content_class"> {{item.content}} </view> </view> </view> </view> </view> <button type="default" @click="scaleAndScale">123123</button> </view> </template> <script> export default { data() { return { animation: '', animationData: {}, isStop: true, animationStyle:'transform: translateY(50%)', mainStyle:'position:fixed;right:9999px', runOver:true, dataList:[ { headimg:'https://wx2.sinaimg.cn/mw2000/c43067f3ly8ftudf3invpj20s00s0ad6.jpg', content:'评论写5个div时,连着写,然后自己设版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。