parent
a8cf39e835
commit
4a97ec60fa
@ -0,0 +1,13 @@
|
||||
NODE_ENV = development
|
||||
|
||||
VITE_ENV = development
|
||||
|
||||
VITE_APP_BASE_URL = https://utel.zltest.com.tw
|
||||
|
||||
VITE_APP_LINE_LIFF_ID = 1656907652-p38ddKzQ
|
||||
|
||||
VITE_APP_SEND_URL = https://liff.line.me/1656907652-VJq33Pdg
|
||||
|
||||
VITE_APP_API_URL = https://utel.zltest.com.tw/appapi/v1
|
||||
|
||||
VITE_APP_IMAGE_URL = https://utel.vip/storage
|
||||
@ -1,13 +1,13 @@
|
||||
NODE_ENV = production
|
||||
|
||||
VUE_ENV = production
|
||||
VITE_ENV = production
|
||||
|
||||
VUE_APP_BASE_URL = https://utel.vip
|
||||
VITE_APP_BASE_URL = https://utel.vip
|
||||
|
||||
VUE_APP_LINE_LIFF_ID = 1656969446-nQYlz77R
|
||||
VITE_APP_LINE_LIFF_ID = 1656969446-nQYlz77R
|
||||
|
||||
VUE_APP_SEND_URL = https://liff.line.me/1656969446-mg36Maav
|
||||
VITE_APP_SEND_URL = https://liff.line.me/1656969446-mg36Maav
|
||||
|
||||
VUE_APP_API_URL = https://utel.vip/appapi/v1
|
||||
VITE_APP_API_URL = https://utel.vip/appapi/v1
|
||||
|
||||
VUE_APP_IMAGE_URL = https://utel.vip/storage
|
||||
VITE_APP_IMAGE_URL = https://utel.vip/storage
|
||||
@ -1,13 +1,13 @@
|
||||
NODE_ENV = production
|
||||
|
||||
VUE_ENV = stage
|
||||
VITE_ENV = stage
|
||||
|
||||
VUE_APP_BASE_URL = https://utel.zltest.com.tw
|
||||
VITE_APP_BASE_URL = https://utel.zltest.com.tw
|
||||
|
||||
VUE_APP_LINE_LIFF_ID = 1656948609-xMp7dWAz
|
||||
VITE_APP_LINE_LIFF_ID = 1656948609-xMp7dWAz
|
||||
|
||||
VUE_APP_SEND_URL = https://liff.line.me/1656948609-BYr8Nynp
|
||||
VITE_APP_SEND_URL = https://liff.line.me/1656948609-BYr8Nynp
|
||||
|
||||
VUE_APP_API_URL = https://utel.zltest.com.tw/appapi/v1
|
||||
VITE_APP_API_URL = https://utel.zltest.com.tw/appapi/v1
|
||||
|
||||
VUE_APP_IMAGE_URL = https://utel.zltest.com.tw/storage
|
||||
VITE_APP_IMAGE_URL = https://utel.zltest.com.tw/storage
|
||||
@ -1,11 +1,11 @@
|
||||
NODE_ENV = production
|
||||
NODEproduction_ENV = production
|
||||
|
||||
VUE_ENV = production
|
||||
VITE_ENV = production
|
||||
|
||||
VUE_APP_LINE_LIFF_ID = 1657184427-8bq9debn
|
||||
VITE_APP_LINE_LIFF_ID = 1657184427-8bq9debn
|
||||
|
||||
VUE_APP_SEND_URL = https://liff.line.me/1657184427-9GayRMQl
|
||||
VITE_APP_SEND_URL = https://liff.line.me/1657184427-9GayRMQl
|
||||
|
||||
VUE_APP_API_URL = https://card.u168.vip/appapi/v1
|
||||
VITE_APP_API_URL = https://card.u168.vip/appapi/v1
|
||||
|
||||
VUE_APP_IMAGE_URL = https://card.u168.vip/storage
|
||||
VITE_APP_IMAGE_URL = https://card.u168.vip/storage
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
|
||||
}
|
||||
@ -1,19 +1,7 @@
|
||||
# ecard2
|
||||
# Vue 3 + Vite
|
||||
|
||||
## Project setup
|
||||
```
|
||||
npm install
|
||||
```
|
||||
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
npm run serve
|
||||
```
|
||||
## Recommended IDE Setup
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
||||
|
||||
@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh_TW">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
|
||||
/>
|
||||
<link rel="icon" href="favicon.ico" />
|
||||
<link rel="stylesheet" href="/css/flex2html.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://at.alicdn.com/t/font_3193091_nixfhsddmnl.css"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css"
|
||||
integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn"
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
<title>UTel電子名片</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="/js/flex2html.min.js"></script>
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"
|
||||
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,48 +1,40 @@
|
||||
{
|
||||
"name": "utel",
|
||||
"version": "0.1.0",
|
||||
"name": "utel_h5_vite",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"build:u168": "vue-cli-service build --mode u168",
|
||||
"build:dev": "vue-cli-service build --mode development",
|
||||
"build:slash": "vue-cli-service build --mode slash",
|
||||
"build:sta": "vue-cli-service build --mode stage",
|
||||
"build:h888": "vue-cli-service build --mode h888"
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@line/liff": "^2.22.4",
|
||||
"@soerenmartius/vue3-clipboard": "^0.1.2",
|
||||
"axios": "^1.3.3",
|
||||
"colorthief": "^2.3.2",
|
||||
"core-js": "^3.6.5",
|
||||
"axios": "^1.5.1",
|
||||
"colorthief": "^2.4.0",
|
||||
"ismobilejs": "^1.1.1",
|
||||
"js-cookie": "^3.0.1",
|
||||
"js-cookie": "^3.0.5",
|
||||
"lodash": "^4.17.21",
|
||||
"moment": "^2.29.1",
|
||||
"moment": "^2.29.4",
|
||||
"nprogress": "^0.2.0",
|
||||
"pwacompat": "^2.0.17",
|
||||
"qrcode.vue": "^3.3.3",
|
||||
"register-service-worker": "^1.7.1",
|
||||
"qrcode.vue": "^3.4.1",
|
||||
"register-service-worker": "^1.7.2",
|
||||
"secure-ls": "^1.2.6",
|
||||
"vant": "^3.4.5",
|
||||
"vue": "3.2.41",
|
||||
"vue-advanced-cropper": "^2.8.1",
|
||||
"vue-cropper": "^1.0.3",
|
||||
"vue-router": "^4.0.0-0",
|
||||
"vuex": "^4.0.0-0",
|
||||
"vant": "^4.7.1",
|
||||
"vue": "^3.3.4",
|
||||
"vue-advanced-cropper": "^2.8.8",
|
||||
"vue-cropper": "^0.6.4",
|
||||
"vue-router": "^4.2.5",
|
||||
"vuex": "^4.1.0",
|
||||
"vuex-persistedstate": "^4.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "~4.5.15",
|
||||
"@vue/cli-plugin-pwa": "~4.5.15",
|
||||
"@vue/cli-plugin-router": "~4.5.15",
|
||||
"@vue/cli-plugin-vuex": "~4.5.15",
|
||||
"@vue/cli-service": "~4.5.15",
|
||||
"@vue/compiler-sfc": "3.2.41",
|
||||
"babel-plugin-import": "^1.13.3",
|
||||
"less": "^3.0.4",
|
||||
"less-loader": "^5.0.0"
|
||||
"@vant/auto-import-resolver": "^1.0.1",
|
||||
"@vitejs/plugin-vue": "^4.2.3",
|
||||
"less": "^4.2.0",
|
||||
"unplugin-vue-components": "^0.25.2",
|
||||
"vite": "^4.4.5"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,25 +1,26 @@
|
||||
<template>
|
||||
<Suspense>
|
||||
<template #default>
|
||||
<router-view/>
|
||||
<Suspense>
|
||||
<template #default>
|
||||
<router-view/>
|
||||
</template>
|
||||
<template #fallback>
|
||||
Loading
|
||||
</template>
|
||||
</Suspense>
|
||||
</template>
|
||||
<template #fallback>
|
||||
Loading
|
||||
</template>
|
||||
</Suspense>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { getSiteConfig } from './api'
|
||||
|
||||
import { useStore } from 'vuex'
|
||||
|
||||
const store = useStore()
|
||||
|
||||
|
||||
</script>
|
||||
<style lang="less">
|
||||
#app{
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script setup>
|
||||
import { getSiteConfig } from './api'
|
||||
|
||||
import { useStore } from 'vuex'
|
||||
|
||||
const store = useStore()
|
||||
|
||||
|
||||
</script>
|
||||
<style lang="less">
|
||||
#app{
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -0,0 +1,29 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import Components from 'unplugin-vue-components/vite';
|
||||
import { VantResolver } from '@vant/auto-import-resolver';
|
||||
import { resolve } from 'path';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({ mode }) => {
|
||||
return {
|
||||
base: '/home',
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 5173,
|
||||
},
|
||||
plugins: [
|
||||
vue(),
|
||||
Components({
|
||||
resolvers: [
|
||||
VantResolver(),
|
||||
],
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, 'src')
|
||||
}
|
||||
},
|
||||
}
|
||||
})
|
||||
Loading…
Reference in new issue