diff --git a/apis/modules/client.js b/apis/modules/client.js index 3cdef8d..00d79da 100644 --- a/apis/modules/client.js +++ b/apis/modules/client.js @@ -6,7 +6,11 @@ export const queryCustomer = (data) => { } export const list = (data) => { - return post('nakadai/nakadai/customer/GetCustomerListBasedOnBusinessManagerId', data) + return post('nakadai/applets/customer/getCustomerListBasedOnBusinessManagerId', data) +} + +export const all = (data) => { + return post('nakadai/applets/customer/allClientsOfTheTeam', data) } export const queryCustomerDetails = (data) => { @@ -39,4 +43,8 @@ export const updateCustomer = (data) => { export const getProductsSubscribedByCustomers = (data) => { return get('nakadai/nakadai/customer/getProductsSubscribedByCustomers', data) +} + +export const getTeamsByAccountId = (data) => { + return post('nakadai/applets/customer/getTeamsByAccountId', data) } \ No newline at end of file diff --git a/apis/modules/order.js b/apis/modules/order.js index 78b6b3f..0ec1924 100644 --- a/apis/modules/order.js +++ b/apis/modules/order.js @@ -19,4 +19,8 @@ export const getDetail = (data) => { export const renew = (data) => { return post('nakadai/nakadai/orderOther/renew', data) +} + +export const list = (data) => { + return post('nakadai/applets/order/getOrderBasedOnBusinessManagerId', data) } \ No newline at end of file diff --git a/apis/request.js b/apis/request.js index d513239..81c964d 100644 --- a/apis/request.js +++ b/apis/request.js @@ -12,7 +12,7 @@ const request = options => { }) } const header = Object.assign({}, config.headers, { - token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjUzODc2NDczLCJleHAiOjE2NTM5MTk2NzMsImFjY291bnRJZCI6IjEifQ.sX2qEUJk_EzltbrLOos_ZFuyj_5OrXFhvq_qahbIfmc' + token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjU0MTM1MDg4LCJleHAiOjE2NTQxNzgyODgsImFjY291bnRJZCI6IjEifQ.wSb1OgO7vfJoRRNe9tHirTAiTd7vHQLsKFU58cQTe84' }) return new Promise((resolve, reject)=>{ const { url } = options diff --git a/manifest.json b/manifest.json index c1f6e37..a17a7af 100644 --- a/manifest.json +++ b/manifest.json @@ -49,7 +49,7 @@ /* 快应用特有相关 */ "mp-weixin" : { /* 小程序特有相关 */ - "appid" : "wx3a64f97291b0b976", + "appid" : "wx77a8a2a23138998b", "setting" : { "urlCheck" : false }, diff --git a/pages.json b/pages.json index daa5377..feb93be 100644 --- a/pages.json +++ b/pages.json @@ -1,5 +1,11 @@ { "pages": [ + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "首页" + } + }, { "path" : "pages/login/login", "style" : @@ -16,19 +22,19 @@ "enablePullDownRefresh": true } }, - { - "path" : "pages/products/products", + { + "path" : "pages/clients/clients", "style" : { - "navigationBarTitleText": "产品", + "navigationBarTitleText": "客户列表", "enablePullDownRefresh": true } }, - { - "path" : "pages/clients/clients", + { + "path" : "pages/products/products", "style" : { - "navigationBarTitleText": "客户列表", + "navigationBarTitleText": "产品", "enablePullDownRefresh": true } }, @@ -40,12 +46,6 @@ "enablePullDownRefresh": true } }, - { - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "首页" - } - }, { "path" : "pages/clientDetail/clientDetail", "style" : @@ -158,15 +158,6 @@ "enablePullDownRefresh": false } } - ,{ - "path" : "pages/agreement/agreement", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - } ], "condition": { //模式配置,仅开发期间生效 "current": 0, //当前激活的模式(list 的索引项) diff --git a/pages/addCourse/addCourse.vue b/pages/addCourse/addCourse.vue index 3d4f4d2..291519e 100644 --- a/pages/addCourse/addCourse.vue +++ b/pages/addCourse/addCourse.vue @@ -11,7 +11,7 @@