Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
f2f33ad7
Commit
f2f33ad7
authored
Aug 28, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b44f1601
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
7 deletions
+39
-7
index.vue
pages/index/index.vue
+39
-7
No files found.
pages/index/index.vue
View file @
f2f33ad7
...
...
@@ -129,6 +129,7 @@ export default {
showBack
:
false
,
showAuth
:
false
,
U
:{},
shopData
:{},
};
},
components
:
{
...
...
@@ -273,6 +274,7 @@ export default {
// #endif
this
.
init
();
this
.
getSmallShopById
()
let
set
=
uni
.
getStorageSync
(
"basedata"
)
?
uni
.
getStorageSync
(
"basedata"
).
mall
.
setting
:
{};
...
...
@@ -334,13 +336,24 @@ export default {
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
}
return
{
title
:
this
.
setting
.
share_title
?
this
.
setting
.
share_title
:
uni
.
getStorageSync
(
"basedata"
).
mall
.
name
,
path
:
"/pages/index/index?user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
,
imageUrl
:
this
.
setting
.
share_pic
?
this
.
setting
.
share_pic
:
""
,
};
if
(
SmallShopId
!=
0
){
return
{
title
:
this
.
shopData
.
Name
?
this
.
shopData
.
Name
:
uni
.
getStorageSync
(
"basedata"
).
mall
.
name
,
path
:
"/pages/index/index?user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
,
imageUrl
:
''
,
}
}
else
{
return
{
title
:
this
.
setting
.
share_title
?
this
.
setting
.
share_title
:
uni
.
getStorageSync
(
"basedata"
).
mall
.
name
,
path
:
"/pages/index/index?user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
,
imageUrl
:
this
.
setting
.
share_pic
?
this
.
setting
.
share_pic
:
""
,
};
}
},
// #endif
onShow
()
{
...
...
@@ -523,6 +536,25 @@ export default {
(
error
)
=>
{}
);
},
getSmallShopById
(){
let
Id
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
SmallShopId
:
0
;
if
(
Id
==
0
){
Id
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
}
this
.
request2
(
{
url
:
'/api/AppletUser/GetSmallShopById'
,
data
:
{
Id
:
Id
}
},
res
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
shopData
=
res
.
data
}
}
);
},
close
()
{
this
.
add_show
=
2
;
uni
.
setStorageSync
(
"add_top_app"
,
{
add_top_app_show
:
2
});
...
...
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