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
5b3470ce
Commit
5b3470ce
authored
Apr 10, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店装修
parent
a2bc5993
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
config/xhyx_uat.env.js
+2
-2
src/main.js
+1
-1
src/pages/home/index.vue
+14
-10
No files found.
config/xhyx_uat.env.js
View file @
5b3470ce
...
...
@@ -16,12 +16,12 @@ module.exports = merge(prodEnv, {//zjgyl
// BASE_URL:"'https://shop.mayi888.com'",
// BASE_URL:"'http://192.168.1.146:3005'",
// BASE_URL:"'http://172.16.1.18:3000'",
BASE_URL
:
"'http
://uat.
m.xinhuabest.com'"
,
BASE_URL
:
"'http
s://uat-
m.xinhuabest.com'"
,
ADMIN_URL
:
"'http://uat.admin.xinhuabest.com'"
,
GUIDE_URL
:
"'http://uat.guide.xinhuabest.com'"
,
// BASE_URL:"'http://192.168.137.1:3004'",
OLSHOP_URL
:
'"http
://uat.
m.xinhuabest.com/innerApi/shopApiService"'
,
OLSHOP_URL
:
'"http
s://uat-
m.xinhuabest.com/innerApi/shopApiService"'
,
// OLSHOP_URL:'"https://shop.mayi888.com/innerApi/shopApiService"',
IMG_DOMAIN
:
'"http://new-xhyx-uat.oss-cn-zhangjiakou.aliyuncs.com"'
,
POSTHOG_KEY
:
'"phc_nTr1oY7NkSuDMZsqCskE6iUIGKgWPmFHlRAKFVuZD2B"'
,
...
...
src/main.js
View file @
5b3470ce
...
...
@@ -154,7 +154,7 @@ function getThemePage({mixid,shopid}) {
let
{
offlineShopCode
}
=
getStoreInfo
();
shop
.
themePagesInfo
({
shopMixId
:
mixid
,
shopMixId
:
offlineShopCode
?
offlineShopCode
:
mixid
,
homePageFlag
:
true
})
.
then
((
response
)
=>
{
...
...
src/pages/home/index.vue
View file @
5b3470ce
...
...
@@ -216,6 +216,7 @@ export default {
pageLoading
:
true
,
firstOpenPage
:
true
,
//首次打开页面
h5Params
:
{},
//params
fromPage
:
""
,
};
},
components
:{
...
...
@@ -480,6 +481,7 @@ export default {
},
onShow
()
{
this
.
pageLoading
=
false
;
this
.
refreshInit
();
console
.
log
(
new
Date
().
getTime
(),
'load-----home-onShow'
)
// 设置显示条件
console
.
log
(
new
Date
().
getTime
(),
'--------on--------------show'
)
...
...
@@ -548,6 +550,7 @@ export default {
offlineShopName
:
storeDetail
.
data
.
data
.
shopName
,
});
this
.
$refs
.
StoreAddr
.
reloadName
();
this
.
refreshInit
();
}
console
.
log
(
storeDetail
,
'-------storeDetail'
);
}
...
...
@@ -1038,6 +1041,16 @@ export default {
setTimeout
(()
=>
{
this
.
pageLoading
=
false
;
},
500
);
},
refreshInit
()
{
this
.
pageLoading
=
true
;
setTimeout
(()
=>
{
wx
.
stopPullDownRefresh
();
this
.
pageLoading
=
false
;
},
1500
);
log
.
info
(
'onPullDownRefresh'
,
this
.
$store
.
state
.
extConfig
)
app
.
getShopInfo
(
this
.
$store
.
state
.
extConfig
);
this
.
getThemeList
();
}
},
async
onShareAppMessage
(
res
){
...
...
@@ -1114,16 +1127,7 @@ export default {
log
.
info
(
res
,
'-----onShareTimeline'
)
},
onPullDownRefresh
(){
this
.
pageLoading
=
true
;
setTimeout
(()
=>
{
wx
.
stopPullDownRefresh
();
this
.
pageLoading
=
false
;
},
1500
);
log
.
info
(
'onPullDownRefresh'
,
this
.
$store
.
state
.
extConfig
)
app
.
getShopInfo
(
this
.
$store
.
state
.
extConfig
);
this
.
getThemeList
();
this
.
refreshInit
();
}
};
</
script
>
...
...
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