Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
6e279afb
Commit
6e279afb
authored
Jul 05, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat: 进店方式缓存
parent
3bf8caab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
2 deletions
+1
-2
src/App.vue
+1
-0
src/pages/home/index.vue
+0
-1
src/pages/index/index.vue
+0
-1
No files found.
src/App.vue
View file @
6e279afb
...
...
@@ -16,6 +16,7 @@ export default {
},
async
created
()
{
wx
.
setStorageSync
(
"firstView"
,
1
);
wx
.
setStorageSync
(
"entryMode"
,
''
);
console
.
log
(
new
Date
().
getTime
(),
'load-----app-created'
)
// NODE_ENV
this
.
extConfig
=
wx
.
getExtConfigSync
?
wx
.
getExtConfigSync
()
:
{};
...
...
src/pages/home/index.vue
View file @
6e279afb
...
...
@@ -407,7 +407,6 @@ export default {
methods
:
{
async
pageInit
(
options
)
{
wx
.
setStorageSync
(
"entryMode"
,
''
);
log
.
info
(
options
,
'---------home----options'
)
let
h5Params
=
options
&&
options
.
params
?
JSON
.
parse
(
decodeURIComponent
(
options
.
params
))
:
{};
this
.
h5Params
=
h5Params
;
...
...
src/pages/index/index.vue
View file @
6e279afb
...
...
@@ -168,7 +168,6 @@ export default {
},
onLoad
(
options
)
{
let
{
offlineShopCode
,
offlineShopName
}
=
getStoreInfo
();
wx
.
setStorageSync
(
"entryMode"
,
''
);
// 新用户首次扫码进入此页没缓存认定为第一次访问
if
(
offlineShopCode
)
{
wx
.
removeStorageSync
(
"firstView"
);
...
...
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