diff --git a/src/api/index.js b/src/api/index.js index 1ecaf32..158648d 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -17,6 +17,7 @@ export default { backgroundActivityList: `competition/competition/management/backgroundActivityList`, + postLoginActivity: `competition/competition/management/postLoginActivity`, addCompetition: `competition/competition/management/addCompetition`, batchDeleteCompetition: `competition/competition/management/batchDeleteCompetition`, disabledEventsCompetition: `competition/competition/management/disabledEvents`, @@ -43,6 +44,8 @@ export default { transferAdmin: `nakadai/nakadai/partnerAccount/transferAdmin`, savePartnerAccount: `nakadai/nakadai/partnerAccount/savePartnerAccount`, platformTeamAccountList: `nakadai/kindergarten/platformTeamAccount/platformTeamAccountList`, + removeOrganization: `nakadai/kindergarten/platformTeamAccount/removeOrganization`, + updateAccountStatus: `nakadai/kindergarten/platformTeamAccount/updateAccountStatus`, delSupplierClass: `nakadai/supplierClassification/batchDeletion`, findSupplierClass: `nakadai/supplierClassification/findById`, @@ -54,4 +57,11 @@ export default { listComClass: `competition/competitionClassification/categoryList`, saveComClass: `competition/competitionClassification/save`, updateComClass: `competition/competitionClassification/update`, + + delExplosive: `nakadai/explosiveRecommendation/batchDeletion`, + explosiveList: `nakadai/explosiveRecommendation/explosiveList`, + findExplosive: `nakadai/explosiveRecommendation/findById`, + saveExplosive: `nakadai/explosiveRecommendation/save`, + sortExplosive: `nakadai/explosiveRecommendation/sort`, + updateExplosive: `nakadai/explosiveRecommendation/update`, } \ No newline at end of file diff --git a/src/assets/images/miniProgram.png b/src/assets/images/miniProgram.png new file mode 100644 index 0000000..bd96ab6 Binary files /dev/null and b/src/assets/images/miniProgram.png differ diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index ae8440a..0474070 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -92,7 +92,18 @@ export default { icon: 'activity', index: '/activity/list', title: '活动管理' - } + }, + { + icon: 'miniProgram', + index: 'miniProgram', + title: '小程序管理', + subs: [ + { + index: '/miniProgramMg/index', + title: '首页设置' + }, + ] + }, ], }; }, diff --git a/src/pages/activity/list/index.vue b/src/pages/activity/list/index.vue index 054fbd1..e11bcff 100644 --- a/src/pages/activity/list/index.vue +++ b/src/pages/activity/list/index.vue @@ -43,9 +43,8 @@
  • - + { const list = data.records this.list = list @@ -284,10 +294,6 @@ export default { this.$refs.table.clearSelection(); this.initData(); }, - // 活动来源回调 - sourceChange (val) { - this.initData() - }, delData (row) { this.$confirm("此删除操作不可逆,是否确认删除选中项?", "提示", { type: "warning" diff --git a/src/pages/miniProgramMg/index/add/index.vue b/src/pages/miniProgramMg/index/add/index.vue new file mode 100644 index 0000000..bf9600d --- /dev/null +++ b/src/pages/miniProgramMg/index/add/index.vue @@ -0,0 +1,293 @@ + + + + + \ No newline at end of file diff --git a/src/pages/miniProgramMg/index/inlet/index.vue b/src/pages/miniProgramMg/index/inlet/index.vue new file mode 100644 index 0000000..2845cb2 --- /dev/null +++ b/src/pages/miniProgramMg/index/inlet/index.vue @@ -0,0 +1,54 @@ + + + + + \ No newline at end of file diff --git a/src/pages/miniProgramMg/index/list/index.vue b/src/pages/miniProgramMg/index/list/index.vue new file mode 100644 index 0000000..c5cd78e --- /dev/null +++ b/src/pages/miniProgramMg/index/list/index.vue @@ -0,0 +1,185 @@ + + + + + \ No newline at end of file diff --git a/src/pages/preschool/list/index.vue b/src/pages/preschool/list/index.vue index 5da5a7d..7fc2763 100644 --- a/src/pages/preschool/list/index.vue +++ b/src/pages/preschool/list/index.vue @@ -306,7 +306,7 @@ export default { this.status1 = list.filter(e => e.auditStatus === 1).length this.status2 = list.filter(e => e.auditStatus === 2).length this.status3 = list.filter(e => e.auditStatus === 3).length - this.status4 = list.filter(e => e.auditStatus === 4).length + this.status4 = list.filter(e => e.auditStatus === 0).length this.all = list.length }, initData () { diff --git a/src/pages/preschool/manage/basic.vue b/src/pages/preschool/manage/basic.vue index 7543b35..2781327 100644 --- a/src/pages/preschool/manage/basic.vue +++ b/src/pages/preschool/manage/basic.vue @@ -66,6 +66,10 @@ rows="4" v-model="form.address" /> + + + e.auditStatus === 1).length this.status2 = list.filter(e => e.auditStatus === 2).length this.status3 = list.filter(e => e.auditStatus === 3).length - this.status4 = list.filter(e => e.auditStatus === 4).length + this.status4 = list.filter(e => e.auditStatus === 0).length this.all = list.length }, initData () { diff --git a/src/pages/supplier/manage/basic.vue b/src/pages/supplier/manage/basic.vue index 0d99ab6..ff382ee 100644 --- a/src/pages/supplier/manage/basic.vue +++ b/src/pages/supplier/manage/basic.vue @@ -72,6 +72,10 @@ rows="4" v-model="form.address" /> + + + { - this.$post(this.api.delUserAccounts, [row.openId]).then(res => { + this.$get(this.api.removeOrganization, { + manageId: row.manageId, + teamId: row.teamId, + }).then(res => { this.$message.success('移除成功') this.getData() }).catch(res => { }) diff --git a/src/pages/user/list/index.vue b/src/pages/user/list/index.vue index 49a6532..6e30db3 100644 --- a/src/pages/user/list/index.vue +++ b/src/pages/user/list/index.vue @@ -93,7 +93,7 @@ - { + this.$post(`${this.api.updateAccountStatus}?openId=${row.appOpenId}&isEnable=${val}`).then(res => { Util.successMsg(val ? '启用成功' : '禁用成功') + this.getData() }).catch(res => { }) }, handleSelectionChange (val) { diff --git a/src/plugins/requests/index.js b/src/plugins/requests/index.js index 4deca2c..bc04402 100644 --- a/src/plugins/requests/index.js +++ b/src/plugins/requests/index.js @@ -49,7 +49,7 @@ service.interceptors.response.use( const { status, data } = error.response if (status) { const { message } = data - switch (code) { + switch (status) { // 401: 未登录 case 401: Util.errorMsg("登录过期,请重新登录"); diff --git a/src/router/modules/miniProgramMg.js b/src/router/modules/miniProgramMg.js new file mode 100644 index 0000000..1a09e0a --- /dev/null +++ b/src/router/modules/miniProgramMg.js @@ -0,0 +1,30 @@ +import BasicLayout from '@/layouts/home' + +const meta = {} + +export default { + path: '/miniProgramMg', + name: 'miniProgramMg', + redirect: { + path: `/miniProgramMg/index`, + }, + meta, + component: BasicLayout, + children: [ + { + path: `index`, + component: () => import('@/pages/miniProgramMg/index/inlet'), + meta: { title: '首页管理' } + }, + { + path: `list`, + component: () => import('@/pages/miniProgramMg/index/list'), + meta: { title: '首页管理' } + }, + { + path: `add`, + component: () => import('@/pages/miniProgramMg/index/add'), + meta: { title: '爆款推荐' } + }, + ] +} diff --git a/src/setting.js b/src/setting.js index d41a4e0..7af381a 100644 --- a/src/setting.js +++ b/src/setting.js @@ -4,7 +4,7 @@ const isDev = process.env.NODE_ENV === 'development' // 开发环境 let host = `${location.origin}/` if (isDev) { - host = 'https://huorantech.com/' + host = 'http://124.71.79.122/' host = 'http://192.168.31.217:10010/' }