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
5ea3c458
Commit
5ea3c458
authored
Mar 14, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
aee5135c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
src/components/common/StoreAddr.vue
+9
-4
src/pages/home/index.vue
+0
-0
static/nativeComponents/MerchantsList/index.js
+7
-2
No files found.
src/components/common/StoreAddr.vue
View file @
5ea3c458
<
template
>
<div
class=
"storeAddr flex"
>
<div
class=
"left flex"
>
<div
class=
"left flex"
v-if=
"openThousandsStoresFlag"
>
<div
class=
"logo"
>
<image
:src=
"logoUrl"
alt=
""
></image>
</div>
...
...
@@ -46,15 +46,20 @@ export default {
}
if
(
this
.
openThousandsStoresFlag
)
{
this
.
getLocationHandle
(()
=>
{
this
.
getShopList
();
this
.
$emit
(
"toUpdate"
);
// this.getShopList();
});
}
let
{
offlineShopName
}
=
getStoreInfo
();
this
.
name
=
offlineShopName
||
""
;
this
.
reloadName
();
},
computed
:
{
},
methods
:
{
reloadName
()
{
let
{
offlineShopName
}
=
getStoreInfo
();
this
.
name
=
offlineShopName
||
""
;
console
.
log
(
this
.
name
,
'----name'
)
},
getLocationHandle
(
callback
)
{
let
_this
=
this
;
wx
.
getLocation
({
...
...
src/pages/home/index.vue
View file @
5ea3c458
This diff is collapsed.
Click to expand it.
static/nativeComponents/MerchantsList/index.js
View file @
5ea3c458
...
...
@@ -81,10 +81,11 @@ Component({
if
(
res
.
data
.
code
==
'200'
){
let
list
=
res
.
data
.
data
if
(
list
==
null
||
list
.
length
==
0
){
if
(
this
.
query
.
pageNum
==
1
){
if
(
this
.
data
.
query
.
pageNum
==
1
){
this
.
setData
({
showList
:
false
})
console
.
log
(
'------change1'
)
}
}
else
{
list
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -140,7 +141,10 @@ Component({
}
if
(
this
.
data
.
WaterfallFlowList
.
length
<=
0
)
{
this
.
showList
=
false
;
this
.
setData
({
showList
:
false
})
console
.
log
(
'------change2'
)
}
}
if
(
list
==
null
||
list
.
length
<
10
)
{
...
...
@@ -159,6 +163,7 @@ Component({
finished
:
true
,
showList
:
false
})
console
.
log
(
'------change3'
)
}
})
...
...
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