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
74f5d78a
Commit
74f5d78a
authored
Apr 09, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取参数加判断
parent
ad9ab5bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
src/utils/mayi.js
+13
-2
No files found.
src/utils/mayi.js
View file @
74f5d78a
...
@@ -551,6 +551,8 @@ export function themeScanningCodeClick() {
...
@@ -551,6 +551,8 @@ export function themeScanningCodeClick() {
*/
*/
export
function
setStoreInfo
({
offlineShopCode
,
offlineShopName
})
{
export
function
setStoreInfo
({
offlineShopCode
,
offlineShopName
})
{
console
.
log
(
offlineShopCode
,
offlineShopName
,
'--setStoreInfo'
);
console
.
log
(
offlineShopCode
,
offlineShopName
,
'--setStoreInfo'
);
let
ofCode
=
""
,
ofName
=
""
;
wx
.
setStorageSync
(
"offlineShopCode"
,
offlineShopCode
);
wx
.
setStorageSync
(
"offlineShopCode"
,
offlineShopCode
);
wx
.
setStorageSync
(
"offlineShopName"
,
offlineShopName
);
wx
.
setStorageSync
(
"offlineShopName"
,
offlineShopName
);
}
}
...
@@ -559,9 +561,18 @@ export function setStoreInfo({ offlineShopCode, offlineShopName }) {
...
@@ -559,9 +561,18 @@ export function setStoreInfo({ offlineShopCode, offlineShopName }) {
* 获取门店code、name
* 获取门店code、name
*/
*/
export
function
getStoreInfo
()
{
export
function
getStoreInfo
()
{
let
offlineShopCode
=
wx
.
getStorageSync
(
"offlineShopCode"
);
let
offlineShopName
=
wx
.
getStorageSync
(
"offlineShopName"
);
let
ofCode
=
""
,
ofName
=
""
;
if
(
offlineShopCode
!=
undefined
&&
offlineShopCode
!=
""
&&
offlineShopCode
!=
null
&&
offlineShopCode
!=
"undefined"
&&
offlineShopCode
!=
"null"
)
{
ofCode
=
offlineShopCode
;
}
if
(
offlineShopName
!=
undefined
&&
offlineShopName
!=
""
&&
offlineShopName
!=
null
&&
offlineShopName
!=
"undefined"
&&
offlineShopName
!=
"null"
)
{
ofName
=
offlineShopName
;
}
return
{
return
{
offlineShopCode
:
wx
.
getStorageSync
(
"offlineShopCode"
)
||
""
,
offlineShopCode
:
ofCode
||
""
,
offlineShopName
:
wx
.
getStorageSync
(
"offlineShopName"
)
||
""
offlineShopName
:
ofName
||
""
};
};
}
}
...
...
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