
往左边滑动出现删除按钮, 只对当前滑动的对象 *** 作
<view class="shop-list">
<view class="check-all-box" bindtap="onCheckAll">
<view>
<label class="check-around8" bindtap="selected" data-lor='1'>
<radio checked="{{allSelectedtrue:false}}" color="#000"></radio>
<text class="check-all">{{checkAllText}}全选</text>
</label>
</view>
</view>
<view class="item-box {{itemisTouchMove 'touch-move-active' : ''}}" data-index="{{index}}" bindtouchstart="touchstart" bindtouchmove="touchmove" wx:for="{{list}}" wx:key="{{index}}">
<view class="item">
<view class="check-around-box" data-id="{{itemid}}" >
<label bindtap="selected" data-id="{{itemid}}" data-isSelect="{{itemisSelect}}">
<radio checked="{{itemisSelect>0true:false}}" color="#000"></radio>
</label>
</view>
<view class="item-img-box">
<image class="item-img" src="{{itemthumbUrl}}" />
</view>
<view class="item-info-box">
<text class="item-title">{{itemtitle}}</text>
<text class="item-spec">{{itemspec}}</text>
<text class="item-price">¥{{itemprice}}</text>
<view class="num-box">
<view class="num-desc" data-id="{{itemid}}" data-total="{{itemtotal}}" bindtap="reduce">-</view>
<input class="item-input" type="number"disabled="boolean" value="{{itemtotal}}" />
<view class="num-plus" data-id="{{itemid}}" data-total="{{itemtotal}}" bindtap="plus">+</view>
</view>
</view>
</view>
<view class="remove" data-id="{{itemid}}" bindtap="remove">{{remove}}删除</view>
</view>
</view>
page{
background-color: #f8f8f8;
}
shop-list {
display: flex;
flex-direction: column;
margin-top: 30rpx;
padding-bottom:120rpx;
}
check-all-box {
display: flex;
align-items: center;
padding: 30rpx;
background-color: #fff;
}
check-all-box check-all {
margin-left: 20rpx;
font-size: 30rpx;
}
check-around {
width: 35rpx;
height: 35rpx;
margin-right:20rpx;
border-radius: 50rpx;
border: 1rpx solid #f8f8f8;
}
check-active {
width: 35rpx;
height: 35rpx;
border-radius: 50rpx;
background-color: #999999;
}
item-box {
margin-bottom: 20rpx;
position: relative;
z-index: 99;
font-size: 14px;
display: flex;
justify-content: space-between;
border-bottom:1px solid #ccc;
width: 100%;
overflow: hidden
}
item {
display: flex;
align-items: center;
padding: 30rpx;
background-color: #fff;
position: relative;
z-index: 99;
width: 100%;
margin-right:0;
-webkit-transition: all 04s;
transition: all 04s;
-webkit-transform: translateX(90px);
transform: translateX(90px);
margin-left: -90px
}
item item-img {
width: 180rpx;
height: 180rpx;
border-radius: 5rpx;
border: 1rpx solid #eaeaea;
}
item item-info-box {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 420rpx;
height: 180rpx;
margin-left:20rpx;
}
item-info-box item-title {
font-size: 30rpx;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
}
item-info-box item-spec {
color: #676767;
margin-top: 15rpx;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
item-info-box item-price {
display: flex;
margin-top: 15rpx;
}
item-info-box num-box {
display: flex;
align-items: center;
justify-content: flex-end;
font-size: 30rpx;
}
num-box num-desc {
padding: 0 10rpx;
color: #999;
border: 4rpx solid #999;
}
num-box item-input {
width: 80rpx;
}
item-input {
text-align: center;
}
num-box num-plus {
padding: 0 10rpx;
color: #fff;
background-color: #000;
border: 4rpx solid #000;
}
remove {
background-color: orangered;
width: 90px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
-webkit-transform: translateX(90px);
transform: translateX(90px);
-webkit-transition: all 04s;
transition: all 04s;
}
touch-move-active item,
touch-move-active remove {
-webkit-transform: translateX(0);
transform: translateX(0);
}
var app = getApp()
Page({
data: {
list: [
{
id: '1',
thumbUrl: '>
爱剪辑配音教程:
1、打开爱剪辑APP,点击视频编辑,然后选择想要编辑的视频片段,点击右上角剪头。
2、在下方栏中选择高级编辑,然后向右拉动选择菜单,选择配音选项,然后可以拉动时间轴来选择在哪个时间点开始加配音,选好时间点后,长按正下方的话筒图案则可以开始配音,松开图案则停止配音。
3、配音结束后,可以调整视频原声和配音音量大小比例,假如配音效果不满意还可以删除重配,配音满意的话则点击右上角的√即可!
扩展资料:
视频剪辑的技巧:
1、素材的剪接,是为了将所拍摄的素材串接成富含意义的片段,同时具有艺术感染力,突出和强化拍摄主体的特征。
2、在对素材进行剪接加工的过程中,必须要突出主题,同时合乎思维逻辑。无论是用跳跃思维还是逆向思维都要符合规律,不能为了剪辑技巧而脱离剧情。镜头的视觉代表了观众的视觉,它决定了画面中的主体的运动方向和关系方向。
3、无论是静与动,还是长与短、快与慢的对比都要注意每个镜头的时间长度。确定每个镜头的持续时间,这样的对比技术使得视觉更富有冲击性。
4、在**镜头的转换中常用不同的光学技巧和手法,以达到剪辑影片的目的,我们称之为剪辑技巧,如叠化、切入切出等。我们常用这些剪辑技巧表现剧中人物的回忆、梦境、虚幻想象、神奇世界等。掌握了这些剪辑技巧后,再结合故事情节就能完成作品的剪辑。
参考资料来源:百度百科-剪辑
import javaioIOException;
import javaioRandomAccessFile;
public class TestMain {
public static void main(String[] args) {
//原文件路径
String path1 = "F:/1txt";
//新文件路径
String path2 = "F:/2txt";
RandomAccessFile raf1 = null;
RandomAccessFile raf2 = null;
String line = null;
try {
raf1 = new RandomAccessFile(path1, "r");
raf2 = new RandomAccessFile(path2, "rw");
while ((line = raf1readLine()) != null) {
int start = lineindexOf("EMAIL");
int end = lineindexOf("OU=");
String a = linesubstring(start, end);
String b = areplace("ADDRESS", "");
line = linereplace(a, "");
line = b + line;
raf2write(linegetBytes());
raf2write('\n');
}
} catch (Exception e) {
eprintStackTrace();
} finally {
try {
raf1close();
raf2close();
} catch (IOException e) {
eprintStackTrace();
}
}
}
}
#include<stdioh>
#include<stdlibh>
#include<iostreamh>
typedef struct data
{
float x;
float y;
}Data;//变量x和函数值y的结构
Data d[20];//最多二十组数据
float f(int s,int t)//牛顿插值法,用以返回插商
{
if(t==s+1)
return (d[t]y-d[s]y)/(d[t]x-d[s]x);
else
return (f(s+1,t)-f(s,t-1))/(d[t]x-d[s]x);
}
float Newton(float x,int count)
{
int n;
while(1)
{
cout<<"请输入n值(即n次插值):";//获得插值次数
cin>>n;
if(n<=count-1)// 插值次数不得大于count-1次
break;
else
system("cls");
}
//初始化t,y,yt。
float t=10;
float y=d[0]y;
float yt=00;
//计算y值
for(int j=1;j<=n;j++)
{
t=(x-d[j-1]x)t;
yt=f(0,j)t;
//cout<<f(0,j)<<endl;
y=y+yt;
}
return y;
}
float lagrange(float x,int count)
{
float y=00;
for(int k=0;k<count;k++)//这儿默认为count-1次插值
{
float p=10;//初始化p
for(int j=0;j<count;j++)
{//计算p的值
if(k==j)continue;//判断是否为同一个数
p=p(x-d[j]x)/(d[k]x-d[j]x);
}
y=y+pd[k]y;//求和
}
return y;//返回y的值
}
void main()
{
float x,y;
int count;
while(1)
{
cout<<"请输入x[i],y[i]的组数,不得超过20组:";//要求用户输入数据组数
cin>>count;
if(count<=20)
break;//检查输入的是否合法
system("cls");
}
//获得各组数据
for(int i=0;i<count;i++)
{
cout<<"请输入第"<<i+1<<"组x的值:";
cin>>d[i]x;
cout<<"请输入第"<<i+1<<"组y的值:";
cin>>d[i]y;
system("cls");
}
cout<<"请输入x的值:";//获得变量x的值
cin>>x;
while(1)
{
int choice=3;
cout<<"请您选择使用哪种插值法计算:"<<endl;
cout<<" (0):退出"<<endl;
cout<<" (1):Lagrange"<<endl;
cout<<" (2):Newton"<<endl;
cout<<"输入你的选择:";
cin>>choice;//取得用户的选择项
if(choice==2)
{
cout<<"你选择了牛顿插值计算方法,其结果为:";
y=Newton(x,count);break;//调用相应的处理函数
}
if(choice==1)
{
cout<<"你选择了拉格朗日插值计算方法,其结果为:";
y=lagrange(x,count);break;//调用相应的处理函数
}
if(choice==0)
break;
system("cls");
cout<<"输入错误!!!!"<<endl;
}
cout<<x<<" , "<<y<<endl;//输出最终结果
}
微信公众号视频上传格式为rm, rmvb, wmv, avi, mpg, mpeg, mp4,否则无法上传。但是因为上传视频文件的大小限制,有两种不同方法。
一、当视频小于20M
1登陆一个微信公众平台账号后,点击左边的“管理”,再点击“素材管理”。
2点击选项中的“视频”选项,点击右下面的“添加”方框。
3在新跳出的网页标签里面,按照要求依次填写相关视频信息,最后勾选下方“我已阅读并同意《腾讯视频上传服务规则》”,点击下方“保存”按钮,等待视频审核通过即可。
二、当视频大于20M
1登录腾讯视频,点击右上方“上传”按钮,进入上传视频页面,点击中央的“点击上传”,选中你所需要上传的视频,填写相关信息后,等待审核。
2在“视频管理”中,选中审核通过后的视频,跳转到播放页面,复制地址栏上的网址信息。
3在微信公众平台上图文编辑页面上,当需要插入视频时,点击右侧“视频”按钮,切换到填写“视频链接”的页面,插入刚刚复制的腾讯视频播放的网址即可。
以上就是关于微信小程序购物车 滑动删除效果全部的内容,包括:微信小程序购物车 滑动删除效果、刚刚学习单片机,谁可以帮忙写个程序、给视频配音用什么软件等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)