From 9cafbc6073c145e0a0f8b4c747d137c82dcee2bd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A6=86=E9=92=B1=E8=90=BD=E5=B0=BD=E6=A7=BF=E8=8A=B1?=
=?UTF-8?q?=E7=A8=80?= <2675540038@qq.com>
Date: Thu, 25 Jul 2024 18:16:58 +0800
Subject: [PATCH] 1
---
index.html | 1 +
src/pages/news/wechat_index.vue | 362 +++++++++++++++++++++++++++++++
src/pages/user/user_edit.vue | 1 +
src/router/modules/components.ts | 6 +
src/utils/request.ts | 4 +-
vite.config.js | 2 +-
6 files changed, 373 insertions(+), 3 deletions(-)
create mode 100644 src/pages/news/wechat_index.vue
diff --git a/index.html b/index.html
index 8a8e00c..d1743bb 100644
--- a/index.html
+++ b/index.html
@@ -4,6 +4,7 @@
+
diff --git a/src/pages/news/wechat_index.vue b/src/pages/news/wechat_index.vue
new file mode 100644
index 0000000..8848a29
--- /dev/null
+++ b/src/pages/news/wechat_index.vue
@@ -0,0 +1,362 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ onCreated(e)"
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/user/user_edit.vue b/src/pages/user/user_edit.vue
index 9f63d0a..0f02d66 100644
--- a/src/pages/user/user_edit.vue
+++ b/src/pages/user/user_edit.vue
@@ -593,6 +593,7 @@ getRegion() {
this.formData.cardf_image = res.data.cardf_image;
this.formData.cardz_image = res.data.cardz_image;
this.formData.photo_image = res.data.photo_image;
+ this.formData.company_image = res.data.company_image;
if (res.data.business_license_image == '') {
this.formData.business_license_image_show = [];
} else {
diff --git a/src/router/modules/components.ts b/src/router/modules/components.ts
index 23e1113..f18ab3a 100644
--- a/src/router/modules/components.ts
+++ b/src/router/modules/components.ts
@@ -94,6 +94,12 @@ export default [
redirect: '/news/news_index',
meta: {title: '新闻文章', icon: ViewListIcon},
children: [
+ {
+ path: 'wechat_index',
+ name: 'wechatIndex',
+ component: () => import('@/pages/news/wechat_index.vue'),
+ meta: {title: '公众号内容管理'},
+ },
{
path: 'news_index',
name: 'newsIndex',
diff --git a/src/utils/request.ts b/src/utils/request.ts
index ce8eb50..a6fd522 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -1,8 +1,8 @@
import axios from 'axios';
import store from '../store'
//const API_HOST = env === 'mock' ? '/' : proxy[env].API; // 如果是mock模式 就不配置host 会走本地Mock拦截
-const API_HOST ="https://hnyea.0rui.cn/api/";
-//const API_HOST ="/api/";
+//const API_HOST ="https://hnyea.0rui.cn/api/";
+const API_HOST ="/api/";
const CODE = {
LOGIN_TIMEOUT: 100000,
REQUEST_SUCCESS: 0,
diff --git a/vite.config.js b/vite.config.js
index 7752d70..99645dc 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -47,7 +47,7 @@ export default ({ mode }) => {
'/api': {
// 用于开发环境下的转发请求
// 更多请参考:https://vitejs.dev/config/#server-proxy
- target: 'http://192.168.3.130/',
+ target: 'https://hnyea.0rui.cn/',
pathRewrite: {
'^/api': ''
},