Commit d8a7ae72 by 李嘉林

原生支付成功暂存

parent 65209f7f
...@@ -9,4 +9,8 @@ export default { ...@@ -9,4 +9,8 @@ export default {
addOrderNowBuy(data) { addOrderNowBuy(data) {
return requestPOST(`${process.env.OLSHOP_URL}/order/add_order`, data) return requestPOST(`${process.env.OLSHOP_URL}/order/add_order`, data)
}, },
// 查询订单详情
orderDetail(data) {
return requestPOST(`${process.env.OLSHOP_URL}/order/detail?orderSn=${data.orderSn}`)
},
} }
...@@ -41,5 +41,9 @@ export default { ...@@ -41,5 +41,9 @@ export default {
query_isEntry(data) { query_isEntry(data) {
return requestPOST(`${process.env.OLSHOP_URL}/spokesman/getSpokesmanRemindAndDisplayEntryByLogin`, { data }) return requestPOST(`${process.env.OLSHOP_URL}/spokesman/getSpokesmanRemindAndDisplayEntryByLogin`, { data })
}, },
// 获取分销员注册配置,及指标是否达成
subordinateSpokesmanProfit(params) {
return requestPOST(`${process.env.OLSHOP_URL}/spokesman/getSpokesmanRegisterConfigByInvitation/${params}`)
},
} }
...@@ -195,7 +195,10 @@ wx.onAppRoute(res => { ...@@ -195,7 +195,10 @@ wx.onAppRoute(res => {
if (!spokesmanId) { if (!spokesmanId) {
// 获取当前分销员 id // 获取当前分销员 id
spokesman.getSpokesmanidByShare().then(res => { 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) { // 防止多次调用 if (!userId) { // 防止多次调用
......
{ {
"navigationBarTitleText": "登录", "navigationBarTitleText": "支付成功",
"usingComponents": { "usingComponents": {
"van-checkbox": "/static/vant/checkbox/index", "van-checkbox": "/static/vant/checkbox/index",
"van-popup":"/static/vant/popup/index", "van-popup":"/static/vant/popup/index",
"van-button":"/static/vant/button/index",
"van-picker": "/static/vant/picker/index", "van-picker": "/static/vant/picker/index",
"van-icon":"/static/vant/icon/index", "van-icon":"/static/vant/icon/index",
"photo-gallery":"/static/nativeComponents/PhotoGallery/index", "photo-gallery":"/static/nativeComponents/PhotoGallery/index",
......
...@@ -4,6 +4,9 @@ const mutations = { ...@@ -4,6 +4,9 @@ const mutations = {
state[key] = val; state[key] = val;
} }
}, },
setSpokesmanInfo(state, obj) {
state.spokemanInfo = obj;
},
setSubscribeMessageObj(state, subscribeMessageObj) { setSubscribeMessageObj(state, subscribeMessageObj) {
state.subscribeMessageObj = subscribeMessageObj; state.subscribeMessageObj = subscribeMessageObj;
}, },
......
...@@ -20,6 +20,7 @@ const state = { ...@@ -20,6 +20,7 @@ const state = {
offlineShopCode:"", offlineShopCode:"",
isLogin, isLogin,
userInfo, userInfo,
spokemanInfo: {},
mixid : '', mixid : '',
extConfig : {} extConfig : {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment