|
@@ -1,7 +1,8 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<div class="xl-form">
|
|
|
- <el-button class="xl-form-btn t4" @click="updateCash">更新小程序首页缓存</el-button>
|
|
|
+ <el-button class="xl-form-btn t1" @click="updateCash">更新小程序首页缓存</el-button>
|
|
|
+ <el-button :class="wxCheckStatus == 1 ? 'xl-form-btn t4' : 'xl-form-btn t3'" @click="wxCheckStatusChange">微信审核:{{ wxCheckStatus == 1 ? '审核中注释视频' : '正常展示视频' }}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -14,12 +15,29 @@ export default {
|
|
|
parentData: this
|
|
|
}
|
|
|
},
|
|
|
- created () {},
|
|
|
+ created () {
|
|
|
+ this.getCurWxCheckStatus()
|
|
|
+ },
|
|
|
data () {
|
|
|
- return {}
|
|
|
+ return {
|
|
|
+ wxCheckStatus: 2
|
|
|
+ }
|
|
|
},
|
|
|
mounted () {},
|
|
|
methods: {
|
|
|
+ getCurWxCheckStatus () {
|
|
|
+ this.$api.base.admwechatcheckstatus().then(res => {
|
|
|
+ this.wxCheckStatus = res.data || res
|
|
|
+ })
|
|
|
+ },
|
|
|
+ wxCheckStatusChange () {
|
|
|
+ this.$api.base.admwechatcheckstatus({
|
|
|
+ status: this.wxCheckStatus == 1 ? 2 : 1
|
|
|
+ }).then(res => {
|
|
|
+ this.getCurWxCheckStatus()
|
|
|
+ this.$msgs(`更新成功!`)
|
|
|
+ })
|
|
|
+ },
|
|
|
updateCash () {
|
|
|
this.$api.base.admconfigcacheclear().then(data => {
|
|
|
this.$msgs(`更新成功!`)
|