230320a303 5 months ago
parent
commit
9d64618dc2

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.1fc73145.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.5b415b9c.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-28109db7.6294b6f3.js


+ 3 - 0
src/api/base.js

@@ -30,6 +30,9 @@ export default {
   admconfigcacheclear: params => { // 更新小程序首页 缓存
     return getRequest('/adm/config/cache/clear', params, 'loading')
   },
+  admwechatcheckstatus: params => { // 小程序 微信审核状态 不传参数就是查询 status
+    return getRequest('/adm/wechat/check/status', params, 'loading')
+  },
   admdicttypelist: params => { // 字典类型列表接口
     return getRequest('/adm/dict/type/list', params)
   },

+ 21 - 3
src/views/base/cash.vue

@@ -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(`更新成功!`)

Some files were not shown because too many files changed in this diff