|
@@ -0,0 +1,253 @@
|
|
|
+<template>
|
|
|
+ <view class="page">
|
|
|
+ <view class="topBody">
|
|
|
+ <view class="header">
|
|
|
+ </view>
|
|
|
+ <view class="myinfo">
|
|
|
+ <view class="friendList">
|
|
|
+ <view class="title">
|
|
|
+ <view class="left">
|
|
|
+ <text style="font-size: 36rpx;color: #FFFFFF;">累计邀请16人</text>
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ <text style="font-size: 28rpx;color: #FFFFFF;">更多</text>
|
|
|
+ <image class="icon" src="../../static/me/arrow_right.png" mode="heightFix" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="numlist2" :style="{ backgroundImage: 'url(../../static/w3/invite_bg.png)', backgroundSize: '100% ' + (friendsInfo.length * 140) + 'rpx', backgroundPosition: 'bottom' }">
|
|
|
+ <view v-if="friendsInfo.length<=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 friendsInfo" :key="index">
|
|
|
+ <view class = "info">
|
|
|
+ <view class="left">
|
|
|
+ <image class="img" src="../../static/w3/w3_1.png" mode="heightFix" />
|
|
|
+ <view class="nameList">
|
|
|
+ <view class="num">
|
|
|
+ <view class = "name">
|
|
|
+ <text>{{ item.p_name }}</text>
|
|
|
+ <image v-if="item.vip===2" class="icon" src="../../static/w3/w3_black_vip.png" mode="heightFix" />
|
|
|
+ <image v-else-if="item.vip===1" class="icon" src="../../static/w3/w3_vip.png" mode="heightFix" />
|
|
|
+ </view>
|
|
|
+ <view class="data">{{item.data}}</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="right">
|
|
|
+ <view class="txt">
|
|
|
+ <text>已实名</text>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="txt txt1">
|
|
|
+ <text>{{item.phoneNum}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class = "line">
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+ <view class="blankHeight"></view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 提示框 -->
|
|
|
+ <DialogBox ref="DialogBox"></DialogBox>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ export default {
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ title: '',
|
|
|
+ sel: 1,
|
|
|
+ X_Info: {
|
|
|
+
|
|
|
+ todayGet: 10,
|
|
|
+ historyGet:199999,
|
|
|
+
|
|
|
+ },
|
|
|
+ friendsInfo: [
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "陈东大",
|
|
|
+ vip:1,
|
|
|
+ value: 100,
|
|
|
+ phoneNum: "133*****212",
|
|
|
+ data: "2023-1-12 15:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "姜噶的",
|
|
|
+ vip:0,
|
|
|
+ value: 200,
|
|
|
+ phoneNum: "153*****199",
|
|
|
+ data: "2023-1-12 13:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ reason: "txt.M币充值",
|
|
|
+ p_name: "佘和会",
|
|
|
+ vip:2,
|
|
|
+ value: -100,
|
|
|
+ phoneNum: "188*****255",
|
|
|
+ data: "2023-1-12 11:00"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad() {
|
|
|
+ // setTimeout(function() {
|
|
|
+ // uni.setNavigationBarColor({
|
|
|
+ // frontColor: '#ffffff',
|
|
|
+ // backgroundColor: '#00000000',
|
|
|
+ // animation: {
|
|
|
+ // duration: 400,
|
|
|
+ // timingFunc: 'easeIn'
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }, 200);
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ this.loadData();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ onBack() {},
|
|
|
+ chkSel() {
|
|
|
+ if (this.sel == 1) {
|
|
|
+ this.sel = 0;
|
|
|
+ } else {
|
|
|
+ this.sel = 1;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ loadData() {
|
|
|
+ console.log("this.globalData", getApp().globalData);
|
|
|
+ let obj2 = {
|
|
|
+ is_first: 0
|
|
|
+ }
|
|
|
+ const postData = Object.assign({}, getApp().globalData.postHeader, obj2);
|
|
|
+
|
|
|
+ console.log(postData);
|
|
|
+
|
|
|
+ uni.request({
|
|
|
+ url: this.$apiHost + '/Gushi/getmyinfo', //仅为示例,并非真实接口地址。
|
|
|
+ data: postData,
|
|
|
+ method: 'POST',
|
|
|
+ header: {
|
|
|
+ 'content-type': 'application/json', //自定义请求头信息
|
|
|
+ 'Access-Control-Allow-Origin': '*'
|
|
|
+ },
|
|
|
+ success: (res) => {
|
|
|
+ console.log('data:', res.data);
|
|
|
+ this.myinfo = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+ @import 'friendsList.scss';
|
|
|
+</style>
|