123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <template>
- <view class="">
- <view class="list" v-for="item in 12" :key="item">
- <view class="top">
- <view class="nc">123****032@qq.com</view>
- <view class="">
- <image class="img" mode=""></image>
- </view>
- </view>
- <view class="center">
- <view class="sj">2023.05.05 15:00</view>
- <view class="xq">詳情</view>
- <view class="">
- <image class="ima" src="/static/icon/jt.png" mode=""></image>
- </view>
- </view>
- <view class="xian"></view>
- <view class="last">
- <view class="left">互娛金額:</view>
- <view class="leftT">5000U</view>
- <view class="right">推廣數:</view>
- <view class="rightT">50</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState,
- mapMutations
- } from 'vuex';
- import {spread, getUserInfo} from "@/api/user.js"
- export default {
- data() {
- return {
- id: '',
- page: 1,
- limit: 10,
- list: [],
- };
- },
- onLoad(option) {
- this.id = option.id
- this.spread()
- },
- computed: {
- ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
- },
- methods: {
- //
- spread() {
- let that = this
- spread({
- page: that.page,
- limit: that.limit,
- id: that.userInfo.uid,
- }).then(res => {
- let data = res.data
- this.list = res.data.list
- console.log('list', this.list);
- }).catch(e=>{
- console.log(e);
- })
- },
-
-
- }
- }
- </script>
- <style lang="scss">
- .list {
- width: 684rpx;
- height: 262rpx;
- background: #191A1F;
- border-radius: 16rpx;
- margin-left: 36rpx;
- margin-top: 25rpx;
- }
- .top {
- display: flex;
- justify-content: start;
- }
- .nc {
- height: 31rpx;
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- margin-left: 35rpx;
- padding-top: 40rpx;
- }
- .img {
- width: 100rpx;
- height: 32rpx;
- margin-left: 20rpx;
- margin-top: 46rpx;
- object-fit: cover;
- }
- .center {
- display: flex;
- justify-content: start;
- }
- .sj {
- margin-left: 34rpx;
- margin-top: 25rpx;
- height: 22rpx;
- float: length($list: 231rpx);
- font-size: 28rpx;
- font-weight: 500;
- color: #999999;
- }
- .xq {
- margin-top: 25rpx;
- margin-left: 290rpx;
- height: 26rpx;
- font-size: 28rpx;
- font-weight: 500;
- color: #999999;
- float: length($list: 54rpx);
- }
- .ima {
- width: 13rpx;
- height: 19rpx;
- margin-top: 35rpx;
- margin-left: 20rpx;
- }
- .xian {
- width: 618rpx;
- height: 1rpx;
- background: #DDE1EB;
- opacity: 0.2;
- margin-left: 20rpx;
- margin-top: 30rpx;
- }
- .last {
- display: flex;
- //
- justify-content: start;
- }
- .left {
- font-size: 28rpx;
- font-weight: 500;
- color: #999999;
- margin-left: 36rpx;
- margin-top: 30rpx;
- }
- .leftT {
- font-size: 28rpx;
- font-weight: 500;
- color: #b98134;
- // margin-left: 10rpx;
- margin-top: 30rpx;
- }
- .right {
- font-size: 28rpx;
- font-weight: 500;
- color: #999999;
- margin-left: 220rpx;
- margin-top: 30rpx;
- }
- .rightT {
- font-size: 28rpx;
- font-weight: 500;
- color: #ffffff;
- margin-top: 30rpx;
-
- }
- </style>
|