瀏覽代碼

init

undefined
wangxiaohua 4 年之前
父節點
當前提交
a691f5023c
共有 8 個檔案被更改,包括 49 行新增55 行删除
  1. +4
    -4
      config.js
  2. +6
    -4
      pages/center/consumer/consumerDetail.vue
  3. +11
    -5
      pages/center/consumer/consumerSearch.vue
  4. +18
    -17
      pages/center/consumer/index.vue
  5. +4
    -0
      pages/center/records/index.vue
  6. +4
    -1
      pages/center/records/recordSearch.vue
  7. +0
    -22
      pages/index/index.vue
  8. +2
    -2
      utils/http.js

+ 4
- 4
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的后端地址正式


+ 6
- 4
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(){


+ 11
- 5
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){


+ 18
- 17
pages/center/consumer/index.vue 查看文件

@@ -74,7 +74,7 @@
<view class="">{{item.fraction || '0'}}% | {{item.mm || '0'}}<text style="font-size: 24rpx;">min</text></view>
</view>
</view>
<view class="content-last" v-if="item.isshow==true">
<view class="content-last" v-if="permissions.commonly2">
<!-- <view class="content-last-tab">添加提醒</view>
<view class="content-last-tab">拨打电话</view> -->
<view class="content-last-tab" @click.stop="gotoFollowUp(item.id)">写跟进</view>
@@ -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=>{


+ 4
- 0
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


+ 4
- 1
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


+ 0
- 22
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: {},


+ 2
- 2
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'; // 佳豪



Loading…
取消
儲存