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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
App.vue
App.vue
+2
-0
index.config.js
config/index.config.js
+2
-1
index.vue
pages/index/index.vue
+8
-4
No files found.
App.vue
View file @
c03574a8
...
...
@@ -26,6 +26,8 @@
// })
// }
uni
.
removeStorageSync
(
'storeId'
)
uni
.
getSystemInfo
({
success
:
(
e
)
=>
{
Vue
.
prototype
.
screenHeight
=
e
.
screenHeight
;
...
...
config/index.config.js
View file @
c03574a8
const
CONFIG
=
{
// 开发环境配置
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'
,
// 后台接口请求地址
hostUrl
:
'https://www.coujio.com/prod-api'
,
// H5地址(前端运行地址)
// baseUrl: 'http://192.168.1.189:8883/front', // 后台接口请求地址
...
...
pages/index/index.vue
View file @
c03574a8
...
...
@@ -253,9 +253,9 @@
}
else
{
this
.
$refs
.
popup
.
open
()
}
uni
.
removeStorage
({
key
:
'storeId'
})
//
uni.removeStorage({
//
key: 'storeId'
//
})
this
.
onGetListStore
()
}
})
...
...
@@ -270,7 +270,11 @@
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
.
length
)
{
this
.
storeList
=
res
.
data
.
data
;
let
obj
=
{}
obj
=
res
.
data
.
data
[
0
];
if
(
uni
.
getStorageSync
(
"storeId"
)){
obj
=
this
.
storeList
.
find
(
item
=>
item
.
id
===
uni
.
getStorageSync
(
"storeId"
))
}
else
{
obj
=
res
.
data
.
data
[
0
];
}
new
Promise
((
resolve
,
reject
)
=>
{
that
.
storeInfo
=
{
...
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