WeChat applet uniapp realizes the left swipe to delete effect (complete code)

WeChat applet uniapp realizes the left swipe to delete effect (complete code)

WeChat applet uniapp realizes the left swipe to delete effect

Achieve results

1. Swipe to delete from the list
2. Delete different existing
3. Up and down sliding and side sliding deletion have no effect

insert image description here

Import the component and use it on this page (the file is attached at the bottom of the article)

insert image description here

Use it where you need to swipe left to delete

<view v-for="(item, index) in csListArrl" :key="index" :data-index="index">
      <delSlideLeft :item="item" :data_transit="{ index: index, item: item }" @delItem="delItem">
        <view class="editItem">List display content</view>
     </delSlideLeft>
</view>
//Click the delete button event delItem(e) {
      let that = this;
      that.csListArrl.splice(e.data.index, 1);
    },

Import two files in the component

insert image description here

del_slideLeft.vue

<template>
	<view>
		<view class="box-slideLeft" >
			<view class="touch-item touch-slideLeft " @touchstart="touchS" @touchmove="touchM" @touchend="touchE" :style="item_show.txtStyle">
				<slot />
			</view>
			
			<view class="touch-item del-box-touch-slideLeft cf-shuCenter" @click="delItem(item_show)">
				<view class="iconfont icon-shanchu"></view>
			</view>

		</view>
	</view>
</template>

<script>
	
	export default {
		components:

		},
		props: {
			
			data_transit: {
				type: Object,
				default () {
					return {}
				}
			},
			//optional item: {
				type: Object,
				default () {
					return {}
				}
			},
		},
		computed: {

		},
		
		data() {
			return {
				
				item_show : {},
				delBtnWidth: 60, //Delete button width unit (rpx)
				startX: '',
			};
		},
		created:function(){
			//Specially handles checking whether a field exists in the object. If it exists, return true; if it does not exist, return false
			let that = this ;
			let item = that.item;
			if(!item.hasOwnProperty("txtStyle")){
				this.$set(this.item,'txtStyle','');//No need to initialize }
			this.item_show = this.item;
		},
		watch:
			item(e){
				this.item_show = e;
			},
		},
		methods: {
			//Click the delete button event delItem: function(e) {
				let that = this;
				let data = {
					item : e ,
					data : that.data_transit ,
				};
				this.$emit('delItem', data);
			},
			touchS: function(e) {
				let that = this;
				
				if (e.touches.length == 1) {
					//Set the horizontal position of the touch starting point this.startX = e.touches[0].clientX
					
				}
			},
			touchM: function(e) {
				let that = this;
				
				if (e.touches.length == 1) {
					//Horizontal position of the finger when moving var moveX = e.touches[0].clientX;
					//The difference between the finger's starting point and the moving period var disX = this.startX - moveX;
					var delBtnWidth = this.delBtnWidth;
					var txtStyle = "";
					if (disX == 0 || disX < 0) { //If the moving distance is less than or equal to 0, it means sliding to the right and the text layer position remains unchanged txtStyle = "left:0px";
					} else if (disX > 0) { //The moving distance is greater than 0, the left value of the text layer is equal to the finger moving distance txtStyle = "left:-" + disX + "px";
						if (disX >= delBtnWidth) {
							//Control the maximum finger movement distance to the width of the delete button txtStyle = "left:-" + delBtnWidth + "px";
						}
					}
					//Get which item the finger is touching					
					that.item_show.txtStyle = txtStyle;
					
				}
			},
			touchE: function(e) {
				let that = this;
				if (e.changedTouches.length == 1) {
					//Horizontal position after finger movement var endX = e.changedTouches[0].clientX;
					//Touch start and end, finger movement distance var disX = this.startX - endX;
					var delBtnWidth = this.delBtnWidth;
					//If the distance is less than 1/2 of the delete button, the delete button will not be displayed var txtStyle = disX > delBtnWidth / 2 ? "left:-" + delBtnWidth + "px" : "left:0px";
					//Get which item the finger is touching that.item_show.txtStyle = txtStyle;
					
				}
			},
			
		}

	}
</script>

<style lang="scss">
	@import './iconfont.css'; //Easy to delete icons	
	.box-slideLeft {
		view {
			box-sizing: border-box;
		}
		position: relative;
		overflow: hidden;
		
		.touch-item {
			position: absolute;
			top: 0;
			padding: 10px 10px 10px;
			background-color: #FFFFFF;
			// border-radius: 10px;
			overflow: hidden;
		}
		
		.touch-slideLeft {
			position: relative;
			width: 100%;
			z-index: 5;
			transition: left 0.2s ease-in-out;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}
		.del-box-touch-slideLeft {
			right: 0;
			float: left;
			width: 70px;
			height: 100%;
			line-height: 101px;
			background-color: #EA5863;
			border-radius: 0 10px 10px 0;
			color: #fff;
			font-size: 18px;
			font-weight: lighter;
			text-align: center;
		}
		.icon-shanchu{
			font-size: 44upx;
		}
		
		.cf-shuCenter{
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			
		}
	}

	
