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
44a027f1
Commit
44a027f1
authored
Dec 15, 2021
by
liangjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix setStorageSync('attractingCustomerChannelId','')
parent
8243778d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
src/pages/home/index.vue
+5
-3
src/pages/index/index.vue
+17
-17
No files found.
src/pages/home/index.vue
View file @
44a027f1
...
...
@@ -299,7 +299,9 @@ export default {
}
).
then
(
ele
=>
{
//清空引客渠道id
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
''
);
if
(
ele
.
data
.
data
)
{
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
''
);
}
})
}
}
...
...
@@ -444,7 +446,7 @@ export default {
(
data
.
visibleCopy
==
3
&&
!
wx
.
getStorageSync
(
'sessionid'
))
)
{
data
.
visible
=
1
;
}
else
if
((
data
.
visibleCopy
==
2
&&
!
wx
.
getStorageSync
(
'sessionid'
))
||
}
else
if
((
data
.
visibleCopy
==
2
&&
!
wx
.
getStorageSync
(
'sessionid'
))
||
(
data
.
visibleCopy
==
3
&&
wx
.
getStorageSync
(
'sessionid'
))
)
{
data
.
visible
=
0
;
...
...
@@ -470,7 +472,7 @@ export default {
(
element
.
visibleCopy
==
3
&&
!
wx
.
getStorageSync
(
'sessionid'
))
)
{
element
.
visible
=
1
;
}
else
if
((
element
.
visibleCopy
==
2
&&
!
wx
.
getStorageSync
(
'sessionid'
))
||
}
else
if
((
element
.
visibleCopy
==
2
&&
!
wx
.
getStorageSync
(
'sessionid'
))
||
(
element
.
visibleCopy
==
3
&&
wx
.
getStorageSync
(
'sessionid'
))
)
{
element
.
visible
=
0
;
...
...
src/pages/index/index.vue
View file @
44a027f1
...
...
@@ -85,7 +85,7 @@ export default {
}
},
onLoad
(
options
)
{
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
//清空门店id
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'storeId'
,
''
)
...
...
@@ -119,7 +119,7 @@ export default {
this
.
withoutScene
=
true
;
})
},
})
})
}
// 移除重复参数
if
(
options
.
params
)
{
...
...
@@ -232,7 +232,7 @@ export default {
newRegisterFlag
:
0
,
}
).
then
(
ele
=>
{
if
(
ele
.
data
)
{
if
(
ele
.
data
.
data
)
{
//清空引客渠道id
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
''
);
}
...
...
@@ -259,9 +259,9 @@ export default {
}
}).
catch
((
err
)
=>
{
this
.
withoutScene
=
true
;
})
})
});
}
else
{
//来自扫码
// options 中的scene需要使用decodeURIComponent才能获取到生成二维码时传入的scene
...
...
@@ -278,12 +278,12 @@ export default {
// }else{
// this.params += `&spokesmanGroupId=${querys[2]}&spokesmanShopId=${querys[3]}&spokesmanRelId=${querys[4]}`
// }
// }else if(querys.length == 3){
// this.params += `&userId=${querys[2]}`
// }
}
else
if
(
querys
[
0
]
==
"activty"
)
{
//活动页面activty_turntable_123
this
.
params
+=
`&pageInfo=
${
scene
}
`
;
...
...
@@ -297,11 +297,11 @@ export default {
// }else{
// this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${querys[2]}&spokesmanRelId=${querys[3]}`
// }
// }else if(querys.length == 2){
// this.params += `&userId=${querys[1]}`
// }
}
else
if
(
querys
[
0
]
==
"home"
){
this
.
page
=
`/`
;
this
.
params
+=
this
.
paramsHander
(
querys
,
2
)
...
...
@@ -311,7 +311,7 @@ export default {
// }else{
// this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${querys[2]}&spokesmanRelId=${querys[3]}`
// }
// }else if(querys.length == 2){
// this.params += `&userId=${querys[1]}`
// }
...
...
@@ -328,7 +328,7 @@ export default {
// }else{
// this.params += `&orderSn=${querys[1]}&spokesmanGroupId=${querys[2]}&spokesmanShopId=${querys[3]}&spokesmanRelId=${querys[4]}`
// }
// }else if(querys.length == 3){
// this.params += `&orderSn=${querys[1]}&userId=${querys[2]}`
// }
...
...
@@ -351,8 +351,8 @@ export default {
console
.
log
(
this
.
page
)
console
.
log
(
this
.
params
)
}
// var query = options.query.dentistId; // 参数二维码传递过来的场景参数
}
this
.
init
();
...
...
@@ -438,7 +438,7 @@ export default {
console
.
log
(
res
,
"h5消息"
,
res
.
target
.
data
[
len
]);
this
.
shareShopName
=
res
.
target
.
data
[
len
].
shareShopName
||
""
;
this
.
shareLogoUrl
=
DFSImg
(
res
.
target
.
data
[
len
].
shareLogoUrl
,
500
,
400
);
//分享内容中有订单信息为送礼活动
this
.
shareOrderSn
=
res
.
target
.
data
[
len
].
orderSn
;
this
.
shareTid
=
res
.
target
.
data
[
len
].
shareTid
;
...
...
@@ -456,7 +456,7 @@ export default {
}
}
indexApi
.
forward
({
articleId
:
articleId
,}).
then
(
res
=>
{
})
}
},
...
...
@@ -493,7 +493,7 @@ export default {
}
else
{
params
+=
`&spokesmanGroupId=
${
querys
[
midNum
-
1
]}
&spokesmanShopId=
${
querys
[
midNum
]}
&spokesmanRelId=
${
querys
[
midNum
+
1
]}
`
}
}
else
if
(
querys
.
length
==
midNum
){
params
+=
`&userId=
${
querys
[
midNum
-
1
]}
`
}
...
...
@@ -557,7 +557,7 @@ export default {
}
else
{
this
.
shareUrl
=
url
;
}
console
.
log
(
this
.
shareUrl
,
"index12"
);
console
.
log
(
`/pages/index/main?share=
${
encodeURIComponent
(
this
.
shareUrl
)}
`
,
'测试直播分享相关'
)
...
...
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