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