| @@ -114,6 +114,7 @@ | |||||
| :ontouch="true" | :ontouch="true" | ||||
| canvasId="wangxiaohuaerlingryilingwuyibhh" | canvasId="wangxiaohuaerlingryilingwuyibhh" | ||||
| :canvas2d="true" | :canvas2d="true" | ||||
| :opts="lineOpts" | |||||
| /> | /> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -151,7 +152,7 @@ | |||||
| totalTimeShow: false, | totalTimeShow: false, | ||||
| activeTotal:4, | activeTotal:4, | ||||
| activeTotal2:1, | activeTotal2:1, | ||||
| // 客户id | |||||
| // 项目id | |||||
| houseId:'', | houseId:'', | ||||
| staffList:[], | staffList:[], | ||||
| staffList1:[], | staffList1:[], | ||||
| @@ -171,6 +172,16 @@ | |||||
| value:'', | value:'', | ||||
| label:'平均' | label:'平均' | ||||
| }, | }, | ||||
| lineOpts: { | |||||
| yAxis: { | |||||
| data: [ | |||||
| { | |||||
| max: 100, | |||||
| min: 0, | |||||
| } | |||||
| ] | |||||
| } | |||||
| }, | |||||
| opts: { | opts: { | ||||
| fontSize: 10, | fontSize: 10, | ||||
| extra: { | extra: { | ||||
| @@ -236,13 +247,13 @@ | |||||
| }, | }, | ||||
| onLoad: function(options) { | onLoad: function(options) { | ||||
| // 获取客户id | |||||
| // 获取项目id | |||||
| this.houseId = uni.getStorageSync('buildingID').id; | this.houseId = uni.getStorageSync('buildingID').id; | ||||
| // this.buildingname = uni.getStorageSync('buildingID').name; | // this.buildingname = uni.getStorageSync('buildingID').name; | ||||
| // 请求接口获取所有置业顾问员工的列表 | // 请求接口获取所有置业顾问员工的列表 | ||||
| this.getStaffList() | this.getStaffList() | ||||
| }, | }, | ||||
| onPullDownRefresh(){ | |||||
| onPullDownRefresh() { | |||||
| this.getStaffList() | this.getStaffList() | ||||
| setTimeout(function () { | setTimeout(function () { | ||||
| uni.stopPullDownRefresh(); | uni.stopPullDownRefresh(); | ||||
| @@ -12,7 +12,7 @@ | |||||
| <view class="test">{{customerInfo.name || '--'}}</view> | <view class="test">{{customerInfo.name || '--'}}</view> | ||||
| <view class="edit"> | |||||
| <view class="edit" v-if="isEdit"> | |||||
| <image class="screen-sel-img" src="../../../static/images/edit.png" mode=""></image> | <image class="screen-sel-img" src="../../../static/images/edit.png" mode=""></image> | ||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -248,6 +248,15 @@ | |||||
| buttonisshow:false | buttonisshow:false | ||||
| } | } | ||||
| }, | }, | ||||
| computed: { | |||||
| isEdit() { | |||||
| let arr = uni.getStorageSync('weapp_session_Menu_data') | |||||
| return arr.findIndex(item => { | |||||
| return item.name == '客户编辑' | |||||
| }) == -1 ? false : true | |||||
| } | |||||
| }, | |||||
| onLoad(options) { | onLoad(options) { | ||||
| this.customerId = options.id; | this.customerId = options.id; | ||||
| }, | }, | ||||
| @@ -378,6 +387,8 @@ | |||||
| }, | }, | ||||
| // 去编辑 | // 去编辑 | ||||
| goedit(){ | goedit(){ | ||||
| // console.log('去编辑') | |||||
| if (!this.isEdit) return | |||||
| // console.log('去编辑') | // console.log('去编辑') | ||||
| uni.navigateTo({ | uni.navigateTo({ | ||||
| url:`/pages/center/consumer/edit?id=${this.customerId}&projectId=${this.customerInfo.projectId}` | url:`/pages/center/consumer/edit?id=${this.customerId}&projectId=${this.customerInfo.projectId}` | ||||
| @@ -269,19 +269,19 @@ | |||||
| }, ], | }, ], | ||||
| levelList: [{ | levelList: [{ | ||||
| label: 'A', | label: 'A', | ||||
| value: 0, | |||||
| value: 1, | |||||
| isShow: false, | isShow: false, | ||||
| }, { | }, { | ||||
| label: 'B', | label: 'B', | ||||
| value: 1, | |||||
| value: 2, | |||||
| isShow: false, | isShow: false, | ||||
| }, { | }, { | ||||
| label: 'C', | label: 'C', | ||||
| value: 2, | |||||
| value: 3, | |||||
| isShow: false, | isShow: false, | ||||
| }, { | }, { | ||||
| label: 'D', | label: 'D', | ||||
| value: 3, | |||||
| value: 4, | |||||
| isShow: false, | isShow: false, | ||||
| }, ], | }, ], | ||||
| isRefresh:false | isRefresh:false | ||||
| @@ -1,10 +1,11 @@ | |||||
| // http.js使用域名 | // 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://192.168.31.57:8080/autoSR/api';// 本地 | ||||
| // const baseUrl = 'http://121.42.63.138:9091/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.167:8080/autoSR/api'; // 长龙 | ||||
| // const baseUrl = 'http://192.168.31.134: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 = '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使用域名 | // 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.167:8080/autoSR/api'; // 长龙 | ||||
| // const host = 'http://192.168.31.134: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 = '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的后端地址正式 暂未使用留着防止报错 | const iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式 暂未使用留着防止报错 | ||||