123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <template>
- <view class="page">
- <uni-nav-bar rightWidth='136rpx' title="我的战队" fixed :border="false" statusBar backgroundColor="#24234B" color="#FFFFFF">
- <template #left>
- <view class="cl-topbar__icon" @click="navigateBack">
- <text class="cl-icon-arrow-left"></text>
- </view>
- </template>
- </uni-nav-bar>
- <view class="topBody">
- <view class="header">
- </view>
- <view class="myinfo">
- <view class="friendList">
- <view class="title">
- <view class="left">
- <text style="margin-left: 60rpx;font-size: 36rpx;color: #FFFFFF;">累计邀请{{num_zt}}人</text>
- </view>
- <view class="right">
- </view>
- </view>
- <view class="numlist2">
- <!-- :style="{ backgroundImage: 'url(http://c.yujianmate.com/images/v1/w3/invite_bg.png)', backgroundSize: '100% ' + (num_zt * 140) + 'rpx', backgroundPosition: 'bottom' }"> -->
- <view v-if="num_zt<=0" class="empty">
- <view class="bg"></view>
- <text style="margin-top: 40rpx;font-size: 24rpx;color: #999999;">暂无数据</text>
- </view>
- <view v-else class="item" v-for="(item, index) in zt_list" :key="index">
- <view class="info">
- <view class="left">
- <image class="img" src="http://c.yujianmate.com/images/v1/w3/w3_1.png" mode="heightFix" />
- <view class="nameList">
- <view class="num">
- <view class="name">
- <text>{{ item.nickname }}</text>
- <image v-if="item.is_vip===2" class="icon"
- src="http://c.yujianmate.com/images/v1/w3/w3_black_vip.png" mode="heightFix" />
- <image v-else-if="item.is_vip===1" class="icon"
- src="http://c.yujianmate.com/images/v1/w3/w3_vip.png" mode="heightFix" />
- </view>
- <view class="data">{{item.login_time}}</view>
- </view>
- </view>
- </view>
- <view class="right">
- <view class="txt">
- <text v-if="item.is_idcheck == 2">已实名</text>
- <text v-else>未实名</text>
- </view>
- <view class="txt txt1">
- <text>{{item.mobile}}</text>
- </view>
- </view>
- </view>
- <view class="line">
- </view>
- </view>
- </view>
- </view>
- <!-- <image style="height: 42rpx; width: 690rpx;margin-top: 0rpx;" src="http://c.yujianmate.com/images/v1/w3/invite_bg_bottom.png"
- mode="widthFix"></image> -->
- </view>
- <view class="blankHeight"></view>
- </view>
- <!-- 提示框 -->
- <DialogBox ref="DialogBox"></DialogBox>
- </view>
- </template>
- <script>
- import uniNavBar from '../../components/uni-ui/uni-nav-bar/uni-nav-bar.vue'
- export default {
-
- components: {uniNavBar},
- data() {
- return {
- title: '',
- sel: 1,
- zt_list: [],
- num_zt: 0,
- X_Info: {
- todayGet: 10,
- historyGet: 199999,
- },
- friendsInfo: []
- }
- },
- onLoad() {
- // setTimeout(function() {
- // uni.setNavigationBarColor({
- // frontColor: '#ffffff',
- // backgroundColor: '#00000000',
- // animation: {
- // duration: 400,
- // timingFunc: 'easeIn'
- // }
- // })
- // }, 200);
- this.loadZtList();
- },
- onShow() {},
- methods: {
- navigateBack(){
- uni.navigateBack(1)
- },
- onBack() {},
- chkSel() {
- if (this.sel == 1) {
- this.sel = 0;
- } else {
- this.sel = 1;
- }
- },
- loadZtList() {
- console.log({
- uuid: getApp().globalData.uuid,
- skey: getApp().globalData.skey
- });
- uni.request({
- url: this.$apiHost + '/Xweb/ztlist',
- data: {
- uuid: getApp().globalData.uuid
- },
- header: {
- "content-type": "application/json",
- 'sign': getApp().globalData.headerSign
- },
- success: (res) => {
- console.log("----:", res.data);
- this.zt_list = res.data.list;
- this.num_zt = res.data.num_zt;
- },
- complete: (com) => {
- // uni.hideLoading();
- },
- fail: (e) => {
- console.log("----e:", e);
- }
- });
- },
- }
- }
- </script>
- <style scoped lang="scss">
- @import 'friendsList.scss';
- </style>
|