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
fe44764e
Commit
fe44764e
authored
Mar 14, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页绑定导购
parent
73f5137d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
src/api/shop.js
+7
-0
src/pages/home/index.vue
+11
-0
No files found.
src/api/shop.js
View file @
fe44764e
...
@@ -89,4 +89,11 @@ export default {
...
@@ -89,4 +89,11 @@ export default {
data
data
);
);
},
},
// 商城二维码分配组织或跟进人
ShopCodeDistributionOrg
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/user/allocation`
,
data
);
},
};
};
src/pages/home/index.vue
View file @
fe44764e
...
@@ -393,6 +393,8 @@ export default {
...
@@ -393,6 +393,8 @@ export default {
// this.$mp.page.onPageScroll= (el)=>{
// this.$mp.page.onPageScroll= (el)=>{
// throttle(this.scrolls(el),100)
// throttle(this.scrolls(el),100)
// };
// };
// 调绑定导购
this
.
ShopCodeDistributionOrg
();
},
},
// 滚动节流方法
// 滚动节流方法
onPageScroll
:
tool
.
throttle
(
function
(
el
)
{
onPageScroll
:
tool
.
throttle
(
function
(
el
)
{
...
@@ -1190,8 +1192,17 @@ export default {
...
@@ -1190,8 +1192,17 @@ export default {
}
}
wx
.
stopPullDownRefresh
();
wx
.
stopPullDownRefresh
();
},
ShopCodeDistributionOrg
()
{
let
setGuideEmployeeId
=
wx
.
getStorageSync
(
this
.
$store
.
state
.
mixid
+
'setGuideEmployeeId'
);
if
(
setGuideEmployeeId
)
{
shop
.
ShopCodeDistributionOrg
({
isCover
:
false
,
employeeId
:
setGuideEmployeeId
});
}
}
},
},
},
async
onShareAppMessage
(
res
){
async
onShareAppMessage
(
res
){
log
.
info
(
res
)
log
.
info
(
res
)
let
newHref
=
'/pages/home/main'
;
let
newHref
=
'/pages/home/main'
;
...
...
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