From a691f5023cd1fe524b4c81a2a72ebf069b87e1e7 Mon Sep 17 00:00:00 2001
From: wangxiaohua <1214073490@qq.com>
Date: Sat, 4 Dec 2021 18:18:56 +0800
Subject: [PATCH] init
---
config.js | 8 +++---
pages/center/consumer/consumerDetail.vue | 10 ++++---
pages/center/consumer/consumerSearch.vue | 16 +++++++----
pages/center/consumer/index.vue | 35 ++++++++++++------------
pages/center/records/index.vue | 4 +++
pages/center/records/recordSearch.vue | 5 +++-
pages/index/index.vue | 22 ---------------
utils/http.js | 4 +--
8 files changed, 49 insertions(+), 55 deletions(-)
diff --git a/config.js b/config.js
index 92bf604..fbfa43c 100644
--- a/config.js
+++ b/config.js
@@ -2,14 +2,14 @@
* 小程序配置文件
*/
// 此处主机域名修改成腾讯云解决方案分配的域名
-// var host = 'http://39.97.167.65/autoSR/api'; // 测试站
-// var hosts = 'http://39.97.167.65/'; // 测试站
+var host = 'http://39.97.167.65/autoSR/api'; // 测试站
+var hosts = 'http://39.97.167.65/'; // 测试站
// var host = 'http://192.168.31.134:9999/autoSR/api'; // 佳豪
// var hosts = 'http://192.168.31.134:9999/'; // 佳豪
-var host = 'http://8kdmng.natappfree.cc/autoSR/api'; // 佳豪
-var hosts = 'http://8kdmng.natappfree.cc/'; // 佳豪
+// var host = 'http://8kdmng.natappfree.cc/autoSR/api'; // 佳豪
+// var hosts = 'http://8kdmng.natappfree.cc/'; // 佳豪
var iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式
diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue
index e08f992..d34dcbf 100644
--- a/pages/center/consumer/consumerDetail.vue
+++ b/pages/center/consumer/consumerDetail.vue
@@ -378,10 +378,12 @@
},
// 去编辑
goedit(){
- // console.log('去编辑')
- uni.navigateTo({
- url:`/pages/center/consumer/edit?id=${this.customerId}`
- })
+ let newmenulist= uni.getStorageSync('weapp_session_Menu_data');
+ if(newmenulist.khgl_bj==true){
+ uni.navigateTo({
+ url:`/pages/center/consumer/edit?id=${this.customerId}`
+ })
+ }
},
// 去添加提醒
goRemind(){
diff --git a/pages/center/consumer/consumerSearch.vue b/pages/center/consumer/consumerSearch.vue
index 3d6188c..5477600 100644
--- a/pages/center/consumer/consumerSearch.vue
+++ b/pages/center/consumer/consumerSearch.vue
@@ -48,14 +48,18 @@
data(){
return{
keyword:'',
- stageList:['未知','到访','意向','定金','成交'],
recordList:[],
nextPage:1,
totalRecord:'',
buildingID:'',
+ permissions:{
+ commonly1:false
+ }
}
},
onShow() {
+ let newmenulist= uni.getStorageSync('weapp_session_Menu_data');
+ this.permissions.commonly1=newmenulist.khgl_ck;
this.buildingID = uni.getStorageSync('buildingID').id;
this.nextPage=1;
this.recordList=[];
@@ -76,9 +80,11 @@
methods:{
// 客户详情
gotoDetail(id) {
- uni.navigateTo({
- url: `/pages/center/consumer/consumerDetail?id=${id}`
- })
+ if(this.permissions.commonly1==true){
+ uni.navigateTo({
+ url: `/pages/center/consumer/consumerDetail?id=${id}`
+ })
+ }
},
searchinfo(){
this.nextPage=1;
@@ -95,7 +101,7 @@
}
};
this.$u.post("/customer/customerManagement", parames).then(data => {
- var list = data.results || [];
+ var list = data.records || [];
list.forEach(item=>{
if(item.demand.cusSemanticWordsList!=null){
diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue
index c300f39..e49c065 100644
--- a/pages/center/consumer/index.vue
+++ b/pages/center/consumer/index.vue
@@ -74,7 +74,7 @@
{{item.fraction || '0'}}% | {{item.mm || '0'}}min
-
+
写跟进
@@ -234,13 +234,20 @@
soltishow:false,
staTime:'',
endtime:'',
- orderBy:''
+ orderBy:'',
+ permissions:{
+ commonly1:false,
+ commonly2:false
+ }
}
},
onLoad(options) {
this.isnorefresh=options.refresh;
},
onShow() {
+ let newmenulist= uni.getStorageSync('weapp_session_Menu_data');
+ this.permissions.commonly1=newmenulist.khgl_ck;
+ this.permissions.commonly2=newmenulist.khgl_gj;
if(this.isnorefresh=='refresh'){
this.buildingID = uni.getStorageSync('buildingID').id;
this.nextPage=1;
@@ -328,9 +335,11 @@
},
// 客户详情
gotoDetail(id) {
- uni.navigateTo({
- url: `/pages/center/consumer/consumerDetail?id=${id}`
- })
+ if(this.permissions.commonly1==true){
+ uni.navigateTo({
+ url: `/pages/center/consumer/consumerDetail?id=${id}`
+ })
+ }
},
getMyCustom(){
let dateType=0;
@@ -357,8 +366,8 @@
}
var parames = {
- pageNum: this.nextPage,
- pageSize: 10,
+ current: this.nextPage,
+ size: 10,
query: {
projectId:this.buildingID,
keywordsId:this.screen.cunsumerTipsid,
@@ -384,17 +393,9 @@
}else{
parames.query.levels=null
}
- this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
this.$u.post("/customer/customerManagement", parames).then(data => {
- var list = data.results || [];
- list.forEach(item=>{
- if(this.userInfo.dataCode == 6){
- item.isshow=true;
- }else{
- item.isshow=false;
- }
- })
-
+ var list = data.records || [];
+ console.log(list)
list.forEach(item=>{
if(item.demand.cusSemanticWordsList!=null){
item.demand.cusSemanticWordsList.forEach(che=>{
diff --git a/pages/center/records/index.vue b/pages/center/records/index.vue
index 890757b..39f7974 100644
--- a/pages/center/records/index.vue
+++ b/pages/center/records/index.vue
@@ -312,6 +312,10 @@
this.getMyCustom();
},
tapThevisiting(item) {
+ let newmenulist= uni.getStorageSync('weapp_session_Menu_data');
+ if(newmenulist.jdjl_ck!=true){
+ return
+ }
uni.showLoading({
title: '加载中',
mask:true
diff --git a/pages/center/records/recordSearch.vue b/pages/center/records/recordSearch.vue
index 219e1a1..af3f9ac 100644
--- a/pages/center/records/recordSearch.vue
+++ b/pages/center/records/recordSearch.vue
@@ -85,7 +85,10 @@
},
methods:{
tapThevisiting(item) {
- console.log("11111111111111")
+ let newmenulist= uni.getStorageSync('weapp_session_Menu_data');
+ if(newmenulist.jdjl_ck!=true){
+ return
+ }
uni.showLoading({
title: '加载中',
mask:true
diff --git a/pages/index/index.vue b/pages/index/index.vue
index e9535e3..69fd92d 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -293,14 +293,6 @@
jileinum:false
},
-
- // 客户管理 khgl
- // 查看 khgl_ck
- // 编辑 khgl_bj
- // 跟进 khgl_gj
-
- // 接待记录 jdjl
- // 查看 jdjl_ck
// 标记顾问 bjgw
// 接待无效标记 jdwxbj
// 设为优秀案例 swyxal
@@ -308,20 +300,6 @@
// 校准 xz
// 查看违禁执行 ckwjzx
-
-
- // 数据总览 sjzl
- // 楼盘对比 lpdb
- // 销讲趋势 xjqs
- // 团队对比 tddb
- // 顾问能力 gwnl
- // 用户画像 yhhx
-
-
-
-
-
-
};
},
components: {},
diff --git a/utils/http.js b/utils/http.js
index 9fa1bf9..0e892df 100644
--- a/utils/http.js
+++ b/utils/http.js
@@ -1,7 +1,7 @@
-// const baseUrl = 'http://39.97.167.65/autoSR/api';// 测试站
+const baseUrl = 'http://39.97.167.65/autoSR/api';// 测试站
-const baseUrl = 'http://8kdmng.natappfree.cc/autoSR/api'; // 佳豪
+// const baseUrl = 'http://8kdmng.natappfree.cc/autoSR/api'; // 佳豪
// const baseUrl = 'http://192.168.31.134:9999/autoSR/api'; // 佳豪