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
823408c3
Commit
823408c3
authored
Apr 30, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索组件修改跳转页面
parent
6413a54e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/utils/mayi.js
+1
-1
static/nativeComponents/GoodsSearch/index.js
+2
-2
No files found.
src/utils/mayi.js
View file @
823408c3
...
@@ -3,7 +3,7 @@ import shop from "@/api/shop"
...
@@ -3,7 +3,7 @@ import shop from "@/api/shop"
import
coupon
from
"@/api/coupon"
;
import
coupon
from
"@/api/coupon"
;
import
classificationApi
from
"@/api/classification"
;
import
classificationApi
from
"@/api/classification"
;
// 登录白名单 name
// 登录白名单 name
export
const
noLoginList
=
[
"index"
,
"media-video"
,
"goods-goodsInfo"
,
"goods-commodityMenu"
,
"goodsSearch-goodsSearch"
,
"c
hooseStores"
,
"activty-receivingGift"
,
"activty"
,
"login-register"
,
"login-phoneLogin"
,
"login-authInformation"
,
"login-forgetPassWord"
,
"login-accountLogin"
,
"login-wxRegister"
,
"pay-payList"
,
"comment-evaluateList"
,
"goods-commonProblemList"
,
"article-articlePage"
,
"article-articleList"
,
"goods-posters"
,
"liveBroadcast"
,
"liveBroadcast-list"
,
"personalCenter-coupon-getCoupon"
,
"buyerShow-showDetail"
,
"goods-addGoodsList"
,
"personalCenter-CDkey-exchange"
,
"giftCards-linkReceive"
,
"giftCoupon-preview"
,
"smartForm"
,
"shopCart-shareShopCart"
,
"groupBuying-beInvite"
,
"brandTopics"
,
'personalCenter-spokesmanCenter'
,
'personalCenter-spokesmanCenter-mine-spokesmanHomePage'
,
'liveBroadcast-lived'
,
'personalCenter-spokesmanCenter-mine-getBusinessCard'
,
'changeAdr'
];
export
const
noLoginList
=
[
"index"
,
"media-video"
,
"goods-goodsInfo"
,
"goods-commodityMenu"
,
"goodsSearch-goodsSearch"
,
"c
ontentSearch-contentSearch"
,
"chooseStores"
,
"activty-receivingGift"
,
"activty"
,
"login-register"
,
"login-phoneLogin"
,
"login-authInformation"
,
"login-forgetPassWord"
,
"login-accountLogin"
,
"login-wxRegister"
,
"pay-payList"
,
"comment-evaluateList"
,
"goods-commonProblemList"
,
"article-articlePage"
,
"article-articleList"
,
"goods-posters"
,
"liveBroadcast"
,
"liveBroadcast-list"
,
"personalCenter-coupon-getCoupon"
,
"buyerShow-showDetail"
,
"goods-addGoodsList"
,
"personalCenter-CDkey-exchange"
,
"giftCards-linkReceive"
,
"giftCoupon-preview"
,
"smartForm"
,
"shopCart-shareShopCart"
,
"groupBuying-beInvite"
,
"brandTopics"
,
"personalCenter-spokesmanCenter"
,
"personalCenter-spokesmanCenter-mine-spokesmanHomePage"
,
"liveBroadcast-lived"
,
"personalCenter-spokesmanCenter-mine-getBusinessCard"
,
"changeAdr"
];
// path
// path
export
const
noLoginListPath
=
noLoginList
.
map
(
item
=>
{
export
const
noLoginListPath
=
noLoginList
.
map
(
item
=>
{
item
=
item
.
replace
(
/-/g
,
'/'
)
item
=
item
.
replace
(
/-/g
,
'/'
)
...
...
static/nativeComponents/GoodsSearch/index.js
View file @
823408c3
...
@@ -37,7 +37,7 @@ Component({
...
@@ -37,7 +37,7 @@ Component({
}
}
this
.
setData
({
this
.
setData
({
placeholderValue
:
this
.
data
.
datas
.
componentData
.
placeHolderVal
?
this
.
data
.
datas
.
componentData
.
placeHolderVal
:
'搜索店铺内
商品
'
placeholderValue
:
this
.
data
.
datas
.
componentData
.
placeHolderVal
?
this
.
data
.
datas
.
componentData
.
placeHolderVal
:
'搜索店铺内'
})
})
},
},
...
@@ -48,7 +48,7 @@ Component({
...
@@ -48,7 +48,7 @@ Component({
toSearchPage
(){
toSearchPage
(){
app
.
$themeToLink
({
app
.
$themeToLink
({
type
:
1
,
type
:
1
,
link
:
'/
goodsSearch/goods
Search?placeHolderText='
+
(
this
.
data
.
datas
.
componentData
[
"placeHolderVal"
]
||
''
)
link
:
'/
contentSearch/content
Search?placeHolderText='
+
(
this
.
data
.
datas
.
componentData
[
"placeHolderVal"
]
||
''
)
})
})
}
}
}
}
...
...
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