Commit 51bdef7b authored by 罗超's avatar 罗超

1

parent f6645b32
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
<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]" />
</picker> </picker>
<u-icon style="flex-grow: 4;" name="arrow-right"></u-icon>
</view> </view>
</view> </view>
...@@ -118,7 +119,7 @@ ...@@ -118,7 +119,7 @@
showType:"text" showType:"text"
},{ },{
name:"性别", name:"性别",
field:"Sex", field:"SexStr",
placehloder:"请选择性别", placehloder:"请选择性别",
subType:2, subType:2,
array:['男','女'], array:['男','女'],
...@@ -146,7 +147,7 @@ ...@@ -146,7 +147,7 @@
showType:"number" showType:"number"
},{ },{
name:"学历", name:"学历",
field:"EducationType", field:"EducationTypeStr",
placehloder:"请选择学历", placehloder:"请选择学历",
subType:2, subType:2,
array:['高中及以下','大专','本科','硕士及以上'], array:['高中及以下','大专','本科','硕士及以上'],
...@@ -159,7 +160,7 @@ ...@@ -159,7 +160,7 @@
showType:"text" showType:"text"
},{ },{
name:"婚姻", name:"婚姻",
field:"Marriage", field:"MarriageStr",
placehloder:"请选择婚姻状况", placehloder:"请选择婚姻状况",
subType:2, subType:2,
array:['未婚','离异','丧偶'], array:['未婚','离异','丧偶'],
...@@ -279,12 +280,15 @@ ...@@ -279,12 +280,15 @@
data:{ data:{
Name:"", Name:"",
Sex:"", Sex:"",
SexStr:"",
Birthday:"", Birthday:"",
Height:"", Height:"",
Weight:"", Weight:"",
EducationType:"", EducationType:"",
EducationTypeStr:"",
SchoolInfo:"", SchoolInfo:"",
Marriage:"", Marriage:"",
MarriageStr:"",
Job:"", Job:"",
WorkUnit:"", WorkUnit:"",
YearMoney:"", YearMoney:"",
...@@ -408,27 +412,27 @@ ...@@ -408,27 +412,27 @@
delete msg.nativePlace delete msg.nativePlace
delete msg.addCode delete msg.addCode
if(this.data.Sex=="男"){ if(this.data.SexStr=="男"){
msg.Sex=1 msg.Sex=1
}else{ }else{
msg.Sex=2 msg.Sex=2
} }
if(this.data.EducationType=="高中及以下"){ if(this.data.EducationTypeStr=="高中及以下"){
msg.EducationType=1 msg.EducationType=1
}else if(this.data.EducationType=="大专"){ }else if(this.data.EducationTypeStr=="大专"){
msg.EducationType=2 msg.EducationType=2
}else if(this.data.EducationType=="本科"){ }else if(this.data.EducationTypeStr=="本科"){
msg.EducationType=2 msg.EducationType=2
}else if(this.data.EducationType=="硕士及以上"){ }else if(this.data.EducationTypeStr=="硕士及以上"){
msg.EducationType=4 msg.EducationType=4
} }
if(this.data.Marriage=="未婚"){ if(this.data.MarriageStr=="未婚"){
msg.Marriage=1 msg.Marriage=1
}else if(this.data.Marriage=="离异"){ }else if(this.data.MarriageStr=="离异"){
msg.Marriage=2 msg.Marriage=2
}else if(this.data.Marriage=="丧偶"){ }else if(this.data.MarriageStr=="丧偶"){
msg.Marriage=3 msg.Marriage=3
} }
...@@ -472,22 +476,26 @@ ...@@ -472,22 +476,26 @@
}); });
return return
} }
if(this.data.nativePlace==""){ // if(this.data.nativePlace==""){
uni.showToast({ // uni.showToast({
title: '请选择籍贯', // title: '请选择籍贯',
duration: 2000, // duration: 2000,
icon:"none" // icon:"none"
}); // });
return // return
} // }
console.log(this.data)
this.request2({ this.request2({
url: '/api/AppletMiai/GetSetMiAiBaseInfo', url: '/api/AppletMiai/GetSetMiAiBaseInfo',
data: msg data: msg
}, },
res => { res => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
console.log(res) uni.showToast({
title: res.message,
duration: 2000,
icon:"success"
});
} }
} }
); );
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
<view class="bubble" v-if="dataList.ConoldBaseInfostellation">{{dataList.ConoldBaseInfostellation}}</view> <view class="bubble" v-if="dataList.ConoldBaseInfostellation">{{dataList.ConoldBaseInfostellation}}</view>
<view class="bubble" v-if="dataList.Height">{{dataList.Height}}cm</view> <view class="bubble" v-if="dataList.Height">{{dataList.Height}}cm</view>
<view class="bubble" v-if="dataList.Weight">{{dataList.Weight}}kg</view> <view class="bubble" v-if="dataList.Weight">{{dataList.Weight}}kg</view>
<view class="bubble" v-if="dataList.Marriage">{{dataList.Marriage}}</view> <view class="bubble" v-if="dataList.Marriage">{{dataList.MarriageStr}}</view>
<view class="bubble" v-if="dataList.YearMoney">年收入(税后):{{dataList.YearMoney}}万元</view> <view class="bubble" v-if="dataList.YearMoney">年收入(税后):{{dataList.YearMoney}}万元</view>
</view> </view>
...@@ -250,14 +250,10 @@ ...@@ -250,14 +250,10 @@
<view class="bubble" v-if="dataList.HuKou">户口:{{dataList.HuKou}}</view> <view class="bubble" v-if="dataList.HuKou">户口:{{dataList.HuKou}}</view>
<view class="bubble" v-if="dataList.PName&&dataList.CName&&dataList.DName">籍贯:{{dataList.PName,dataList.CName,dataList.DName}}</view> <view class="bubble" v-if="dataList.PName&&dataList.CName&&dataList.DName">籍贯:{{dataList.PName,dataList.CName,dataList.DName}}</view>
<view class="bubble" v-if="dataList.SchoolInfo">学校:{{dataList.SchoolInfo}}</view> <view class="bubble" v-if="dataList.SchoolInfo">学校:{{dataList.SchoolInfo}}</view>
<view class="bubble" v-if="dataList.EducationType">学历:{{dataList.EducationType}}</view> <view class="bubble" v-if="dataList.EducationType">学历:{{dataList.EducationTypeStr}}</view>
<view class="bubble" v-if="dataList.HouseInfo">{{dataList.HouseInfo}}</view>
<view class="bubble" v-if="dataList.MajorInfo">{{dataList.MajorInfo}}</view>
<view class="bubble" v-if="dataList.MotherInfo">母亲:{{dataList.MotherInfo}}</view>
<view class="bubble" v-if="dataList.FatherInfo">父亲:{{dataList.FatherInfo}}</view>
<view class="bubble" v-if="dataList.CarInfo">车:{{dataList.CarInfo}}</view>
<view class="bubble" v-if="dataList.Job">职位:{{dataList.Job}}</view> <view class="bubble" v-if="dataList.Job">职位:{{dataList.Job}}</view>
<view class="bubble" v-if="dataList.WorkUnit">工作单位:{{dataList.WorkUnit}}</view> <view class="bubble" v-if="dataList.WorkUnit">工作单位:{{dataList.WorkUnit}}</view>
<view class="bubble" v-if="dataList.HouseInfo">资产:{{dataList.HouseInfo}}</view>
</view> </view>
<view class="pd-title">家庭背景</view> <view class="pd-title">家庭背景</view>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</view> </view>
<view class="visit"> <view class="visit">
<view class="num"> <view class="num">
{{todayVisit}} {{PeopleNum}}
</view> </view>
<view class="name"> <view class="name">
今日浏览量 今日浏览量
...@@ -48,7 +48,8 @@ ...@@ -48,7 +48,8 @@
<view class="subItemBox"> <view class="subItemBox">
<view class="avaBox"> <view class="avaBox">
<image class="avatar" :src="subItem.Photo"></image> <image class="avatar" :src="subItem.Photo"></image>
<image class="sex" :src="sex[subItem.Sex]"></image> <image class="sex" v-if="subItem.Sex==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png"></image>
<image class="sex" v-if="subItem.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png"></image>
</view> </view>
<view class="rightBox"> <view class="rightBox">
...@@ -57,7 +58,7 @@ ...@@ -57,7 +58,7 @@
{{subItem.RealName||subItem.UserName}} {{subItem.RealName||subItem.UserName}}
</view> </view>
<view class="time"> <view class="time">
{{subItem.CreateDate.slice(-5)}}&nbsp;&nbsp;访问了你的自画像 {{subItem.CreateDate.slice(-5)}}<text style="margin-left: 5rpx;" v-if="msg.VsisitorType==1">&nbsp;&nbsp;访问了你</text><text style="margin-left: 5rpx;" v-if="msg.VsisitorType==2">&nbsp;&nbsp;访问了ta</text>
</view> </view>
</view> </view>
<!-- <view class="icon"> </view> --> <!-- <view class="icon"> </view> -->
...@@ -83,10 +84,6 @@ ...@@ -83,10 +84,6 @@
data() { data() {
return { return {
pageTitle: "访客", pageTitle: "访客",
sex: {
1: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan.png",
2: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv.png",
},
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
...@@ -104,7 +101,8 @@ ...@@ -104,7 +101,8 @@
}], }],
activeNav: 0, activeNav: 0,
allVisit: 100, //总浏览量 allVisit: 100, //总浏览量
todayVisit: 1, //今日访客,今日浏览量 todayVisit: 1, //今日总浏览量
PeopleNum:0,//今日浏览量人数
visitorData: [], visitorData: [],
loading: false, loading: false,
status: "loadmore", status: "loadmore",
...@@ -123,7 +121,7 @@ ...@@ -123,7 +121,7 @@
this.visitorData=[] this.visitorData=[]
this.getMiaiMessageVisitorPageList(); this.getMiaiMessageVisitorPageList();
}, },
//获取访问量 //获取今日访问量
getMiaiMessageVisitorStatistics() { getMiaiMessageVisitorStatistics() {
this.request2({ this.request2({
url: '/api/AppletMiai/GetMiaiMessageVisitorStatistics', url: '/api/AppletMiai/GetMiaiMessageVisitorStatistics',
...@@ -131,8 +129,8 @@ ...@@ -131,8 +129,8 @@
}, },
res => { res => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.allVisit = res.data.TCount this.todayVisit = res.data.TCount
this.todayVisit = res.data.PeopleNum this.PeopleNum = res.data.PeopleNum
} }
} }
); );
...@@ -145,6 +143,7 @@ ...@@ -145,6 +143,7 @@
}, },
res => { res => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.allVisit = res.data.count
this.loading = false; this.loading = false;
let data = this.handleDate(res.data.pageData, "CreateDate") let data = this.handleDate(res.data.pageData, "CreateDate")
this.visitorData = this.visitorData.concat(data); this.visitorData = this.visitorData.concat(data);
...@@ -190,7 +189,7 @@ ...@@ -190,7 +189,7 @@
this.request2({ this.request2({
url: '/api/AppletMiai/DelMiaiMessageInfoBatch', url: '/api/AppletMiai/DelMiaiMessageInfoBatch',
data: { data: {
TypeIds: "7" TypeIds: "7,10"
}, },
}, },
res => { res => {
......
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