Commit d8a7ae72 by 李嘉林

原生支付成功暂存

parent 65209f7f
......@@ -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}`)
},
}
......@@ -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}`)
},
}
......@@ -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) { // 防止多次调用
......
{
"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",
......
......@@ -4,6 +4,9 @@ const mutations = {
state[key] = val;
}
},
setSpokesmanInfo(state, obj) {
state.spokemanInfo = obj;
},
setSubscribeMessageObj(state, subscribeMessageObj) {
state.subscribeMessageObj = subscribeMessageObj;
},
......
......@@ -20,6 +20,7 @@ const state = {
offlineShopCode:"",
isLogin,
userInfo,
spokemanInfo: {},
mixid : '',
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