Merge branch 'main' of git.zdool.com:xs/yxdt/h5

This commit is contained in:
duanxiaohai 2023-12-08 10:07:05 +08:00
commit a263011126
6 changed files with 21 additions and 19 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="icon" href="/favicon.ico"> <link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title> <title>优享地图</title>
</head> </head>
<script type="text/javascript" src="http://api.tianditu.gov.cn/api?v=4.0&tk=4e6d9067f64ad8101ca0f4ceb7cb4083"></script> <script type="text/javascript" src="http://api.tianditu.gov.cn/api?v=4.0&tk=4e6d9067f64ad8101ca0f4ceb7cb4083"></script>

View File

@ -15,7 +15,6 @@ const route = useRoute()
let routePath = ref(route.path) let routePath = ref(route.path)
const router = useRouter() const router = useRouter()
let bt_data = reactive([{ btname: '优惠服务', imgurl: s1, simgurl: sl1, path: '/' }, { btname: '生活助手', imgurl: s2, simgurl: sl2, path: '/chat' }, { btname: '智能优推', imgurl: s3, simgurl: sl3, path: '/znyt' }, { btname: '大众点评', imgurl: s4, simgurl: sl4, path: '/comment' }]) let bt_data = reactive([{ btname: '优惠服务', imgurl: s1, simgurl: sl1, path: '/' }, { btname: '生活助手', imgurl: s2, simgurl: sl2, path: '/chat' }, { btname: '智能优推', imgurl: s3, simgurl: sl3, path: '/znyt' }, { btname: '大众点评', imgurl: s4, simgurl: sl4, path: '/comment' }])
let selctdeNum = ref(0) let selctdeNum = ref(0)
let clickNum = (num, path) => { let clickNum = (num, path) => {
selctdeNum.value = num selctdeNum.value = num

View File

@ -1,8 +1,8 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue' import HomeView from '../views/HomeView.vue'
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [ routes: [
{ {
path: '/', path: '/',

View File

@ -23,6 +23,7 @@
messages: [ messages: [
{ id: 1, text: '你好', isMe: false }, { id: 1, text: '你好', isMe: false },
{ id: 2, text: 'Hi', isMe: true }, { id: 2, text: 'Hi', isMe: true },
], ],
}; };
}, },

View File

@ -56,6 +56,8 @@
import { ref, reactive } from "vue"; import { ref, reactive } from "vue";
import listRightImg from "@/components/list-right-img.vue"; import listRightImg from "@/components/list-right-img.vue";
import listNoImg from "@/components/list-no-img.vue"; import listNoImg from "@/components/list-no-img.vue";
import j1 from "../assets/cc4.png";
import j2 from "../assets/cc3.png";
const topContent = reactive([ const topContent = reactive([
{ {
content: "2024年养老金发放政策工龄30年内统一发放3200元可行吗", content: "2024年养老金发放政策工龄30年内统一发放3200元可行吗",
@ -106,7 +108,7 @@ const records = reactive({
display: 1, display: 1,
title: "“三问”个人养老金:是什么、怎么缴、如何领?", title: "“三问”个人养老金:是什么、怎么缴、如何领?",
createdAt: "11月27日", createdAt: "11月27日",
imgUrl: "/src/assets/cc4.png", imgUrl: j1,
eye: "8888", eye: "8888",
}, },
{ {
@ -114,7 +116,7 @@ const records = reactive({
display: 1, display: 1,
title: "100场社区活动——教你轻松玩转智能手机", title: "100场社区活动——教你轻松玩转智能手机",
createdAt: "11月27日", createdAt: "11月27日",
imgUrl: "/src/assets/cc3.png", imgUrl: j2,
eye: "8888", eye: "8888",
}, },
{ {
@ -129,7 +131,7 @@ const records = reactive({
display: 1, display: 1,
title: "100场社区活动——教你轻松玩转智能手机", title: "100场社区活动——教你轻松玩转智能手机",
createdAt: "11月27日", createdAt: "11月27日",
imgUrl: "/src/assets/cc3.png", imgUrl: j1,
eye: "8888", eye: "8888",
}, },
{ {

View File

@ -1,19 +1,19 @@
import { fileURLToPath, URL } from 'node:url' import { fileURLToPath, URL } from "node:url";
import { defineConfig } from 'vite' import { defineConfig } from "vite";
import vue from '@vitejs/plugin-vue' import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
server: { // ← ← ← ← ← ← server: {
host: '0.0.0.0' // ← 新增内容 ← // ← ← ← ← ← ←
host: "0.0.0.0", // ← 新增内容 ←
}, },
plugins: [ base: "./", //生产环境路径
vue(), plugins: [vue()],
],
resolve: { resolve: {
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)) "@": fileURLToPath(new URL("./src", import.meta.url)),
} },
} },
}) });