| | |
| | | <u-tabs :list="list" :is-scroll="false" :current="current" active-color="#14B9C8" inactive-color="#595959" |
| | | height="100" @change="change" style="background-color:rgba(255,255,255,0.8)"></u-tabs> |
| | | </view> |
| | | <swiper id="swiperBox" :style="{ height: swiperHeight + 'px' }" :current="current" @change="tabsChange"> |
| | | <swiper id="swiperBox" style="height: 100%;" :current="current" @change="tabsChange"> |
| | | <swiper-item class="swiper-item" v-for="(item, indexs) in list" :key="indexs"> |
| | | <view v-if="indexs == 0" class="main"> |
| | | <div> |
| | |
| | | <view v-if="indexs == 2" class="main"> |
| | | <div> |
| | | <div class="m-main"> |
| | | |
| | | <view class="applys" @click="newGroup"> |
| | | <view class="head-wraps"> |
| | | <image src="../../static/qunzhu.png" class="head" /> |
| | | <view v-if=false class="tip">233</view> |
| | | </view> |
| | | <view class="content-wrap"> |
| | | <text class="name">群组创建</text> |
| | | <text class="mess">何事秋风悲画扇</text> |
| | | </view> |
| | | <view class="data-wrap"> |
| | | <text class="data"></text> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- <view class="inTitle">{{Task}}</view> --> |
| | | <view class="inTmain"> |
| | | <contacts v-for="(item,index) in dataListQZ" :key="index" :Pdata="item" :fromW="indexs" |
| | |
| | | |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + "/chatgroup/selectList", |
| | | method: "POST", |
| | | method: "GET", |
| | | data: { |
| | | senderId: WxStorage.get("ids") |
| | | id: WxStorage.get("ids") |
| | | }, |
| | | contentType:"application/x-www-form-urlencoded", |
| | | success: (res) => { |
| | | var resdata = res.data.data; |
| | | for (var i = 0; i < resdata.length; i++) { |
| | |
| | | } |
| | | } |
| | | that.dataListQZ = resdata; |
| | | that.swiperHeight = resdata.length * 85; |
| | | } |
| | | }); |
| | | } |
| | |
| | | addFriend(){ |
| | | uni.navigateTo({ |
| | | url: '/pages/groupChat/addFriend?' |
| | | }); |
| | | }, |
| | | newGroup(){ |
| | | uni.navigateTo({ |
| | | url: '/pages/groupChat/newGroup/newGroup?' |
| | | }); |
| | | } |
| | | }, |
| | |
| | | text-align: center; |
| | | } |
| | | } |
| | | |
| | | .head-wraps { |
| | | position: relative; |
| | | |
| | | |
| | | image { |
| | | width: 96rpx; |
| | | height: 96rpx; |
| | | border-radius: 20upx; |
| | | background-color: rgba(85, 170, 255, 1.0); |
| | | } |
| | | |
| | | .tip { |
| | | position: absolute; |
| | | top: -6rpx; |
| | | left: 68rpx; |
| | | height: 36rpx; |
| | | min-width: 20rpx; |
| | | min-height: 20rpx; |
| | | background-color: rgba(255, 93, 91, 1); |
| | | border-radius: 18rpx; |
| | | padding: 0 6rpx; |
| | | font-size: 24upx; |
| | | color: rgba(255, 228, 49, 1); |
| | | line-height: 36rpx; |
| | | text-align: center; |
| | | } |
| | | } |
| | | |
| | | .content-wrap { |
| | | margin-left: 32rpx; |