zhengyiming
16 小时以前 23bfd958545ab5548d561ef6db1eafafe03e4e05
fix: 修改ui
14个文件已修改
3个文件已添加
252 ■■■■■ 已修改文件
apps/taro/src/app.config.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/components/PageFooter/PageFooter.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/components/PageFooter/PageFooterBtn.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/constants/router.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/subpackages/my/applyAgent/applyAgent.config.ts 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/subpackages/my/applyAgent/applyAgent.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/subpackages/order/orderApplyRefund/InnerPage.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/subpackages/order/orderApplyRefund/orderApplyRefund.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/subpackages/userAccount/editElectricUserAccount/InnerPage.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/subpackages/userAccount/editPhoneUserAccount/InnerPage.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/views/Mine/ApplyAgentView.vue 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/views/Mine/Dashboard.vue 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/views/Order/OrderApplyRefundView.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/views/RechargeResultView/RechargeResultView.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/views/userAccount/EditElectricUserAccount.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/views/userAccount/EditGasUserAccount.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/views/userAccount/EditPhoneUserAccount.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/app.config.ts
@@ -111,7 +111,7 @@
    },
    {
      root: 'subpackages/my',
      pages: ['shareQrcode/shareQrcode', 'dashboard/dashboard'],
      pages: ['shareQrcode/shareQrcode', 'dashboard/dashboard', 'applyAgent/applyAgent'],
    },
  ],
  // preloadRule: {
