diff --git a/apis/modules/user.js b/apis/modules/user.js index a704bd0..79d01af 100644 --- a/apis/modules/user.js +++ b/apis/modules/user.js @@ -5,6 +5,14 @@ export const login = (data) => { return post('users/users/user/weChatAppletCallbackByPartner', data) } +export const douYinLogin = (data) => { + return post('users/users/user/douYinLogin?code=' + data) +} + +export const douYinLoginByOpenid = (data) => { + return post('users/users/user/douYinLoginByOpenid?code=' + data) +} + export const queryProvince = () => { return get('nakadai/nakadai/province/queryProvince') } diff --git a/config/request.js b/config/request.js index 7bc9e7d..70b625e 100644 --- a/config/request.js +++ b/config/request.js @@ -6,7 +6,7 @@ export default { baseURL: 'https://www.occupationlab.com/', - // baseURL: 'http://192.168.31.152:9000/', + // baseURL: 'http://192.168.31.51:9000/', // baseURL: 'http://121.37.12.51/', headers: { 'Content-Type': 'application/json;charset=UTF-8' diff --git a/libs/util.js b/libs/util.js index 82c453c..ab69b1b 100644 --- a/libs/util.js +++ b/libs/util.js @@ -86,6 +86,7 @@ export default { uni.downloadFile({ url: files[id], success: function(res) { + console.log(11, res) uni.hideLoading(); uni.showLoading({ title: '正在打开', diff --git a/pages/login/login.vue b/pages/login/login.vue index eac4837..8e25e67 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -26,11 +26,12 @@