Commit c07f7c05 authored by 罗超's avatar 罗超

1

parent 57eec44c
......@@ -6,7 +6,14 @@
:active-color="mainColor"
@change="change"
style="margin-bottom: 30rpx"
v-if="dataObj.showCat"
></u-tabs>
<u-empty
v-if="curDataObj.goodsList.length == 0"
text="暂无内容"
mode="list"
></u-empty>
<view v-if="curDataObj.goodsList.length > 0">
<view class="con" v-if="dataObj.listStyle == 5">
<view class="left">
<view
......@@ -14,9 +21,13 @@
:key="index"
v-if="index % 2 == 0"
class="left-item"
@click="jumpPage(item)"
>
<image :src="item.picUrl" class="item-img" mode="widthFix"></image>
<image
:src="item.picUrl"
class="item-img"
mode="widthFix"
@click="jumpPage(item)"
></image>
<view class="flex between CreateByInfo">
<view class="flex CreateByName" @click="jumpPagePerson(item)">
<image
......@@ -132,6 +143,8 @@
</view>
</view>
</view>
</view>
<view
class="choosetype"
:style="{ background: mainColor }"
......@@ -155,25 +168,54 @@
</view>
</view>
<view
<!-- <view
class="fabuBtn"
@click="toggleFabu"
:style="{ background: mainColor }"
>
发布
</view> -->
<!-- 发布动态按钮 -->
<view class="fbanniu" @click="toggleFabu">
<image
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/fabupyq.png"
style="height: 26rpx"
mode="aspectFit"
></image>
<text style="font-size: 10px; color: #fff">发布</text>
</view>
<auth
v-if="showAuth"
@changeuserinfo="reloadUserinfo"
@gbAuth="gbAuth"
></auth>
<u-modal
v-model="show"
:content="showtext"
:show-cancel-button="true"
@confirm="queren"
></u-modal>
</view>
</template>
<script>
import auth from "@/components/auth/index.vue";
export default {
props: ["dataObj"],
components: {
auth,
},
data() {
return {
current: 0,
mainColor: "",
curDataObj: {},
isShowFabu: false,
show: false,
showtext: "",
u: {},
isAttestation: 0,
};
},
computed: {},
......@@ -207,6 +249,19 @@ export default {
this.isShowFabu = !this.isShowFabu;
},
jumpfabu(type) {
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: "",
};
this.showAuth = true;
} else {
if (this.isAttestation == 1) {
//判断是否认证了
// uni.navigateTo({
// url: "/pages/blindDate/postPublishing?ForumId=" + this.msg.ForumId,
// });
if (type === 1) {
uni.navigateTo({
url: "/pages/blindDate/releasePosts",
......@@ -216,6 +271,33 @@ export default {
url: "/pages/blindDate/postPublishing",
});
}
} else if (this.isAttestation == 0) {
this.show = true;
this.showtext = "还未认证,是否去认证?";
} else if (this.isAttestation == 2) {
this.show = true;
this.showtext = "还未上传身份证信息,是否去上传?";
}
}
},
queren() {
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")
? uni.getStorageSync("mall_UserInfo")
: null;
if (mall_UserInfo != null) {
if (this.isAttestation == 0) {
uni.navigateTo({
url:
"/pages/blindDate/editData?UserId=" +
mall_UserInfo.UserId +
"&Jumptype=2&type=1",
});
} else if (this.isAttestation == 2) {
uni.navigateTo({
url: "/pages/blindDate/personal/IDidentification?Jumptype=2",
});
}
}
},
//点赞
dianzan(item) {
......@@ -237,6 +319,7 @@ export default {
duration: 2000,
icon: "none",
});
this.$emit("refresh");
uni.reLaunch({
url: "/pages/index/index",
});
......@@ -264,6 +347,7 @@ export default {
duration: 2000,
icon: "none",
});
this.$emit("refresh");
uni.reLaunch({
url: "/pages/index/index",
});
......@@ -271,10 +355,31 @@ export default {
}
);
},
getisAttestation() {
//认证成功
this.request2(
{
url: "/api/Mall/GetHome",
data: { page_id: 0, open_school: 0, StoreId: 0 },
},
(res) => {
uni.setStorageSync("basedata", res.data);
let basedata = wx.getStorageSync("basedata");
this.isAttestation = basedata.user_info.isAttestation
? basedata.user_info.isAttestation
: 0;
this.isFaTie = basedata.user_info.isFaTie
? basedata.user_info.isFaTie
: 0;
},
(error) => {}
);
},
},
mounted() {
this.getisAttestation();
console.log("tag", this.dataObj);
this.mainColor = this.$uiConfig.mainColor;
console.log(29, this.dataObj);
this.dataObj.catList.map((item, index) => {
if (index === this.current) {
this.curDataObj = JSON.parse(JSON.stringify(item));
......@@ -366,8 +471,8 @@ export default {
}
.choosetype {
position: fixed;
right: 30rpx;
bottom: 240rpx;
right: 20rpx;
bottom: 270rpx;
width: 480rpx;
height: 100rpx;
// background-color: #00c6c1;
......@@ -391,19 +496,33 @@ export default {
}
}
}
.fabuBtn {
// .fabuBtn {
// position: fixed;
// right: 30rpx;
// bottom: 130rpx;
// width: 100rpx;
// height: 100rpx;
// // background-color: #00c6c1;
// border-radius: 50%;
// text-align: center;
// line-height: 99rpx;
// font-size: 32rpx;
// font-family: PingFang SC;
// font-weight: 500;
// color: #ffffff;
// }
.fbanniu {
width: 42px;
height: 42px;
border-radius: 21px;
position: fixed;
right: 30rpx;
bottom: 130rpx;
width: 100rpx;
height: 100rpx;
// background-color: #00c6c1;
border-radius: 50%;
text-align: center;
line-height: 99rpx;
font-size: 32rpx;
font-family: PingFang SC;
font-weight: 500;
color: #ffffff;
right: 20rpx;
bottom: 180rpx;
background: #40766e;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 99;
}
</style>
......@@ -94,8 +94,22 @@
bottom: 10upx;
border-radius: 150upx;
}
/* ----------------不显示图标导航样式-------------- */
.txtBtn2 {
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
color: #b2b3b4;
}
.activeTxtBtn2 {
font-size: 32rpx;
font-family: PingFang SC;
font-weight: 800;
/* color: #111111; */
}
</style>
<template>
<view>
<view v-if="isShowIcon === 1">
<view
class="tabbarMain"
......@@ -136,6 +150,49 @@
</view>
</view>
</view>
<view v-if="isShowIcon === 0">
<view
class="tabbarMain"
:class="[flagTypeInfo ? 'tabbarMainIphone' : '']"
v-if="navs && navs.length > 0"
>
<view
class="tabBtnMina"
:class="[flagTypeInfo ? 'tabBtnMinaIphone' : '']"
mode=""
>
<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"
:class="{ activeTxtBtn2: active == i }"
:style="{ color: active == i ? x.active_color : x.color }"
>{{ x.text }}</text
>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
......@@ -156,6 +213,8 @@ export default {
let data = uni.getStorageSync("basedata");
if (data) {
this.isShowIcon = data.navbar.isShowIcon;
} else {
this.isShowIcon = 1;
}
},
mounted() {
......
......@@ -581,6 +581,8 @@
align-items: center;
font-weight: bold;
margin-top: 15px;
box-sizing: border-box;
padding: 0 30rpx;
"
>
<text>评论</text>
......@@ -588,7 +590,10 @@
</view>
<u-empty v-if="g.length == 0" text="暂无回复" mode="list"></u-empty>
<view v-if="g.length > 0">
<view
v-if="g.length > 0"
style="box-sizing: border-box; padding: 0 30rpx"
>
<view v-for="(x, i) in g" :key="i" style="width: 100%">
<view
class="pl-top"
......@@ -1267,7 +1272,6 @@ export default {
(res) => {
this.ReplyNum = res.data.totalCount;
this.commentData = res.data;
console.log(1155, this.commentData);
}
);
},
......@@ -1738,7 +1742,25 @@ export default {
icon: "none",
});
// this.init(1);
// this.getActivityInfo();
if (type === 1) {
this.getCount();
} else {
this.request2(
{
url: "/api/AppletMiai/GetActivityDiscussPageList",
data: this.msg,
},
(res) => {
if (res.resultCode == 1) {
this.g = res.data.pageData;
this.page_count = res.data.pageCount;
if (this.page_count == 1) {
this.status = "nomore";
}
}
}
);
}
}
}
);
......@@ -1771,8 +1793,25 @@ export default {
duration: 2000,
icon: "none",
});
// this.init(1);
// this.getActivityInfo();
if (type === 1) {
this.getCount();
} else {
this.request2(
{
url: "/api/AppletMiai/GetActivityDiscussPageList",
data: this.msg,
},
(res) => {
if (res.resultCode == 1) {
this.g = res.data.pageData;
this.page_count = res.data.pageCount;
if (this.page_count == 1) {
this.status = "nomore";
}
}
}
);
}
}
}
);
......
......@@ -174,7 +174,7 @@
</view>
<view class="right">
<view class="activetitle">{{ x.ActivityTitle }}</view>
<view class="Content" v-html="x.Content"></view>
<view class="Content">{{ x.LabelList.join(",") }}</view>
<view class="hot" v-if="x.HotCommentList.length > 0">
<view class="hotTag">人气点评</view>
<view class="hotCon">{{ x.HotCommentList[0].Comment }}</view>
......@@ -197,7 +197,12 @@
<view style="width: 100%; height: 50px"></view>
</scroll-view>
</view>
<view class="release" v-if="isFaTie == 1" @click.stop="gopublishing()">
<view
class="release"
v-if="isFaTie == 1"
@click.stop="gopublishing()"
style="display: none"
>
<!-- <image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pp-fabu.png" style="width: 100%;height: 100%;"></image> -->
<!-- 发布动态按钮 -->
<view class="fbanniu">
......@@ -479,15 +484,37 @@ export default {
this.isShowFabu = !this.isShowFabu;
},
jumpfabu(type) {
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: "",
};
this.showAuth = true;
} else {
if (this.isAttestation == 1) {
//判断是否认证了
// uni.navigateTo({
// url: "/pages/blindDate/postPublishing?ForumId=" + this.msg.ForumId,
// });
if (type === 1) {
uni.navigateTo({
url: "/pages/blindDate/releasePosts",
});
} else {
uni.navigateTo({
url: "/pages/blindDate/postPublishing",
url:
"/pages/blindDate/postPublishing?ForumId=" + this.msg.ForumId,
});
}
} else if (this.isAttestation == 0) {
this.show = true;
this.showtext = "还未认证,是否去认证?";
} else if (this.isAttestation == 2) {
this.show = true;
this.showtext = "还未上传身份证信息,是否去上传?";
}
}
},
},
};
......@@ -763,6 +790,7 @@ export default {
position: absolute;
top: 60rpx;
right: 30rpx;
z-index: 999;
box-sizing: border-box;
padding: 0 20rpx;
.tiezi,
......
......@@ -204,6 +204,7 @@
<Pubu
v-if="d.id == 'blindDatePPPlus'"
:dataObj="d.data"
@refresh="refreshPage"
></Pubu>
</template>
</view>
......@@ -333,7 +334,7 @@ export default {
orderPopupdata: {}, //离线收益的弹窗
showorder: false, //显示弹出
carrierType: "", //载体type
AppletID:0,//判断小程序的id,相亲:11
AppletID: 0, //判断小程序的id,相亲:11
};
},
components: {
......@@ -371,7 +372,7 @@ export default {
miaiactivitytype,
miaiactivityCustom,
orderPopup,
Pubu
Pubu,
},
onLoad(options) {
let that = this;
......@@ -622,11 +623,7 @@ export default {
}
uni.showNavigationBarLoading();
},
created() {
let basedata =uni.getStorageSync("basedata")?uni.getStorageSync("basedata"):'';
this.AppletID = basedata.home_pages.id?basedata.home_pages.id:0;
console.log(631,this.AppletID)
},
created() {},
// #ifdef MP-WEIXIN
onShareTimeline() {
setTimeout(() => {
......@@ -1541,6 +1538,11 @@ export default {
//选择取消地址
this.$refs.city[0].getPickcar(Name);
},
refreshPage() {
// this.init();
// this.$forceUpdate();
// console.log("tag", "刷新");
},
yj() {
uni.navigateTo({
// url: '/pages/blindDate/persondetails?UserId=123978'
......@@ -1639,5 +1641,4 @@ export default {
font-size: 36rpx;
color: #8f8f94;
} */
</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