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
f6e7c56e
Commit
f6e7c56e
authored
Aug 27, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微店的登录设置分销中心的分享带微店信息
parent
ec9d877e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
share-qrcode.vue
pages/share-qrcode/share-qrcode.vue
+6
-1
user-center.vue
pages/user-center/user-center.vue
+5
-3
No files found.
pages/share-qrcode/share-qrcode.vue
View file @
f6e7c56e
...
@@ -61,11 +61,16 @@
...
@@ -61,11 +61,16 @@
getWeiXinQRCode
(){
getWeiXinQRCode
(){
let
that
=
this
let
that
=
this
uni
.
showNavigationBarLoading
();
uni
.
showNavigationBarLoading
();
let
SmallShopId
=
that
.
UserInfo
.
SmallShopId
?
that
.
UserInfo
.
SmallShopId
:
0
;
if
(
SmallShopId
==
0
){
SmallShopId
=
that
.
UserInfo
.
UserSmallShopId
?
that
.
UserInfo
.
UserSmallShopId
:
0
;
}
console
.
log
(
'pages/index/index?user_id='
+
that
.
UserInfo
.
UserId
+
'&SmallShopId='
+
SmallShopId
)
that
.
request2
(
that
.
request2
(
{
{
url
:
'/api/AppletUser/GetWeiXinQRCodeForApplet'
,
url
:
'/api/AppletUser/GetWeiXinQRCodeForApplet'
,
data
:
{
data
:
{
Path
:
'pages/index/index?user_id='
+
that
.
UserInfo
.
UserId
,
Path
:
'pages/index/index?user_id='
+
that
.
UserInfo
.
UserId
+
'&SmallShopId='
+
SmallShopId
,
With
:
that
.
qrcode
.
QrCodeSize
,
With
:
that
.
qrcode
.
QrCodeSize
,
}
}
},
},
...
...
pages/user-center/user-center.vue
View file @
f6e7c56e
...
@@ -241,7 +241,9 @@ export default {
...
@@ -241,7 +241,9 @@ export default {
},
},
pandu
(
item
){
pandu
(
item
){
let
flag
=
true
;
let
flag
=
true
;
let
IsOpen
=
this
.
shopBasics
.
model
&&
this
.
shopBasics
.
model
.
IsOpen
?
this
.
shopBasics
.
model
.
IsOpen
:
1
let
IsOpen
=
this
.
shopBasics
.
model
&&
this
.
shopBasics
.
model
.
IsOpen
?
this
.
shopBasics
.
model
.
IsOpen
:
1
;
let
SmallShopId
=
this
.
mall_UserInfo
.
SmallShopId
?
this
.
mall_UserInfo
.
SmallShopId
:
0
;
let
UserSmallShopId
=
this
.
mall_UserInfo
.
UserSmallShopId
?
this
.
mall_UserInfo
.
UserSmallShopId
:
0
;
switch
(
item
.
link_url
)
switch
(
item
.
link_url
)
{
{
case
"/pages/share/index/index"
:
case
"/pages/share/index/index"
:
...
@@ -258,7 +260,7 @@ export default {
...
@@ -258,7 +260,7 @@ export default {
if
(
IsOpen
==
2
)
if
(
IsOpen
==
2
)
{
{
if
(
this
.
mall_UserInfo
.
SmallShopId
==
0
&&
this
.
mall_UserInfo
.
UserSmallShopId
!=
0
)
if
(
SmallShopId
==
0
&&
UserSmallShopId
!=
0
)
{
{
flag
=
false
;
flag
=
false
;
}
}
...
@@ -268,7 +270,7 @@ export default {
...
@@ -268,7 +270,7 @@ export default {
}
}
//关闭
//关闭
else
{
else
{
if
(
this
.
mall_UserInfo
.
SmallShopId
&&
this
.
mall_UserInfo
.
SmallShopId
!=
0
)
if
(
SmallShopId
!=
0
)
{
{
flag
=
true
;
flag
=
true
;
}
}
...
...
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