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
a7538e4b
Commit
a7538e4b
authored
Mar 07, 2023
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
edb2cecd
447035d1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
src/pages/index/index.vue
+10
-9
src/utils/mayi.js
+1
-0
src/utils/themeModule.js
+0
-0
static/nativeComponents/GoodsSearch/index.js
+2
-2
No files found.
src/pages/index/index.vue
View file @
a7538e4b
...
@@ -154,15 +154,16 @@ export default {
...
@@ -154,15 +154,16 @@ export default {
this
.
options
=
options
;
this
.
options
=
options
;
log
.
info
(
this
.
options
,
'----------------index-----options'
)
log
.
info
(
this
.
options
,
'----------------index-----options'
)
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
let
offlineShopCode
=
getUrlKey
(
decodeURIComponent
(
options
.
params
),
"offlineShopCode"
);
try
{
let
offlineShopName
=
getUrlKey
(
decodeURIComponent
(
options
.
params
),
"offlineShopName"
);
const
h5Params
=
options
&&
options
.
params
?
JSON
.
parse
(
decodeURIComponent
(
options
.
params
))
:
""
;
if
(
offlineShopCode
)
{
if
(
h5Params
)
{
// 存储h5url门店信息
// 存储h5url门店信息
setStoreInfo
({
setStoreInfo
({
offlineShopCode
,
offlineShopCode
:
h5Params
.
offlineShopCode
,
offlineShopName
offlineShopName
:
h5Params
.
offlineShopName
,
});
});
}
}
}
catch
(
e
)
{
console
.
log
(
e
)
}
if
(
wx
.
getStorageSync
(
"workBox"
)){
if
(
wx
.
getStorageSync
(
"workBox"
)){
this
.
params
+=
`&workBox=
${
wx
.
getStorageSync
(
"workBox"
)}
`
this
.
params
+=
`&workBox=
${
wx
.
getStorageSync
(
"workBox"
)}
`
}
}
...
...
src/utils/mayi.js
View file @
a7538e4b
...
@@ -10,6 +10,7 @@ export const noLoginList = [
...
@@ -10,6 +10,7 @@ export const noLoginList = [
"goods-goodsInfo"
,
"goods-goodsInfo"
,
"goods-commodityMenu"
,
"goods-commodityMenu"
,
"goodsSearch-goodsSearch"
,
"goodsSearch-goodsSearch"
,
"goodsSearch-searchAllGoods"
,
"contentSearch-contentSearch"
,
"contentSearch-contentSearch"
,
"chooseStores"
,
"chooseStores"
,
"activty-receivingGift"
,
"activty-receivingGift"
,
...
...
src/utils/themeModule.js
View file @
a7538e4b
This diff is collapsed.
Click to expand it.
static/nativeComponents/GoodsSearch/index.js
View file @
a7538e4b
...
@@ -52,13 +52,13 @@ Component({
...
@@ -52,13 +52,13 @@ Component({
let
query
=
`?placeHolderText=
${
placeHolderText
}
`
;
let
query
=
`?placeHolderText=
${
placeHolderText
}
`
;
if
(
this
.
data
.
datas
.
componentData
[
'searchModel'
]
==
1
)
{
if
(
this
.
data
.
datas
.
componentData
[
'searchModel'
]
==
1
)
{
query
+=
`&searchScopeFlag=
${
this
.
data
.
searchScopeFlag
}
`
;
query
+=
`&searchScopeFlag=
${
this
.
data
.
searchScopeFlag
}
`
;
// 重置默认全网搜
this
.
setData
({
searchScopeFlag
:
0
});
}
}
let
link
=
`/contentSearch/contentSearch
${
query
}
`
;
let
link
=
`/contentSearch/contentSearch
${
query
}
`
;
if
(
this
.
data
.
datas
.
componentData
[
'searchModel'
]
==
1
&&
this
.
data
.
searchScopeFlag
==
0
)
{
if
(
this
.
data
.
datas
.
componentData
[
'searchModel'
]
==
1
&&
this
.
data
.
searchScopeFlag
==
0
)
{
link
=
`/goodsSearch/searchAllGoods
${
query
}
`
;
link
=
`/goodsSearch/searchAllGoods
${
query
}
`
;
}
}
// 重置默认全网搜
this
.
setData
({
searchScopeFlag
:
0
});
app
.
$themeToLink
({
type
:
1
,
link
});
app
.
$themeToLink
({
type
:
1
,
link
});
},
},
// 本店搜
// 本店搜
...
...
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