diff --git a/pages/center/Piabodata/StaffAnalysis.vue b/pages/center/Piabodata/StaffAnalysis.vue
index e985efc..a713cb1 100644
--- a/pages/center/Piabodata/StaffAnalysis.vue
+++ b/pages/center/Piabodata/StaffAnalysis.vue
@@ -114,6 +114,7 @@
:ontouch="true"
canvasId="wangxiaohuaerlingryilingwuyibhh"
:canvas2d="true"
+ :opts="lineOpts"
/>
@@ -151,7 +152,7 @@
totalTimeShow: false,
activeTotal:4,
activeTotal2:1,
- // 客户id
+ // 项目id
houseId:'',
staffList:[],
staffList1:[],
@@ -171,6 +172,16 @@
value:'',
label:'平均'
},
+ lineOpts: {
+ yAxis: {
+ data: [
+ {
+ max: 100,
+ min: 0,
+ }
+ ]
+ }
+ },
opts: {
fontSize: 10,
extra: {
@@ -236,13 +247,13 @@
},
onLoad: function(options) {
- // 获取客户id
+ // 获取项目id
this.houseId = uni.getStorageSync('buildingID').id;
// this.buildingname = uni.getStorageSync('buildingID').name;
// 请求接口获取所有置业顾问员工的列表
this.getStaffList()
},
- onPullDownRefresh(){
+ onPullDownRefresh() {
this.getStaffList()
setTimeout(function () {
uni.stopPullDownRefresh();
diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue
index 7a2708e..84cdbb8 100644
--- a/pages/center/consumer/consumerDetail.vue
+++ b/pages/center/consumer/consumerDetail.vue
@@ -12,7 +12,7 @@
{{customerInfo.name || '--'}}
-
+
@@ -248,6 +248,15 @@
buttonisshow:false
}
},
+
+ computed: {
+ isEdit() {
+ let arr = uni.getStorageSync('weapp_session_Menu_data')
+ return arr.findIndex(item => {
+ return item.name == '客户编辑'
+ }) == -1 ? false : true
+ }
+ },
onLoad(options) {
this.customerId = options.id;
},
@@ -378,6 +387,8 @@
},
// 去编辑
goedit(){
+ // console.log('去编辑')
+ if (!this.isEdit) return
// console.log('去编辑')
uni.navigateTo({
url:`/pages/center/consumer/edit?id=${this.customerId}&projectId=${this.customerInfo.projectId}`
diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue
index 85a5826..4ecefa6 100644
--- a/pages/center/consumer/index.vue
+++ b/pages/center/consumer/index.vue
@@ -269,19 +269,19 @@
}, ],
levelList: [{
label: 'A',
- value: 0,
+ value: 1,
isShow: false,
}, {
label: 'B',
- value: 1,
+ value: 2,
isShow: false,
}, {
label: 'C',
- value: 2,
+ value: 3,
isShow: false,
}, {
label: 'D',
- value: 3,
+ value: 4,
isShow: false,
}, ],
isRefresh:false
diff --git a/utils/domain.js b/utils/domain.js
index 0c01cfa..4316ebc 100644
--- a/utils/domain.js
+++ b/utils/domain.js
@@ -1,10 +1,11 @@
// http.js使用域名
+const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试站
// const baseUrl = 'http://192.168.31.57:8080/autoSR/api';// 本地
// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
// const baseUrl = 'http://192.168.31.167:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
-const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用
+// const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用
// config使用域名
@@ -17,7 +18,7 @@ const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用
// const host = 'http://192.168.31.167:8080/autoSR/api'; // 长龙
// const host = 'http://192.168.31.134:8080/autoSR/api'; // 佳豪
// const host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
-const host = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用
+const host = baseUrl; // 测试站
const iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 暂未使用留着防止报错