Commit cb01c1be authored by Mac's avatar Mac

相亲小程序的首页

parent 3741c65d
<template>
<view class="matchmaking" style="margin-bottom:70px;">
<view class="matchmaking-box" v-for="(item,index) in data" :key='index' @click="goDetail()">
<view class="matchmaking-box" v-for="(item,index) in navs.list" :key='index' @click="goDetail(item)">
<view class="box-top">
<u-avatar :src="item.tximg" size="80"></u-avatar>
<image class="gstyle" v-if="item.Gender==1" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan-b.png" ></image>
<image class="gstyle" v-if="item.Gender==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv-b.png" ></image>
<u-avatar :src="item.Photo" size="80"></u-avatar>
<image class="gstyle" v-if="item.SexStr=='男'" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nan-b.png" ></image>
<image class="gstyle" v-if="item.SexStr=='女'" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv-b.png" ></image>
<view class="boxt-center">
<view class="row">
<view class="boxtc-t-f" :style="{color:mainColor}">
{{item.fen}}
{{item.Score}}
</view>
<view class="box-name">{{item.name}}</view>
</view>
<view class="row">
<view class="boxtc-b-item">{{item.Age}}</view>
<view class="boxtc-b-item">{{item.education}}</view>
<view class="boxtc-b-item">{{item.marriage}}</view>
<view class="boxtc-b-item">{{item.Education}}</view>
<view class="boxtc-b-item">{{item.Marriage}}</view>
</view>
</view>
<view class="boxt-r">
匹配度 {{item.matching}}
匹配度 {{item.MatchingRate}}%
</view>
</view>
<view class="box-img">
<view v-if="item.type==1" class="box-img-one">
<image :src="item.tximg" mode="aspectFill" style="width: 100%;height: 100%;border-radius: 15px;"></image>
<view v-if="navs.listStyle==-1" class="box-img-one">
<image :src="item.AlbumList[0]" mode="aspectFill" style="width: 100%;height: 100%;border-radius: 15px;"></image>
</view>
<view v-if="item.type==2" class="box-img-two">
<view class="box-img-two-item" v-for="(x,y) in item.imgs" :key='y'>
<view v-if="navs.listStyle==0" class="box-img-two">
<view class="box-img-two-item" v-for="(x,y) in item.AlbumList" :key='y'>
<image :src="x" mode="aspectFill" style="width: 100%;height: 100%;border-radius: 15px;"></image>
</view>
<view style="width: 1px;height: 10px;"></view>
......@@ -39,7 +39,7 @@
<script>
export default {
// props: ["navs"],
props: ["navs"],
data(){
return{
type:2,
......@@ -64,9 +64,9 @@
this.secondary = this.$uiConfig.secondary;
},
methods:{
goDetail(){
goDetail(x){
uni.navigateTo({
url: '/pages/blindDate/persondetails?UserId=' + '123559'
url: '/pages/blindDate/persondetails?UserId=' + x.id
});
}
}
......
......@@ -80,8 +80,13 @@
this.RechargeMsg.PointGoodsId = item.ID;
},
queren(){
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):'';
let url='/api/WeChatPay/GetPointPayInfo'
if(mall_UserInfo.IsOpenMiAi==1){
url='/api/WeChatPay/GetStarsPayInfo'
}
this.request2({
url: '/api/WeChatPay/GetPointPayInfo',
url: url,
data: this.RechargeMsg
},
res => {
......
......@@ -424,7 +424,7 @@
:focus='showreply'
confirm-type='send'
@blur='initialize()'
@focus='getfocus'
@keyboardheightchange='keyboardheightchange'
/>
</view>
</view>
......@@ -588,6 +588,10 @@
},
oneheight:0,
}
},
mounted(){
},
created() {
this.mainColor = this.$uiConfig.mainColor;
......@@ -722,7 +726,18 @@
);
}
}else{
this.init2();
this.request2(
{
url: '/api/AppletMiai/GetActivityReplyPageList',
data: {pageIndex:1,pageSize:20,ParentId:this.msg2.ParentId}
},
res => {
if(res.resultCode==1){
this.g2.unshift(res.data.pageData[0])
}
}
);
this.initialize();
this.sendMsg.ParentId = this.twodata.Id
this.ParentName='';
......@@ -788,7 +803,9 @@
this.twodata = x;
this.twoshow = true;
this.msg2.ParentId = x.Id
this.sendMsg.ParentId = x.Id
this.sendMsg.ParentId = x.Id;
this.msg2.pageIndex =1;
this.g2=[]
this.init2()
},
inputscroll2(){//二级回复时
......@@ -901,20 +918,13 @@
}
);
},
getfocus(){
setTimeout(()=>{
uni.onKeyboardHeightChange(res => {
console.log(res.height,'高度')
if(res.height!=0){
this.oneheight=res.height-1;
console.log(this.showreply)
this.showreply = true
this.$forceUpdate()
}
})
},10)
}
keyboardheightchange(e){
console.log(e.detail.height)
let that = this
that.oneheight=e.detail.height-1;
that.$forceUpdate()
},
}
}
......
......@@ -134,7 +134,7 @@
</view>
</u-upload>
</view>
<view class="release" @click="releasebtn" :style="{background:mainColor}">
<view class="release" :ripple="true" @click="disbth==false?releasebtn():''" :style="{background:mainColor}">
发布
</view>
</view>
......@@ -177,6 +177,7 @@ export default {
showAuth:false,
show:false,
u:{},
disbth:false,
fileList:[],
list: [],
mainColor: "",
......@@ -327,6 +328,8 @@ export default {
})
return
}
this.disbth = true
let pages = getCurrentPages(); // 当前页面
let beforePage = pages[pages.length - 2]; // 前一个页面
uni.showLoading({
......@@ -338,6 +341,7 @@ export default {
data: this.addMsg
},
res => {
this.disbth = false
uni.hideLoading()
if(res.resultCode==1){
uni.showToast({
......
......@@ -481,9 +481,14 @@
},
methods: {
init() {
this.loading = true;
this.loading = true;
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):'';
let url='/api/AppletSchool/GetDynamicList'
if(mall_UserInfo.IsOpenMiAi==1){
url='/api/AppletSchool/GetMiAiDynamicList'
}
this.request2({
url: '/api/AppletSchool/GetDynamicList',
url: url,
data: this.msg
},
res => {
......
......@@ -60,8 +60,9 @@
<educationteacher v-if="d.id == 'educationteacher'" :goods="d.data" :key="di"></educationteacher>
<!--导航栏-->
<navpage v-if="d.id == 'nav-page'" :navs="d.data" :key="di"></navpage>
<matchmaking v-if="d.id == 'miaiuser'" :navs="d.data" :key="di"></matchmaking>
</template>
<matchmaking></matchmaking>
</view>
</template>
<view v-if="showtabs==true">
......
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