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
d8a7ae72
Commit
d8a7ae72
authored
Aug 05, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
原生支付成功暂存
parent
65209f7f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
2 deletions
+18
-2
src/api/order.js
+4
-0
src/api/spokesman.js
+4
-0
src/components/paySuccess/paySuccessInfo.vue
+0
-0
src/main.js
+4
-1
src/pages/login/index.vue
+0
-0
src/pages/paySuccess/index.vue
+0
-0
src/pages/paySuccess/main.json
+2
-1
src/store/mutations.js
+3
-0
src/store/state.js
+1
-0
No files found.
src/api/order.js
View file @
d8a7ae72
...
...
@@ -9,4 +9,8 @@ export default {
addOrderNowBuy
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/order/add_order`
,
data
)
},
// 查询订单详情
orderDetail
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/order/detail?orderSn=
${
data
.
orderSn
}
`
)
},
}
src/api/spokesman.js
View file @
d8a7ae72
...
...
@@ -41,5 +41,9 @@ export default {
query_isEntry
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/spokesman/getSpokesmanRemindAndDisplayEntryByLogin`
,
{
data
})
},
// 获取分销员注册配置,及指标是否达成
subordinateSpokesmanProfit
(
params
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/spokesman/getSpokesmanRegisterConfigByInvitation/
${
params
}
`
)
},
}
src/components/paySuccess/paySuccessInfo.vue
0 → 100644
View file @
d8a7ae72
This diff is collapsed.
Click to expand it.
src/main.js
View file @
d8a7ae72
...
...
@@ -195,7 +195,10 @@ wx.onAppRoute(res => {
if
(
!
spokesmanId
)
{
// 获取当前分销员 id
spokesman
.
getSpokesmanidByShare
().
then
(
res
=>
{
if
(
res
.
data
.
data
.
spokesmanId
)
{
spokesmanId
=
res
.
data
.
data
.
spokesmanId
}
Store
.
commit
(
"setSpokesmanInfo"
,
res
.
data
.
data
);
if
(
res
.
data
.
data
.
spokesmanId
)
{
spokesmanId
=
res
.
data
.
data
.
spokesmanId
}
})
}
if
(
!
userId
)
{
// 防止多次调用
...
...
src/pages/login/index.vue
View file @
d8a7ae72
src/pages/paySuccess/index.vue
View file @
d8a7ae72
This diff is collapsed.
Click to expand it.
src/pages/paySuccess/main.json
View file @
d8a7ae72
{
"navigationBarTitleText"
:
"
登录
"
,
"navigationBarTitleText"
:
"
支付成功
"
,
"usingComponents"
:
{
"van-checkbox"
:
"/static/vant/checkbox/index"
,
"van-popup"
:
"/static/vant/popup/index"
,
"van-button"
:
"/static/vant/button/index"
,
"van-picker"
:
"/static/vant/picker/index"
,
"van-icon"
:
"/static/vant/icon/index"
,
"photo-gallery"
:
"/static/nativeComponents/PhotoGallery/index"
,
...
...
src/store/mutations.js
View file @
d8a7ae72
...
...
@@ -4,6 +4,9 @@ const mutations = {
state
[
key
]
=
val
;
}
},
setSpokesmanInfo
(
state
,
obj
)
{
state
.
spokemanInfo
=
obj
;
},
setSubscribeMessageObj
(
state
,
subscribeMessageObj
)
{
state
.
subscribeMessageObj
=
subscribeMessageObj
;
},
...
...
src/store/state.js
View file @
d8a7ae72
...
...
@@ -20,6 +20,7 @@ const state = {
offlineShopCode
:
""
,
isLogin
,
userInfo
,
spokemanInfo
:
{},
mixid
:
''
,
extConfig
:
{}
...
...
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