Commit cb01c1be authored by Mac's avatar Mac

相亲小程序的首页

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