commit
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user