</style>


iconfont.css

@font-face {font-family: "iconfont";
  src: url('//at.alicdn.com/t/font_1948714_o615zwc843k.eot?t=1616746789802'); /* IE9 */
  src: url('//at.alicdn.com/t/font_1948714_o615zwc843k.eot?t=1616746789802#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAB40AAsAAAAANxgAAB3kAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCLJArSEMEZATYCJAOBcAt6AAQgBYRtB4UzG14tZQRsHAAEyfdM9v/fEqgcrkM6HA8gHK6SOaUSdMUMyyLDsujiBjvfkDGMlRJ3/BQ5Sp/ZHdJL+kgPk/C1IkdeFXL/uVfm55a9hfaV0fT+7Ix4s68BRhtKSQS/X5v3TxUTyWRapDRaI8Y9DmjOmrXIRqyEkISwSTBNQkupELSQJoiVGhZMQs0IYqUC16dA24NUjLZ3qTnVE3r39O6oI+dw2vN6iNTtsyIVViC0vJLMYLArz/97u2/7Z0wDndgMAgwjjoKAk+Z7N7Zj5h3le4QZYEVeEEYBZvOz/W6/tx2hTTorYqGX07JL/vuKPgUJEPsq+uF3PI3+yPJKWp+867bXeBgOoR3ABLDMxka92u3Oq/NNWq2WBfF3ywmXYOrrBLghHgBLq73GATww6yM4PiaD8X8rL+DAEz5vsQIpLaQE682fqZb2hukEK2YPbg8IEN+PgJ+fq7TJAXKu9MrCkJAnTI38P5Pd5CeZ7f7J0W+2vZnlzBQmi8kiqQJr1FVAyWJymDnGAoGrUa2rbY2rkbrQT1/G0TUmfvEo1K3qz9jsfbhqdLDDYoj2YfT0/z44BehSuFTm2pgODLjbaAUoG4vzgGEz4IK5BaOAxtltAXKEwGht6xvEL/n9yw93GAAVosPtkL6f2ALQk/apUsZqSe1IXXwMm92BGnCJOqgebkm5oV7kkmgk7/N5pS/gK/oQaB9A0ZFkFHz5CxEqQjQsJWuLvfZTtenR5zC7057+M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8QTU379bN9haKEAyPvDAP6pbYfQvzKKO0mLJmHYpI2AonMVMAzuPD7RXyCw6AQahgiB5GezZxaR3iWkmADg66smIPi+CSiu6wTjTfxDcJj4VyCI/VdozMylQMqMKCKLZ9CKHsCOUJnyaNAx+dw6TmjdDxAk2R7lr0b7Av2ATGZezK4PboCgjyNk2IXFOHrje27MWguAlNi0PdfgxiLyQPsynfpdaOG4OZuI1gPWaF6zYpSOt0YOI/7ZRxPXb/8BCERi9YIOT7f+AvQG+PKNucJMgt9oJNVhXtyDnWBhRMwzuHmPNYw1YiDdTWb+X3FoVgPOqBBDWK0XUzSQl9WK9ONNF9Wg8XV62/VsBI6ERmcwWb9h/z5tDpfHlxVV0w3Tsh3X84MwipM0y4uyqpu264dxmpd124/zup/3+w00RhwiKtM216doiQ76vkTLHVraCjsP5XWILEfIl4u5DmKpxCWxzfUQ4RRsmCwAhUp4oTypPgRXD6I0yyAsM5glF+Wq4R6UhYXlpbg421qULlhStro5mA1PkSnoPaDFfTViA5dHljD3iz2hfg42fyotO6F8xGixb5dyEaLgc9ZtVGPuJHJCAl/OPaaUdUhh64deHxW0wUMJuM8CTaKsmiKkWB/V+4ZPc1D0IW6BHmzVXOIB1NpnrmocxJIeIyqsEUn9wdQBJVjUCaHsrEtbVXdcN4Uo7GUvIWwUOtFVCjjzuiod8vg9bdJwY+lRehJWheW+c5wSuBHTSpd3leUjrTCJoW4SbiFPSKBexcP9KDr2xkETeVZPxPlM6RMe4ZjmV6V12+s9VzCf+CH3QhVSuIrcgEbaUCQDSuEqUVzIiTMAAA==') format('woff2'),
  url('//at.alicdn.com/t/font_1948714_o615zwc843k.woff?t=1616746789802') format('woff'),
  url('//at.alicdn.com/t/font_1948714_o615zwc843k.ttf?t=1616746789802') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  url('//at.alicdn.com/t/font_1948714_o615zwc843k.svg?t=1616746789802#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-tishi:before {
  content: "\e61b";
}

.icon-tishi1:before {
  content: "\e65e";
}

.icon-zhanshi:before {
  content: "\e6b3";
}

.icon-biaoqiankuozhan_shouye-321:before {
  content: "\ebb2";
}

.icon-guanbi3:before {
  content: "\e606";
}

.icon-guanbi1:before {
  content: "\e61a";
}

.icon-shezhi1:before {
  content: "\e617";
}

.icon-gengduo2:before {
  content: "\e736";
}

.icon-guanbi:before {
  content: "\e613";
}

.icon-xiaoxi1:before {
  content: "\e616";
}

.icon-sousuo1:before {
  content: "\e66d";
}

.icon-shanchu:before {
  content: "\e615";
}

.icon-more:before {
  content: "\e60a";
}

.icon-shang3:before {
  content: "\e689";
}

.icon-xia:before {
  content: "\e65b";
}

.icon-kaiguan3:before {
  content: "\e6da";
}

.icon-kaiguan4:before {
  content: "\e6db";
}

.icon-select:before {
  content: "\e607";
}

.icon-weixuan:before {
  content: "\e65d";
}

.icon-time:before {
  content: "\e619";
}

.icon-you:before {
  content: "\e600";
}

.icon-shuazi:before {
  content: "\e62a";
}

.icon-shuazi1:before {
  content: "\e610";
}

.icon-baocun-tianchong:before {
  content: "\e82b";
}

.icon-chehui:before {
  content: "\e66b";
}

.icon-bianji-cuxiantiao-fill:before {
  content: "\e69e";
}

.icon-qingkong:before {
  content: "\e629";
}

.icon-yanse:before {
  content: "\e886";
}

.icon-beiwanglushili:before {
  content: "\e612";
}

.icon-shijian:before {
  content: "\e631";
}

.icon-icon-eye-open:before {
  content: "\e60c";
}

.icon-icon-eye-close:before {
  content: "\e60f";
}

.icon-icon-1:before {
  content: "\e6e0";
}

.icon-jisuan:before {
  content: "\e643";
}

.icon-tongji1:before {
  content: "\e61d";
}

.icon-shezhi:before {
  content: "\e654";
}

.icon-xiugai:before {
  content: "\e698";
}

.icon-liebiao:before {
  content: "\e611";
}

.icon-add:before {
  content: "\e604";
}

.icon-shenghuofuwu:before {
  content: "\e681";
}

.icon-jingqu:before {
  content: "\e61e";
}

.icon-dianhua:before {
  content: "\e76a";
}

.icon-xiaoxi:before {
  content: "\e79c";
}

.icon-zhoumomanmanzuo:before {
  content: "\e7d5";
}

.icon-sousuo:before {
  content: "\e62c";
}

.icon-collection-b:before {
  content: "\e60d";
}

.icon-daohangdizhi:before {
  content: "\e65f";
}

.icon-like-line:before {
  content: "\e634";
}

.icon-like-s:before {
  content: "\e635";
}

.icon-tubiaozhizuo-:before {
  content: "\e605";
}

.icon-shoucang:before {
  content: "\e6a7";
}

.icon-ziyuan1:before {
  content: "\e618";
}

.icon-back:before {
  content: "\e602";
}

.icon-wode1:before {
  content: "\e658";
}

.icon-fs-funding:before {
  content: "\e60e";
}

.icon-home:before {
  content: "\e63f";
}

.icon-gupiao:before {
  content: "\e614";
}

.icon-xiangzuo:before {
  content: "\e6b0";
}

.icon-xiangyou:before {
  content: "\e65a";
}

This is the end of this article about how the WeChat mini program uniapp implements the left-swipe-to-delete effect. For more relevant WeChat mini program uniapp left-swipe-to-delete content, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • uniapp Sample code for implementing global sharing of WeChat mini-programs
  • Teach you how to subcontract uniapp and mini-programs (pictures and text)
  • How to implement a global floating button in uniapp mini program development

<<:  Detailed steps for IDEA to integrate docker to achieve remote deployment

>>:  Introduction to CSS3 color value RGBA and gradient color usage

Recommend

Detailed explanation of three relationship examples of MySQL foreign keys

This article uses examples to describe the three ...

Use of MySQL stress testing tool Mysqlslap

1. MySQL's own stress testing tool Mysqlslap ...

Native JavaScript to achieve skinning

The specific code for implementing skinning with ...

Echarts legend component properties and source code

The legend component is a commonly used component...

MySQL Series 11 Logging

Tutorial Series MySQL series: Basic concepts of M...

A brief discussion on the performance issues of MySQL paging limit

MySQL paging queries are usually implemented thro...

Implementation of whack-a-mole game in JavaScript

This article shares the specific code for JavaScr...

How to handle spaces in CSS

1. Space rules Whitespace within HTML code is usu...

Solve the problem of blank gap at the bottom of Img picture

When working on a recent project, I found that th...

Detailed process record of Vue2 initiating requests using Axios

Table of contents Preface Axios installation and ...

Comparison of the use of form element attributes readonly and disabled

1) Scope of application: readonly:input[type="...

Docker link realizes container interconnection

Table of contents 1.1. Network access between con...

Implementation of drawing audio waveform with wavesurfer.js

1. View the renderings Select forward: Select bac...