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
d4e34f51
Commit
d4e34f51
authored
Jun 07, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序原生问题修改
parent
2cb5e97e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
src/pages/home/index.vue
+4
-0
static/nativeComponents/GoodsList/index.js
+2
-2
static/nativeComponents/GoodsList/index.wxml
+1
-1
No files found.
src/pages/home/index.vue
View file @
d4e34f51
...
...
@@ -386,6 +386,9 @@ export default {
link
:
linkVal
,
});
}
if
(
res
&&
res
.
id
){
app
.
fenxiaoModel
.
getDistributorHomepage
(
res
).
then
(
ele
=>
{
if
(
ele
.
id
)
{
this
.
getDistributorHomepageName
=
'我的小店'
;
...
...
@@ -393,6 +396,7 @@ export default {
this
.
getDistributorHomepageName
=
'一键开店'
;
}
});
}
if
(
res
&&
res
.
parentSpokesmanDistributionModel
==
'1'
&&
...
...
static/nativeComponents/GoodsList/index.js
View file @
d4e34f51
...
...
@@ -351,9 +351,9 @@ const componentOptions = {
let
linkVal
=
""
;
if
(
goodsType
!=
1
)
{
if
(
style
==
"list"
)
{
linkVal
=
`/goods
Search/goodsSearch
?categoryName=
${
categoryName
}
&categoryId=
${
categoryId
}
`
;
linkVal
=
`/goods
/commodityMenu
?categoryName=
${
categoryName
}
&categoryId=
${
categoryId
}
`
;
}
else
{
linkVal
=
`/goods
Search/goodsSearch
`
;
linkVal
=
`/goods
/commodityMenu
`
;
}
}
else
{
linkVal
=
`/pointShop/productList?categoryName=
${
categoryName
}
&categoryId=
${
categoryId
}
`
;
...
...
static/nativeComponents/GoodsList/index.wxml
View file @
d4e34f51
...
...
@@ -86,7 +86,7 @@
>
<goods-item
datas="{{datas}}"
items="{{datas.componentData.
goodsList[index]}}"
items="{{
goodsList[index]}}"
indexs="{{index}}"
></goods-item>
</view>
...
...
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