部分页面调整,添加app下载页面

This commit is contained in:
郭永超 2025-07-01 16:01:49 +08:00
parent 351622d206
commit 940953cd84
11 changed files with 94 additions and 10 deletions

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1751332976710" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9309" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48"><path d="M950.093 487.772L770.318 314.694c-14.382-13.851-35.955-13.851-50.336 0-14.382 13.842-14.382 34.614 0 48.465l118.647 114.228H493.461c-21.573 0-35.955 13.842-35.955 34.614s14.382 34.614 35.955 34.614h345.168L719.99 660.843c-14.382 13.851-14.382 34.623 0 48.465 7.192 6.93 14.382 10.386 25.164 10.386 10.792 0 17.982-3.465 25.173-10.386l179.775-176.535s0-3.465 3.6-3.465c10.782-10.386 10.782-31.149-3.6-41.535z" p-id="9310"></path><path d="M853.01 754.307c-21.573 0-35.955 13.851-35.955 34.614v69.237c0 20.763-14.382 34.614-35.955 34.614H169.865c-21.573 0-35.955-13.851-35.955-34.614V165.841c0-20.763 14.382-34.614 35.955-34.614H781.1c21.573 0 35.955 13.851 35.955 34.614v69.237c0 20.764 14.382 34.614 35.955 34.614s35.955-13.851 35.955-34.614v-69.237c0-58.842-46.736-103.842-107.865-103.842H169.865c-61.119 0-107.865 45-107.865 103.842v692.317C62 917 108.747 962 169.865 962H781.1c61.128 0 107.865-45 107.865-103.842v-69.237c0-20.764-14.382-34.614-35.955-34.614z" p-id="9311"></path></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -20,7 +20,7 @@ export const leftApps = [
{
name: 'sub-app2',
entry: VITE_APP_SUB_GAS,
activeRule: '/sub-app',
activeRule: '/operation-app',
title: 'APP',
icon: 'images/platform/icon-app.png',
},
@ -51,7 +51,7 @@ export const rightApps = [
{
name: 'sub-app1',
entry: VITE_APP_SUB_GAS,
activeRule: '/sub-app',
activeRule: '/government-affairs-app',
title: 'APP',
icon: 'images/platform/icon-app.png',
},

View File

@ -25,6 +25,18 @@ export const constantRoutes = [
name: 'platform',
meta: { title: '平台入口', icon: 'House' },
},
{
path: '/government-affairs-app',
component: () => import('@/views/appPage/government-affairs-app.vue'),
name: 'government-affairs-app',
meta: { title: '农业产业政务平台APP', icon: '' },
},
{
path: '/operation-app',
component: () => import('@/views/appPage/operation-app.vue'),
name: 'operation-app',
meta: { title: '农业产业运营平台APP', icon: '' },
},
],
},
];

View File

@ -0,0 +1,32 @@
<template>
<div class="download-app-header">
农业产业政务平台App下载
<el-tooltip effect="dark" content="退出" placement="bottom">
<img src="@/assets/images/quit.svg" alt="" class="layout-header-home" @click="goHome" />
</el-tooltip>
</div>
<iframe src="https://www.pgyer.com/MXd3uUrO" frameborder="0" style="width: 100%; height: calc(100vh - 50px)"></iframe>
</template>
<script setup>
import router from '@/router';
const goHome = () => {
router.push('/platform');
};
</script>
<style lang="scss" scoped>
.download-app-header {
font-size: 18px;
line-height: 40px;
padding: 0 16px;
font-weight: bold;
}
.layout-header-home {
width: 20px;
height: 20px;
margin-top: 11px;
float: right;
cursor: pointer;
}
</style>

View File

