|
@@ -34,6 +34,39 @@
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
+ <el-row class="movie-list">
|
|
|
|
|
+ <el-col :md="12" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px">
|
|
|
|
|
+ <el-card class="box-card">
|
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
|
+ <span>会员计划</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="text item">
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ :data="vipPlanList"
|
|
|
|
|
+ border
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="planId"
|
|
|
|
|
+ label="ID"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="name"
|
|
|
|
|
+ label="名字"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="price"
|
|
|
|
|
+ label="价格(¥)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ prop="duration"
|
|
|
|
|
+ label="时长(天)"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
append-to-body
|
|
append-to-body
|
|
@@ -104,10 +137,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { userMixin } from 'assets/js/mixin'
|
|
import { userMixin } from 'assets/js/mixin'
|
|
|
-import {
|
|
|
|
|
- getSiteNotice,
|
|
|
|
|
- getVideoCategory
|
|
|
|
|
-} from '@/api/admin'
|
|
|
|
|
|
|
+import { getSiteNotice, getVideoCategory, getVipPlan } from '@/api/admin'
|
|
|
import { videoCategories } from '@/api/video'
|
|
import { videoCategories } from '@/api/video'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -130,7 +160,8 @@ export default {
|
|
|
categoryForm: {
|
|
categoryForm: {
|
|
|
pid: null,
|
|
pid: null,
|
|
|
name: null
|
|
name: null
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ vipPlanList: []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -141,13 +172,36 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getData() {
|
|
getData() {
|
|
|
|
|
+ getVipPlan().then(resp => {
|
|
|
|
|
+ if (resp.code === 0) {
|
|
|
|
|
+ this.vipPlanList = resp.data
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(resp.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ this.$notify({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ message: error.message,
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ duration: 3000
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
getVideoCategory().then(resp => {
|
|
getVideoCategory().then(resp => {
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|
|
|
console.log(resp.data)
|
|
console.log(resp.data)
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error(resp.msg)
|
|
this.$message.error(resp.msg)
|
|
|
}
|
|
}
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ this.$notify({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ message: error.message,
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ duration: 3000
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
videoCategories().then(resp => {
|
|
videoCategories().then(resp => {
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|
|
|
this.treeNode = resp.data
|
|
this.treeNode = resp.data
|
|
@@ -169,6 +223,13 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.error(resp.msg)
|
|
this.$message.error(resp.msg)
|
|
|
}
|
|
}
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ this.$notify({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ message: error.message,
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ duration: 3000
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// ****************************************************************************************************************
|
|
// ****************************************************************************************************************
|