diff --git a/apis/request.js b/apis/request.js
index 0d41bab..f18e6cd 100644
--- a/apis/request.js
+++ b/apis/request.js
@@ -12,7 +12,7 @@ const request = options => {
})
}
const header = Object.assign({}, config.headers, {
- token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjUzMDEyOTQ1LCJleHAiOjE2NTMwNTYxNDUsImFjY291bnRJZCI6IjEifQ.wlon-ETOzb3GvveRnetICH5Joa4u7XzaywGcDEbfqtU'
+ token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjUzMjcyMjMyLCJleHAiOjE2NTMzMTU0MzIsImFjY291bnRJZCI6IjEifQ.gf5myNnrLmVjUcIWfqfohWyvdPXXwr9butZo75CXk64'
})
return new Promise((resolve, reject)=>{
uni.request({
diff --git a/pages.json b/pages.json
index 34addde..c9df0d3 100644
--- a/pages.json
+++ b/pages.json
@@ -1,5 +1,21 @@
{
"pages": [
+ {
+ "path" : "pages/invite/invite",
+ "style" :
+ {
+ "navigationBarTitleText": "加入团队",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path" : "pages/clients/clients",
+ "style" :
+ {
+ "navigationBarTitleText": "客户列表",
+ "enablePullDownRefresh": true
+ }
+ },
{
"path" : "pages/orderDetail/orderDetail",
"style" :
@@ -16,12 +32,20 @@
"enablePullDownRefresh": false
}
},
- {
- "path" : "pages/clients/clients",
+ {
+ "path" : "pages/addMember/addMember",
"style" :
{
- "navigationBarTitleText": "客户列表",
- "enablePullDownRefresh": true
+ "navigationBarTitleText": "添加成员",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path" : "pages/addStaff/addStaff",
+ "style" :
+ {
+ "navigationBarTitleText": "添加成员",
+ "enablePullDownRefresh": false
}
},
{
@@ -54,14 +78,6 @@
"navigationBarTitleText": "首页"
}
},
- {
- "path" : "pages/invite/invite",
- "style" :
- {
- "navigationBarTitleText": "加入团队",
- "enablePullDownRefresh": false
- }
- },
{
"path" : "pages/qrcode/qrcode",
"style" :
@@ -78,22 +94,6 @@
"enablePullDownRefresh": false
}
},
- {
- "path" : "pages/addStaff/addStaff",
- "style" :
- {
- "navigationBarTitleText": "添加成员",
- "enablePullDownRefresh": false
- }
- },
- {
- "path" : "pages/addMember/addMember",
- "style" :
- {
- "navigationBarTitleText": "添加成员",
- "enablePullDownRefresh": false
- }
- },
{
"path" : "pages/password/password",
"style" :
diff --git a/pages/clientDetail/clientDetail.vue b/pages/clientDetail/clientDetail.vue
index bce538b..c316b96 100644
--- a/pages/clientDetail/clientDetail.vue
+++ b/pages/clientDetail/clientDetail.vue
@@ -8,64 +8,65 @@
-
-
- 基本信息
-
-
- 客户名称
- {{ form.customerName || '请选择学校' }}
-
-
- 省份
- {{ form.provinceName }}
-
-
- 城市
- {{ form.cityName }}
-
-
- 行业类型
- {{ form.industryClassName }}
-
-
-
- 行业
- {{ form.industryName }}
-
-
-
- 联系人姓名
- {{ form.name }}
-
-
-
- 手机
- {{ form.phone }}
-
-
-
- 账号
- {{ form.account }}
-
-
-
- 职务
- {{ form.position }}
-
-
-
- 邮箱
- {{ form.email }}
-
-
-
- 产品到期时间
- {{ form.expireDate }}
-
-
- 客户类型
- {{ customerType }}
+
+ 基本信息
+
+
+ 客户名称
+ {{ form.customerName }}
+ {{ form.customerName || '请选择学校' }}
+
+
+ 省份
+ {{ form.provinceName }}
+
+
+ 城市
+ {{ form.cityName }}
+
+
+ 行业类型
+ {{ form.industryClassName }}
+
+
+
+ 行业
+ {{ form.industryName }}
+
+
+
+ 联系人姓名
+ {{ form.name }}
+
+
+
+ 手机
+ {{ form.phone }}
+
+
+
+ 账号
+ {{ form.account }}
+
+
+
+ 职务
+ {{ form.position }}
+
+
+
+ 邮箱
+ {{ form.email }}
+
+
+
+ 产品到期时间
+ {{ form.expireDate }}
+
+
+ 客户类型
+ {{ customerType }}
+
@@ -84,8 +85,8 @@
-
-
@@ -28,9 +34,14 @@
data() {
return {
form: {
+ isTeam: 1, // 0为团队,1为成员
+ partnerClassificationId: 167,
+ token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjUzMjcyMjMyLCJleHAiOjE2NTMzMTU0MzIsImFjY291bnRJZCI6IjEifQ.gf5myNnrLmVjUcIWfqfohWyvdPXXwr9butZo75CXk64',
userName: '',
+ account: '',
phone: '',
code: '',
+ email: ''
},
codeDisabled: false,
phoneTimer: null,
@@ -44,9 +55,11 @@
methods: {
// 提交
submit() {
- const { userName, phone } = this.form
+ const { form } = this
+ const { userName, phone } = form
if (!userName) return this.$util.errMsg('请输入姓名!')
if (!phone) return this.$util.errMsg('请输入手机号!')
+ form.uniqueIdentification = Date.now()
savePartnerAccount(this.form).then(res => {
this.$util.sucMsg('加入成功')
setTimeout(() => {
@@ -149,6 +162,8 @@
border-radius: 5px;
}
.submit {
+ line-height: 38px;
+ font-size: 14px;
border-radius: 40px;
}
}
diff --git a/pages/orderDetail/orderDetail.vue b/pages/orderDetail/orderDetail.vue
index 4027c91..fd3faef 100644
--- a/pages/orderDetail/orderDetail.vue
+++ b/pages/orderDetail/orderDetail.vue
@@ -1,98 +1,143 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ 基本信息
+
+
+ 商务经理
+
+
+
+ 客户名称
+ {{ form.customerName }}
+ {{ form.customerName || '请选择客户' }}
+
+
+ 省份
+ {{ form.provinceName }}
+
+
+ 城市
+ {{ form.cityName }}
+
+
+ 联系人
+ {{ form.name }}
+
+
+ 电话
+ {{ form.phone }}
+
+
+ 邮箱
+ {{ form.email }}
+
+
+ 订单类型
+ {{ form.industryClassName }}
+
+
+
+ 订单编号
+ {{ form.orderNumber }}
+
+
+ 订单时间
+ {{ form.createTime }}
+
+
+ 订单金额(元)
+ {{ form.orderAmount }}
+
-
+
-
-
-
- -
-
- 程序设计
+
+ 实训课程产品
+
+
+ -
+
+
+
+ Python程序设计
+
+
+
+
+
+ 使用期限
+ 202323-34123
+
+
+ 市场价(元)
+ 20232元
+
+
+ 结算价
+ 2023元
+
+
+ 折扣率
+ 23
+
+
+ 平台服务费
+ 2123元
-
-
- 使用期限
- 202323-34123
-
-
- 市场价(元)
- 20232
-
-
- 结算价
- 2023
-
-
- 折扣率
- 23
-
-
- 平台服务费
- 2123
-
-
- 成交价格
- 2123
-
+
+ 成交价格
+ 2123元
-
-
-
-
+
+
+
+
+
+
+
+ 添加产品
+
+
-
- 订单总成交价合计:231245元
+
+
+ 已选
+ 10
+ 个产品
+ 总成交价合计
+ 2125523
+ 元
+
+
+ 总采购成本:
+ 341232
+ 总产品利润:
+ 564123
+
+ 提交
+
+
+
+
-
-
-
diff --git a/styles/common.scss b/styles/common.scss
index 508447d..59ef01c 100644
--- a/styles/common.scss
+++ b/styles/common.scss
@@ -1,10 +1,16 @@
button[type=primary] {
background-color: #007eff;
}
-
+.block {
+ padding: 0 24rpx;
+ margin: 20rpx 24rpx;
+ border-radius: 16rpx;
+ background-color: #fff;
+}
.l-title {
display: flex;
align-items: center;
+ padding: 28rpx 0;
font-size: 28rpx;
color: #333;
&:before {
@@ -17,10 +23,7 @@ button[type=primary] {
}
}
.form-list {
- padding: 0 24rpx;
- margin: 20rpx 24rpx;
- border-radius: 16rpx;
- background-color: #fff;
+ border-top: 1px solid #E6E8ED;
.line {
display: flex;
justify-content: space-between;
@@ -78,4 +81,45 @@ button[type=primary] {
position: fixed;
bottom: 20px;
right: 20px;
+}
+
+.popup-mask {
+ z-index: 9;
+ position: fixed;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ background-color: rgba(0, 0, 0, .5);
+}
+.popup {
+ z-index: 10;
+ position: fixed;
+ bottom: 0%;
+ width: 100%;
+ height: 90vh;
+ background-color: #fff;
+ border-top-left-radius: 8px;
+ border-top-right-radius: 8px;
+ .top {
+ text-align: center;
+ line-height: 50px;
+ font-size: 14px;
+ color: #333;
+ border-bottom: 1px solid #f1f1f1;
+ }
+ .close {
+ position: absolute;
+ top: 15px;
+ right: 15px;
+ }
+ .list {
+ max-height: calc(90vh - 103px);
+ padding: 0 15px;
+ overflow: auto;
+ .item {
+ line-height: 34px;
+ font-size: 12px;
+ }
+ }
}
\ No newline at end of file