![]()
@@ -43,20 +43,20 @@ export default {
},
methods: {
async communityActivity() {
- const {pageNo,pageSize,agencyId} = this
+ const {pageSize,agencyId} = this
let parm = {
agencyId,
- pageNo,
+ pageNo:this.pageNo++,
pageSize,
userId:this.$store.state.app.userInfo.id
}
let res = await communityActivity(parm)
if (res) {
this.loading = false;
- if (res.length < this.pageSize) {
+ if (res.list.length < this.pageSize) {
this.finished = true;
}
- this.list = this.list.concat(res);
+ this.list = this.list.concat(res.list);
}
},
handelClickJump(path) {
diff --git a/src/views/mine/mySatisfaction/index.vue b/src/views/mine/mySatisfaction/index.vue
index 3fd00a3..134cd1a 100644
--- a/src/views/mine/mySatisfaction/index.vue
+++ b/src/views/mine/mySatisfaction/index.vue
@@ -44,7 +44,7 @@ export default {
methods: {
async communitySatisfactionPageList() {
let parm = {
- residList:[ this.$store.state.app.userInfo.id]
+ residList:[ '1703655913619628033']
}
let res = await communitySatisfactionPageList(parm)
if (res) {
diff --git a/src/views/search/index.vue b/src/views/search/index.vue
index 1cb924c..eb7c75e 100644
--- a/src/views/search/index.vue
+++ b/src/views/search/index.vue
@@ -55,15 +55,16 @@ export default {
pageNo: 1,
keyWordList:this.searchKey
}
- // let res = await keyWordSearch(parm)
- // console.log(res);
+ let res = await keyWordSearch(parm)
+ console.log(res);
+
// setTimeout(() => {
// for (let i = 0; i < 10; i++) {
// this.tableList.push({title:'这是新加的市北区',date:'2024-10-5'});
// }
// console.log(this.tableList);
// // 加载状态结束
- // this.loading = false;
+ this.loading = false;
// // 数据全部加载完成
// if (this.tableList.length >= 40) {
diff --git a/src/views/selectAgency/index.vue b/src/views/selectAgency/index.vue
index e1a027f..0269c01 100644
--- a/src/views/selectAgency/index.vue
+++ b/src/views/selectAgency/index.vue
@@ -36,7 +36,6 @@ export default {
},
methods: {
async getAgency() {
- // this.cityJson = [cityJson]
this.selfCity = [];
let res = await getAllOrgTreeList()
if (res) {
@@ -52,10 +51,10 @@ export default {
this.selfCity.push(item);
if (item.level === 'community') {
let parm = this.$store.state.app.userInfo;
- parm.agencyId = item.agencyId;
+ parm.agencyId = item.value;
+ parm.agencyName= item.label;
let res = await editUser(parm)
if (res) {
- // this.$router.replace('home')
this.$router.replace('/')
}
} else {
diff --git a/src/views/userInfo/index.vue b/src/views/userInfo/index.vue
index 4c6463e..1c4fede 100644
--- a/src/views/userInfo/index.vue
+++ b/src/views/userInfo/index.vue
@@ -9,14 +9,14 @@
- 男
- 女
+ 男
+ 女
-
+
获取验证码
{{ time }}s后重试
@@ -147,14 +147,15 @@ export default {
this.type = this.$route.params.type ? this.$route.params.type : ''
document.title = this.$route.params.type === 'edit' ? '编辑' : '注册'
this.userInfo = this.$store.state.app.userInfo
- this.gender = this.$store.state.app.userInfo.gender
console.log(this.userInfo, 'this.userInfo');
if (this.type === 'edit') {
- this.surName = this.userInfo.realName
- this.gender = this.userInfo.gender
- this.streetId = this.userInfo.streetId
- this.customerId = this.userInfo.customerId
- this.communityId = this.userInfo.communityId
+ this.surName = this.userInfo.realName;
+ this.gender = this.userInfo.sex;
+ this.streetId = this.userInfo.streetId;
+ this.customerId = this.userInfo.customerId;
+ this.communityId = this.userInfo.agencyId;
+ this.idNum = this.userInfo.idNum;
+ this.phone = this.userInfo.mobile;
this.$nextTick(() => {
this.getAllAgencyStreet()
this.getChildAgencyByPid()
@@ -197,42 +198,22 @@ export default {
submit() {
console.log(this.gender);
let params = {
- gender: this.gender,
- userId: this.userInfo.userId,
- streetId: this.streetId,
- communityId: this.communityId,
- quarterId: this.quarterId,
- buildingId: this.buildingId,
- unitId: this.unitId,
- houseNumberId: this.houseNumberId,
- gridId: this.gridId,
- customerId: this.customerId,
- homeId: this.homeId
+ ...this.userInfo
}
- // let params1={
- // street:this.street,
- // userId:this.userInfo.id,
- // mobile:this.phone,
- // district:this.district,
- // surname:this.surName,
- // name:this.userInfo.name,
- // realName:this.userInfo.realName,
- // idNum:this.idNum,
- // gender:this.gender,
- // // buildingAddress:this.userInfo.realName,
- // nickname:this.userInfo.nickname,
- // headImgUrl:this.userInfo.headImgUrl,
- // customerId:this.customerId
- // }
+ params.agencyId = this.communityId;
+ params.gender = this.gender;
+ params.realName = this.surName;
+ params.idNum = this.idNum;
+ params.mobile = this.mobile;
if (this.type !== 'edit') {
- params.phone = this.phone
+ params.mobile = this.phone
params.smsCode = this.smsCode
params.surName = this.surName
- if (!params.surName) {
+ if (!params.realName) {
this.$toast.fail('请输入姓名')
return
}
- if (!params.phone) {
+ if (!params.mobile) {
this.$toast.fail('请输入手机号')
return
}