fuint-uniapp-master/pages/wallet/recharge/index.vue

(开头部分) 6KB

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

<template>
  <view class="container" v-if="userInfo.id">
    <view class="account-panel dis-flex flex-y-center">
      <view class="panel-lable">
        <text>账户余额</text>
      </view>
      <view class="panel-balance flex-box">
        <text>¥{{ userInfo.balance }}</text>
      </view>
    </view>
    <view class="recharge-panel">
      <view class="recharge-label">
        <text>充值金额</text>
      </view>
      <view class="recharge-plan clearfix" v-if="setting.planList.length > 0">
        <block v-for="(item, index) in setting.planList" :key="index">
          <view class="recharge-plan_item" :class="{ active: rechargeAmount == item.rechargeAmount }" @click="onSelectPlan(item.rechargeAmount)">
            <view class="plan_money">
              <text>{{ item.rechargeAmount }}</text>
            </view>
            <view class="plan_gift" v-if="item.giveAmount > 0">
              <text>送{{ item.giveAmount }}</text>
            </view>
          </view>
        </block>
      </view>
      <!-- 手动充值输入框 -->
      <view class="recharge-input" v-if="!setting.planList || setting.planList.length < 1">
        <input type="digit" placeholder="请输入充值金额" v-model="inputValue" @input="onChangeMoney" />
      </view>
      <!-- 确认按钮 -->
      <view class="recharge-submit btn-submit">
        <form @submit="onSubmit">
          <button class="button" formType="submit" :disabled="disabled">立即充值</button>
        </form>
      </view>
    </view>
    <!-- 充值描述 -->
    <view class="recharge-describe" v-if="setting.remark.length > 0">
      <view class="recharge-label">
        <text>充值说明</text>
      </view>
      <view class="content">
        <text space="ensp">{{setting.remark}}</text>
      </view>
    </view>
  </view>
</template>

<script>
  import * as UserApi from '@/api/user'
  import * as BalanceApi from '@/api/balance'
  import { wxPayment } from '@/utils/app'

  export default {
    data() {
      return {
        // 正在加载
        isLoading: true,
        // 会员信息
后面还有 233 行代码,购买后查看完整代码

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

AI 解读 AI

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

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