Commit cfc9c0fd authored by 罗超's avatar 罗超

1

parents 2f3fe2f8 905d1c7b
......@@ -92,6 +92,9 @@
//调用获取code
getCode(obj) {
var that = this;
uni.showLoading({
title: '登录中'
});
uni.getUserInfo({
provider: 'weixin',
success: info => {
......@@ -117,9 +120,7 @@
getLogin(obj) {
var that = this;
that.showLogin =false
uni.showLoading({
title: '登录中'
});
let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0;
let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0;
let SmallShopId = uni.getStorageSync("SmallShopId") ? uni.getStorageSync("SmallShopId").SmallShopId : 0;
......
<template>
<div class="goods-box" :class="{ flex: goods.catPosition == 'left' }">
<div :class="{ 'right-slider': goods.catPosition == 'top' }">
<!-- 只是商品 -->
<template>
<!--列表模式-->
<style6 v-if="goods.listStyle == -1" :goods-info="goods"></style6>
<!--左右滚动-->
<style5 v-if="goods.listStyle == 0" :goods-info="goods"></style5>
<!--一行一个-->
<style1 v-if="goods.listStyle == 1" :goods-info="goods"></style1>
</template>
</div>
</div>
</template>
<script>
import style1 from './style1';
import style5 from './style5';
import style6 from './style6';
export default {
props: ['goods'],
components: {
style1,
style5,
style6,
},
data() {
return {
mainColor: '',
currentList: [],
};
},
created() {
this.mainColor = this.$uiConfig.mainColor;
if (this.goods.showCat) {
this.currentList = this.goods.catList[0].goodsList;
} else {
this.currentList = this.goods.list;
}
},
methods: {
}
};
</script>
<style>
.style4View {
display: inline-block;
width: 100%;
padding-left: 80px;
box-sizing: border-box;
}
.goods-box {
/* margin: 20rpx 0; */
}
.goods-box .tips {
z-index: 50 !important;
}
.goods-box.flex {
display: flex;
}
.goods-box.flex .left-slider {
width: 80px;
position: absolute;
}
.goods-box.flex .right-slider {
flex: 1;
width: 1rpx;
}
.defaultz .van-sticky {
z-index: 1 !important;
}
.goods-box .van-tabs__scroll {
background: none;
}
.goods-box ._div {
width: 100%;
}
</style>
<template>
<div :style="{
'background-color': goodsInfo.backgroundColor,
'paddingLeft':goodsInfo.PaddingLeft+'px',
'paddingRight':goodsInfo.PaddingRight+'px',
'paddingTop':goodsInfo.PaddingTop+'px',
'paddingBottom':goodsInfo.PaddingBottom+'px'
}">
<div v-for="(item, gli) in goodsInfo.list" :key="gli" class="good_study_one" @click="openGood(item)" :style="{
borderRadius:goodsInfo.SearchFilletPX==0?10:goodsInfo.SearchFilletPX+'px'
}">
<image style="
width: calc(100vw - 24px);
height: 100vw;
border-radius: 10rpx 10rpx 0 0;
"
mode='aspectFill' :src="item.picUrl" />
<div class="good-info">
<div class="good-name" v-if="item.name">{{ item.name }}</div>
<div>
<view style="display:inline-block;padding: 2px 4px;border-radius: 2px;font-size: 10px;color: #FAF8F9;margin-right:5px"
:style="{background:mainColor}" v-for="(subItem,subIndex) in item.lableNameList" :key="subIndex">
{{subItem}}
</view>
</div>
</div>
</div>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</div>
</template>
<script>
import auth from '@/components/auth/index.vue';
export default {
components: {
auth
},
props: ['goodsInfo'],
data() {
return {
mainColor: '',
showSku: false,
sku: {},
showAuth: false,
u: {},
};
},
created() {
this.mainColor = this.$uiConfig.mainColor;
},
methods: {
openGood(item) {
this.u = uni.getStorageSync('mall_UserInfo');
if (item.linkUrl) {
uni.navigateTo({
url: item.linkUrl,
});
}
},
reloadUserinfo() {
this.u = uni.getStorageSync('mall_UserInfo');
// this.showAuth = false;
},
//关闭登录窗口
gbAuth() {
this.showAuth = false;
}
}
};
</script>
<style>
.good_study_one {
margin: 12px;
position: relative;
border: 1rpx solid transparent;
border-radius: 10rpx;
/* border: 1px solid rgb(226, 226, 226); */
overflow: hidden;
}
.good_study_one .tips {
width: 64rpx;
height: 64rpx;
position: absolute;
top: 0;
left: 0;
z-index: 4;
}
.good_study_one .guding {
position: relative;
}
.good_study_one .guding .img-box {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
}
.good_study_one .good-info {
padding: 12rpx;
margin-top: -5px;
}
.good_study_one .good-info .good-name {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
margin-bottom: 13px;
}
.good_study_one .good-info .good-price-info {
display: flex;
}
.good_study_one .good-info .good-price-info .price {
color: #999999;
font-size: 11px;
flex: 1;
}
.good_study_one .good-info .good-price-info .buy {
width: 24px;
text-align: right;
}
</style>
<template>
<view style="width:100%;padding: 12px;" :style="{
'background-color': goodsInfo.backgroundColor,
}">
<view class="her_Two_study" :style="{
'padding-top':goodsInfo.PaddingTop+'px',
'padding-right':goodsInfo.PaddingRight+'px',
'padding-bottom':goodsInfo.PaddingBottom+'px',
'padding-left':goodsInfo.PaddingLeft+'px'
}">
<view class="good-five-stydy" v-for="(item, gli) in goodsInfo.list" :key="gli" :style="{'borderRadius':goodsInfo.SearchFilletPX+'px'}" @click="openGood(item)">
<view class="img-box">
<image style="width: 100%; height: 100%;" mode="aspectFill" :src="item.picUrl" />
</view>
<view class="good-info">
<view class="good-name" v-if="item.name">{{ item.name }}</view>
<view style="width: 130px;">
<view class="style_five_label"
:style="{background:mainColor}" v-for="(subItem,subIndex) in item.lableNameList" :key="subIndex">
{{subItem}}
</view>
</view>
</view>
</view>
</view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view>
</template>
<script>
import goodSku from '../goods/goodsku';
import auth from '@/components/auth/index.vue';
export default {
components: {
auth
},
props: ['goodsInfo'],
data() {
return {
mainColor: '',
showAuth: false,
u: {},
};
},
created() {
this.mainColor = this.$uiConfig.mainColor;
},
mounted(){
},
methods: {
openGood(item) {
this.u = uni.getStorageSync('mall_UserInfo');
if (item.linkUrl) {
uni.navigateTo({
url: item.linkUrl,
});
}
},
reloadUserinfo() {
this.u = uni.getStorageSync('mall_UserInfo');
// this.showAuth = false;
},
//关闭登录窗口
gbAuth() {
this.showAuth = false;
}
}
};
</script>
<style>
.good-five-stydy {
position: relative;
margin-bottom: 14px;
display: flex;
box-sizing: border-box;
padding: 0 1px 1px 0;
width:600px;
}
.good-five-stydy:last-child{
margin-bottom:0!important;
}
.good-five-stydy .img-box {
width: 110px;
height: 70px;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 4px 10px 1px #D2D2D2;
}
.good-five-stydy .good-info {
height: 70px;
padding: 0 12px ;
flex: 1;
border: 10rpx;
padding-bottom: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
/* width:20%; */
}
.good-five-stydy .good-info .good-name {
font-size: 13px;
margin-bottom:5px;
white-space:pre-wrap;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
width:130px;
}
.good-five-stydy .good-info .good-price-info {
display: flex;
justify-items: center;
align-items: flex-end;
height: 22px;
flex: 1;
padding-bottom: 10rpx;
}
.good-five-stydy .good-info .good-price-info .price {
color: #999999;
flex: 1;
font-size: 14px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.good-five-stydy .good-info .good-price-info .buy {
width: 24px;
text-align: right;
}
.her_Two_study { overflow-x: auto !important; display: flex; white-space: nowrap; }
.style_five_label{
float:left;
padding: 0px 5px;
border-radius: 2px;
height: 18px;
line-height: 18px;
font-size: 10px;
color: #FAF8F9;
margin:0 5px 5px 0;
}
</style>
<template>
<view style="width:100%;padding: 12px;" :style="{
'background-color': goodsInfo.backgroundColor,
}">
<view :style="{
'padding-top':goodsInfo.PaddingTop+'px',
'padding-right':goodsInfo.PaddingRight+'px',
'padding-bottom':goodsInfo.PaddingBottom+'px',
'padding-left':goodsInfo.PaddingLeft+'px'
}">
<view class="good-four-study" v-for="(item, gli) in goodsInfo.list" :key="gli" :style="{'borderRadius':goodsInfo.SearchFilletPX+'px'}" @click="openGood(item)">
<view class="img-box">
<image style="width: 100%; height: 100%;" mode="aspectFill" :src="item.picUrl" />
</view>
<view class="good-info">
<view class="good-name" v-if="item.name">{{ item.name }}</view>
<view>
<view style="display:inline-block;padding: 2px 4px;border-radius: 2px;font-size: 10px;color: #FAF8F9;margin-right:5px"
:style="{background:mainColor}" v-for="(subItem,subIndex) in item.lableNameList" :key="subIndex">
{{subItem}}
</view>
</view>
</view>
</view>
</view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view>
</template>
<script>
import goodSku from '../goods/goodsku';
import auth from '@/components/auth/index.vue';
export default {
components: {
auth
},
props: ['goodsInfo'],
data() {
return {
mainColor: '',
showAuth: false,
u: {},
};
},
created() {
this.mainColor = this.$uiConfig.mainColor;
},
mounted(){
},
methods: {
openGood(item) {
this.u = uni.getStorageSync('mall_UserInfo');
if (item.linkUrl) {
uni.navigateTo({
url: item.linkUrl,
});
}
},
reloadUserinfo() {
this.u = uni.getStorageSync('mall_UserInfo');
// this.showAuth = false;
},
//关闭登录窗口
gbAuth() {
this.showAuth = false;
}
}
};
</script>
<style>
.good-four-study {
position: relative;
margin-bottom: 14px;
display: flex;
box-sizing: border-box;
padding: 0 1px 1px 0;
overflow: hidden;
}
.good-four-study:last-child{
margin-bottom:0!important;
}
.good-four-study .img-box {
width: 125px;
height: 70px;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 4px 10px 1px #D2D2D2;
}
.good-four-study .good-info {
padding: 0 12px 12px 12px;
flex: 1;
width: 1rpx;
border: 10rpx;
padding-bottom: 0;
display: flex;
flex-direction: column;
/* width:20%; */
}
.good-four-study .good-info .good-name {
font-size: 13px;
margin-bottom:5px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.good-four-study .good-info .good-price-info {
display: flex;
justify-items: center;
align-items: flex-end;
height: 22px;
flex: 1;
padding-bottom: 10rpx;
}
.good-four-study .good-info .good-price-info .price {
color: #999999;
flex: 1;
font-size: 14px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.good-four-study .good-info .good-price-info .buy {
width: 24px;
text-align: right;
}
</style>
......@@ -580,12 +580,18 @@
"path":"personal/myrecruitstick"//我的招募贴
},{
"path":"richText"//富文本编辑页面
<<<<<<< HEAD
},{
"path":"message"//消息
},{
"path":"visitor"//访客
}
]
=======
},{
"path":"personal/mydate"//我的约会
}]
>>>>>>> 905d1c7b161914cd80dd0125e60e7e1d88d2b3bf
},
//韩国馆项目 { "root": "pages/kotra", "pages": [{ "path": "contanctus" },{ "path": "contanctDetail" },{ "path": "compInformation" },{
"path": "activeInner"
......
......@@ -131,7 +131,7 @@
title: '余额'
});
this.IsShowRecharge = uni.getStorageSync("basedata") ? uni.getStorageSync("basedata").mall.setting.IsShowRecharge:0//完成时打开
this.IsOpenMiAi = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").IsOpenMiAi:0;//是否开启相亲模式
this.IsOpenMiAi = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting.is_show_miai:0;//是否开启相亲模式
},
methods:{
init(){
......
......@@ -51,7 +51,7 @@
title: '充值余额'
});
this.mall_UserInfo = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo"):{};
this.IsOpenMiAi = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").IsOpenMiAi:0;//是否开启相亲模式
this.IsOpenMiAi = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting.is_show_miai:0;//是否开启相亲模式
if(this.IsOpenMiAi==1){
this.showName= '星星'
}
......@@ -86,9 +86,9 @@
this.RechargeMsg.PointGoodsId = item.ID;
},
queren(){
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):'';
let basedata = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting:'';
let url='/api/WeChatPay/GetPointPayInfo'
if(mall_UserInfo.IsOpenMiAi==1){
if(basedata.is_show_miai==1){
url='/api/WeChatPay/GetStarsPayInfo'
}
this.request2({
......
<style>
.details{
display: flex;
flex-direction: column;
padding: 0 15px;
}
.item{
width: 100%;
display: flex;
align-items: flex-start;
margin-top: 20px;
}
.item-left{
width: 80rpx;
height: 80rpx;
position: relative;
}
.item-right{
width: calc(100vw - 30px - 80rpx - 15px);
margin-left: 15px;
font-size: 11px;
color: #666666;
}
.item-r-text{
font-size: 15px;
color: #000000;
font-weight: 400;
}
.r-flex{
width: 100%;
display: flex;
align-items: flex-start;
margin-top: 8px;
}
.r-Remark{
width: 100%;
padding: 13px 12px;
background: #EDEDED;
color: #777777;
border-radius: 6px;
margin-top: 10px;
}
</style>
<template>
<view class="mydate" :style="{ height: contentHeight }">
<u-tabs
:list="list"
:is-scroll="false"
:current="current"
@change="change"
:active-color="mainColor"
></u-tabs>
<u-empty v-if="g.length == 0" text="暂无约会记录" mode="list"></u-empty>
<view
v-if="g.length > 0"
style="
height: calc(100vh);
width: calc(100vw);
overflow: hidden;
"
>
<scroll-view
:scroll-y="true"
:enable-back-to-top="true"
:enable-flex="true"
@scrolltolower="lower"
:style="{ height: '100%' }"
>
<view class="details">
<view class="item" v-for="(x, i) in g" :key="i" >
<view class="item-left">
<u-avatar :src="x.WoManPhoto" v-if="UserId==x.ManId" size="80"></u-avatar>
<u-avatar :src="x.ManPhoto" v-else size="80"></u-avatar>
</view>
<view class="item-right">
<view v-if="UserId==x.ManId" class="item-r-text">{{x.WoManName}}</view>
<view v-else class="item-r-text">{{x.ManName}}</view>
<view class="r-flex">
<u-icon name="clock-o" size="24" ></u-icon>
<text style="margin-left: 5px;">{{x.Time}}</text>
</view>
<view class="r-flex">
<u-icon name="location" :color="mainColor" size="24" ></u-icon>
<text style="margin-left: 5px;">{{x.Address}}</text>
</view>
<view class="r-Remark" >
{{x.Remark!=null && x.Remark !=''?x.Remark:'无'}}
</view>
</view>
</view>
</view>
<u-loadmore
:status="status"
:load-text="loadText"
:font-size="24"
:margin-top="20"
:margin-bottom="20"
bg-color="#FFF"
/>
</scroll-view>
</view>
<!-- 加载中 -->
<view class="loading" v-if="loading">
<u-loading mode="flower" size="48">></u-loading>
<Text style="color: #fff; margin-top: 10rpx;">加载中...</Text>
</view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
</view>
</template>
<script>
import auth from "@/components/auth/index.vue";
export default {
components: {
auth
},
data() {
return {
pageTitle: "我的约会",
showAuth:false,
u:{},
show:false,
current:0,
mainColor: "",
contentHeight: 0,
msg:{
pageIndex: 1,
pageSize:10,
},
page_count: 1,
g: [],
loading: false,
status: "loadmore",
loadText: {
loadmore: "轻轻上拉,加载更多",
loading: "努力加载中",
nomore: "没有更多了",
},
UserId:0,
};
},
created() {
this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
this.mainColor = this.$uiConfig.mainColor;
let UserId = uni.getStorageSync('mall_UserInfo')?uni.getStorageSync('mall_UserInfo').UserId : 0;
this.UserId = UserId
},
mounted() {
let currentPages = getCurrentPages();
let u = "/" + currentPages[currentPages.length - 1].route;
let pages = wx.getStorageSync("basedata")
? wx.getStorageSync("basedata").bar_title
: [];
pages.forEach((x) => {
if (x.value == u) {
this.pageTitle = x.new_name ? x.new_name : x.name;
}
});
uni.setNavigationBarTitle({
title: this.pageTitle,
});
},
onLoad: function (option) {
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
this.init();
}
},
methods: {
init() {
this.request2(
{
url: '/api/AppletMiai/GetMiaiMyDatingPageList',
data: this.msg
},
res => {
if(res.resultCode==1){
this.loading = false;
this.g = this.g.concat(res.data.pageData);
this.page_count = res.data.pageCount;
if (this.page_count == 1) {
this.status = "nomore";
}
}
}
);
},
lower(e) {
if (this.msg.pageIndex < this.page_count) {
this.msg.pageIndex++;
this.status = "loading";
this.init();
} else {
this.status = "nomore";
}
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
// this.showAuth=false;
this.init();
},
//关闭登录窗口
gbAuth(){
uni.navigateBack()
},
},
};
</script>
<style>
.mydate {
width: 100%;
height: 100%;
background: #FFF;
position: relative;
}
</style>
......@@ -12,10 +12,10 @@
<view
v-if="g.length > 0"
style="
height: calc(100vh);
height: calc(100vh - 50px);
width: calc(100vw);
overflow: hidden;
padding-bottom: 50px;
"
>
<scroll-view
......
......@@ -56,16 +56,13 @@
}
.postDetails .activitytime{
width: 100%;
height: 30px;
border-radius: 2px;
margin-top: 15px;
display: flex;
align-items: center;
justify-content: space-between;
background: #F0F0F0;
font-size: 11px;
color: #111111;
padding: 0 15px;
padding: 10px 15px 0;
}
.postDetails .content{
font-size: 13px;
......@@ -283,6 +280,23 @@
align-items: center;
justify-content: center;
}
.details-top{
width: 100%;
height: 223px;
}
.activitytime-item{
width: 100%;
display: flex;
align-items: flex-start;
margin-bottom: 10px;
}
.activitytime-item-l{
width: 220rpx;
color: #666666;
}
</style>
<template>
<view class="postDetails">
......@@ -302,8 +316,11 @@
@scroll='inputscroll'
style="height: 100%;"
>
<view class="details-top">
<image style="width: 100%;height: 100%;" :src="details.ImageList[0]" mode="aspectFill"></image>
</view>
<view class="details">
<view class="details-title">{{details.ActivityTitle}}</view>
<view class="details-title"><text v-if="details.Label!=null&& details.Label!='' " :style="{color:mainColor}">【{{details.Label}}</text>{{details.ActivityTitle}}</view>
<view class="details-info">
<view class="details-info-l">
<view style="width: 35px;height: 35px;border-radius: 50%;position: relative;">
......@@ -318,23 +335,49 @@
</view>
</view>
</view>
<view v-if='details.UserId!=sendMsg.ReplyUserId' class="details-info-r" :style="{background:mainColor}" @click="getfollow(details)">
<view v-if='details.UserId!=UserId' class="details-info-r" :style="{background:mainColor}" @click="getfollow(details)">
{{details.IsFocus==0?'关注':details.IsFocus==1?'已关注':'互相关注'}}
</view>
</view>
<view class="activitytime" v-if='details.IsOpenEnroll==1'>
<text>活动截止时间:{{details.Deadline}}</text>
<text>{{gettime()}}</text>
<view class="activitytime" >
<view class="activitytime-item" v-if='details.IsOpenEnroll==1'>
<view class="activitytime-item-l">
报名截止时间
</view>
<text>{{details.Deadline}}</text>
</view>
<view class="activitytime-item">
<view class="activitytime-item-l">
开始时间
</view>
<text>{{details.StartTime}}</text>
</view>
<view class="activitytime-item">
<view class="activitytime-item-l">
结束时间
</view>
<text>{{details.EndTime}}</text>
</view>
<view class="activitytime-item" v-if='details.IsOpenEnroll==1'>
<view class="activitytime-item-l">
报名人数
</view>
<text>{{details.ManNum}}<text style="margin-left: 10px;">{{details.WoManNum}}</text> </text>
</view>
<view class="activitytime-item" v-if="details.LocationName !=null && details.LocationName!=''">
<view class="activitytime-item-l">
活动地址
</view>
<view style="display: flex;flex-wrap: wrap;">
<u-icon name="location" :color="mainColor" size="30" ></u-icon>
<text style="margin-left: 5px;">{{details.LocationName}}</text>
</view>
</view>
</view>
<view class="content" v-html="details.Content">
<rich-text :nodes="details.Content"></rich-text>
</view>
<!-- <view style="width: 100%;" v-if="details.ImageList.length>0">
<view v-for="(x, i) in details.ImageList" :key="i">
<image :src="x" mode="widthFix" class="imgs" @click="previewImage(i,details.ImageList)"></image>
</view>
</view> -->
<view class="esignup" v-if="details.IsOpenEnroll==1">
<view v-if='Enrollcount==0' style="font-size: 12px;color: #111111;">暂无人报名</view>
<view v-if='Enrollcount>0'>
......@@ -376,7 +419,7 @@
</view>
<view class="pl-left twopl" v-if="x.ReplyList.length>0" @click="showtwo(x)">
<view style="font-size: 11px;color: #333333;margin: 5px 0;" v-for="(item, index) in x.ReplyList" :key="index">
<text :style="{color:mainColor}">{{item.ReplyUserName}}</text>{{item.Content}}
<text :style="{color:mainColor}">{{item.UserName}}</text>{{item.Content}}
</view>
<view v-if="x.ReplyList.length>3" style="font-size: 11px;color: #00C6C1;margin: 5px 0">
查看全部
......@@ -403,9 +446,12 @@
<view class="btn-l" @click="showreply=true">
说点什么呗
</view>
<view class="btn-r" v-if="details.IsOpenEnroll==1" :style="{background:mainColor}" @click="gosigUp()">
<view class="btn-r" v-if="details.IsOpenEnroll==1 && gettime() == true " :style="{background:mainColor}" @click="gosigUp()">
立即报名
</view>
<view class="btn-r" v-if="details.IsOpenEnroll==1 && gettime() == false " >
活动结束
</view>
<view class="btn-r" v-if="details.IsOpenEnroll==2" >
暂无活动
</view>
......@@ -526,15 +572,21 @@
</view>
</view>
</u-popup>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
</view>
</template>
<script>
import auth from "@/components/auth/index.vue";
export default{
components: {
auth
},
data(){
return{
pageTitle: "活动详情",
mainColor: "",
showAuth:false,
msg:{
pageIndex:1,
pageSize:20,
......@@ -576,6 +628,7 @@
ReplyUserId:0,//回复用户id
ImageList:[],//图片列表
},
UserId:0,
show:false,
ParentName:'',
twodata:{},//弹窗的数据
......@@ -608,6 +661,7 @@
}
let UserId = uni.getStorageSync('mall_UserInfo')?uni.getStorageSync('mall_UserInfo').UserId : 0;
this.sendMsg.ReplyUserId = UserId
this.UserId = UserId
},
methods:{
......@@ -624,10 +678,21 @@
richtext = richtext.replace(regex, `<img width="100%"`); //图片超出的处理
this.details.Content = richtext
this.init()//评论列表
if(this.details.IsOpenEnroll==1){
this.GetActivityEnrollPageList()//获取招募贴报名列表
//判断是否登录
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
// this.showAuth = true;
} else{
if(this.details.IsOpenEnroll==1){
this.GetActivityEnrollPageList()//获取招募贴报名列表
}
}
}
);
},
......@@ -679,11 +744,13 @@
}
},
gettime(){//判断 活动是进行还是结束
let text = '进行中';
let type = true
if((new Date()).getTime() >= (new Date(this.details.Deadline)).getTime()){
text = 已结束
type = false
}
return text
return type
},
//图片预览
previewImage(index, images) {
......@@ -696,71 +763,92 @@
this.showreply = false
},
setSend(type=1){
let Id = this.sendMsg.ParentId
uni.showLoading({
title:'发表中~'
})
this.request2(
{
url: '/api/AppletMiai/SgetActivityDiscussInfo',
data: this.sendMsg
},
res => {
uni.hideLoading()
uni.showToast({
title: '发表成功',
icon: 'none',
})
if(type==1){
if(Id == 0){//回复楼主时
this.init(2)
}else{//回复其他用户时 二级评论
this.request2(
{
url: '/api/AppletMiai/GetActivityDiscussPageList',
data: {pageIndex:1,pageSize:20,ActivityId:this.sendMsg.ActivityId,Id:Id}
},
res => {
if(res.resultCode==1){
for(let i =0;i<this.g.length;i++){
if(this.g[i].Id == res.data.pageData[0].Id){
this.g[i] = res.data.pageData[0]
this.$forceUpdate()
return
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
let Id = this.sendMsg.ParentId
uni.showLoading({
title:'发表中~'
})
this.request2(
{
url: '/api/AppletMiai/SgetActivityDiscussInfo',
data: this.sendMsg
},
res => {
uni.hideLoading()
uni.showToast({
title: '发表成功',
icon: 'none',
})
if(type==1){
if(Id == 0){//回复楼主时
this.init(2)
}else{//回复其他用户时 二级评论
this.request2(
{
url: '/api/AppletMiai/GetActivityDiscussPageList',
data: {pageIndex:1,pageSize:20,ActivityId:this.sendMsg.ActivityId,Id:Id}
},
res => {
if(res.resultCode==1){
for(let i =0;i<this.g.length;i++){
if(this.g[i].Id == res.data.pageData[0].Id){
this.g[i] = res.data.pageData[0]
this.$forceUpdate()
return
}
}
}
}
}
);
);
}
}else{
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='';
this.sendMsg.Content = ''
}
}else{
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='';
this.sendMsg.Content = ''
this.initialize()
}
this.initialize()
}
);
);
}
},
getimgs(){
let sendMsg = encodeURIComponent(JSON.stringify(this.sendMsg))
uni.navigateTo({
url: '/pages/blindDate/sendimg?sendMsg=' + sendMsg
})
//判断是否登录
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
let sendMsg = encodeURIComponent(JSON.stringify(this.sendMsg))
uni.navigateTo({
url: '/pages/blindDate/sendimg?sendMsg=' + sendMsg
})
}
},
Children(){
this.initialize()
......@@ -781,6 +869,7 @@
this.sendMsg.Content ='';
this.sendMsg.ParentId =0;
this.sendMsg.ImageList =[];
this.sendMsg.ImageList =0;
this.ParentName='';
this.showreply = false
this.showreply2 = false
......@@ -788,6 +877,8 @@
},
replyone(x,type=1){
this.sendMsg.ParentId = x.Id;
this.sendMsg.ReplyUserId = x.UserId;
this.ParentName = x.UserName;
if(type==1){
......@@ -843,7 +934,7 @@
},
longpress(x,i,type){
if(this.sendMsg.ReplyUserId == this.details.UserId || this.sendMsg.ReplyUserId == x.UserId ){
if(this.UserId == this.details.UserId || this.UserId == x.UserId ){
this.delete.DiscussId = x.Id
this.delete.Copycontent = x.Content
this.delete.index = i
......@@ -881,14 +972,24 @@
);
},
gosigUp(){//报名页面
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
let details = encodeURIComponent(JSON.stringify(this.details))
uni.navigateTo({
url: '/pages/blindDate/stickSignUp?details=' + details
})
}
},
gobmlist(){//查看当前活动的报名列表
let type =0
if(this.details.UserId==this.sendMsg.ReplyUserId){//如果是自己看自己的招募贴
if(this.details.UserId==this.UserId){//如果是自己看自己的招募贴
type =1
}
uni.navigateTo({
......@@ -896,35 +997,45 @@
})
},
getfollow(x){
let ID=0
if(x.IsFocus!=0){
ID = x.MyFollowId
}
this.request2({
url: '/api/AppletMiai/GetFollowMember',
data: {
ID:ID,
UserId:x.UserId,
}
},
res => {
uni.showToast({
title:res.message,
icon:'none'
})
this.request2(
{
url: '/api/AppletMiai/GetActivityInfo',
data: {ActivityId:this.msg.ActivityId}
},
res => {
this.details = res.data
}
);
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
let ID=0
if(x.IsFocus!=0){
ID = x.MyFollowId
}
);
this.request2({
url: '/api/AppletMiai/GetFollowMember',
data: {
ID:ID,
UserId:x.UserId,
}
},
res => {
uni.showToast({
title:res.message,
icon:'none'
})
this.request2(
{
url: '/api/AppletMiai/GetActivityInfo',
data: {ActivityId:this.msg.ActivityId}
},
res => {
this.details = res.data
}
);
}
);
}
},
keyboardheightchange(e){
console.log(e.detail.height)
......@@ -932,7 +1043,14 @@
that.oneheight=e.detail.height-1;
that.$forceUpdate()
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
// this.showAuth=false;
},
//关闭登录窗口
gbAuth(){
this.showAuth = false;
},
}
}
......
......@@ -113,7 +113,8 @@
<view class="postPublishing" :style="{ height: contentHeight }">
<view class="box">
<view class="box-top" @click="scimg()">
<view class="box-top-z" :style="{background:addMsg.ImageList.length>0?'rgba(17, 17, 17, 0.2)':'transparent'}">
<image :src="addMsg.ImageList[0]" style="width: 100%;height: 100%;" mode="aspectFill"></image>
<view class="box-top-z" :style="{'background':addMsg.ImageList.length>0?'rgba(17, 17, 17, 0.2)':'transparent'}">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/blind_xj.png" style="width: 40px;height: auto;" mode="widthFix"></image>
</view>
......@@ -126,6 +127,22 @@
<u-icon name="arrow" color="#A5A4AC" size="30" ></u-icon>
</view>
</view>
<view class="box-item" style="justify-content: space-between;" >
<text style="font-size:12px;color: #666666;">主题</text>
<view class="flex-row">
<input type="text" v-model="addMsg.ActivityTitle" :min='0' placeholder="活动标题" style="font-size: 12px;text-align: right;">
</view>
</view>
<view class="box-item" style="justify-content: space-between;" >
<text style="font-size:12px;color: #666666;">标签</text>
<view class="flex-row">
<input type="text" v-model="addMsg.Label" :min='0' :maxlength="6" placeholder="活动标签" style="font-size: 12px;text-align: right;margin-right: 5px;">
<text style="color: #999999;font-size: 10px;">
{{addMsg.Label.length}}/6
</text>
</view>
</view>
<view class="box-item" style="justify-content: space-between;" >
<text style="font-size:12px;color: #666666;">是否开启报名</text>
<view class="flex-row">
......@@ -144,7 +161,7 @@
</u-radio-group>
</view>
</view>
<view class="box-item" style="justify-content: space-between;" v-if="addMsg.IsOpenEnroll==1" @click="showtime = true">
<view class="box-item" style="justify-content: space-between;" v-if="addMsg.IsOpenEnroll==1" @click="showtime = true,defaulttime= addMsg.Deadline,timetype=1">
<text style="font-size:12px;color: #666666;">报名截止日期</text>
<view class="flex-row">
<text style="margin-right: 5px;font-size:12px;color: #999999" v-if="addMsg.Deadline==''">请选择时间</text>
......@@ -152,11 +169,19 @@
<u-icon name="arrow" color="#A5A4AC" size="30" ></u-icon>
</view>
</view>
<view class="box-item" style="justify-content: space-between;" v-if="addMsg.IsOpenEnroll==1" @click="showtime = true">
<text style="font-size:12px;color: #666666;">活动时间</text>
<view class="box-item" style="justify-content: space-between;" @click="showtime = true,defaulttime= addMsg.StartTime,timetype=2">
<text style="font-size:12px;color: #666666;">活动开始时间</text>
<view class="flex-row">
<text style="margin-right: 5px;font-size:12px;color: #999999" v-if="addMsg.StartTime==''">请选择活动开始时间</text>
<text style="margin-right: 5px;font-size:12px;color: #111111" v-else>{{addMsg.StartTime}}</text>
<u-icon name="arrow" color="#A5A4AC" size="30" ></u-icon>
</view>
</view>
<view class="box-item" style="justify-content: space-between;" @click="showtime = true,defaulttime= addMsg.EndTime,timetype=3">
<text style="font-size:12px;color: #666666;">活动结束时间</text>
<view class="flex-row">
<text style="margin-right: 5px;font-size:12px;color: #999999" v-if="addMsg.Deadline==''">请选择活动</text>
<text style="margin-right: 5px;font-size:12px;color: #111111" v-else>{{addMsg.StartTime}}-{{addMsg.EndTime}}</text>
<text style="margin-right: 5px;font-size:12px;color: #999999" v-if="addMsg.EndTime==''">请选择活动结束时间</text>
<text style="margin-right: 5px;font-size:12px;color: #111111" v-else>{{addMsg.EndTime}}</text>
<u-icon name="arrow" color="#A5A4AC" size="30" ></u-icon>
</view>
</view>
......@@ -174,25 +199,18 @@
</view>
</view>
<view class="box-item" style="justify-content: space-between;" >
<text style="font-size:12px;color: #666666;">主题</text>
<view class="flex-row">
<input type="text" v-model="addMsg.ActivityTitle" :min='0' placeholder="活动标题" style="font-size: 12px;text-align: right;">
</view>
</view>
<view class="box-item" style="justify-content: space-between;" >
<text style="font-size:12px;color: #666666;">标签</text>
<view class="box-item" style="justify-content: space-between;" @click="getAddress()">
<text style="font-size:12px;color: #666666;">所在位置</text>
<view class="flex-row">
<input type="text" v-model="addMsg.Label" :min='0' :maxlength="6" placeholder="活动标签" style="font-size: 12px;text-align: right;margin-right: 5px;">
<text style="color: #999999;">
{{addMsg.Label.length}}/6
</text>
<u-icon name="location" :color="mainColor" size="30" ></u-icon>
<text style="max-width: calc(100vw - 70px - 40px);white-space: nowrap;text-overflow: ellipsis;overflow: hidden;margin-right: 5px;">{{addMsg.LocationName!=''?addMsg.LocationName:'无'}}</text>
<u-icon name="arrow" color="#A5A4AC" size="30" ></u-icon>
</view>
</view>
<view class="box-item">
<!-- <view class="box-item">
<input type="text" v-model="addMsg.ActivityTitle" placeholder="请将标题写在这里~" style="width: 100%;">
</view>
</view> -->
<view style="height: 135px;width: 100%;padding: 15px 0;" @click="gorichText">
<view v-html='addMsg.Content' v-if="addMsg.Content!=''" style="width: 100%;height: 100px;overflow: hidden;"></view>
<view v-else style="color: #999999;font-size: 14px;">详情描述</view>
......@@ -222,7 +240,7 @@
<u-icon name="cross" color="#555" size="40" @click='show=false'></u-icon>
</view>
<view style="display: flex;flex-direction: column;align-items: center;margin-top: 10px;">
<view style="font-size: 20px;color: #111111;font-weight: 400; ">选择你感兴趣的话题</view>
<view style="font-size: 20px;color: #111111;font-weight: 400; ">选择你感兴趣的贴吧</view>
<view style="font-size: 13px;color: #999999;margin: 10px 0;">贴吧只能选择一个,发布前可更改</view>
</view>
......@@ -235,7 +253,7 @@
</scroll-view>
</view>
</u-popup>
<u-picker v-model="showtime" mode="time" @confirm='confirm' :params="params" :default-time='addMsg.Deadline'></u-picker>
<u-picker v-model="showtime" mode="time" @confirm='confirm' :params="params" :default-time='defaulttime'></u-picker>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
</view>
</template>
......@@ -286,6 +304,8 @@ export default {
kqlist:[{id:1,name:'开启'},{id:2,name:'不开启'}],
ForumName:'',
action: this.host2 + "/api/File/UploadTencent",
timetype:0,
defaulttime:'',
};
},
created() {
......@@ -364,26 +384,43 @@ export default {
let time = val.year + '-' + val.month + '-' + val.day +' ' + val.hour + ':' + val.minute + ':' + val.second;
if((new Date()).getTime() >= (new Date(time)).getTime()){
uni.showToast({
title: '截止时间需要大于当前时间',
title: '时间需要大于当前时间',
icon: 'none',
duration: 2500
})
}else{
this.addMsg.Deadline = time
if(this.timetype==3 && ((new Date(this.addMsg.StartTime)).getTime() >= (new Date(time)).getTime())){
uni.showToast({
title: '结束时间大于开始时间',
icon: 'none',
duration: 2500
})
}else{
if(this.timetype==1){
this.addMsg.Deadline = time
}else if(this.timetype==2){
this.addMsg.StartTime = time
}else if(this.timetype==3){
this.addMsg.EndTime = time
}
}
}
},
releasebtn(){
if(this.addMsg.ForumId == 0){
if(this.addMsg.ImageList.length == 0){
uni.showToast({
title: '请选择分类板块',
title: '请上传招募贴图片',
icon: 'none',
})
return
}
if(this.addMsg.ActivityTitle == ''){
uni.showToast({
title: '编辑不能为空',
title: '主题不能为空',
icon: 'none',
})
return
......@@ -395,20 +432,29 @@ export default {
})
return
}
if(this.addMsg.IsOpenEnroll==1 && this.addMsg.Deadline == ''){
if(this.addMsg.StartTime == ''){
uni.showToast({
title: '请选择报名截止时间',
title: '请选择活动开始时间',
icon: 'none',
})
return
}
if(this.addMsg.ImageList.length == 0){
if(this.addMsg.EndTime == ''){
uni.showToast({
title: '请上传招募贴图片',
title: '请选择活动结束时间',
icon: 'none',
})
return
}
if(this.addMsg.IsOpenEnroll==1 && this.addMsg.Deadline == ''){
uni.showToast({
title: '请选择报名截止时间',
icon: 'none',
})
return
}
this.disbth = true
let pages = getCurrentPages(); // 当前页面
......@@ -454,8 +500,119 @@ export default {
this.addMsg.Content = e
},
scimg(){
}
let chooseFile = null;
chooseFile = new Promise((resolve, reject) => {
uni.chooseImage({
count: 1,
success: resolve,
fail: reject
});
});
chooseFile
.then((res_c)=>{
// 创建上传对象
uni.compressImage({
src: res_c.tempFilePaths[0],
quality: 80,
success: res_cp => {
const task = uni.uploadFile({
url: this.action,
filePath: res_cp.tempFilePath,
name: 'file',
formData: {
user: 'test'
},
success: (res) => {
let data = JSON.parse(res.data)
console.log(data)
if(this.addMsg.ImageList.length>0){
this.addMsg.ImageList[0] = data.data
}else{
this.addMsg.ImageList.push(data.data)
}
},
fail: (e) => {
console.log(e)
},
});
task.onProgressUpdate((res) => {
});
}
})
})
.catch(error => {
// this.$emit('on-error', error);
});
},
//打开地图
getAddress() {
let that = this;
uni.chooseLocation({
success: function(res) {
that.addMsg.LocationName = res.name;
that.addMsg.LonLat = res.longitude + ',' + res.latitude;
},
fail: function(err) {
that.fetchAgainLocation()
}
});
},
//重新提示用户打开设置对地图授权
fetchAgainLocation() {
let that = this
wx.getSetting({
success: (res) => {
var statu = res.authSetting;
if (!statu['scope.userLocation']) {
wx.showModal({
title: '是否授权当前位置',
content: '需要获取您的地理位置,请确认授权,否则地图功能将无法使用',
success: (tip) => {
if (tip.confirm) {
console.log(tip)
wx.openSetting({
success: (data) => {
console.log(data)
if (data.authSetting["scope.userLocation"] === true) {
wx.showToast({
title: '授权成功',
icon: 'success',
duration: 1000
})
if (that.latitude != '' && that.longitude != '') {
that.getAddress()
} else {
that.getAddress()
}
} else {
wx.showToast({
title: '授权失败',
duration: 1000
})
}
},
fail: (err) => {
console.log(err)
},
complete: () => {}
});
}
}
})
}
},
fail: () => {},
complete: () => {}
})
},
},
......
......@@ -38,7 +38,9 @@
<image class="gstyle" v-if="x.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv-b.png" ></image>
</view>
<view style="margin-left: 5px;display: flex;flex-direction: column;height: 30px;justify-content: space-between;">
<text style="width: calc(100vw - 75px - 310rpx);overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size: 12px;color: #111111;">{{x.UserName}}</text>
<text style="width: calc(100vw - 75px - 310rpx);overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size: 12px;color: #111111;">
{{x.UserName}}
</text>
<view style="display: flex;align-items: center;font-size: 10px;color: #858687;">
<text>报名{{x.EnrollNum}}</text>
<text style="margin-left: 5px;">{{x.ReplyNum}}留言</text>
......@@ -53,7 +55,9 @@
<!-- 大图模式 -->
<view v-if="showtype==2" class="maxbox" @click="gopostdetails(x)">
<image :src="x.ImageList[0]" mode="aspectFill" style="width: 100%;height: 410rpx;border-radius: 15px;"></image>
<view style="width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size: 16px;color: #111111;padding-top: 15px;">{{x.ActivityTitle}}</view>
<view style="width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size: 16px;color: #111111;padding-top: 10px;">
<text v-if="x.Label!=null && x.Label!=''" :style="{color:mainColor}">【{{x.Label}}</text>
{{x.ActivityTitle}}</view>
<view class="max-b">
<view style="width: 35px;height: 35px;border-radius: 15px;position: relative;">
<image :src="x.Photo" style="width: 100%;height: 100%;border-radius: 15px;"></image>
......@@ -61,13 +65,17 @@
<image class="gstyle" v-if="x.Sex==2" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/basic-nv-b.png" ></image>
</view>
<view style="margin-left: 10px;display: flex;flex-direction: column;height: 35px;justify-content: space-between;">
<text style="width: calc(100vw - 75px);overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size: 14px;color: #111111;">{{x.UserName}}</text>
<text style="width: calc(100vw - 75px);overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size: 14px;color: #111111;">
{{x.UserName}}
</text>
<view style="display: flex;align-items: center;justify-content: space-between;font-size: 11px;color: #858687;">
<view style="display: flex;align-items: center;">
<text>报名{{x.EnrollNum}}</text>
<text style="margin-left: 5px;">{{x.ReplyNum}}留言</text>
<text v-if="x.IsOpenEnroll==1" style="margin-right: 5px;">报名{{x.EnrollNum}}</text>
<text >{{x.ReplyNum}}留言</text>
</view>
<text v-if="x.IsOpenEnroll==1">{{x.Deadline}}截止</text>
<text v-if="x.IsOpenEnroll==2">创建时间:{{x.CreateDate}}</text>
</view>
</view>
</view>
......@@ -136,7 +144,7 @@ export default {
nomore: "没有更多了",
},
forumList:[],
showtype:2,
showtype:2,//好像这里没配置了 直接显示的大图模式
};
},
created() {
......@@ -165,10 +173,11 @@ export default {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
// this.showAuth = true;
} else{
this.GetForumList()
}
this.GetForumList()
},
methods: {
......@@ -242,9 +251,19 @@ export default {
}
},
gopublishing(){//发帖
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
uni.navigateTo({
url: '/pages/blindDate/postPublishing'
})
}
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
......@@ -253,7 +272,7 @@ export default {
},
//关闭登录窗口
gbAuth(){
uni.navigateBack()
this.showAuth = false;
},
gopostdetails(x){//招募贴的
uni.navigateTo({
......@@ -352,6 +371,6 @@ export default {
height: 35px;
display: flex;
align-items: center;
margin-top: 15px;
margin-top: 10px;
}
</style>
......@@ -79,11 +79,11 @@
<view class="box-c-l">联系电话</view>
<input type="number" v-model="addMsg.Mobile" placeholder="请填写联系电话">
</view>
<view class="box-c-i">
<!-- <view class="box-c-i">
<view class="box-c-l">报名人数</view>
<u-number-box v-model="addMsg.PeopleNum" :min='1' @change="valChange"></u-number-box>
</view>
</view> -->
<view class="box-c-i">
<view class="box-c-l">备注</view>
<input type="text" v-model="addMsg.Remark" placeholder="请填写备注内容">
......
......@@ -448,7 +448,7 @@
created() {
this.is_bang = this.$uiConfig.is_bang ? 85 : 52;
this.contentHeight = this.$utils.calcContentHeight(-40) + "px";
this.IsOpenMiAi = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").IsOpenMiAi:0;//是否开启相亲模式
this.IsOpenMiAi = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting.is_show_miai:0;//是否开启相亲模式
this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary;
this.pricecolor = this.$uiConfig.pricecolor;
......@@ -493,17 +493,26 @@
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
};
if(this.IsOpenMiAi ==0){
this.showAuth = true;
}
} else {
this.init();
}
if(this.IsOpenMiAi ==1){
this.init();
}
},
onShow(){
if (!this.u) {
} else {
this.getDMCount();
if(this.IsOpenMiAi ==0){
this.getDMCount();
}
}
},
......@@ -513,9 +522,9 @@
methods: {
init() {
this.loading = true;
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):'';
let basedata = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting:'';
let url='/api/AppletSchool/GetDynamicList'
if(mall_UserInfo.IsOpenMiAi==1){
if(basedata.is_show_miai==1){
url='/api/AppletSchool/GetMiAiDynamicList'
}
this.request2({
......@@ -536,7 +545,10 @@
this.status = "nomore";
}
}
this.getDMCount()
if(this.IsOpenMiAi ==0){
this.getDMCount()
}
}
);
},
......@@ -603,9 +615,21 @@
},
//关闭登录窗口
gbAuth() {
uni.navigateBack()
this.showAuth = false
},
getdian(x, i) { //点击点点
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else {
if(this.dianindex == i){
this.g[i].dianshow = !this.g[i].dianshow;
this.dianindex = i
......@@ -613,9 +637,11 @@
this.g[this.dianindex].dianshow =false;
this.g[i].dianshow = !this.g[i].dianshow;
this.dianindex = i
}
}
this.$forceUpdate()
}
this.$forceUpdate()
},
dianzan(x, i) { //点赞
this.choiceId = x.id;
......@@ -727,29 +753,42 @@
}
);
},
addComment() {
if (this.commentMsg.Content == '') {
uni.showToast({
title: '请输入评论',
icon: 'none',
duration: 2000
});
return
addComment() {
this.u = uni.getStorageSync("mall_UserInfo");
console.log(this.u)
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else {
if (this.commentMsg.Content == '') {
uni.showToast({
title: '请输入评论',
icon: 'none',
duration: 2000
});
return
}
this.request2({
url: '/api/AppletEducation/GetDynamicComment',
data: this.commentMsg
},
res => {
if (res.resultCode == 1) {
this.focu = false;
this.commentMsg.Content = '';
this.placeholder = '评论';
this.init2(2)
}
}
);
}
this.request2({
url: '/api/AppletEducation/GetDynamicComment',
data: this.commentMsg
},
res => {
if (res.resultCode == 1) {
this.focu = false;
this.commentMsg.Content = '';
this.placeholder = '评论';
this.init2(2)
}
}
);
},
init2(type) { //根据id去查询当前的数据 只更新当前数据
......@@ -821,9 +860,18 @@
}
},
btnclick(item) {//跳入发布
uni.navigateTo({
url: '/pages/friendcircle/release'
})
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else {
uni.navigateTo({
url: '/pages/friendcircle/release'
})
}
innerAudioContext.stop();
},
......
......@@ -385,9 +385,9 @@
if(type==1){//第一次进来判断
this.loading = true;
}
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):'';
let basedata = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting:'';
let url='/api/AppletEducation/GetDynamicDetial'
if(mall_UserInfo.IsOpenMiAi && mall_UserInfo.IsOpenMiAi==1){
if(basedata.is_show_miai==1){
url='/api/AppletMiai/GetMiAiDynamicDetial'
}
this.request2({
......
......@@ -510,9 +510,9 @@
title: '发布中...'
})
console.log(this.addMsg)
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):'';
let basedata = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting:'';
let url='/api/AppletEducation/GetPublishDynamic'
if(mall_UserInfo.IsOpenMiAi==1){
if(basedata.is_show_miai==1){
url='/api/appletmiai/GetPublishDynamic'
}
this.request2({
......
......@@ -18,7 +18,7 @@
<u-icon name="arrow-left" size="44"></u-icon>
</view>
</view>
<view @click='yj' style="width: 200px;height: 50px;">活动</view>
<!-- <view @click='yj' style="width: 200px;height: 50px;">活动</view> -->
<u-tabs v-if="myPageData.home_pages && myPageData.home_pages.navs.length > 1" name="name" :list="myPageData.home_pages.navs"
:is-scroll="true" :active-color="mainColor" :current="active" :bar-width="80" :font-size="32" :bold="false" @change="changeHandler"></u-tabs>
<template v-for="(item, i) in myPageData.home_pages.navs">
......@@ -63,6 +63,8 @@
<matchmaking v-if="d.id == 'miaiuser'" :navs="d.data" :key="di"></matchmaking>
<!-- 相亲活动 -->
<miaiactivitytype v-if="d.id == 'miaiactivitytype'" :goods="d.data"></miaiactivitytype>
<!-- 相亲活动自定义 -->
<miaiactivityCustom v-if="d.id == 'miaiactivityCustom'" :goods="d.data"></miaiactivityCustom>
</template>
</view>
......@@ -123,7 +125,7 @@
import navpage from "@/components/navpage/index";
import matchmaking from "@/components/matchmaking/index"
import miaiactivitytype from "@/components/miaiactivitytype/index"
import miaiactivityCustom from "@/components/miaiactivityCustom/index"
const innerAudioContext = uni.createInnerAudioContext();
export default {
data() {
......@@ -194,7 +196,8 @@
educationteacher,
navpage,
matchmaking,
miaiactivitytype
miaiactivitytype,
miaiactivityCustom
},
onLoad(options) {
let that = this;
......@@ -1130,8 +1133,12 @@
yj(){
uni.navigateTo({
<<<<<<< HEAD
// url: '/pages/blindDate/message'
url: '/pages/blindDate/visitor'
=======
url: '/pages/blindDate/personal/mydate'
>>>>>>> 905d1c7b161914cd80dd0125e60e7e1d88d2b3bf
})
}
},
......
......@@ -186,7 +186,7 @@
uni.setNavigationBarTitle({
title: this.pageTitle,
});
this.IsOpenMiAi = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").IsOpenMiAi:0;//是否开启相亲模式
this.IsOpenMiAi = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting.is_show_miai:0;//是否开启相亲模式
this.mainColor = this.$uiConfig.mainColor;
},
onLoad(option) {
......
......@@ -171,7 +171,7 @@
uni.setNavigationBarTitle({
title: this.pageTitle,
});
this.IsOpenMiAi = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").IsOpenMiAi:0;//是否开启相亲模式
this.IsOpenMiAi = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting.is_show_miai:0;//是否开启相亲模式
this.mainColor = this.$uiConfig.mainColor;
},
onLoad(option) {
......
......@@ -4,7 +4,8 @@ export default {
// Vue.prototype.host2 = "http://192.168.0.110:8200"
// Vue.prototype.host2 = "https://mallApi.oytour.com"
// Vue.prototype.host2 = "http://192.168.1.5:8088"
Vue.prototype.host2 = "http://192.168.1.13:8088"
Vue.prototype.host2 = "http://192.168.1.48:8019"
// Vue.prototype.host2 = "http://192.168.1.13:8088"
// Vue.prototype.host2 = "http://testmall.oytour.com/"
Vue.prototype.request = function(param, success, failed) {
......@@ -171,6 +172,13 @@ export default {
MallBaseId: 11,
};
break;
case 9:
appObj = {//罗演的杂货铺
AppId: '',
TenantId: 20,
MallBaseId: 10,
};
break;
}
return appObj;
}
......
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