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
d9f50ec4
Commit
d9f50ec4
authored
Feb 26, 2021
by
程智春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播组件
parent
174d9601
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
src/api/index.js
+4
-0
src/pages/home/index.vue
+3
-0
src/pages/home/main.json
+5
-2
No files found.
src/api/index.js
View file @
d9f50ec4
...
@@ -22,5 +22,8 @@ console.log(process.env,'-----------------config------')
...
@@ -22,5 +22,8 @@ console.log(process.env,'-----------------config------')
get_product_category
(
data
)
{
get_product_category
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/get_product_category`
,
data
);
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/product/get_product_category`
,
data
);
},
},
getLiveCon
(
data
){
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/liveBroadcastInfo/getPageListByIds`
,
data
);
}
}
}
\ No newline at end of file
src/pages/home/index.vue
View file @
d9f50ec4
...
@@ -69,6 +69,9 @@
...
@@ -69,6 +69,9 @@
<div
v-if=
"item.componentCode == 'photo-gallery' && item.componentInfo.visible == 1"
>
<div
v-if=
"item.componentCode == 'photo-gallery' && item.componentInfo.visible == 1"
>
<photo-gallery
:datas=
"item"
></photo-gallery>
<photo-gallery
:datas=
"item"
></photo-gallery>
</div>
</div>
<div
v-if=
"item.componentCode == 'live-broadcast' && item.componentInfo.visible == 1"
>
<live-broadcast
:datas=
"item"
></live-broadcast>
</div>
</div>
</div>
<bottomCont></bottomCont>
<bottomCont></bottomCont>
...
...
src/pages/home/main.json
View file @
d9f50ec4
...
@@ -14,7 +14,9 @@
...
@@ -14,7 +14,9 @@
"share-popup"
:
"/static/nativeComponents/SharePopup/index"
,
"share-popup"
:
"/static/nativeComponents/SharePopup/index"
,
"speedy-nav"
:
"/static/nativeComponents/SpeedyNav/index"
,
"speedy-nav"
:
"/static/nativeComponents/SpeedyNav/index"
,
"video-player"
:
"/static/nativeComponents/VideoPlayer/index"
,
"video-player"
:
"/static/nativeComponents/VideoPlayer/index"
,
"photo-gallery"
:
"/static/nativeComponents/PhotoGallery/index"
"photo-gallery"
:
"/static/nativeComponents/PhotoGallery/index"
,
"live-broadcast"
:
"/static/nativeComponents/LiveBroadcast/index"
},
},
"enablePullDownRefresh"
:
true
"enablePullDownRefresh"
:
true
,
"backgroundColor"
:
"#f5f5f5"
}
}
\ No newline at end of file
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