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

1

parent af1387b2
...@@ -31,6 +31,15 @@ ...@@ -31,6 +31,15 @@
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
class="item-zanimg" class="item-zanimg"
mode="aspectFill" 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 ></image
>{{ item.DianZanNum }} >{{ item.DianZanNum }}
</view> </view>
...@@ -64,6 +73,15 @@ ...@@ -64,6 +73,15 @@
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
class="item-zanimg" class="item-zanimg"
mode="aspectFill" 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 ></image
>{{ item.DianZanNum }} >{{ item.DianZanNum }}
</view> </view>
...@@ -98,6 +116,15 @@ ...@@ -98,6 +116,15 @@
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/weizan.png"
class="item-zanimg" class="item-zanimg"
mode="aspectFill" 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 ></image
>{{ item.DianZanNum }} >{{ item.DianZanNum }}
</view> </view>
...@@ -161,9 +188,15 @@ export default { ...@@ -161,9 +188,15 @@ export default {
}); });
}, },
jumpPage(item) { jumpPage(item) {
if (item.IsTieZi === 1) {
uni.navigateTo({
url: "/pages/blindDate/postDetails2?Id=" + item.id,
});
} else if (item.IsTieZi === 0) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/blindDate/postDetails?Id=" + item.id, url: "/pages/blindDate/postDetails?Id=" + item.id,
}); });
}
}, },
jumpPagePerson(item) { jumpPagePerson(item) {
uni.navigateTo({ uni.navigateTo({
...@@ -184,6 +217,60 @@ export default { ...@@ -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() { mounted() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
right: 0; right: 0;
z-index: 99999999; z-index: 99999999;
border-top: 1upx solid #ddd; border-top: 1upx solid #ddd;
padding-top:96rpx; padding-top: 96rpx;
background: #fff; background: #fff;
} }
.tabbarMainIphone { .tabbarMainIphone {
...@@ -94,9 +94,9 @@ ...@@ -94,9 +94,9 @@
bottom: 10upx; bottom: 10upx;
border-radius: 150upx; border-radius: 150upx;
} }
</style> </style>
<template> <template>
<view v-if="isShowIcon === 1">
<view <view
class="tabbarMain" class="tabbarMain"
:class="[flagTypeInfo ? 'tabbarMainIphone' : '']" :class="[flagTypeInfo ? 'tabbarMainIphone' : '']"
...@@ -135,6 +135,7 @@ ...@@ -135,6 +135,7 @@
</view> </view>
</view> </view>
</view> </view>
</view>
</template> </template>
<script> <script>
...@@ -147,13 +148,18 @@ export default { ...@@ -147,13 +148,18 @@ export default {
flagTypeInfo: false, flagTypeInfo: false,
navs: [], navs: [],
crtPath: "", crtPath: "",
isShowIcon: 1,
}; };
}, },
created() { created() {
console.log('A join...') console.log("A join...");
let data = uni.getStorageSync("basedata");
if (data) {
this.isShowIcon = data.navbar.isShowIcon;
}
}, },
mounted() { mounted() {
console.log('B join...') console.log("B join...");
this.flagTypeInfo = this.$uiConfig.is_bang; this.flagTypeInfo = this.$uiConfig.is_bang;
let tempSystem = uni.getSystemInfoSync(); let tempSystem = uni.getSystemInfoSync();
this.platforms = tempSystem.platform; this.platforms = tempSystem.platform;
...@@ -166,13 +172,13 @@ export default { ...@@ -166,13 +172,13 @@ export default {
} }
// #endif // #endif
}); });
if(uni.getStorageSync("navs")){ if (uni.getStorageSync("navs")) {
this.navs = uni.getStorageSync("navs")??[]; this.navs = uni.getStorageSync("navs") ?? [];
}else{ } else {
setTimeout(()=>{ setTimeout(() => {
this.navs = uni.getStorageSync("navs")??[]; this.navs = uni.getStorageSync("navs") ?? [];
this.activeHandler(); this.activeHandler();
},3000) }, 3000);
} }
this.activeHandler(); this.activeHandler();
}, },
...@@ -190,16 +196,16 @@ export default { ...@@ -190,16 +196,16 @@ export default {
methods: { methods: {
activeHandler() { activeHandler() {
let t = getCurrentPages(); let t = getCurrentPages();
let query=t[t.length - 1].__displayReporter.query let query = t[t.length - 1].__displayReporter.query;
let queryString='' let queryString = "";
for(var k in query){ for (var k in query) {
queryString+=`&${k}=${query[k]}` queryString += `&${k}=${query[k]}`;
} }
if(queryString!=''){ if (queryString != "") {
queryString="?"+queryString.substring(1,queryString.length) queryString = "?" + queryString.substring(1, queryString.length);
} }
this.crtPath = "/" + t[t.length - 1].route+queryString; this.crtPath = "/" + t[t.length - 1].route + queryString;
console.log(this.crtPath) console.log(this.crtPath);
this.navs.forEach((x, i) => { this.navs.forEach((x, i) => {
if (x.url == this.crtPath) { if (x.url == this.crtPath) {
this.active = i; this.active = i;
......
...@@ -612,7 +612,10 @@ ...@@ -612,7 +612,10 @@
}, { }, {
"path": "postPublishing" //贴吧发布 "path": "postPublishing" //贴吧发布
}, { }, {
"path": "postDetails" //招募贴详情 "path": "postDetails" //招募贴详情-活动
},
{
"path": "postDetails2" //招募贴详情-帖子
}, { }, {
"path": "sendimg" //评论图片发布 "path": "sendimg" //评论图片发布
}, { }, {
...@@ -652,7 +655,8 @@ ...@@ -652,7 +655,8 @@
"path": "upCamp/activeInner" //相亲up营活动列表 "path": "upCamp/activeInner" //相亲up营活动列表
}, { }, {
"path": "releasePosts" //发布帖子 "path": "releasePosts" //发布帖子
}] }
]
}, },
//韩国馆项目 //韩国馆项目
{ {
......
This diff is collapsed.
This diff is collapsed.
<template> <template>
<view class="postbar" :style="{ height: contentHeight }"> <view
class="postbar"
:style="{
height: contentHeight,
'background-color': ppplusStyle === 2 ? '#fff' : '#f5f5f5',
}"
>
<view class="nav-top">
<u-tabs <u-tabs
:list="list" :list="list"
:is-scroll="true" :is-scroll="true"
...@@ -7,6 +14,30 @@ ...@@ -7,6 +14,30 @@
@change="change" @change="change"
:active-color="mainColor" :active-color="mainColor"
></u-tabs> ></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> <u-empty v-if="g.length == 0" text="暂无内容" mode="list"></u-empty>
<view <view
...@@ -25,7 +56,8 @@ ...@@ -25,7 +56,8 @@
@scrolltolower="lower" @scrolltolower="lower"
style="height: 100%" 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="item" v-for="(x, i) in g" :key="i">
<view class="maxbox" @click="gopostdetails(x)"> <view class="maxbox" @click="gopostdetails(x)">
<image <image
...@@ -118,7 +150,42 @@ ...@@ -118,7 +150,42 @@
</view> </view>
</view> </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 <u-loadmore
:status="status" :status="status"
:load-text="loadText" :load-text="loadText"
...@@ -201,11 +268,17 @@ export default { ...@@ -201,11 +268,17 @@ export default {
isAttestation: 0, isAttestation: 0,
isFaTie: 0, isFaTie: 0,
showtext: "去认证", showtext: "去认证",
ppplusStyle: 1, //拼拼plus展示样式,1-卡片,2-列表
isShowFabu: false,
}; };
}, },
created() { created() {
this.contentHeight = this.$utils.calcContentHeight(-40) + "px"; this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
let data = uni.getStorageSync("basedata");
if (data) {
this.ppplusStyle = data.mall.setting.mallStyle.miaiPPPlusStyle;
}
}, },
mounted() { mounted() {
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
...@@ -385,9 +458,15 @@ export default { ...@@ -385,9 +458,15 @@ export default {
}, },
gopostdetails(x) { gopostdetails(x) {
//招募贴的 //招募贴的
if (x.IsTieZi === 1) {
uni.navigateTo({
url: "/pages/blindDate/postDetails2?Id=" + x.Id,
});
} else if (x.IsTieZi === 0) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/blindDate/postDetails?Id=" + x.Id, url: "/pages/blindDate/postDetails?Id=" + x.Id,
}); });
}
}, },
goUserinfo(x) { goUserinfo(x) {
//用户信息 //用户信息
...@@ -396,10 +475,24 @@ export default { ...@@ -396,10 +475,24 @@ export default {
}); });
innerAudioContext.stop(); 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> </script>
<style> <style lang="scss">
.postbar { .postbar {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -535,4 +628,159 @@ export default { ...@@ -535,4 +628,159 @@ export default {
justify-content: center; justify-content: center;
z-index: 99; 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> </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