Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
pseer
gxpt_wechat
Commits
c03574a8
Commit
c03574a8
authored
Dec 28, 2023
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
8fc700ff
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
App.vue
App.vue
+2
-0
index.config.js
config/index.config.js
+2
-1
index.vue
pages/index/index.vue
+7
-3
No files found.
App.vue
View file @
c03574a8
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
// })
// })
// }
// }
uni
.
removeStorageSync
(
'storeId'
)
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
success
:
(
e
)
=>
{
success
:
(
e
)
=>
{
Vue
.
prototype
.
screenHeight
=
e
.
screenHeight
;
Vue
.
prototype
.
screenHeight
=
e
.
screenHeight
;
...
...
config/index.config.js
View file @
c03574a8
const
CONFIG
=
{
const
CONFIG
=
{
// 开发环境配置
// 开发环境配置
development
:
{
development
:
{
assetsPath
:
'http://10.24.5.140:8211/static'
,
// 静态资源路径
assetsPath
:
'https://www.coujio.com/wechat_static'
,
// 静态资源路径
// assetsPath: 'http://10.24.5.140:8211/static', // 静态资源路径
baseUrl
:
'https://www.coujio.com/front-api'
,
// 后台接口请求地址
baseUrl
:
'https://www.coujio.com/front-api'
,
// 后台接口请求地址
hostUrl
:
'https://www.coujio.com/prod-api'
,
// H5地址(前端运行地址)
hostUrl
:
'https://www.coujio.com/prod-api'
,
// H5地址(前端运行地址)
// baseUrl: 'http://192.168.1.189:8883/front', // 后台接口请求地址
// baseUrl: 'http://192.168.1.189:8883/front', // 后台接口请求地址
...
...
pages/index/index.vue
View file @
c03574a8
...
@@ -253,9 +253,9 @@
...
@@ -253,9 +253,9 @@
}
else
{
}
else
{
this
.
$refs
.
popup
.
open
()
this
.
$refs
.
popup
.
open
()
}
}
uni
.
removeStorage
({
//
uni.removeStorage({
key
:
'storeId'
//
key: 'storeId'
})
//
})
this
.
onGetListStore
()
this
.
onGetListStore
()
}
}
})
})
...
@@ -270,7 +270,11 @@
...
@@ -270,7 +270,11 @@
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
.
length
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
.
length
)
{
this
.
storeList
=
res
.
data
.
data
;
this
.
storeList
=
res
.
data
.
data
;
let
obj
=
{}
let
obj
=
{}
if
(
uni
.
getStorageSync
(
"storeId"
)){
obj
=
this
.
storeList
.
find
(
item
=>
item
.
id
===
uni
.
getStorageSync
(
"storeId"
))
}
else
{
obj
=
res
.
data
.
data
[
0
];
obj
=
res
.
data
.
data
[
0
];
}
new
Promise
((
resolve
,
reject
)
=>
{
new
Promise
((
resolve
,
reject
)
=>
{
that
.
storeInfo
=
{
that
.
storeInfo
=
{
...
obj
,
...
obj
,
...
...
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