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
f44c678b
Commit
f44c678b
authored
Sep 13, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
aed04ee7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
8 deletions
+27
-8
config/xhyx_prod.env.js
+1
-1
src/components/basicTool/embed-module/index.vue
+4
-1
src/pages/home/index.vue
+21
-5
static/nativeComponents/GoodsList/index.js
+1
-1
No files found.
config/xhyx_prod.env.js
View file @
f44c678b
...
...
@@ -23,7 +23,7 @@ module.exports = merge(prodEnv, {//zjgyl
OLSHOP_URL
:
'"https://m.xinhuabest.com/innerApi/shopApiService"'
,
// OLSHOP_URL:'"https://shop.mayi888.com/innerApi/shopApiService"',
IMG_DOMAIN
:
'"https://
new-xhyx.obs.cidc-rp-2005
.joint.cmecloud.cn"'
,
IMG_DOMAIN
:
'"https://
prod-xhyx.obs.cidc-rp-12
.joint.cmecloud.cn"'
,
POSTHOG_KEY
:
'"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"'
,
POSTHOG_HOST
:
'"https://posthog.mayi118.com"'
,
MANALYTICS_HOST
:
'"https://bi.xinhuabest.com/log/xinhua.gif"'
,
...
...
src/components/basicTool/embed-module/index.vue
View file @
f44c678b
...
...
@@ -67,7 +67,10 @@ export default {
loadComponents
(
index
)
{
this
.
contentList
.
push
(
this
.
pageData
[
index
]);
index
++
;
if
(
index
>
this
.
pageData
.
length
)
return
console
.
log
(
"-微页面渲染结束-"
);
if
(
index
>
this
.
pageData
.
length
)
{
console
.
log
(
"-微页面渲染结束-"
);
return
;
}
setTimeout
(()
=>
{
this
.
loadComponents
(
index
);
},
30
);
...
...
src/pages/home/index.vue
View file @
f44c678b
...
...
@@ -10,9 +10,6 @@
<StoreAddr
@
toUpdate=
"reloadEnterShopRule"
@
toPageLoading=
"toPageLoading"
ref=
"StoreAddr"
></StoreAddr>
<ThemeDataPlant></ThemeDataPlant>
<div
v-for=
"(item,index) in pageData"
:key=
"index"
>
<div
v-if=
"item.componentCode == 'embed-module' && item.componentInfo.visible == 1"
>
<embedModule
:datas=
"item"
:componentIndex=
"index"
></embedModule>
</div>
<div
v-if=
"item.componentCode=='banner' && item.componentInfo.visible == 1"
>
<banner
:datas=
"item"
></banner>
</div>
...
...
@@ -119,6 +116,9 @@
<div
v-if=
"item.componentCode == 'brand-list' && item.componentInfo.visible == 1"
>
<brandList
:datas=
"item"
></brandList>
</div>
<div
v-if=
"item.componentCode == 'embed-module' && item.componentInfo.visible == 1"
>
<embedModule
:datas=
"item"
:componentIndex=
"index"
></embedModule>
</div>
</div>
<template>
</
template
>
...
...
@@ -206,7 +206,8 @@ export default {
data
()
{
return
{
pageInfo
:
{},
pageData
:
{},
pageData
:
[],
contentList
:
[],
themeColor
:{
'--main-color'
:
""
,
'--minor-color'
:
""
,
...
...
@@ -744,7 +745,11 @@ export default {
this
.
active
=
checkTabbarPage
(
'/'
);
this
.
setVisible
(
this
.
mpApp
.
globalData
.
pageList
,(
res
)
=>
{
this
.
pageInfo
=
res
;
this
.
pageData
=
JSON
.
parse
(
this
.
pageInfo
.
pageData
);
this
.
contentList
=
JSON
.
parse
(
this
.
pageInfo
.
pageData
);
this
.
pageData
.
push
(
this
.
contentList
[
0
]);
console
.
log
(
this
.
pageData
,
'--this.pageData'
)
let
i
=
1
;
this
.
loadComponents
(
i
);
});
setTimeout
(()
=>
{
this
.
showbottomCont
=
true
;
...
...
@@ -809,6 +814,17 @@ export default {
}
}
},
loadComponents
(
index
)
{
this
.
pageData
.
push
(
this
.
contentList
[
index
]);
index
++
;
if
(
index
>
this
.
contentList
.
length
-
1
)
{
console
.
log
(
"-页面渲染结束-"
);
return
;
}
setTimeout
(()
=>
{
this
.
loadComponents
(
index
);
},
30
);
},
getSpokesmanInit
(
extConfig
)
{
log
.
info
(
extConfig
,
'getSpokesmanInit-extConfig'
);
//绑定上下级关系
...
...
static/nativeComponents/GoodsList/index.js
View file @
f44c678b
...
...
@@ -540,7 +540,7 @@ const componentOptions = {
var
that
=
this
let
storageDatasList
=
this
.
getStorageSync
(
'storageDatasList'
)
||
[]
let
{
style
}
=
storageDatasList
[
that
.
data
.
datasIndex
]
;
let
style
=
storageDatasList
[
that
.
data
.
datasIndex
].
style
||
""
;
if
(
!
style
)
return
;
let
type
=
''
if
(
style
==
'list'
||
style
==
'rowList'
){
...
...
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