From 2be807f0eeb060219bfa4bc4c22563cd8a6af4ce Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 30 Jun 2022 14:34:10 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/modules/client.js | 8 ++--- apis/modules/order.js | 2 +- apis/modules/parner.js | 12 +++---- apis/modules/user.js | 14 ++++----- apis/request.js | 2 +- config/request.js | 2 +- order/addCourse/addCourse.vue | 16 ++++++---- order/editCourse/editCourse.vue | 49 +++++++++++++++++------------ order/orderDetail/orderDetail.vue | 20 ++++++++---- order/orders/orders.vue | 2 +- pages/clientDetail/clientDetail.vue | 16 +++++----- pages/clients/clients.vue | 2 +- pages/index/index.vue | 1 + pages/products/products.vue | 2 +- styles/common.scss | 1 - 15 files changed, 86 insertions(+), 63 deletions(-) diff --git a/apis/modules/client.js b/apis/modules/client.js index 1c9fa4c..560370c 100644 --- a/apis/modules/client.js +++ b/apis/modules/client.js @@ -6,11 +6,11 @@ export const queryCustomer = (data) => { } export const list = (data) => { - return post('nakadai/applets/customer/getCustomerListBasedOnBusinessManagerId', data) + return post('nakadai/nakadai/applets/customer/getCustomerListBasedOnBusinessManagerId', data) } export const all = (data) => { - return post('nakadai/applets/customer/customerList', data) + return post('nakadai/nakadai/applets/customer/customerList', data) } export const queryCustomerDetails = (data) => { @@ -46,9 +46,9 @@ export const getProductsSubscribedByCustomers = (data) => { } export const getTeamsByAccountId = (data) => { - return post('nakadai/applets/customer/getTeamsByAccountId', data) + return post('nakadai/nakadai/applets/customer/getTeamsByAccountId', data) } export const getTheBusinessManagerIdsUnderTheTeam = id => { - return post(`nakadai/applets/customer/getTheBusinessManagerIdsUnderTheTeam?id=${id}`) + return post(`nakadai/nakadai/applets/customer/getTheBusinessManagerIdsUnderTheTeam?id=${id}`) } \ No newline at end of file diff --git a/apis/modules/order.js b/apis/modules/order.js index 345afca..202586c 100644 --- a/apis/modules/order.js +++ b/apis/modules/order.js @@ -22,7 +22,7 @@ export const renew = (data) => { } export const list = (data) => { - return post('nakadai/applets/order/orderList', data) + return post('nakadai/nakadai/applets/order/orderList', data) } export const orderList = (data) => { diff --git a/apis/modules/parner.js b/apis/modules/parner.js index 7bd1800..8d9925e 100644 --- a/apis/modules/parner.js +++ b/apis/modules/parner.js @@ -2,25 +2,25 @@ import request from '@/apis/request.js' const { get, post } = request export const savePartnerAccount = (data) => { - return post('nakadai/partnerAccount/savePartnerAccount', data) + return post('nakadai/nakadai/partnerAccount/savePartnerAccount', data) } export const teamList = (data) => { - return post('nakadai/partnerAccount/partnerAccountList', data) + return post('nakadai/nakadai/partnerAccount/partnerAccountList', data) } export const generateInvitationCode = accountId => { - return post(`nakadai/partnerAccount/generateInvitationCode?accountId=${accountId}`) + return post(`nakadai/nakadai/partnerAccount/generateInvitationCode?accountId=${accountId}`) } export const treeList = (data) => { - return post('nakadai/partnerClassification/treeList', data) + return post('nakadai/nakadai/partnerClassification/treeList', data) } export const my = (data) => { - return get('nakadai/partner-team/my', data) + return get('nakadai/nakadai/partner-team/my', data) } export const mailFileSend = (data) => { - return post('nakadai/partnerAccount/mailFileSend', data) + return post('nakadai/nakadai/partnerAccount/mailFileSend', data) } \ No newline at end of file diff --git a/apis/modules/user.js b/apis/modules/user.js index 79c5ab8..e7c1ac7 100644 --- a/apis/modules/user.js +++ b/apis/modules/user.js @@ -14,7 +14,7 @@ export const examinePassword = (data) => { } export const getUserRolesPermissionMenu = (data) => { - return get('users/user-role/getUserRolesPermissionMenu', data) + return get('users/users/user-role/getUserRolesPermissionMenu', data) } export const updatePersonCenter = (data) => { @@ -26,27 +26,27 @@ export const queryUserInfoDetails = () => { } export const updateMyEmail = (data) => { - return post('nakadai/partner-team/updateMyEmail', data) + return post('nakadai/nakadai/partner-team/updateMyEmail', data) } export const mailCodeSend = (data) => { - return post('nakadai/partner-team/mailCodeSend', data) + return post('nakadai/nakadai/partner-team/mailCodeSend', data) } export const changeAccount = account => { - return post(`users/applets/mine/changeAccount?account=${account}`) + return post(`users/users/applets/mine/changeAccount?account=${account}`) } export const changePhoneNumber = (phone, code) => { - return post(`users/applets/mine/changePhoneNumber?phone=${phone}&code=${code}`) + return post(`users/users/applets/mine/changePhoneNumber?phone=${phone}&code=${code}`) } export const checkIfAnAccountExists = account => { - return post(`users/applets/mine/checkIfAnAccountExists?account=${account}`) + return post(`users/users/applets/mine/checkIfAnAccountExists?account=${account}`) } export const checkIfThePhoneNumberExists = phone => { - return post(`users/applets/mine/checkIfThePhoneNumberExists?phone=${phone}`) + return post(`users/users/applets/mine/checkIfThePhoneNumberExists?phone=${phone}`) } export const updateUserAvatars = `http://39.108.250.202:9000/users/users/userAccount/updateUserAvatars` \ No newline at end of file diff --git a/apis/request.js b/apis/request.js index b42f7bb..20fb794 100644 --- a/apis/request.js +++ b/apis/request.js @@ -19,7 +19,7 @@ const request = options => { const { url } = options uni.request({ header, - url: (otherUrl.find(e => url.includes(e)) ? 'http://192.168.31.151:9000/' : config.baseURL) + url, + url: config.baseURL + url, method: options.method || 'GET', // 请求类型,默认为GET data: options.data || {}, // 请求参数,默认空对象 success: ({ data }) => { diff --git a/config/request.js b/config/request.js index 24cd55b..25bb4a5 100644 --- a/config/request.js +++ b/config/request.js @@ -5,7 +5,7 @@ */ export default { - baseURL: 'http://192.168.31.151:9000/', + baseURL: 'https://huorantech.cn/', headers: { 'Content-Type': 'application/json;charset=UTF-8' }, diff --git a/order/addCourse/addCourse.vue b/order/addCourse/addCourse.vue index e534a2f..b06fef6 100644 --- a/order/addCourse/addCourse.vue +++ b/order/addCourse/addCourse.vue @@ -10,7 +10,8 @@