fuint-uniapp-master/pages/points/detail.vue

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<template>
  <view class="container">
    <view class="my-point">
        <view class="my-tip"><text class="iconfont icon-jifen"></text>我的积分余额</view>
        <view class="my-account">{{ userInfo.point ? userInfo.point : 0 }}</view>
        <view class="my-gift">
            <view class="gift" @click="toGive()">转赠好友</view>
            <view class="gift" @click="toUsePoint()">兑换积分</view>
        </view>
    </view>
    <mescroll-body ref="mescrollRef" :sticky="true" @init="mescrollInit" :down="{ use: false }" :up="upOption"
      @up="upCallback">
      <view class="log-list">
        <view v-for="(item, index) in list.content" :key="index" class="log-item">
          <view class="item-left flex-box">
            <view class="rec-status">
              <text>{{ item.description }}</text>
            </view>
            <view class="rec-time">
              <text>{{ timeStamp(item.createTime) }}</text>
            </view>
          </view>
          <view class="item-right" :class="[item.amount > 0 ? 'col-green' : 'col-6']">
            <text>{{ item.amount > 0 ? '+' : '' }}{{ item.amount }}</text>
          </view>
        </view>
		<empty v-if="!list.content.length" :isLoading="isLoading" :custom-style="{ padding: '180rpx 50rpx' }" tips="暂时没有积分记录">
		</empty>
      </view>
    </mescroll-body>
  </view>
</template>

<script>
  import MescrollBody from '@/components/mescroll-uni/mescroll-body.vue'
  import MescrollMixin from '@/components/mescroll-uni/mescroll-mixins'
  import * as LogApi from '@/api/points/log'
  import * as UserApi from '@/api/user'
  import { getEmptyPaginateObj, getMoreListData } from '@/utils/app'
  import Empty from '@/components/empty'

  const pageSize = 10

  export default {
    components: {
      MescrollBody,
	  Empty
    },
    mixins: [MescrollMixin],
    data() {
      return {
        userInfo: {},
        // 数据记录
        list: getEmptyPaginateObj(),
		// 正在加载
		isLoading: false,
        // 上拉加载配置
        upOption: {
          // 首次自动执行
          auto: true,
后面还有 171 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。