From a0bde60175336b5f0953e2c7927db1963fd1122f Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Thu, 9 Jun 2022 11:31:19 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E3=80=81=E9=A6=96=E9=A1=B5?=
=?UTF-8?q?=E7=AD=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 8 +--
apis/modules/client.js | 4 ++
apis/modules/parner.js | 4 ++
apis/request.js | 4 +-
config/product.js | 9 +++
config/request.js | 2 +-
pages/clientDetail/clientDetail.vue | 8 +--
pages/index/index.vue | 89 +++++++++++++++++++++++------
pages/login/login.vue | 4 +-
pages/orderDetail/orderDetail.vue | 4 +-
pages/ordered/ordered.vue | 5 +-
pages/qrcode/qrcode.vue | 27 +++++----
styles/common.scss | 30 +++++-----
13 files changed, 139 insertions(+), 59 deletions(-)
create mode 100644 config/product.js
diff --git a/App.vue b/App.vue
index 233affd..d996bf2 100644
--- a/App.vue
+++ b/App.vue
@@ -1,14 +1,10 @@
diff --git a/apis/modules/client.js b/apis/modules/client.js
index 00d79da..bc5ef56 100644
--- a/apis/modules/client.js
+++ b/apis/modules/client.js
@@ -47,4 +47,8 @@ export const getProductsSubscribedByCustomers = (data) => {
export const getTeamsByAccountId = (data) => {
return post('nakadai/applets/customer/getTeamsByAccountId', data)
+}
+
+export const getTheBusinessManagerIdsUnderTheTeam = id => {
+ return post(`nakadai/applets/customer/getTheBusinessManagerIdsUnderTheTeam?id=${id}`)
}
\ No newline at end of file
diff --git a/apis/modules/parner.js b/apis/modules/parner.js
index bf2f122..aa1ee36 100644
--- a/apis/modules/parner.js
+++ b/apis/modules/parner.js
@@ -11,4 +11,8 @@ export const teamList = (data) => {
export const generateInvitationCode = accountId => {
return post(`nakadai/partnerAccount/generateInvitationCode?accountId=${accountId}`)
+}
+
+export const treeList = (data) => {
+ return post('nakadai/partnerClassification/treeList', data)
}
\ No newline at end of file
diff --git a/apis/request.js b/apis/request.js
index ea73144..1831669 100644
--- a/apis/request.js
+++ b/apis/request.js
@@ -13,13 +13,12 @@ const request = options => {
}
const header = Object.assign({}, config.headers, {
token: uni.getStorageSync('token')
- // token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjU0NTY5OTA1LCJleHAiOjE2NTQ2MTMxMDUsImFjY291bnRJZCI6IjQ1MiJ9.IwVDQSpfYctr3ScaBiwXApNiSFjfwVbivt_uLCEPiW0'
})
return new Promise((resolve, reject)=>{
const { url } = options
uni.request({
header,
- url: ((url.includes('teamList')) ? 'http://192.168.31.137:9000/' : config.baseURL) + url,
+ url: ((url.includes('getTeamsByAccountId') || url.includes('getTheBusinessManagerIdsUnderTheTeam') || url.includes('treeList')) ? 'http://192.168.31.151:9000/' : config.baseURL) + url,
method: options.method || 'GET', // 请求类型,默认为GET
data: options.data || {}, // 请求参数,默认空对象
success: ({ data }) => {
@@ -33,6 +32,7 @@ const request = options => {
uni.removeStorageSync('userName')
uni.removeStorageSync('avatar')
uni.removeStorageSync('sessionKey')
+ uni.removeStorageSync('team')
uni.showToast({
title: message,
icon: 'none'
diff --git a/config/product.js b/config/product.js
new file mode 100644
index 0000000..b3646e0
--- /dev/null
+++ b/config/product.js
@@ -0,0 +1,9 @@
+/**
+/**
+ * 产品 配置文件
+ * @author yujialong
+ */
+
+export default {
+ normalIcon: 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20220609/png/1534733700683030528.png'
+}
diff --git a/config/request.js b/config/request.js
index c3aa89f..24cd55b 100644
--- a/config/request.js
+++ b/config/request.js
@@ -5,7 +5,7 @@
*/
export default {
- baseURL: 'http://192.168.31.137:9000/',
+ baseURL: 'http://192.168.31.151:9000/',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},
diff --git a/pages/clientDetail/clientDetail.vue b/pages/clientDetail/clientDetail.vue
index 9a4d0e0..dbe56e9 100644
--- a/pages/clientDetail/clientDetail.vue
+++ b/pages/clientDetail/clientDetail.vue
@@ -37,12 +37,12 @@
联系人姓名
{{ form.name }}
-
+
手机
{{ form.phone }}
-
+
账号
@@ -52,12 +52,12 @@
职务
{{ form.position }}
-
+
邮箱
{{ form.email }}
-
+
产品到期时间
diff --git a/pages/index/index.vue b/pages/index/index.vue
index b23c1c0..b640e0b 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -5,7 +5,14 @@
-
+
+
+
+ 城市合伙人招募中
+ 携手共创教育信息化新未来,合伙共享产业互备份
+
+
+
-
@@ -41,21 +48,21 @@
本月新增客户
- 152
+ 0
我的客户
- 23
+ 0
本月新增产品试用
- 152
+ 0
试用客户
- 23
+ 0
@@ -73,19 +80,19 @@
- 12W
+ 0
成交总额
- 0.9W
+ 0
收益金额
- 8.3w
+ 0
已到账
- 1.4w
+ 0
未到账
@@ -95,12 +102,15 @@