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
73f5137d
Commit
73f5137d
authored
Mar 14, 2024
by
侯体倬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑定优化
parent
51570751
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
src/pages/home/index.vue
+4
-0
src/pages/index/index.vue
+2
-0
src/pages/login/index.vue
+3
-1
No files found.
src/pages/home/index.vue
View file @
73f5137d
...
@@ -420,6 +420,7 @@ export default {
...
@@ -420,6 +420,7 @@ export default {
// 每次切换门店都删除导购数据
// 每次切换门店都删除导购数据
wx
.
removeStorageSync
(
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
);
wx
.
removeStorageSync
(
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
);
wx
.
removeStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
);
wx
.
removeStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
);
wx
.
removeStorageSync
(
this
.
$store
.
state
.
mixid
+
'temp_QRCodeType'
);
}
else
{
}
else
{
this
.
reloadPage
=
false
;
this
.
reloadPage
=
false
;
}
}
...
@@ -470,6 +471,7 @@ export default {
...
@@ -470,6 +471,7 @@ export default {
}
}
if
(
paramsObj
.
QRCodeType
)
{
if
(
paramsObj
.
QRCodeType
)
{
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
,
paramsObj
.
QRCodeType
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
,
paramsObj
.
QRCodeType
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'temp_QRCodeType'
,
paramsObj
.
QRCodeType
);
}
}
this
.
showStoreAddr
=
true
;
this
.
showStoreAddr
=
true
;
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
sceneObj
.
attractingCustomerChannelId
);
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
sceneObj
.
attractingCustomerChannelId
);
...
@@ -511,6 +513,7 @@ export default {
...
@@ -511,6 +513,7 @@ export default {
// 每次退出登录都删除导购数据
// 每次退出登录都删除导购数据
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'temp_QRCodeType'
});
}
}
this
.
options
=
wx
.
getStorageSync
(
"becomeInfo"
);
this
.
options
=
wx
.
getStorageSync
(
"becomeInfo"
);
this
.
changeLocation
=
options
.
changeLocation
||
''
this
.
changeLocation
=
options
.
changeLocation
||
''
...
@@ -545,6 +548,7 @@ export default {
...
@@ -545,6 +548,7 @@ export default {
// 每次退出登录都删除导购数据
// 每次退出登录都删除导购数据
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'temp_QRCodeType'
});
}
}
// 获取页面数据
// 获取页面数据
if
(
this
.
mpApp
.
globalData
.
pageList
&&
!
this
.
reloadPage
)
{
if
(
this
.
mpApp
.
globalData
.
pageList
&&
!
this
.
reloadPage
)
{
...
...
src/pages/index/index.vue
View file @
73f5137d
...
@@ -321,6 +321,7 @@ export default {
...
@@ -321,6 +321,7 @@ export default {
// 每次退出登录都删除导购数据
// 每次退出登录都删除导购数据
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
});
wx
.
removeStorage
({
key
:
this
.
$store
.
state
.
mixid
+
'temp_QRCodeType'
});
}
else
if
(
options
.
from
&&
options
.
from
==
"address"
)
{
}
else
if
(
options
.
from
&&
options
.
from
==
"address"
)
{
log
.
info
(
'options.from == "address"'
)
log
.
info
(
'options.from == "address"'
)
// 来自小程序地址页面
// 来自小程序地址页面
...
@@ -355,6 +356,7 @@ export default {
...
@@ -355,6 +356,7 @@ export default {
}
}
if
(
paramsObj
.
QRCodeType
)
{
if
(
paramsObj
.
QRCodeType
)
{
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
,
paramsObj
.
QRCodeType
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'guide_QRCodeType'
,
paramsObj
.
QRCodeType
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'temp_QRCodeType'
,
paramsObj
.
QRCodeType
);
}
}
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
paramsObj
.
attractingCustomerChannelId
);
wx
.
setStorageSync
(
'attractingCustomerChannelId'
,
paramsObj
.
attractingCustomerChannelId
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'storeId'
,
paramsObj
.
storeId
);
wx
.
setStorageSync
(
this
.
$store
.
state
.
mixid
+
'storeId'
,
paramsObj
.
storeId
);
...
...
src/pages/login/index.vue
View file @
73f5137d
...
@@ -803,13 +803,15 @@ export default {
...
@@ -803,13 +803,15 @@ export default {
query
.
spokesmanShopId
=
this
.
$store
.
state
.
spokesmanShopId
;
query
.
spokesmanShopId
=
this
.
$store
.
state
.
spokesmanShopId
;
}
}
// 导购海报分享来源
// 导购海报分享来源
const
shareQRCodeType
=
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
'
guide
_QRCodeType'
);
const
shareQRCodeType
=
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
'
temp
_QRCodeType'
);
if
(
shareQRCodeType
)
{
if
(
shareQRCodeType
)
{
query
.
customerSourceType
=
{
query
.
customerSourceType
=
{
coupon
:
17
,
// 优惠券海报
coupon
:
17
,
// 优惠券海报
home
:
18
,
// 门店海报
home
:
18
,
// 门店海报
goods
:
19
,
// 商品海报
goods
:
19
,
// 商品海报
}[
shareQRCodeType
];
}[
shareQRCodeType
];
// 用完即删
wx
.
removeStorageSync
(
this
.
$store
.
state
.
mixid
+
'temp_QRCodeType'
);
}
}
log
.
info
(
query
,
'bindUser-query-500'
)
log
.
info
(
query
,
'bindUser-query-500'
)
login
login
...
...
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