apps/taro/src/components/PageFooter/PageFooter.vue
@@ -52,21 +52,21 @@
  }
  .page-footer-inner {
    padding: 24px 0;
    padding: 24px boleGetCssVar('size', 'body-padding-h');
    width: 100%;
    display: flex;
    box-sizing: border-box;
    align-items: center;
  }
  &.isOnlyAction {
  /* &.isOnlyAction {
    .page-footer-inner {
      padding: 16px 0;
      padding: 20px 0;
      align-items: flex-start;
    }
  }
  } */
  .is-button-footer {
  /* .is-button-footer {
    display: flex;
    width: 100%;
    height: 100%;
@@ -96,9 +96,9 @@
        box-shadow: 0px 3px 7px 0px rgba(240, 67, 73, 0.35);
      }
    }
  }
  } */
  .common-page-footer {
  /* .common-page-footer {
    display: flex;
    width: 100%;
    height: 100%;
@@ -172,6 +172,6 @@
      margin: 0;
      margin-left: 20px;
    }
  }
  } */
}
</style>
apps/taro/src/components/PageFooter/PageFooterBtn.vue
@@ -21,12 +21,15 @@
.page-footer-btn {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 88px;
  font-size: 32px;
  margin: 0 28px;
  border-radius: 44px;
  & + .page-footer-btn {
    margin-left: 28px;
  }
  &.nut-button--plain {
    border-width: 1px;
  }
apps/taro/src/constants/router.ts
@@ -25,4 +25,5 @@
  editElectricUserAccount = '/subpackages/userAccount/editElectricUserAccount/editElectricUserAccount',
  shareQrcode = '/subpackages/my/shareQrcode/shareQrcode',
  dashboard = '/subpackages/my/dashboard/dashboard',
  applyAgent = '/subpackages/my/applyAgent/applyAgent',
}
apps/taro/src/subpackages/my/applyAgent/applyAgent.config.ts
New file
@@ -0,0 +1,3 @@
export default definePageConfig({
  disableScroll: true,
});
apps/taro/src/subpackages/my/applyAgent/applyAgent.vue
New file
@@ -0,0 +1,24 @@
<template>
  <PageLayout title="立即申请" class="applyAgent-page-wrapper" hasBgColor :needAuth="false">
    <ContentScrollView hasPaddingTop style="background-color: transparent">
      <!-- <OrderApplyRefundView
      :id="id"
      @submitApplyRefund="submitApplyRefund"
      ref="orderApplyRefundViewRef"
    /> -->
    </ContentScrollView>
    <PageFooter>
      <PageFooterBtn type="primary" @click="handleSubmit">提交申请</PageFooterBtn>
    </PageFooter>
  </PageLayout>
</template>
<script setup lang="ts">
import { PageLayout } from '@/components';
defineOptions({
  name: 'applyAgent',
});
function handleSubmit() {}
</script>
apps/taro/src/subpackages/order/orderApplyRefund/InnerPage.vue
@@ -1,13 +1,21 @@
<template>
  <ContentScrollView :paddingH="false">
    <OrderApplyRefundView :id="id" @submitApplyRefund="submitApplyRefund" />
  <ContentScrollView hasPaddingTop style="background-color: transparent">
    <OrderApplyRefundView
      :id="id"
      @submitApplyRefund="submitApplyRefund"
      ref="orderApplyRefundViewRef"
    />
  </ContentScrollView>
  <PageFooter>
    <PageFooterBtn type="primary" @click="handleSubmit">提交</PageFooterBtn>
  </PageFooter>
</template>
<script setup lang="ts">
import Taro from '@tarojs/taro';
import { OrderApplyRefundView } from '@life-payment/components';
import { goBack } from '@/utils';
import type { ComponentExposed } from 'vue-component-type-helpers';
defineOptions({
  name: 'InnerPage',
@@ -16,6 +24,13 @@
const router = Taro.useRouter();
const id = router.params?.id ?? '';
const orderApplyRefundViewRef =
  useTemplateRef<ComponentExposed<typeof OrderApplyRefundView>>('orderApplyRefundViewRef');
function handleSubmit() {
  orderApplyRefundViewRef.value?.handleSubmit?.();
}
function submitApplyRefund() {
  goBack();
}
apps/taro/src/subpackages/order/orderApplyRefund/orderApplyRefund.vue
@@ -1,5 +1,5 @@
<template>
  <PageLayout title="申请退款" class="orderApplyRefund-page-wrapper" hasBorder>
  <PageLayout title="申请退款" class="orderApplyRefund-page-wrapper" hasBgColor>
    <InnerPage />
  </PageLayout>
</template>
apps/taro/src/subpackages/userAccount/editElectricUserAccount/InnerPage.vue
@@ -1,13 +1,17 @@
<template>
  <ContentScrollView hasPaddingTop style="background-color: transparent">
    <EditElectricUserAccount :id="id" @success="handleSuccess" />
    <EditElectricUserAccount :id="id" @success="handleSuccess" ref="editElectricUserAccountRef" />
  </ContentScrollView>
  <PageFooter>
    <PageFooterBtn type="primary" @click="handleSave">保存</PageFooterBtn>
  </PageFooter>
</template>
<script setup lang="ts">
import Taro from '@tarojs/taro';
import { EditElectricUserAccount } from '@life-payment/components';
import { goBack } from '@/utils';
import type { ComponentExposed } from 'vue-component-type-helpers';
defineOptions({
  name: 'InnerPage',
@@ -16,6 +20,14 @@
const router = Taro.useRouter();
const id = router.params?.id ?? '';
const editElectricUserAccountRef = useTemplateRef<ComponentExposed<typeof EditElectricUserAccount>>(
  'editElectricUserAccountRef'
);
function handleSave() {
  editElectricUserAccountRef.value?.handleSave?.();
}
function handleSuccess() {
  goBack();
}
apps/taro/src/subpackages/userAccount/editPhoneUserAccount/InnerPage.vue
@@ -1,13 +1,17 @@
<template>
  <ContentScrollView hasPaddingTop style="background-color: transparent">
    <EditPhoneUserAccount :id="id" @success="handleSuccess" />
    <EditPhoneUserAccount :id="id" @success="handleSuccess" ref="editPhoneUserAccountRef" />
  </ContentScrollView>
  <PageFooter>
    <PageFooterBtn type="primary" @click="handleSave">保存</PageFooterBtn>
  </PageFooter>
</template>
<script setup lang="ts">
import Taro from '@tarojs/taro';
import { EditPhoneUserAccount } from '@life-payment/components';
import { goBack } from '@/utils';
import type { ComponentExposed } from 'vue-component-type-helpers';
defineOptions({
  name: 'InnerPage',
@@ -16,6 +20,13 @@
const router = Taro.useRouter();
const id = router.params?.id ?? '';
const editPhoneUserAccountRef =
  useTemplateRef<ComponentExposed<typeof EditPhoneUserAccount>>('editPhoneUserAccountRef');
function handleSave() {
  editPhoneUserAccountRef.value?.handleSave?.();
}
function handleSuccess() {
  goBack();
}
packages/components/src/views/Mine/ApplyAgentView.vue
New file
@@ -0,0 +1,66 @@
<template>
  <div></div>
</template>
<script setup lang="ts">
import {
  Form as NutForm,
  FormItem as NutFormItem,
  Input as NutInput,
  Textarea as NutTextarea,
} from '@nutui/nutui-taro';
import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types';
import { reactive, ref, computed } from 'vue';
import {
  useLifeRechargeContext,
  LifeRechargeConstants,
  RefundUserLifePayOrderInput,
} from '@life-payment/core-vue';
import { useQueryClient } from '@tanstack/vue-query';
defineOptions({
  name: 'ApplyAgentView',
});
const emit = defineEmits<{
  (e: 'submit'): void;
}>();
const form = reactive({
  refundApplyRemark: '',
});
const rules = reactive<FormRules>({
  refundApplyRemark: [{ required: true, message: '请输入退款原因' }],
});
const { blLifeRecharge } = useLifeRechargeContext();
const formRef = ref<any>(null);
function handleSubmit() {
  if (!formRef.value) return;
  formRef.value.validate().then(({ valid, errors }: any) => {
    if (valid) {
      refundUserLifePayOrder();
    }
  });
}
const queryClient = useQueryClient();
async function refundUserLifePayOrder() {
  try {
    let params = {
      userId: blLifeRecharge.accountModel.userId,
      refundApplyRemark: form.refundApplyRemark,
    };
    let res = await blLifeRecharge.services.refundUserLifePayOrder(params);
    emit('submit');
  } catch (error) {}
}
defineExpose({
  handleSubmit,
});
</script>
packages/components/src/views/Mine/Dashboard.vue
@@ -1,60 +1,4 @@
<template>
  <!-- <NutGrid :gutter="10" :column-num="3" square class="dashboard-view">
    <NutGridItem>
      <div class="pro-statistics-wrapper">
        <div class="pro-statistics-title">累计收款</div>
        <div class="pro-statistics-content">
          {{ toThousand(topStatistics?.accumulatedReceipts ?? 0) }}
        </div>
      </div>
    </NutGridItem>
    <NutGridItem>
      <div class="pro-statistics-wrapper">
        <div class="pro-statistics-title">昨日收款</div>
        <div class="pro-statistics-content">
          {{ toThousand(topStatistics?.receiptsYesterday ?? 0) }}
        </div>
      </div>
    </NutGridItem>
    <NutGridItem>
      <div class="pro-statistics-wrapper">
        <div class="pro-statistics-title">累计收益</div>
        <div class="pro-statistics-content">
          {{ toThousand(topStatistics?.accumulatedIncome ?? 0) }}
        </div>
      </div>
    </NutGridItem>
    <NutGridItem>
      <div class="pro-statistics-wrapper">
        <div class="pro-statistics-title">累计下单</div>
        <div class="pro-statistics-content">{{ topStatistics?.accumulatedOrders ?? 0 }}</div>
      </div>
    </NutGridItem>
    <NutGridItem>
      <div class="pro-statistics-wrapper">
        <div class="pro-statistics-title">昨日下单</div>
        <div class="pro-statistics-content">{{ topStatistics?.ordersNumYesterday ?? 0 }}</div>
      </div>
    </NutGridItem>
    <NutGridItem>
      <div class="pro-statistics-wrapper">
        <div class="pro-statistics-title">昨日成功</div>
        <div class="pro-statistics-content">{{ topStatistics?.yesterdaySuccess ?? 0 }}</div>
      </div>
    </NutGridItem>
    <NutGridItem>
      <div class="pro-statistics-wrapper">
        <div class="pro-statistics-title">累计用户</div>
        <div class="pro-statistics-content">{{ topStatistics?.accumulatedUsers ?? 0 }}</div>
      </div>
    </NutGridItem>
    <NutGridItem>
      <div class="pro-statistics-wrapper">
        <div class="pro-statistics-title">昨日活跃</div>
        <div class="pro-statistics-content">{{ topStatistics?.yesterdayActiveUsers ?? 0 }}</div>
      </div>
    </NutGridItem>
  </NutGrid> -->
  <div class="dashboard-view">
    <Chunk title="核心数据">
      <DashboardLargeCell class="dashboard-large-cell1">
packages/components/src/views/Order/OrderApplyRefundView.vue
@@ -4,7 +4,7 @@
    ref="formRef"
    :rules="rules"
    label-position="top"
    class="order-bill-recharge phone"
    class="order-bill-recharge phone chunk-form"
  >
    <NutFormItem class="bole-form-item" prop="refundApplyRemark" required>
      <NutTextarea
@@ -18,13 +18,13 @@
      >
      </NutTextarea>
    </NutFormItem>
    <div class="common-content">
    <!-- <div class="common-content">
      <nut-button class="recharge-button" type="primary" @click="handleSubmit">
        <div class="recharge-button-inner">
          <div class="recharge-button-text">提交</div>
        </div>
      </nut-button>
    </div>
    </div> -->
  </NutForm>
</template>
@@ -95,4 +95,8 @@
    });
  } catch (error) {}
}
defineExpose({
  handleSubmit,
});
</script>
packages/components/src/views/RechargeResultView/RechargeResultView.vue
@@ -23,6 +23,7 @@
import { LifeRechargeConstants } from '@life-payment/core-vue';
import { CustomerServiceTips, OssAssets } from '../../constants';
import Result from '../../components/Result/Result.vue';
import { Button as NutButton } from '@nutui/nutui-taro';
defineOptions({
  name: 'RechargeResultView',
packages/components/src/views/userAccount/EditElectricUserAccount.vue
@@ -14,13 +14,13 @@
        </NutTextarea>
      </NutFormItem>
    </ElectricBillRechargeBaseForm>
    <div class="chunk-form-actions">
    <!-- <div class="chunk-form-actions">
      <NutButton class="recharge-button" type="primary" @click="handleSave">
        <div class="recharge-button-inner">
          <div class="recharge-button-text">保存</div>
        </div>
      </NutButton>
    </div>
    </div> -->
  </LoadingLayout>
</template>
@@ -122,4 +122,6 @@
    emit('success');
  } catch (error) {}
}
defineExpose({ handleSave });
</script>
packages/components/src/views/userAccount/EditGasUserAccount.vue
@@ -25,13 +25,13 @@
        </NutTextarea>
      </NutFormItem>
    </GasBillRechargeBaseForm>
    <div class="chunk-form-actions">
    <!-- <div class="chunk-form-actions">
      <NutButton class="recharge-button" type="primary" @click="handleSave">
        <div class="recharge-button-inner">
          <div class="recharge-button-text">保存</div>
        </div>
      </NutButton>
    </div>
    </div> -->
  </LoadingLayout>
</template>
@@ -132,4 +132,6 @@
    emit('success');
  } catch (error) {}
}
defineExpose({ handleSave });
</script>
packages/components/src/views/userAccount/EditPhoneUserAccount.vue
@@ -14,13 +14,13 @@
        </NutTextarea>
      </NutFormItem>
    </PhoneBillRechargeBaseForm>
    <div class="chunk-form-actions">
    <!-- <div class="chunk-form-actions">
      <NutButton class="recharge-button" type="primary" @click="handleSave">
        <div class="recharge-button-inner">
          <div class="recharge-button-text">保存</div>
        </div>
      </NutButton>
    </div>
    </div> -->
  </LoadingLayout>
</template>
@@ -111,4 +111,6 @@
    emit('success');
  } catch (error) {}
}
defineExpose({ handleSave });
</script>