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
c039fb06
Commit
c039fb06
authored
Aug 19, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微店分享的修改
parent
0f086396
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
2 deletions
+23
-2
goods.vue
pages/goods/goods.vue
+8
-0
index.vue
pages/index/index.vue
+10
-0
index.vue
pages/microShop/index/index.vue
+1
-1
api.js
plugin/api.js
+4
-1
No files found.
pages/goods/goods.vue
View file @
c039fb06
...
...
@@ -405,6 +405,11 @@ export default {
let
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
SmallShopId
:
0
;
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
}
let
title
=
this
.
g
.
app_share_title
!=
null
&&
this
.
g
.
app_share_title
!=
""
?
this
.
g
.
app_share_title
...
...
@@ -431,6 +436,9 @@ export default {
uid
=
uni
.
getStorageSync
(
"pid"
)?
uni
.
getStorageSync
(
"pid"
).
pid
:
0
}
let
SmallShopId
=
u
.
SmallShopId
?
u
.
SmallShopId
:
0
;
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
SmallShopId
=
u
.
UserSmallShopId
?
u
.
UserSmallShopId
:
0
}
return
{
title
:
this
.
g
.
app_share_title
!=
null
&&
this
.
g
.
app_share_title
!=
""
...
...
pages/index/index.vue
View file @
c039fb06
...
...
@@ -251,6 +251,11 @@ export default {
let
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
SmallShopId
:
0
;
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
}
console
.
log
(
uid
);
return
{
title
:
""
,
...
...
@@ -272,6 +277,11 @@ export default {
let
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
SmallShopId
:
0
;
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
}
return
{
title
:
this
.
setting
.
share_title
?
this
.
setting
.
share_title
...
...
pages/microShop/index/index.vue
View file @
c039fb06
...
...
@@ -417,7 +417,7 @@
},
(
res
)
=>
{
uni
.
hideLoading
();
th
is
.
init
()
th
at
.
init
()
}
);
}
...
...
plugin/api.js
View file @
c039fb06
...
...
@@ -42,6 +42,7 @@ export default {
TenantId
:
1
,
OpenId
:
this
.
GetOpenId
().
OpenId
,
UserId
:
this
.
GetOpenId
().
UserId
,
SmallShopsId
:
this
.
GetOpenId
().
SmallShopsId
,
MiniAppId
:
this
.
GetMiniAppId
(),
msg
:
param
.
data
,
token
:
this
.
GetOpenId
().
token
...
...
@@ -120,13 +121,15 @@ export default {
var
obj
=
{
OpenId
:
''
,
UserId
:
0
,
token
:
''
token
:
''
,
SmallShopsId
:
0
,
}
if
(
mall_userinfo
)
{
if
(
mall_userinfo
.
OpenId
)
{
obj
.
OpenId
=
mall_userinfo
.
OpenId
;
obj
.
UserId
=
mall_userinfo
.
UserId
;
obj
.
token
=
mall_userinfo
.
Token
;
obj
.
SmallShopsId
=
mall_userinfo
.
UserSmallShopId
;
}
}
return
obj
...
...
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