Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
e-shield-h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0736dd50
authored
Jul 20, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
打包配置
1 parent
63ce2e59
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
23 deletions
src/components/loading.vue
src/utils/vant.config.js
src/views/index.vue
vue.config.js
src/components/loading.vue
View file @
0736dd5
...
@@ -5,13 +5,8 @@
...
@@ -5,13 +5,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Loading
}
from
"vant"
;
export
default
{
export
default
{
name
:
"LOADING"
,
name
:
"LOADING"
,
components
:
{
[
"van-loading"
]:
Loading
,
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/utils/vant.config.js
View file @
0736dd5
...
@@ -3,17 +3,15 @@ import {
...
@@ -3,17 +3,15 @@ import {
List
,
List
,
Search
,
Search
,
Overlay
,
Overlay
,
Picker
,
Tab
,
Tab
,
Tabs
,
Tabs
,
Icon
,
Icon
,
Button
,
Button
,
DatetimePicker
,
DatetimePicker
,
Progress
,
Slider
,
Field
,
Field
,
Switch
,
Switch
,
Cell
,
Cell
,
Loading
,
}
from
"vant"
;
}
from
"vant"
;
export
function
vant
(
app
)
{
export
function
vant
(
app
)
{
...
@@ -21,15 +19,13 @@ export function vant(app) {
...
@@ -21,15 +19,13 @@ export function vant(app) {
app
.
use
(
List
);
app
.
use
(
List
);
app
.
use
(
Search
);
app
.
use
(
Search
);
app
.
use
(
Overlay
);
app
.
use
(
Overlay
);
app
.
use
(
Picker
);
app
.
use
(
Icon
);
app
.
use
(
Icon
);
app
.
use
(
Button
);
app
.
use
(
Button
);
app
.
use
(
DatetimePicker
);
app
.
use
(
DatetimePicker
);
app
.
use
(
Progress
);
app
.
use
(
Slider
);
app
.
use
(
Field
);
app
.
use
(
Field
);
app
.
use
(
Switch
);
app
.
use
(
Switch
);
app
.
use
(
Tab
);
app
.
use
(
Tab
);
app
.
use
(
Tabs
);
app
.
use
(
Tabs
);
app
.
use
(
Cell
);
app
.
use
(
Cell
);
app
.
use
(
Loading
);
}
}
src/views/index.vue
View file @
0736dd5
...
@@ -84,7 +84,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
...
@@ -84,7 +84,7 @@ import AMapLoader from "@amap/amap-jsapi-loader";
import
{
CONSTANT
}
from
"../constant"
;
import
{
CONSTANT
}
from
"../constant"
;
import
MAPGEO
from
"@/utils/mapgeo"
;
import
MAPGEO
from
"@/utils/mapgeo"
;
import
wx
from
"wx"
;
import
wx
from
"wx"
;
import
{
useRoute
,
useRouter
}
from
"vue-router"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
Dialog
,
Toast
}
from
"vant"
;
import
{
Dialog
,
Toast
}
from
"vant"
;
import
"vant/es/toast/style"
;
import
"vant/es/toast/style"
;
import
{
GET_ALL_CAR_LIST
,
GET_CAR_LOCATION_INFO
}
from
"@/api/index"
;
import
{
GET_ALL_CAR_LIST
,
GET_CAR_LOCATION_INFO
}
from
"@/api/index"
;
...
@@ -105,7 +105,6 @@ export default defineComponent({
...
@@ -105,7 +105,6 @@ export default defineComponent({
const
isShareDead
=
ref
(
1
);
const
isShareDead
=
ref
(
1
);
const
carInfoList
=
ref
([]);
const
carInfoList
=
ref
([]);
const
route
=
useRoute
();
const
route
=
useRoute
();
const
router
=
useRouter
();
const
routeQuery
=
ref
(
null
);
const
routeQuery
=
ref
(
null
);
const
searched
=
ref
(
false
);
const
searched
=
ref
(
false
);
const
pageNumber
=
ref
(
0
);
const
pageNumber
=
ref
(
0
);
...
@@ -421,15 +420,6 @@ export default defineComponent({
...
@@ -421,15 +420,6 @@ export default defineComponent({
carMonitorBtn
&&
carMonitorBtn
&&
(
carMonitorBtn
.
onclick
=
()
=>
{
(
carMonitorBtn
.
onclick
=
()
=>
{
check
(()
=>
{
check
(()
=>
{
router
.
push
({
name
:
"info"
,
query
:
{
sn
:
item
.
sn
,
tabItem
:
"monitor"
,
source
:
item
.
source
,
locationType
:
item
.
locationType
,
},
});
wx
.
miniProgram
.
navigateTo
({
wx
.
miniProgram
.
navigateTo
({
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=monitor&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
url
:
`../../mapPackage/pages/findCar?sn=
${
item
.
sn
}
&tabItem=monitor&source=
${
item
.
source
}
&locationType=
${
item
.
locationType
}
`
,
});
});
...
...
vue.config.js
View file @
0736dd5
...
@@ -11,7 +11,7 @@ function resolve(dir) {
...
@@ -11,7 +11,7 @@ function resolve(dir) {
return
path
.
join
(
__dirname
,
"."
,
dir
);
return
path
.
join
(
__dirname
,
"."
,
dir
);
}
}
module
.
exports
=
defineConfig
({
module
.
exports
=
defineConfig
({
publicPath
:
"/
miniapp/
"
,
publicPath
:
"/"
,
transpileDependencies
:
true
,
transpileDependencies
:
true
,
devServer
:
{
devServer
:
{
port
:
9527
,
port
:
9527
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment