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
244b381c
Commit
244b381c
authored
May 08, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nativehome_tst' of
http://code.mayi888.com/chengmo/mayi-mp-shop
into nativehome_tst
parents
79be5da3
9836b0c5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
14 deletions
+26
-14
src/App.vue
+1
-1
src/main.js
+13
-13
static/nativeComponents/PopUp/index.js
+12
-0
No files found.
src/App.vue
View file @
244b381c
...
@@ -14,7 +14,7 @@ export default {
...
@@ -14,7 +14,7 @@ export default {
process
.
env
.
NODE_ENV
==
"production"
||
process
.
env
.
NODE_ENV
==
"production"
||
JSON
.
stringify
(
extConfig
)
==
"{}"
JSON
.
stringify
(
extConfig
)
==
"{}"
)
{
)
{
//
extConfig = { mixid: "antgood", shopid: 67 };
extConfig
=
{
mixid
:
"antgood"
,
shopid
:
67
};
// extConfig = { "mixid":"xyyx",
// extConfig = { "mixid":"xyyx",
// "shopid":133 };
// "shopid":133 };
}
}
...
...
src/main.js
View file @
244b381c
...
@@ -134,18 +134,18 @@ function getThemePage({mixid,shopid}) {
...
@@ -134,18 +134,18 @@ function getThemePage({mixid,shopid}) {
if
(
!
mpApp
.
globalData
.
setPopupStorage
){
//
if (!mpApp.globalData.setPopupStorage){
let
popUpList
=
wx
.
getStorageSync
(
'popUpList'
)
||
[]
//
let popUpList = wx.getStorageSync('popUpList') || []
let
arr
=
[]
//
let arr = []
popUpList
.
forEach
(
item
=>
{
//
popUpList.forEach(item=> {
arr
.
push
(
item
)
//
arr.push(item)
wx
.
removeStorageSync
(
item
)
//
wx.removeStorageSync(item)
})
//
})
arr
.
forEach
(
item
=>
{
//
arr.forEach(item => {
popUpList
.
splice
(
popUpList
.
indexOf
(
item
),
1
)
//
popUpList.splice(popUpList.indexOf(item),1)
})
//
})
wx
.
setStorageSync
(
'popUpList'
,
popUpList
)
//
wx.setStorageSync('popUpList', popUpList)
}
// }
\ No newline at end of file
\ No newline at end of file
static/nativeComponents/PopUp/index.js
View file @
244b381c
...
@@ -30,6 +30,13 @@ Component({
...
@@ -30,6 +30,13 @@ Component({
img
:
app
.
DFSImg
(
this
.
data
.
datas
.
componentData
.
imageUrl
,
700
,
null
,
1
)
img
:
app
.
DFSImg
(
this
.
data
.
datas
.
componentData
.
imageUrl
,
700
,
null
,
1
)
})
})
console
.
log
(
this
.
data
.
datas
.
componentData
,
'this.data.datas.componentData.once'
)
if
(
!
this
.
data
.
datas
.
componentData
.
once
){
console
.
log
(
'laizhelile'
)
let
routes
=
getCurrentPages
()
let
page
=
routes
[
routes
.
length
-
1
].
route
wx
.
removeStorageSync
(
`
${
app
.
globalData
.
shopInfo
.
shopCode
}
_popFlag_
${
page
}
_
${
this
.
data
.
datas
.
id
}
`
)
}
if
(
this
.
getPopFlag
()
==
'true'
){
if
(
this
.
getPopFlag
()
==
'true'
){
this
.
setData
({
this
.
setData
({
domainShow
:
false
domainShow
:
false
...
@@ -45,7 +52,9 @@ Component({
...
@@ -45,7 +52,9 @@ Component({
this
.
setData
({
this
.
setData
({
domainShow
:
false
domainShow
:
false
})
})
if
(
this
.
data
.
datas
.
componentData
.
once
){
this
.
setPopFlag
(
'true'
)
this
.
setPopFlag
(
'true'
)
}
},
this
.
data
.
datas
.
componentData
.
columnNum
*
1000
)
},
this
.
data
.
datas
.
componentData
.
columnNum
*
1000
)
}
}
}
}
...
@@ -75,7 +84,10 @@ Component({
...
@@ -75,7 +84,10 @@ Component({
this
.
setData
({
this
.
setData
({
domainShow
:
false
domainShow
:
false
})
})
if
(
this
.
data
.
datas
.
componentData
.
once
){
this
.
setPopFlag
(
"true"
);
this
.
setPopFlag
(
"true"
);
}
clearTimeout
(
this
.
data
.
timeout
);
clearTimeout
(
this
.
data
.
timeout
);
},
},
onclickHandle
()
{
onclickHandle
()
{
...
...
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