Commit 4a8ab2f2 authored by 罗超's avatar 罗超

1

parent 45a1f359
...@@ -159,6 +159,7 @@ ...@@ -159,6 +159,7 @@
this.loading = false; this.loading = false;
this.count = res.data.count; this.count = res.data.count;
this.g = this.g.concat(res.data.pageData); this.g = this.g.concat(res.data.pageData);
console.log(this.g)
this.page_count = res.data.pageCount; this.page_count = res.data.pageCount;
if (this.page_count == 1) { if (this.page_count == 1) {
this.status = "nomore"; this.status = "nomore";
...@@ -207,10 +208,16 @@ ...@@ -207,10 +208,16 @@
}, },
//设置全部消息为已看 //设置全部消息为已看
setAllMsgSee() { setAllMsgSee() {
let ids=""
if(this.msg.SelectType==1){
ids="1,2"
}else if(this.msg.SelectType==2){
ids="3,4,5,6"
}
this.request2({ this.request2({
url: '/api/AppletMiai/DelMiaiMessageInfoBatch', url: '/api/AppletMiai/DelMiaiMessageInfoBatch',
data: { data: {
TypeIds: this.msg.SelectType TypeIds: ids
}, },
}, },
res => { res => {
...@@ -222,9 +229,7 @@ ...@@ -222,9 +229,7 @@
} }
}, },
onShow() { onShow() {
if(this.g.length>0){
this.setAllMsgSee()
}
}, },
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
...@@ -233,6 +238,7 @@ ...@@ -233,6 +238,7 @@
this.windowWidth = this.$utils.SystemInfo().windowWidth; this.windowWidth = this.$utils.SystemInfo().windowWidth;
}, },
mounted() { mounted() {
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
// let u = "/" + currentPages[currentPages.length - 1].route; // let u = "/" + currentPages[currentPages.length - 1].route;
// let pages = wx.getStorageSync("basedata") ? // let pages = wx.getStorageSync("basedata") ?
...@@ -246,6 +252,9 @@ ...@@ -246,6 +252,9 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.pageTitle, title: this.pageTitle,
}); });
if(this.g.length>0){
this.setAllMsgSee()
}
}, },
onLoad(options) { onLoad(options) {
......
...@@ -68,13 +68,13 @@ ...@@ -68,13 +68,13 @@
<view class="subName"> <view class="subName">
{{item1.name}} {{item1.name}}
</view> </view>
<input type="text" :placeholder="item1.placehloder" v-model="data[item1.field]" class="subInput" v-if="item1.subType==1"/> <input type="text" :placeholder="item1.placehloder" v-model="data[item1.field]" :type="item1.showType" class="subInput" v-if="item1.subType==1"/>
<view class="unit" v-if="item1.unit"> <view class="unit" v-if="item1.unit">
{{item1.unit}} {{item1.unit}}
</view> </view>
<view class="subpicker" v-if="item1.subType==2"> <view class="subpicker" v-if="item1.subType==2">
<picker :mode ="item1.mode" class="subpicker" :range="item1.array" @change="changPicker($event,item1.field,item1.mode,item1.array)"> <picker :mode ="item1.mode" class="subpicker" :range="item1.array" @change="changPicker($event,item1.field,item1.mode,item1.array)">
<input class="subInput" disabled type="text" :placeholder="item1.placehloder" v-model="data[item1.field]" /> <input class="subInput" disabled type="text" :placeholder="item1.placehloder" v-model="data[item1.field]" />{{data[item1.field]}}
</picker> </picker>
</view> </view>
...@@ -114,7 +114,8 @@ ...@@ -114,7 +114,8 @@
name:"昵称", name:"昵称",
field:"Name", field:"Name",
placehloder:"请填写昵称", placehloder:"请填写昵称",
subType:1 subType:1,
showType:"text"
},{ },{
name:"性别", name:"性别",
field:"Sex", field:"Sex",
...@@ -134,38 +135,28 @@ ...@@ -134,38 +135,28 @@
field:"Height", field:"Height",
placehloder:"请填写身高", placehloder:"请填写身高",
subType:1, subType:1,
unit:"厘米" unit:"厘米",
showType:"number"
},{ },{
name:"体重", name:"体重",
field:"Weight", field:"Weight",
placehloder:"请填写体重", placehloder:"请填写体重",
subType:1, subType:1,
unit:"公斤" unit:"公斤",
showType:"number"
},{ },{
name:"学历", name:"学历",
field:"EducationType", field:"EducationType",
placehloder:"请选择学历", placehloder:"请选择学历",
subType:2, subType:2,
array:['高中及以下','大专','本科','研究生及以上'], array:['高中及以下','大专','本科','研究生及以上'],
// array:[{
// name:'高中及以下',
// id:1,
// },{
// name:'大专',
// id:2,
// },{
// name:'本科',
// id:3,
// },{
// name:'研究生及以上',
// id:4,
// }],
mode:"selector" mode:"selector"
},{ },{
name:"毕业院校", name:"毕业院校",
field:"SchoolInfo", field:"SchoolInfo",
placehloder:"请填写毕业院校", placehloder:"请填写毕业院校",
subType:1, subType:1,
showType:"text"
},{ },{
name:"婚姻", name:"婚姻",
field:"Marriage", field:"Marriage",
...@@ -177,18 +168,21 @@ ...@@ -177,18 +168,21 @@
name:"职位", name:"职位",
field:"Job", field:"Job",
placehloder:"请填写职位", placehloder:"请填写职位",
subType:1 subType:1,
showType:"text"
},{ },{
name:"工作单位", name:"工作单位",
field:"WorkUnit", field:"WorkUnit",
placehloder:"请填写工作单位", placehloder:"请填写工作单位",
subType:1 subType:1,
showType:"text"
},{ },{
name:"年收入", name:"年收入",
field:"YearMoney", field:"YearMoney",
placehloder:"请填写年收入", placehloder:"请填写年收入",
subType:1, subType:1,
unit:"万" unit:"万",
showType:"number"
},{ },{
name:"籍贯", name:"籍贯",
field:"nativePlace", field:"nativePlace",
...@@ -201,6 +195,7 @@ ...@@ -201,6 +195,7 @@
field:"HouseInfo", field:"HouseInfo",
placehloder:"请填写资产", placehloder:"请填写资产",
subType:1, subType:1,
showType:"text"
}], }],
type:2 type:2
},{ },{
...@@ -276,6 +271,7 @@ ...@@ -276,6 +271,7 @@
field:"AppointmentAddress", field:"AppointmentAddress",
placehloder:"请填写方便的地点", placehloder:"请填写方便的地点",
subType:1, subType:1,
showType:"text"
},] },]
}, },
], ],
...@@ -339,8 +335,8 @@ ...@@ -339,8 +335,8 @@
}else if(mode=="date"){ }else if(mode=="date"){
this.data[e]=arg.detail.value this.data[e]=arg.detail.value
}else if(mode=="region"){ }else if(mode=="region"){
this.data.nativePlace=arg.detail.value this.data.nativePlace=JSON.parse(JSON.stringify(arg.detail.value))
this.data.addCode=arg.detail.code this.data.addCode=JSON.parse(JSON.stringify(arg.detail.code))
console.log(this.data.nativePlace) console.log(this.data.nativePlace)
} }
}, },
...@@ -518,9 +514,10 @@ ...@@ -518,9 +514,10 @@
if(res.resultCode==1){ if(res.resultCode==1){
this.data=res.data this.data=res.data
if(res.data.PName&&res.data.DName&&res.data.CName){ if(res.data.PName&&res.data.DName&&res.data.CName){
this.data.nativePlace=[res.data.PName,res.data.DName,res.data.CName] // this.data.nativePlace=[res.data.PName,res.data.DName,res.data.CName]
this.data.nativePlace=JSON.parse(JSON.stringify([res.data.PName,res.data.DName,res.data.CName]))
}else{ }else{
this.data.nativePlace=[] this.data.nativePlace=""
} }
this.data.addCode="" this.data.addCode=""
...@@ -531,10 +528,12 @@ ...@@ -531,10 +528,12 @@
}else{ }else{
this.data.Sex="" this.data.Sex=""
} }
if(res.data.AlbumList){
res.data.AlbumList.map((item,index)=>{
this.AlbumListShow[`img${index+1}`]=true
})
}
res.data.AlbumList.map((item,index)=>{
this.AlbumListShow[`img${index+1}`]=true
})
} }
} }
......
...@@ -206,9 +206,7 @@ ...@@ -206,9 +206,7 @@
this.pricecolor = this.$uiConfig.pricecolor; this.pricecolor = this.$uiConfig.pricecolor;
}, },
onShow(){ onShow(){
if(this.visitorData.length>0){
this.setAllMsgSee()
}
this.getMiaiMessageVisitorPageList() this.getMiaiMessageVisitorPageList()
}, },
...@@ -217,6 +215,11 @@ ...@@ -217,6 +215,11 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.pageTitle, title: this.pageTitle,
}); });
},
updated() {
if(this.visitorData.length>0){
this.setAllMsgSee()
}
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment