提交小程序
This commit is contained in:
parent
ee650bba12
commit
47afb8a442
|
@ -1,3 +1,3 @@
|
||||||
# 配置文档参考 https://taro-docs.jd.com/docs/next/env-mode-config
|
# 配置文档参考 https://taro-docs.jd.com/docs/next/env-mode-config
|
||||||
TARO_APP_ID="wx0acd1c4fcf94bdd3"
|
TARO_APP_ID="wx0acd1c4fcf94bdd3"
|
||||||
TARO_APP_BASE_API="http://172.10.10.93:8765"
|
TARO_APP_BASE_API="https://www.hnjinglian.cn:5678"
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
# TARO_APP_ID="生产环境下的小程序appid"
|
# TARO_APP_ID="wx0acd1c4fcf94bdd3"
|
||||||
|
TARO_APP_BASE_API="https://www.hnjinglian.cn:5678"
|
||||||
|
|
|
@ -0,0 +1,71 @@
|
||||||
|
.public {
|
||||||
|
height: 100vh;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
.public-container {
|
||||||
|
height: 320rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background-image: url('../../../assets/images/banner.png');
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: right;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 45rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.contacts {
|
||||||
|
height: 75rpx;
|
||||||
|
width: 75rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: solid 1px gray;
|
||||||
|
.image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tips-text {
|
||||||
|
display: flex;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #fff;
|
||||||
|
line-height: 50rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.exit {
|
||||||
|
height: 100rpx;
|
||||||
|
line-height: 40px;
|
||||||
|
border-bottom: solid 0.5px #ebebf7;
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
color: #7d7d7d;
|
||||||
|
.exitItem {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-left: 30rpx;
|
||||||
|
}
|
||||||
|
.exitItemIndex {
|
||||||
|
height: 40rpx;
|
||||||
|
width: 40rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: block;
|
||||||
|
line-height: 48rpx;
|
||||||
|
image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.microscope {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
display: inline-block;
|
||||||
|
border: solid 2px #ccc;
|
||||||
|
-webkit-transform: rotate(45deg);
|
||||||
|
transform: rotate(45deg);
|
||||||
|
border-bottom: white;
|
||||||
|
border-left: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,9 +1,56 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="public">
|
||||||
警察我的444
|
<!-- 公安-->
|
||||||
|
<view class="public-container" >
|
||||||
|
<view class="contacts">
|
||||||
|
<image src="@/assets/logo/avatar1.png" mode="scaleToFill" class="image" />
|
||||||
|
</view>
|
||||||
|
<view class="tips-text">
|
||||||
|
<view style="font-size: 15px;">名字</view>
|
||||||
|
<view style="font-size: 12px;">
|
||||||
|
<text style="margin-right: 5px">部门 </text>
|
||||||
|
<text>未选择单位</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 用户信息 -->
|
||||||
|
<view class="userIndex">
|
||||||
|
<view class="exit" v-for="item in datalist" :key="item.value">
|
||||||
|
<view class="exitItem">
|
||||||
|
<!-- <view class="exitItemIndex">-->
|
||||||
|
<!-- <image :src="item.url" mode="scaleToFill" class="image" />-->
|
||||||
|
<!-- </view>-->
|
||||||
|
<text style="margin-left: 30rpx;font-size: 12px;">{{ item.name }}</text>
|
||||||
|
</view>
|
||||||
|
<view style="margin-right: 40rpx">
|
||||||
|
<text class="microscope"></text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 退出弹框-->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import './index.scss'
|
||||||
|
import {ref} from "vue";
|
||||||
|
|
||||||
|
const datalist = ref([
|
||||||
|
{
|
||||||
|
value: 1,
|
||||||
|
name: '简介',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 0,
|
||||||
|
name: '退出登录',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 2,
|
||||||
|
name: '修改用户信息',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 3,
|
||||||
|
name: '意见收集',
|
||||||
|
},
|
||||||
|
])
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -8,8 +8,7 @@ VITE_APP_BASE_API=/api
|
||||||
VITE_APP_PROXY_URL=http://172.10.10.93:8765
|
VITE_APP_PROXY_URL=http://172.10.10.93:8765
|
||||||
|
|
||||||
# rsa 公钥
|
# rsa 公钥
|
||||||
VITE_APP_RSA_PUBLIC_KEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJps/EXxxSpEM1Ix4R0NWIOBciHCr7P7coDT8tNKfelgR7txcJOqHCO/MIWe7T04aHQTcpQxqx9hMca7dbqz8TZpz9jvLzE/6ZonVKxHsoFnNlHMp1/CPAJ9f6D9wYicum2KltJkmQ0g//D9W2zPCYoGOmSRFcZx/KEBa4EM53jQIDAQAB
|
VITE_APP_RSA_PUBLIC_KEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpu1C3JHZ+Ng/eVVCZtwKsOZv9RktpAL13pKy4FoRHyNv2t8TPV2AMzLzfEzlWx001nBxyVxEMR2N9jAcqFLHv7r16ciOzbtzB9dky2G+bc9jIs4/EdVK5bAZcPRh5Jrb78sC9PHyR4AeceDyCIKHLUbWBJB4NTZE0s1Wh5kMynQIDAQAB
|
||||||
|
|
||||||
# minio
|
# minio
|
||||||
VITE_APP_MINIO_URL=https://www.hnjinglian.cn:9000
|
VITE_APP_MINIO_URL=https://www.hnjinglian.cn:9000
|
||||||
VITE_APP_MINIO_BUCKET=police-security-dev
|
VITE_APP_MINIO_BUCKET=police-security-dev
|
||||||
|
|
|
@ -6,3 +6,10 @@ VITE_DROP_CONSOLE=true
|
||||||
# axios
|
# axios
|
||||||
VITE_APP_BASE_API=/api
|
VITE_APP_BASE_API=/api
|
||||||
VITE_APP_PROXY_URL=https://172.10.10.238:8765
|
VITE_APP_PROXY_URL=https://172.10.10.238:8765
|
||||||
|
|
||||||
|
|
||||||
|
# rsa 公钥
|
||||||
|
VITE_APP_RSA_PUBLIC_KEY=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCpu1C3JHZ+Ng/eVVCZtwKsOZv9RktpAL13pKy4FoRHyNv2t8TPV2AMzLzfEzlWx001nBxyVxEMR2N9jAcqFLHv7r16ciOzbtzB9dky2G+bc9jIs4/EdVK5bAZcPRh5Jrb78sC9PHyR4AeceDyCIKHLUbWBJB4NTZE0s1Wh5kMynQIDAQAB
|
||||||
|
# minio
|
||||||
|
VITE_APP_MINIO_URL=https://www.hnjinglian.cn:9000
|
||||||
|
VITE_APP_MINIO_BUCKET=police-security
|
|
@ -16,9 +16,10 @@
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"pinia": "^2.2.2",
|
"pinia": "^2.2.2",
|
||||||
"pinia-plugin-persistedstate": "^3.2.0",
|
"pinia-plugin-persistedstate": "^3.2.0",
|
||||||
"vue-component-type-helpers": "^2.1.2",
|
|
||||||
"sass": "^1.77.8",
|
"sass": "^1.77.8",
|
||||||
|
"terser": "^5.36.0",
|
||||||
"vue": "^3.4.37",
|
"vue": "^3.4.37",
|
||||||
|
"vue-component-type-helpers": "^2.1.2",
|
||||||
"vue-router": "4",
|
"vue-router": "4",
|
||||||
"vue-uuid": "^3.0.0"
|
"vue-uuid": "^3.0.0"
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,7 +10,7 @@ import {ROUTER_WHITE_LIST} from "@/config";
|
||||||
* createWebHashHistory: 路径带#号 这部分 URL 从未被发送到服务器,所以它不需要在服务器层面上进行任何特殊处理,影响SEO
|
* createWebHashHistory: 路径带#号 这部分 URL 从未被发送到服务器,所以它不需要在服务器层面上进行任何特殊处理,影响SEO
|
||||||
*/
|
*/
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory('/securityManagement/'),
|
||||||
routes: [...staticRouter],
|
routes: [...staticRouter],
|
||||||
strict: false,
|
strict: false,
|
||||||
scrollBehavior: () => ({left: 0, top: 0})
|
scrollBehavior: () => ({left: 0, top: 0})
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default defineConfig(({mode}) => {
|
||||||
define: {
|
define: {
|
||||||
__APP_ENV: JSON.stringify(env)
|
__APP_ENV: JSON.stringify(env)
|
||||||
},
|
},
|
||||||
base: '/',
|
base: '/securityManagement/',
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
vueJsx(),
|
vueJsx(),
|
||||||
|
@ -43,7 +43,7 @@ export default defineConfig(({mode}) => {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: 'dist',
|
outDir: 'securityManagement',
|
||||||
target: 'modules',
|
target: 'modules',
|
||||||
chunkSizeWarningLimit: 1500,
|
chunkSizeWarningLimit: 1500,
|
||||||
minify: 'terser',
|
minify: 'terser',
|
||||||
|
|
Loading…
Reference in New Issue