Commit 57eec44c authored by 罗超's avatar 罗超

1

parent af1387b2
......@@ -31,6 +31,15 @@
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
class="item-zanimg"
mode="aspectFill"
@click="dianzan(item)"
v-if="item.IsDianZan == 0"
></image
><image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
class="item-zanimg"
mode="aspectFill"
@click="quxiaodianzan(item)"
v-if="item.IsDianZan > 0"
></image
>{{ item.DianZanNum }}
</view>
......@@ -64,6 +73,15 @@
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
class="item-zanimg"
mode="aspectFill"
@click="dianzan(item)"
v-if="item.IsDianZan == 0"
></image
><image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
class="item-zanimg"
mode="aspectFill"
@click="quxiaodianzan(item)"
v-if="item.IsDianZan > 0"
></image
>{{ item.DianZanNum }}
</view>
......@@ -98,6 +116,15 @@
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
class="item-zanimg"
mode="aspectFill"
@click="dianzan(item)"
v-if="item.IsDianZan == 0"
></image
><image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/yizan.png"
class="item-zanimg"
mode="aspectFill"
@click="quxiaodianzan(item)"
v-if="item.IsDianZan > 0"
></image
>{{ item.DianZanNum }}
</view>
......@@ -161,9 +188,15 @@ export default {
});
},
jumpPage(item) {
uni.navigateTo({
url: "/pages/blindDate/postDetails?Id=" + item.id,
});
if (item.IsTieZi === 1) {
uni.navigateTo({
url: "/pages/blindDate/postDetails2?Id=" + item.id,
});
} else if (item.IsTieZi === 0) {
uni.navigateTo({
url: "/pages/blindDate/postDetails?Id=" + item.id,
});
}
},
jumpPagePerson(item) {
uni.navigateTo({
......@@ -184,6 +217,60 @@ export default {
});
}
},
//点赞
dianzan(item) {
let msg = {
ID: 0,
ActivityId: item.id,
ActivityDiscussId: 0,
IsSelectActivity: 1,
};
this.request2(
{
url: "/api/AppletMiai/GetDianZan",
data: msg,
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: res.message,
duration: 2000,
icon: "none",
});
uni.reLaunch({
url: "/pages/index/index",
});
}
}
);
},
//取消点赞
quxiaodianzan(item) {
let msg = {
ID: item.IsDianZan,
ActivityId: item.id,
ActivityDiscussId: 0,
IsSelectActivity: 1,
};
this.request2(
{
url: "/api/AppletMiai/GetDianZan",
data: msg,
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: res.message,
duration: 2000,
icon: "none",
});
uni.reLaunch({
url: "/pages/index/index",
});
}
}
);
},
},
mounted() {
this.mainColor = this.$uiConfig.mainColor;
......
......@@ -9,7 +9,7 @@
right: 0;
z-index: 99999999;
border-top: 1upx solid #ddd;
padding-top:96rpx;
padding-top: 96rpx;
background: #fff;
}
.tabbarMainIphone {
......@@ -94,44 +94,45 @@
bottom: 10upx;
border-radius: 150upx;
}
</style>
<template>
<view
class="tabbarMain"
:class="[flagTypeInfo ? 'tabbarMainIphone' : '']"
v-if="navs && navs.length > 0"
>
<view v-if="isShowIcon === 1">
<view
class="tabBtnMina"
:class="[flagTypeInfo ? 'tabBtnMinaIphone' : '']"
mode=""
class="tabbarMain"
:class="[flagTypeInfo ? 'tabbarMainIphone' : '']"
v-if="navs && navs.length > 0"
>
<view
class="itmMain"
v-for="(x, i) in navs"
:key="i"
@click.stop="goUrl(x.url)"
class="tabBtnMina"
:class="[flagTypeInfo ? 'tabBtnMinaIphone' : '']"
mode=""
>
<image
class="imgse"
:fade-show="false"
v-if="active != i"
mode="heightFix"
:src="x.icon"
></image>
<image
class="imgse"
:fade-show="false"
v-if="active === i"
mode="heightFix"
:src="x.active_icon"
></image>
<text
class="txtBtn"
:style="{ color: active == i ? x.active_color : x.color }"
>{{ x.text }}</text
<view
class="itmMain"
v-for="(x, i) in navs"
:key="i"
@click.stop="goUrl(x.url)"
>
<image
class="imgse"
:fade-show="false"
v-if="active != i"
mode="heightFix"
:src="x.icon"
></image>
<image
class="imgse"
:fade-show="false"
v-if="active === i"
mode="heightFix"
:src="x.active_icon"
></image>
<text
class="txtBtn"
:style="{ color: active == i ? x.active_color : x.color }"
>{{ x.text }}</text
>
</view>
</view>
</view>
</view>
......@@ -147,13 +148,18 @@ export default {
flagTypeInfo: false,
navs: [],
crtPath: "",
isShowIcon: 1,
};
},
created() {
console.log('A join...')
console.log("A join...");
let data = uni.getStorageSync("basedata");
if (data) {
this.isShowIcon = data.navbar.isShowIcon;
}
},
mounted() {
console.log('B join...')
console.log("B join...");
this.flagTypeInfo = this.$uiConfig.is_bang;
let tempSystem = uni.getSystemInfoSync();
this.platforms = tempSystem.platform;
......@@ -166,13 +172,13 @@ export default {
}
// #endif
});
if(uni.getStorageSync("navs")){
this.navs = uni.getStorageSync("navs")??[];
}else{
setTimeout(()=>{
this.navs = uni.getStorageSync("navs")??[];
if (uni.getStorageSync("navs")) {
this.navs = uni.getStorageSync("navs") ?? [];
} else {
setTimeout(() => {
this.navs = uni.getStorageSync("navs") ?? [];
this.activeHandler();
},3000)
}, 3000);
}
this.activeHandler();
},
......@@ -190,16 +196,16 @@ export default {
methods: {
activeHandler() {
let t = getCurrentPages();
let query=t[t.length - 1].__displayReporter.query
let queryString=''
for(var k in query){
queryString+=`&${k}=${query[k]}`
let query = t[t.length - 1].__displayReporter.query;
let queryString = "";
for (var k in query) {
queryString += `&${k}=${query[k]}`;
}
if(queryString!=''){
queryString="?"+queryString.substring(1,queryString.length)
if (queryString != "") {
queryString = "?" + queryString.substring(1, queryString.length);
}
this.crtPath = "/" + t[t.length - 1].route+queryString;
console.log(this.crtPath)
this.crtPath = "/" + t[t.length - 1].route + queryString;
console.log(this.crtPath);
this.navs.forEach((x, i) => {
if (x.url == this.crtPath) {
this.active = i;
......
......@@ -591,68 +591,72 @@
{
"root": "pages/blindDate",
"pages": [{
"path": "basicdata" //基础资料的填写
}, {
"path": "personal/fanlist" //粉丝列表
}, {
"path": "personal/followlist" //关注列表
}, {
"path": "personal/peoplescreen" //人物筛选
}, {
"path": "oldpersondetails", //之前的人物详情
"style": {
"navigationStyle": "custom"
}
}, {
"path": "persondetails" //人物详情
}, {
"path": "personal/editmaterial" //资料编辑
}, {
"path": "postbar" //贴吧列表
}, {
"path": "postPublishing" //贴吧发布
}, {
"path": "postDetails" //招募贴详情
}, {
"path": "sendimg" //评论图片发布
}, {
"path": "stickSignUp" //招募贴报名
}, {
"path": "personal/mysignupList" //我的报名列表
}, {
"path": "baomingList" //招募贴查看报名列表
}, {
"path": "personal/myrecruitstick" //我的招募贴
}, {
"path": "richText" //富文本编辑页面
}, {
"path": "message" //消息
}, {
"path": "visitor" //访客
}, {
"path": "systemMsg" //系统消息
}, {
"path": "personal/mydate" //我的约会
}, {
"path": "circleNews" //圈子消息
}, {
"path": "personal/buyvip", //会员购买
"style": {
"navigationStyle": "custom"
"path": "basicdata" //基础资料的填写
}, {
"path": "personal/fanlist" //粉丝列表
}, {
"path": "personal/followlist" //关注列表
}, {
"path": "personal/peoplescreen" //人物筛选
}, {
"path": "oldpersondetails", //之前的人物详情
"style": {
"navigationStyle": "custom"
}
}, {
"path": "persondetails" //人物详情
}, {
"path": "personal/editmaterial" //资料编辑
}, {
"path": "postbar" //贴吧列表
}, {
"path": "postPublishing" //贴吧发布
}, {
"path": "postDetails" //招募贴详情-活动
},
{
"path": "postDetails2" //招募贴详情-帖子
}, {
"path": "sendimg" //评论图片发布
}, {
"path": "stickSignUp" //招募贴报名
}, {
"path": "personal/mysignupList" //我的报名列表
}, {
"path": "baomingList" //招募贴查看报名列表
}, {
"path": "personal/myrecruitstick" //我的招募贴
}, {
"path": "richText" //富文本编辑页面
}, {
"path": "message" //消息
}, {
"path": "visitor" //访客
}, {
"path": "systemMsg" //系统消息
}, {
"path": "personal/mydate" //我的约会
}, {
"path": "circleNews" //圈子消息
}, {
"path": "personal/buyvip", //会员购买
"style": {
"navigationStyle": "custom"
}
}, {
"path": "userList" //用户列表
}, {
"path": "editData" //编辑资料
}, {
"path": "xqposter" //相亲分享海报
}, {
"path": "personal/IDidentification" //身份证验证
}, {
"path": "upCamp/activeInner" //相亲up营活动列表
}, {
"path": "releasePosts" //发布帖子
}
}, {
"path": "userList" //用户列表
}, {
"path": "editData" //编辑资料
}, {
"path": "xqposter" //相亲分享海报
}, {
"path": "personal/IDidentification" //身份证验证
}, {
"path": "upCamp/activeInner" //相亲up营活动列表
}, {
"path": "releasePosts" //发布帖子
}]
]
},
//韩国馆项目
{
......
This diff is collapsed.
This diff is collapsed.
<template>
<view class="postbar" :style="{ height: contentHeight }">
<u-tabs
:list="list"
:is-scroll="true"
:current="current"
@change="change"
:active-color="mainColor"
></u-tabs>
<view
class="postbar"
:style="{
height: contentHeight,
'background-color': ppplusStyle === 2 ? '#fff' : '#f5f5f5',
}"
>
<view class="nav-top">
<u-tabs
:list="list"
:is-scroll="true"
:current="current"
@change="change"
:active-color="mainColor"
></u-tabs>
<view class="fabu" @click="toggleFabu">
<u-icon name="plus" :size="40" :color="mainColor"></u-icon>
</view>
<view class="chooseFabu" v-if="isShowFabu">
<view class="tiezi" @click="jumpfabu(1)">
<image
class="imgicon"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/tiezifabu1.png"
mode=""
/>
发布帖子
</view>
<view style="height: 1px; background-color: #e2e2e2"></view>
<view class="huodong" @click="jumpfabu(2)">
<image
class="imgicon"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/huodongfabu1.png"
mode=""
/>
发布活动
</view>
</view>
</view>
<u-empty v-if="g.length == 0" text="暂无内容" mode="list"></u-empty>
<view
......@@ -25,7 +56,8 @@
@scrolltolower="lower"
style="height: 100%"
>
<view class="details">
<!-- 卡片模式 -->
<view class="details" v-if="ppplusStyle === 1">
<view class="item" v-for="(x, i) in g" :key="i">
<view class="maxbox" @click="gopostdetails(x)">
<image
......@@ -118,7 +150,42 @@
</view>
</view>
</view>
<!-- 列表模式 -->
<view class="details" v-if="ppplusStyle === 2">
<view v-for="(x, i) in g" :key="i">
<view class="maxbox2" @click="gopostdetails(x)">
<view class="left">
<view class="img-box">
<image
:src="x.ImageList[0]"
mode="aspectFill"
style="
width: 100%;
height: 100%;
border-top-left-radius: 30rpx;
border-top-right-radius: 30rpx;
"
></image>
</view>
<view class="creatManInfo" @click.native.stop="goUserinfo(x)">
<image class="headimg" :src="x.Photo"> </image
>{{ x.UserName }}</view
>
</view>
<view class="right">
<view class="activetitle">{{ x.ActivityTitle }}</view>
<view class="Content" v-html="x.Content"></view>
<view class="hot" v-if="x.HotCommentList.length > 0">
<view class="hotTag">人气点评</view>
<view class="hotCon">{{ x.HotCommentList[0].Comment }}</view>
</view>
<view class="hotCon2" v-if="x.HotCommentList.length > 1">{{
x.HotCommentList[1].Comment
}}</view>
</view>
</view>
</view>
</view>
<u-loadmore
:status="status"
:load-text="loadText"
......@@ -201,11 +268,17 @@ export default {
isAttestation: 0,
isFaTie: 0,
showtext: "去认证",
ppplusStyle: 1, //拼拼plus展示样式,1-卡片,2-列表
isShowFabu: false,
};
},
created() {
this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
this.mainColor = this.$uiConfig.mainColor;
let data = uni.getStorageSync("basedata");
if (data) {
this.ppplusStyle = data.mall.setting.mallStyle.miaiPPPlusStyle;
}
},
mounted() {
let currentPages = getCurrentPages();
......@@ -385,9 +458,15 @@ export default {
},
gopostdetails(x) {
//招募贴的
uni.navigateTo({
url: "/pages/blindDate/postDetails?Id=" + x.Id,
});
if (x.IsTieZi === 1) {
uni.navigateTo({
url: "/pages/blindDate/postDetails2?Id=" + x.Id,
});
} else if (x.IsTieZi === 0) {
uni.navigateTo({
url: "/pages/blindDate/postDetails?Id=" + x.Id,
});
}
},
goUserinfo(x) {
//用户信息
......@@ -396,10 +475,24 @@ export default {
});
innerAudioContext.stop();
},
toggleFabu() {
this.isShowFabu = !this.isShowFabu;
},
jumpfabu(type) {
if (type === 1) {
uni.navigateTo({
url: "/pages/blindDate/releasePosts",
});
} else {
uni.navigateTo({
url: "/pages/blindDate/postPublishing",
});
}
},
},
};
</script>
<style>
<style lang="scss">
.postbar {
width: 100%;
height: 100%;
......@@ -535,4 +628,159 @@ export default {
justify-content: center;
z-index: 99;
}
/* 列表模式样式 */
.maxbox2 {
width: 690rpx;
height: 300rpx;
// background-color: #eee;
box-sizing: border-box;
padding: 40rpx 0 0 0;
display: flex;
.left {
width: 188rpx;
height: 100%;
margin-right: 30rpx;
.img-box {
width: 188rpx;
height: 188rpx;
border-radius: 30rpx;
overflow: hidden;
margin-bottom: 10rpx;
}
.creatManInfo {
display: flex;
justify-content: center;
align-items: center;
font-size: 24rpx;
font-family: PingFang SC;
font-weight: 800;
color: #111111;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
.headimg {
width: 44rpx;
height: 44rpx;
border-radius: 50%;
margin-right: 10rpx;
}
}
}
.right {
width: 475rpx;
height: 100%;
border-bottom: 2rpx solid#E2E2E2;
.activetitle {
font-size: 30rpx;
font-family: PingFang SC;
font-weight: 800;
color: #111111;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
margin-bottom: 18rpx;
}
.Content {
font-size: 20rpx;
font-family: PingFang SC;
font-weight: 500;
color: #858687;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 18rpx;
p {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.hot {
display: flex;
margin: 20rpx 0;
.hotTag {
width: 98rpx;
height: 30rpx;
background-color: #00c6c1;
border-radius: 4rpx 0rpx 0rpx 4rpx;
font-size: 22rpx;
font-family: FZZongYi-M05S;
font-weight: 400;
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
}
.hotCon {
width: 375rpx;
height: 30rpx;
background-color: #b2eeec;
box-sizing: border-box;
padding: 0 10rpx;
display: flex;
align-items: center;
font-size: 20rpx;
font-family: PingFang SC;
font-weight: 500;
color: #00c6c1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-radius: 0px 4rpx 4rpx 0px;
}
}
.hotCon2 {
font-size: 20rpx;
font-family: PingFang SC;
font-weight: 500;
color: #111111;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.nav-top {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
.fabu {
width: 86rpx;
height: 60rpx;
display: flex;
align-items: center;
justify-content: center;
}
.chooseFabu {
width: 170rpx;
height: 168rpx;
background: #ffffff;
box-shadow: 0px 1rpx 20rpx 0rpx rgba(76, 76, 76, 0.2);
border-radius: 10rpx;
position: absolute;
top: 60rpx;
right: 30rpx;
box-sizing: border-box;
padding: 0 20rpx;
.tiezi,
.huodong {
height: 83rpx;
font-size: 24rpx;
font-family: PingFang SC;
font-weight: bold;
color: #111111;
white-space: nowrap;
display: flex;
align-items: center;
.imgicon {
width: 25rpx;
height: 25rpx;
margin-right: 10rpx;
}
}
}
}
</style>
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