@ -0,0 +1,32 @@
<template>
<div class="download-app-header">
农业产业运营平台App下载
<el-tooltip effect="dark" content="退出" placement="bottom">
<img src="@/assets/images/quit.svg" alt="" class="layout-header-home" @click="goHome" />
</el-tooltip>
</div>
<iframe src="https://www.pgyer.com/4SVVtpob" frameborder="0" style="width: 100%; height: calc(100vh - 50px)"></iframe>
</template>
<script setup>
import router from '@/router';
const goHome = () => {
router.push('/platform');
};
</script>
<style lang="scss" scoped>
.download-app-header {
font-size: 18px;
line-height: 40px;
padding: 0 16px;
font-weight: bold;
}
.layout-header-home {
width: 20px;
height: 20px;
margin-top: 11px;
float: right;
cursor: pointer;
}
</style>

View File

@ -37,9 +37,13 @@ import { getAssetsFile } from '@/utils';
const gotoPage = (row) => {
// window.history.pushState({}, row.name, row.activeRule);
if (row.name == 'sub-app1') {
window.location.href = 'https://www.pgyer.com/MXd3uUrO';
// app
// window.location.href = 'https://www.pgyer.com/MXd3uUrO';
window.location.href = row.activeRule;
} else if (row.name == 'sub-app2') {
window.location.href = 'https://www.pgyer.com/4SVVtpob';
// app
// window.location.href = 'https://www.pgyer.com/4SVVtpob';
window.location.href = row.activeRule;
} else {
window.location.href = row.activeRule;
}

View File

@ -37,7 +37,8 @@ import TagsView from '../TagsView';
const { VITE_APP_PLATFORM } = import.meta.env;
const goHome = () => {
window.location.href = VITE_APP_PLATFORM;
// window.location.href = VITE_APP_PLATFORM;
window.location.href = '/';
};
const SettingStore = useSettingStore();

View File

@ -145,9 +145,9 @@ const columns = ref([
{ prop: 'gridName', label: '所属网格' },
{ prop: 'name', label: '姓名' },
{ prop: 'phone', label: '联系方式' },
{ prop: 'provenanceId', label: '种子编号' },
{ prop: 'provenanceId', label: '种子种苗编号' },
{ prop: 'provenanceName', label: '种子种苗名称' },
{ prop: 'useNumber', label: '使用量' },
{ prop: 'useNumber', label: '使用量', formatter: (row) => `${row.useNumber} ${row.useUnit}` },
{ prop: 'useTime', label: '使用时间' },
{ prop: 'action', label: '操作', slotName: 'action', width: 100, fixed: 'right' },
]);

View File

@ -1,6 +1,6 @@
# 测试环境
VITE_APP_MIAN = 'daimp-front-main'
VITE_APP_MIAN_URL = 'http://192.168.18.99:88'
VITE_APP_MIAN_URL = 'http://192.168.18.99'
VITE_APP_NAME = 'sub-operation-service'
# 接口
VITE_APP_BASE_API = '/apis'

View File

@ -10,7 +10,6 @@ declare module 'vue' {
BreadComp: typeof import('./src/components/breadComp.vue')['default']
CenterMap: typeof import('./src/components/centerMap.vue')['default']
CodeDialog: typeof import('./src/components/code-dialog/index.vue')['default']
copy: typeof import('./src/components/custom-scroll-title copy/index.vue')['default']
CostomImg: typeof import('./src/components/costomImg.vue')['default']
CustomBack: typeof import('./src/components/customBack.vue')['default']
CustomCarouselPicture: typeof import('./src/components/custom-carousel-picture/index.vue')['default']

View File

@ -78,6 +78,8 @@ import { getAssetsFile } from '@/utils';
import { getGoodNum } from '@/apis/agricultural.js';
import { useMethodsStore } from '@/store/modules/methods';
const { VITE_APP_PLATFORM } = import.meta.env;
const router = useRouter();
const keyword = ref('');
@ -143,7 +145,8 @@ function Search() {
const toHome = () => {
console.info('toHome', router);
router.push('/');
// window.location.href = VITE_APP_PLATFORM;
window.location.href = '/';
};
const toUserCenter = () => {