commit
This commit is contained in:
@@ -93,6 +93,25 @@ layout("/layouts/platform_1.html"){
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
publishedChange(val, row) {
|
||||||
const params = JSON.parse(JSON.stringify(row))
|
const params = JSON.parse(JSON.stringify(row))
|
||||||
this.$set(params, 'published', val)
|
this.$set(params, 'published', val)
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<t-swiper
|
<t-swiper
|
||||||
|
v-if="actList.length > 0"
|
||||||
:autoplay="actList.length > 1"
|
:autoplay="actList.length > 1"
|
||||||
:navigation="{ type: 'fraction', paginationPosition: 'bottom-right', showControls: true }"
|
:navigation="{ type: 'fraction', paginationPosition: 'bottom-right', showControls: true }"
|
||||||
>
|
>
|
||||||
@@ -68,6 +69,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</t-swiper-item>
|
</t-swiper-item>
|
||||||
</t-swiper>
|
</t-swiper>
|
||||||
|
<t-empty
|
||||||
|
v-if="actList.length === 0"
|
||||||
|
description="暂无精彩瞬间"
|
||||||
|
/>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -76,7 +81,7 @@
|
|||||||
<view class="section-title">精彩瞬间</view>
|
<view class="section-title">精彩瞬间</view>
|
||||||
</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"
|
<view class="moment-item" v-for="item in wonderfulMomentList" :key="item.id"
|
||||||
@click="handleWonderfulMoment(item)">
|
@click="handleWonderfulMoment(item)">
|
||||||
<image class="moment-image"
|
<image class="moment-image"
|
||||||
@@ -91,6 +96,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<t-empty
|
||||||
|
v-if="wonderfulMomentList.length === 0"
|
||||||
|
description="暂无精彩瞬间"
|
||||||
|
/>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user