This commit is contained in:
@jyuhsin
2025-05-06 17:54:09 +08:00
parent 9100234923
commit 3a2e992774
2 changed files with 29 additions and 1 deletions
@@ -93,6 +93,25 @@ layout("/layouts/platform_1.html"){
}
},
methods: {
onTableRowDelete(id) {
if (!id) {
return
}
this.$confirm('确定删除该数据吗?', '提示', {
type: 'warning',
confirmButtonText: '确定',
cancelButtonText: '取消'
}).then(() => {
$.post(this.tableDeleteUrl, {id}).then((res) => {
if (res.code === 0) {
this.$message.success("删除成功")
this.pageData()
} else {
this.$message.error(res.msg)
}
})
}).catch(() => {})
},
publishedChange(val, row) {
const params = JSON.parse(JSON.stringify(row))
this.$set(params, 'published', val)
+10 -1
View File
@@ -48,6 +48,7 @@
</view>
<t-swiper
v-if="actList.length > 0"
:autoplay="actList.length > 1"
:navigation="{ type: 'fraction', paginationPosition: 'bottom-right', showControls: true }"
>
@@ -68,6 +69,10 @@
</view>
</t-swiper-item>
</t-swiper>
<t-empty
v-if="actList.length === 0"
description="暂无精彩瞬间"
/>
</view>
@@ -76,7 +81,7 @@
<view class="section-title">精彩瞬间</view>
</view>
<view class="activity-list">
<view class="activity-list" v-if="wonderfulMomentList.length > 0">
<view class="moment-item" v-for="item in wonderfulMomentList" :key="item.id"
@click="handleWonderfulMoment(item)">
<image class="moment-image"
@@ -91,6 +96,10 @@
</view>
</view>
</view>
<t-empty
v-if="wonderfulMomentList.length === 0"
description="暂无精彩瞬间"
/>
</view>