|
@@ -20,10 +20,13 @@
|
|
|
<view class="list" v-if="officeList && officeList.length > 0">
|
|
<view class="list" v-if="officeList && officeList.length > 0">
|
|
|
<view class="li" v-for="(item, index) in officeList" :key="index">
|
|
<view class="li" v-for="(item, index) in officeList" :key="index">
|
|
|
<view class="user ddflex" @click="jumpUrl('/topics/home/home?userId=' + item.userDTO.id)">
|
|
<view class="user ddflex" @click="jumpUrl('/topics/home/home?userId=' + item.userDTO.id)">
|
|
|
- <image :src="item.userDTO.avatar" mode="aspectFill" class="userimg"></image>
|
|
|
|
|
|
|
+ <image :src="item.userDTO.avatar?item.userDTO.avatar:'/static/images/def_head.png'" mode="aspectFill" class="userimg"></image>
|
|
|
<view class="fflex">
|
|
<view class="fflex">
|
|
|
<view class="namea ddflex">
|
|
<view class="namea ddflex">
|
|
|
- <view class="name fflex ddflex">{{ item.userDTO.nickName }}<image src="../../static/images/vip_tag.png" class="vip-tag" v-if="item.userDTO.levelGrade > 0"></image></view>
|
|
|
|
|
|
|
+ <view class="name fflex ddflex">{{ item.userDTO.nickName }}
|
|
|
|
|
+ <!-- <image src="../../static/images/vip_tag.png" class="vip-tag" v-if="item.userDTO.levelGrade > 0"></image> -->
|
|
|
|
|
+ <image v-if="item.userDTO.isOpenWeRunData" style="width:15rpx;height:20rpx;margin-left: 10rpx;" src="../../static/images/yd.png"></image>
|
|
|
|
|
+ </view>
|
|
|
<view class="time">{{ item.time }}</view>
|
|
<view class="time">{{ item.time }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="area" v-if="item.userDTO.cityName">{{ item.userDTO.provinceName }} {{ item.userDTO.cityName }}</view>
|
|
<view class="area" v-if="item.userDTO.cityName">{{ item.userDTO.provinceName }} {{ item.userDTO.cityName }}</view>
|
|
@@ -75,36 +78,65 @@
|
|
|
</block>
|
|
</block>
|
|
|
<view class="vote-can" v-if="item.qyPoll.isEnd"><text>{{item.qyPoll.voteCount}}人参与</text>投票已结束</view>
|
|
<view class="vote-can" v-if="item.qyPoll.isEnd"><text>{{item.qyPoll.voteCount}}人参与</text>投票已结束</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="product" v-if="item.products && item.products.length > 0">
|
|
|
|
|
- <view scroll-x="true" class="pro-view pro-view1" v-if="item.products.length == 1">
|
|
|
|
|
- <view class="lis" v-for="(it, idx) in item.products" :key="idx" @click="toProductDetail(it)">
|
|
|
|
|
- <view class="ddflex">
|
|
|
|
|
- <image :src="it.pic + '?x-oss-process=style/w375'" mode="aspectFill" class="pic"></image>
|
|
|
|
|
- <view class="fflex">
|
|
|
|
|
- <view class="title tover">{{ it.title }}</view>
|
|
|
|
|
- <view class="opts ddflex">
|
|
|
|
|
- <view class="money"><text>¥</text>{{ it.salePrice }}</view>
|
|
|
|
|
- <view class="pro-btn"><image src="../../static/pages/images/n_cart.png"></image></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <block v-if="item.type==10||item.type==11">
|
|
|
|
|
+ <view v-if="item.type==10" class="ddflex step-box" style="justify-content: space-between;" @click="jumpUrl('/exercise/record/record?userId=' + item.userId)">
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <view class="step-date">{{item.wxRun.step}}</view>
|
|
|
|
|
+ <view class="step-label">步数</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <view class="step-date">{{item.wxRun.index}}</view>
|
|
|
|
|
+ <view class="step-label" style="text-align: right;">名次</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-if="item.type==11" class="ddflex step-box" style="justify-content: space-between;" @click="jumpUrl('/match/activityDetail/activityDetail?id=' + item.matchContent.id)">
|
|
|
|
|
+ <image class="step-pic" :src="item.matchContent.pic" mode="aspectFill"></image>
|
|
|
|
|
+ <view class="fflex">
|
|
|
|
|
+ <view class="step-title tovers">{{item.matchContent.title}}</view>
|
|
|
|
|
+ <view class="ddflex" style="justify-content: space-between;margin-top: 10rpx;">
|
|
|
|
|
+ <view class="step-price">{{item.matchContent.endTime}}</view>
|
|
|
|
|
+ <view class="step-btn">查看</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <scroll-view scroll-x="true" class="pro-view" v-else>
|
|
|
|
|
- <view class="lis" v-for="(it, idx) in item.products" :key="idx" @click="toProductDetail(it)">
|
|
|
|
|
- <view class="ddflex">
|
|
|
|
|
- <image :src="it.pic + '?x-oss-process=style/w375'" mode="aspectFill" class="pic"></image>
|
|
|
|
|
- <view class="fflex">
|
|
|
|
|
- <view class="title tover">{{ it.title }}</view>
|
|
|
|
|
- <view class="opts ddflex">
|
|
|
|
|
- <view class="money"><text>¥</text>{{ it.salePrice }}</view>
|
|
|
|
|
- <view class="pro-btn"><image src="../../static/pages/images/n_cart.png"></image></view>
|
|
|
|
|
|
|
+ </block>
|
|
|
|
|
+ <view v-if="item.userGroupId" class="ddflex step-box" style="padding: 25rpx 21rpx;" @click="jumpUrl('/office/team/index?id=' + item.userGroupId)">
|
|
|
|
|
+ <image style="width: 24rpx;height: 24rpx;margin-right: 13rpx;" src="../../static/images/link.png"></image>
|
|
|
|
|
+ <view style="font-weight: 500;color: #999999;">Team:</view>
|
|
|
|
|
+ <view>{{item.userGroupTitle}}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <block v-else>
|
|
|
|
|
+ <view class="product" v-if="item.products && item.products.length > 0">
|
|
|
|
|
+ <view scroll-x="true" class="pro-view pro-view1" v-if="item.products.length == 1">
|
|
|
|
|
+ <view class="lis" v-for="(it, idx) in item.products" :key="idx" @click="toProductDetail(it)">
|
|
|
|
|
+ <view class="ddflex">
|
|
|
|
|
+ <image :src="it.pic + '?x-oss-process=style/w375'" mode="aspectFill" class="pic"></image>
|
|
|
|
|
+ <view class="fflex">
|
|
|
|
|
+ <view class="title tover">{{ it.title }}</view>
|
|
|
|
|
+ <view class="opts ddflex">
|
|
|
|
|
+ <view class="money"><text>¥</text>{{ it.salePrice }}</view>
|
|
|
|
|
+ <view class="pro-btn"><image src="../../static/pages/images/n_cart.png"></image></view>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- </scroll-view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <scroll-view scroll-x="true" class="pro-view" v-else>
|
|
|
|
|
+ <view class="lis" v-for="(it, idx) in item.products" :key="idx" @click="toProductDetail(it)">
|
|
|
|
|
+ <view class="ddflex">
|
|
|
|
|
+ <image :src="it.pic + '?x-oss-process=style/w375'" mode="aspectFill" class="pic"></image>
|
|
|
|
|
+ <view class="fflex">
|
|
|
|
|
+ <view class="title tover">{{ it.title }}</view>
|
|
|
|
|
+ <view class="opts ddflex">
|
|
|
|
|
+ <view class="money"><text>¥</text>{{ it.salePrice }}</view>
|
|
|
|
|
+ <view class="pro-btn"><image src="../../static/pages/images/n_cart.png"></image></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </scroll-view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </block>
|
|
|
<view class="opt ddflex" v-if="!item.source">
|
|
<view class="opt ddflex" v-if="!item.source">
|
|
|
<view class="fflex" @click="jumpUrlDetail(item)">{{fomatNumbers(item.count.browseCount)}}次浏览</view>
|
|
<view class="fflex" @click="jumpUrlDetail(item)">{{fomatNumbers(item.count.browseCount)}}次浏览</view>
|
|
|
<view class="ddflex" @click="submitFabulous(2, item.id, index)">
|
|
<view class="ddflex" @click="submitFabulous(2, item.id, index)">
|
|
@@ -130,16 +162,28 @@
|
|
|
</block>
|
|
</block>
|
|
|
<block v-if="currentTab == 2">
|
|
<block v-if="currentTab == 2">
|
|
|
<view class="team-list">
|
|
<view class="team-list">
|
|
|
- <view class="li ddflex" v-for="(item,index) in teamList" :key="index" @click="jumpUrl('/office/team/index?id='+item.id)">
|
|
|
|
|
- <image :src="item.url?item.url:picUrlss+'office_images/team_default.png'" mode="aspectFill" class="team-img"></image>
|
|
|
|
|
- <view class="fflex">
|
|
|
|
|
- <view class="team-tit tover">{{item.title}}</view>
|
|
|
|
|
- <view class="team-sta">
|
|
|
|
|
- <text>{{item.memberNum}}成员</text>
|
|
|
|
|
- <text>{{item.momentsNum}}帖子</text>
|
|
|
|
|
|
|
+ <view v-for="(item,index) in teamList" :key="index">
|
|
|
|
|
+ <view class="li ddflex" @click="jumpUrl('/office/team/index?id='+item.id)">
|
|
|
|
|
+ <image :src="item.url?item.url:picUrlss+'office_images/team_default.png'" mode="aspectFill" class="team-img"></image>
|
|
|
|
|
+ <view class="fflex">
|
|
|
|
|
+ <view class="ddflex">
|
|
|
|
|
+ <view class="team-tit tover" style="max-width: calc(100% - 80rpx);">{{item.title}}</view>
|
|
|
|
|
+ <view v-if="item.relationMatch" style="margin-left: 10rpx; width: 60rpx;line-height: 29rpx;font-size: 20rpx;color: #FFFFFF;background: linear-gradient(56deg, #FF7000 0%, #FF9100 100%);border-radius: 5rpx;text-align: center;">赛事</view>
|
|
|
|
|
+ <view v-else style="margin-left: 10rpx;width: 60rpx;line-height: 29rpx;font-size: 20rpx;color: #FFFFFF;background: linear-gradient(48deg, #5190FF 0%, #78A9FF 100%);border-radius: 5rpx;text-align: center;">社区</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="team-sta">
|
|
|
|
|
+ <text>{{item.memberNum}}成员</text>
|
|
|
|
|
+ <text>{{item.momentsNum}}帖子</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="join-btn" @click.stop="joinTeam(item,index)">{{item.isJoin == 1 ? '已加入':'加入'}}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-if="item.relationMatch" class="ddflex"
|
|
|
|
|
+ style="background: #F7F8FC;border-radius: 10rpx;padding: 18rpx 20rpx;margin-top: 20rpx;margin-left: 96rpx;color: #999;font-size: 24rpx;"
|
|
|
|
|
+ @click="jumpUrl('/pages/main/show/show?id='+item.relationMatch.id)">
|
|
|
|
|
+ 来自
|
|
|
|
|
+ <view class="fflex tover" style="color: var(--main);">{{item.relationMatch.title}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="join-btn" @click.stop="joinTeam(item,index)">{{item.isJoin == 1 ? '已加入':'加入'}}</view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="nodata" v-if="isNoData">
|
|
<view class="nodata" v-if="isNoData">
|
|
@@ -458,6 +502,12 @@
|
|
|
})
|
|
})
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
+ if(item.relationMatch){
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/pages/main/show/show?id='+item.relationMatch.id
|
|
|
|
|
+ })
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
req.postRequest(api.user_team_follow,{userGroupId: item.id},data=>{
|
|
req.postRequest(api.user_team_follow,{userGroupId: item.id},data=>{
|
|
|
req.msg('加入团队成功');
|
|
req.msg('加入团队成功');
|
|
|
setTimeout(res=>{
|
|
setTimeout(res=>{
|