diff --git a/agentApp/common/api.js b/agentApp/common/api.js index c8cb5dc..ed39809 100644 --- a/agentApp/common/api.js +++ b/agentApp/common/api.js @@ -59,6 +59,18 @@ export const userWithdraw = (params) => http.post(baseUrl + '/api/user/withdraw' export const userWithdrawList = (params) => http.post(baseUrl + '/api/user/withdrawList', params, userConfig()) +// 带上代理token +const agentConfig = function() { + return { + header: { + 'Agent-Token': uni.getStorageSync('agent_token') + } + } +} + +export const agentSmsLogin = (params) => http.post(baseUrl + '/api/agent/smsLogin', params) + + // 带上商户token const merchantConfig = function() { return { diff --git a/agentApp/pages/agent-login/index.vue b/agentApp/pages/agent-login/index.vue index e1a9693..7510c81 100644 --- a/agentApp/pages/agent-login/index.vue +++ b/agentApp/pages/agent-login/index.vue @@ -6,23 +6,25 @@ - + - - + + 获取验证码 + + 剩余{{countdown}}秒 + - + \ No newline at end of file