revert e5e2aca0c4
revert Merge branch 'main' of http://47.107.152.87:3000/liubiao/APP # Conflicts: # .gitignore # pages/common/index/index.vue # unpackage/dist/dev/app-plus/app-config-service.js # unpackage/dist/dev/app-plus/app-service.js # unpackage/dist/dev/app-plus/app-view.js # unpackage/dist/dev/app-plus/manifest.json # utils/request.js
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
<custom-navbar title="操作视频" :showBack="true" backgroundColor="#202020" color="#FFFFFF"></custom-navbar>
|
||||
<view class="device-page" :style="{ paddingTop: navBarHeight + 'px' }">
|
||||
<scroll-view scroll-y>
|
||||
<uni-swipe-action ref="swipeAction">
|
||||
<uni-swipe-action>
|
||||
<block v-for="(item, index) in videoList" :key="index">
|
||||
<uni-swipe-action-item :right-options="item.showConfirm ? confirmOptions : deleteOptions"
|
||||
@click="handleSwipeClick($event, index,item)" class="content">
|
||||
@ -86,8 +86,8 @@
|
||||
// 如果是确认删除操作
|
||||
if (content.text === '确认删除') {
|
||||
let ids = item.id
|
||||
let data = {
|
||||
ids: item.id
|
||||
let data ={
|
||||
ids:item.id
|
||||
}
|
||||
deleteOperationVideo(ids).then((res) => {
|
||||
if (res.code == 200) {
|
||||
@ -96,8 +96,6 @@
|
||||
icon: 'success'
|
||||
});
|
||||
this.getData()
|
||||
// 关闭所有滑动项
|
||||
this.$refs.swipeAction.closeAll();
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
@ -166,13 +164,6 @@
|
||||
},
|
||||
onShow() {
|
||||
this.getData()
|
||||
// 关闭所有滑动项
|
||||
// 使用$nextTick确保组件已渲染
|
||||
this.$nextTick(() => {
|
||||
if (this.$refs.swipeAction) {
|
||||
this.$refs.swipeAction.closeAll();
|
||||
}
|
||||
});
|
||||
},
|
||||
onLoad(options) {
|
||||
this.deviceID = options.id
|
||||
|
Reference in New Issue
Block a user