Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
shenmuApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanglw
shenmuApp
Commits
63d2c875
Commit
63d2c875
authored
Nov 04, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1安装包打开提示框处理2折线图颜色区分3首次登录json报错问题处理
parent
e1da9a8f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
15 deletions
+16
-15
api.js
shenmu/common/api.js
+6
-5
manifest.json
shenmu/manifest.json
+4
-4
login.vue
shenmu/pages/login.vue
+5
-5
logData.vue
shenmu/pages/tabBar/monitor/logData.vue
+1
-1
No files found.
shenmu/common/api.js
View file @
63d2c875
...
...
@@ -2,19 +2,20 @@ import Vue from 'vue'
import
{
resErrorDeal
}
from
'
./util.js
'
import
msgTip
from
"
./msgTip.js
"
const
BASEURL
=
'
http://192.168.3.23:8086
'
// 研发环境url
cons
ole
.
log
(
resErrorDeal
)
//
const BASEURL = 'http://192.168.3.23:8086' // 研发环境url
cons
t
BASEURL
=
'
http://117.34.103.191:8086
'
// 生产环境url
export
default
{
/**
* 封装请求(async await 封装uni.request)
*/
async
call
(
paramObj
)
{
let
resultObj
=
false
,
cb
=
paramObj
.
cb
;
cons
t
header
=
{
le
t
header
=
{
'
Accept
'
:
'
application/json, text/plain, */*
'
,
'
Authorization
'
:
'
Bearer
'
+
JSON
.
parse
(
uni
.
getStorageSync
(
'
userInfo
'
)).
token
}
if
(
uni
.
getStorageSync
(
'
userInfo
'
)){
header
[
'
Authorization
'
]
=
'
Bearer
'
+
JSON
.
parse
(
uni
.
getStorageSync
(
'
userInfo
'
)).
token
}
let
opt
=
{
url
:
BASEURL
+
paramObj
.
url
,
// 域名+接口地址
data
:
paramObj
.
data
,
...
...
shenmu/manifest.json
View file @
63d2c875
{
"name"
:
"shenmu"
,
"appid"
:
"__UNI__093C827"
,
"description"
:
"
uni-app 框架示例,一套代码,同时发行到iOS、Android、H5、小程序等多个平台,请使用手机扫码快速体验 uni-app 的强大功能
"
,
"description"
:
"
神木农业APP
"
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
...
...
shenmu/pages/login.vue
View file @
63d2c875
...
...
@@ -27,7 +27,7 @@
export
default
{
data
()
{
return
{
baseUrl
:
"
http://192.168.3.23:8086
"
,
//
baseUrl: "http://192.168.3.23:8086",
form
:
{
username
:
'
shenmu
'
,
password
:
'
shenmu123
'
...
...
@@ -37,8 +37,8 @@
}
},
methods
:
{
async
onLogin
()
{
const
res
=
await
this
.
$API
.
call
({
onLogin
()
{
this
.
$API
.
call
({
url
:
'
/auth/login2
'
,
data
:
this
.
form
,
method
:
'
POST
'
,
...
...
@@ -81,8 +81,8 @@
}
})
},
async
getProList
()
{
const
res
=
await
this
.
$API
.
call
({
getProList
()
{
this
.
$API
.
call
({
url
:
'
/api/static
'
,
cb
:
(
res
)
=>
{
if
(
res
.
data
)
{
...
...
shenmu/pages/tabBar/monitor/logData.vue
View file @
63d2c875
...
...
@@ -212,7 +212,7 @@
$this
:
_self
,
//指针
canvasId
:
canvasId
,
//id
type
:
'
line
'
,
//类型
colors
:
[
'
#1e90ff
'
],
//每一条的颜色
//
colors: ['#1e90ff'], //每一条的颜色
fontSize
:
11
,
//字体大小
padding
:
[
10
,
10
,
0
,
10
],
//空白区域值
legend
:
{
//图例相关配置
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment