Browse Source

修改bug

dev
jyt 2 years ago
parent
commit
041f58ff00
2 changed files with 77 additions and 15 deletions
  1. +20
    -0
      pages.json
  2. +57
    -15
      pages/center/consumer/index.vue

+ 20
- 0
pages.json View File

@@ -4,6 +4,26 @@
}, },
//这个pages里只放这五个页面,新增页面时请对应的放到下面的分包里 //这个pages里只放这五个页面,新增页面时请对应的放到下面的分包里
"pages": [ "pages": [
// {
// "path" : "pages/mine/registerForm",
// "style" :
// {
// "navigationBarTitleText": "访客登记表",
// "navigationBarBackgroundColor": "#2671E2",
// "navigationBarTextStyle": "white"
// }
// },
// {
// "path" : "pages/mine/registerResult",
// "style" :
// {
// "navigationBarTitleText": "访客登记表",
// "navigationBarBackgroundColor": "#2671E2",
// "navigationBarTextStyle": "white"
// }
// },
{ {
"path": "pages/index/guide", "path": "pages/index/guide",
"style": { "style": {


+ 57
- 15
pages/center/consumer/index.vue View File

@@ -118,8 +118,14 @@
<view class="screen-record-text"> <view class="screen-record-text">
客户等级 客户等级
</view> </view>
<view class="screen-record-tab">
<view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" @click="recordclick(0)">
<view class="screen-record-tab">
<block v-for="(item,index) in levelList" :key="index">
<view :class="[item.isShow?'screen-record-chose':'screen-record-nochose']"
@click="choiceLevel(index,item.value)">
{{item.label}}
</view>
</block>
<!-- <view :class="[screen.record==0?'screen-record-chose':'screen-record-nochose']" @click="recordclick(0)">
A A
</view> </view>
<view :class="[screen.record==1?'screen-record-chose':'screen-record-nochose']" @click="recordclick(1)"> <view :class="[screen.record==1?'screen-record-chose':'screen-record-nochose']" @click="recordclick(1)">
@@ -130,7 +136,7 @@
</view> </view>
<view :class="[screen.record==3?'screen-record-chose':'screen-record-nochose']" @click="recordclick(3)"> <view :class="[screen.record==3?'screen-record-chose':'screen-record-nochose']" @click="recordclick(3)">
D D
</view>
</view> -->
</view> </view>
</view> </view>
<!-- <view class="screen-record"> <!-- <view class="screen-record">
@@ -234,7 +240,7 @@
agentId:'', agentId:'',
agentIdtext:'', agentIdtext:'',
visitRecord:[], visitRecord:[],
record:null,
record:[],
cunsumerTips:'', cunsumerTips:'',
cunsumerTipsid:'', cunsumerTipsid:'',
clientStage:'', clientStage:'',
@@ -276,6 +282,23 @@
value: 4, value: 4,
isShow: false, isShow: false,
}, ], }, ],
levelList: [{
label: 'A',
value: 0,
isShow: false,
}, {
label: 'B',
value: 1,
isShow: false,
}, {
label: 'C',
value: 2,
isShow: false,
}, {
label: 'D',
value: 3,
isShow: false,
}, ],
isRefresh:false isRefresh:false
} }
}, },
@@ -331,6 +354,19 @@
this.screen.visitRecord.push(e) this.screen.visitRecord.push(e)
} }
}, },
choiceLevel(index,e) {
if (this.levelList[index].isShow == true) {
this.levelList[index].isShow = false;
for (var i = 0; i < this.screen.record.length; i++) {
if (this.screen.record[i] === e) {
this.screen.record.splice(i, 1);
}
}
} else {
this.levelList[index].isShow = true;
this.screen.record.push(e)
}
},
tapsoltishow(){ tapsoltishow(){
this.soltishow=true; this.soltishow=true;
}, },
@@ -444,17 +480,20 @@
if (this.screen.visitRecord.length > 0) { if (this.screen.visitRecord.length > 0) {
parames.query.visitRecords = this.screen.visitRecord.join(','); parames.query.visitRecords = this.screen.visitRecord.join(',');
} }
if(this.screen.record==0){
parames.query.levels= ["1"]
}else if(this.screen.record==1){
parames.query.levels= ["2"]
}else if(this.screen.record==2){
parames.query.levels= ["3"]
}else if(this.screen.record==3){
parames.query.levels= ["4"]
}else{
parames.query.levels=''
if (this.screen.record.length > 0) {
parames.query.level = this.screen.record.join(',');
} }
// if(this.screen.record==0){
// parames.query.levels= ["1"]
// }else if(this.screen.record==1){
// parames.query.levels= ["2"]
// }else if(this.screen.record==2){
// parames.query.levels= ["3"]
// }else if(this.screen.record==3){
// parames.query.levels= ["4"]
// }else{
// parames.query.levels=''
// }
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
this.$u.post("/customer/customerManagement", parames).then(data => { this.$u.post("/customer/customerManagement", parames).then(data => {
var list = data.results || []; var list = data.results || [];
@@ -547,7 +586,7 @@
agentId:'', agentId:'',
agentIdtext:'', agentIdtext:'',
visitRecord:'', visitRecord:'',
record:null,
record:[],
cunsumerTips:'', cunsumerTips:'',
cunsumerTipsid:'', cunsumerTipsid:'',
clientStage:'', clientStage:'',
@@ -556,6 +595,9 @@
this.visitList.map(i=>{ this.visitList.map(i=>{
i.isShow = false i.isShow = false
}) })
this.levelList.map(i=>{
i.isShow = false
})
this.nextPage=1; this.nextPage=1;
this.recordList=[]; this.recordList=[];
this.screenShow=false; this.screenShow=false;


Loading…
Cancel
Save