Commit 519d18d6 authored by wykolor's avatar wykolor

feat: 优化组件规范

parent 173c6eaf
...@@ -8,15 +8,10 @@ ...@@ -8,15 +8,10 @@
> >
<i class="close" @click="$emit('update:show', false)"></i> <i class="close" @click="$emit('update:show', false)"></i>
<p class="dangerous-dialog-tip"> <p class="dangerous-dialog-tip">
{{ {{ withdrawAccount ? "换绑后,将提现到新绑定的微信零钱中!" : "绑定微信后,才可进行提现!" }}
withdrawAccount
? "换绑后,将提现到新绑定的微信零钱中!"
: "绑定微信后,才可进行提现!"
}}
</p> </p>
<div class="dialog-handle-btns"> <div class="dialog-handle-btns">
<van-button type="default" round @click="$emit('update:show', false)" <van-button type="default" round @click="$emit('update:show', false)">取消</van-button
>取消</van-button
><van-button ><van-button
type="primary" type="primary"
round round
...@@ -30,44 +25,47 @@ ...@@ -30,44 +25,47 @@
</van-dialog> </van-dialog>
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, ref, watchEffect } from "vue" import { defineComponent, ref, watchEffect } from "vue";
import { Dialog, Button, Toast } from "vant"
import { bindWeChat } from "@/util/use-native-bridge" import { Dialog, Button, Toast } from "vant";
import { bindWeiChat } from "@/server/api/bonus"
import { bindWeChat } from "@/util/use-native-bridge";
import { bindWeiChat } from "@/server/api/bonus";
export default defineComponent({ export default defineComponent({
components: { components: {
[Dialog.Component.name]: Dialog.Component, [Dialog.Component.name]: Dialog.Component,
[Button.name]: Button, [Button.name]: Button
}, },
props: { props: {
show: Boolean, show: Boolean,
withdrawAccount: String, withdrawAccount: String
}, },
emits: ["updateBonusAccount", "update:show"], emits: ["updateBonusAccount", "update:show"],
setup(props, context) { setup(props, context) {
const binding = ref(false) const binding = ref(false);
const showDialog = ref(false) const showDialog = ref(false);
watchEffect(() => { watchEffect(() => {
showDialog.value = props.show showDialog.value = props.show;
}) });
const bindWeiChatModal = async () => { const bindWeiChatModal = async () => {
binding.value = true binding.value = true;
try { try {
const params = await bindWeChat() const params = await bindWeChat();
await bindWeiChat(params) await bindWeiChat(params);
Toast("绑定成功") Toast("绑定成功");
context.emit("update:show", false) context.emit("update:show", false);
context.emit("updateBonusAccount") context.emit("updateBonusAccount");
} catch (err) { } catch (err) {
Toast("绑定失败") Toast("绑定失败");
} finally { } finally {
binding.value = false binding.value = false;
} }
};
return { showDialog, bindWeiChatModal, binding };
} }
return { showDialog, bindWeiChatModal, binding } });
},
})
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, computed } from "vue"; import { defineComponent, computed } from "vue";
import { getBonusList } from "@/server/api/bonus";
import { useStore } from "vuex"; import { useStore } from "vuex";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import PullRefreshList from "../components/pullRefreshList.vue"; import { getBonusList } from "@/server/api/bonus";
import PullRefreshList from "../components/pull-pefresh-list.vue";
export default defineComponent({ export default defineComponent({
components: { components: {
...@@ -64,8 +64,8 @@ export default defineComponent({ ...@@ -64,8 +64,8 @@ export default defineComponent({
padding: 20px; padding: 20px;
border-radius: 10px; border-radius: 10px;
box-shadow: 0px 10px 20px 0px rgba(221, 221, 221, 0.3); box-shadow: 0px 10px 20px 0px rgba(221, 221, 221, 0.3);
} }
.desc-money { .desc-money {
color: #f1551e; color: #f1551e;
font-size: 28px; font-size: 28px;
......
...@@ -18,8 +18,10 @@ ...@@ -18,8 +18,10 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, ref } from "vue"; import { defineComponent, ref } from "vue";
import { Tab, Tabs, List, PullRefresh } from "vant";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { Tab, Tabs, List, PullRefresh } from "vant";
import BonusReduceList from "./reduce.vue"; import BonusReduceList from "./reduce.vue";
import BonusAddList from "./add.vue"; import BonusAddList from "./add.vue";
......
<template> <template>
<div class="tab-add"> <div class="tab-reduce">
<van-pull-refresh :modelValue="paging.refreshing" @refresh="refresh"> <pull-refresh-list v-slot="{ list }" :request="getBonusList" :paramsFn="paramsFn">
<van-list <div v-for="item in list" :key="item.id" class="reduce-item">
:modelValue="paging.loading"
:finished="isFinished"
:finished-text="finishText"
@load="loadMore"
>
<div v-for="item in paging.list" :key="item.id" class="reduce-item">
<ul> <ul>
<li style="color: #000">{{ item.bizTypeName }}</li> <li style="color: #000">{{ item.bizTypeName }}</li>
<li class="flex gray"> <li class="flex gray">
...@@ -18,90 +12,69 @@ ...@@ -18,90 +12,69 @@
> >
</li> </li>
</ul> </ul>
<ul class="reduce-item-desc"> <ul class="desc">
<li v-if="item.bizType === BizType.WITHDRAW" class="reduce-item-desc-money flex"> <li v-if="item.bizType === BizType.WITHDRAW" class="flex">
<span>申请时间:{{ item.withdrawApplyTime }}</span> <span>申请时间:{{ item.withdrawApplyTime }}</span>
<label v-if="!item.withdrawPayTime">-¥{{ item.amountChange }}</label> <label v-if="!item.withdrawPayTime" class="desc-money"
</li> >-¥{{ item.amountChange }}</label
<li
v-if="item.bizType === BizType.WITHDRAW && item.withdrawPayTime"
class="reduce-item-desc-money flex"
> >
</li>
<li v-if="item.bizType === BizType.WITHDRAW && item.withdrawPayTime" class="flex">
<span>到账时间:{{ item.withdrawPayTime }}</span> <span>到账时间:{{ item.withdrawPayTime }}</span>
<label>-¥{{ item.amountChange }}</label> <label class="desc-money">-¥{{ item.amountChange }}</label>
</li> </li>
<li v-if="item.bizType === BizType.ORDER"> <li v-if="item.bizType === BizType.ORDER">
<div v-for="(className, index) in item.className" :key="className + index"> <div v-for="(className, index) in item.className" :key="className + index">
{{ className }} {{ className }}
</div> </div>
</li> </li>
<li v-if="item.bizType === BizType.ORDER" class="reduce-item-desc-money flex"> <li v-if="item.bizType === BizType.ORDER" class="flex">
<span>{{ item.schoolAreaName }}</span <span>{{ item.schoolAreaName }}</span
><label v-if="item.bizType === BizType.ORDER">-¥{{ item.amountChange }}</label> ><label v-if="item.bizType === BizType.ORDER" class="desc-money"
>-¥{{ item.amountChange }}</label
>
</li> </li>
</ul> </ul>
</div> </div>
<van-empty key="1" image="network" v-if="paging.error" :description="paging.error" /> </pull-refresh-list>
<van-empty v-else-if="paging.isLoad && paging.total < 1" />
<div class="list-footer">
<van-loading v-if="paging.loading" color="#1989fa" />
</div>
</van-list>
</van-pull-refresh>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, computed, onMounted } from "vue"; import { defineComponent, computed } from "vue";
import { List, PullRefresh, Empty, Loading } from "vant";
import { usePaging } from "@/util/use-paging";
import { getBonusList } from "@/server/api/bonus";
import { FlowType, BizType } from "@/model/bonus/constant";
import { useStore } from "vuex"; import { useStore } from "vuex";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { getBonusList } from "@/server/api/bonus";
import { FlowType, BizType } from "@/model/bonus/constant";
import PullRefreshList from "../components/pull-pefresh-list.vue";
export default defineComponent({ export default defineComponent({
components: { components: {
[List.name]: List, PullRefreshList
[PullRefresh.name]: PullRefresh,
[Empty.name]: Empty,
[Loading.name]: Loading
}, },
setup() { setup() {
const route = useRoute(); const route = useRoute();
const store = useStore(); const store = useStore();
const bonusStoreState = computed(() => store.state.bonus); const bonusStoreState = computed(() => store.state.bonus);
const [paging, loadMore, refresh, helpers] = usePaging(getBonusList, () => ({ const paramsFn = () => ({
studentId: route.query.studentId || bonusStoreState.value.studentId, studentId: route.query.studentId || bonusStoreState.value.studentId,
flowType: "REDUCE" flowType: "REDUCE"
})); });
onMounted(refresh);
return { ...helpers, paging, loadMore, refresh, FlowType, BizType }; return { FlowType, BizType, getBonusList, paramsFn };
} }
}); });
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.tab-add { .tab-reduce {
:deep(.van-pull-refresh) { :deep(.van-pull-refresh) {
min-height: calc(100vh - 80px); min-height: calc(100vh - 80px);
} }
} }
.list-footer {
display: flex;
justify-content: center;
}
// @supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {
// .list-footer {
// padding-bottom: constant(safe-area-inset-bottom);
// padding-bottom: env(safe-area-inset-bottom);
// }
// }
.flex { .flex {
line-height: 47px; line-height: 47px;
display: flex; display: flex;
...@@ -112,6 +85,7 @@ export default defineComponent({ ...@@ -112,6 +85,7 @@ export default defineComponent({
color: #bdc4d1; color: #bdc4d1;
font-size: 24px; font-size: 24px;
} }
.reduce-item { .reduce-item {
background: #fff; background: #fff;
margin: 26px 20px; margin: 26px 20px;
...@@ -121,17 +95,17 @@ export default defineComponent({ ...@@ -121,17 +95,17 @@ export default defineComponent({
li { li {
line-height: 47px; line-height: 47px;
} }
&-desc { }
.desc {
background: #f5faff; background: #f5faff;
padding: 20px; padding: 20px;
color: #606263; color: #606263;
} }
&-desc-money {
label { .desc-money {
color: #f1551e; color: #f1551e;
font-size: 28px; font-size: 28px;
font-weight: 600; font-weight: 600;
}
}
} }
</style> </style>
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, onMounted, PropType } from "vue"; import { defineComponent, onMounted, PropType } from "vue";
import { PullRefresh, List, Empty, Loading } from "vant"; import { PullRefresh, List, Empty, Loading } from "vant";
import { PagingFunc, usePaging } from "@/util/use-paging"; import { PagingFunc, usePaging } from "@/util/use-paging";
export default defineComponent({ export default defineComponent({
......
...@@ -94,20 +94,20 @@ ...@@ -94,20 +94,20 @@
</template> </template>
<script lang="ts"> <script lang="ts">
// eslint-disable-next-line @typescript-eslint/no-explicit-any
import { computed, defineComponent, onMounted, reactive, toRefs } from "vue"; import { computed, defineComponent, onMounted, reactive, toRefs } from "vue";
import { useRoute, useRouter } from "vue-router"; import { useRoute, useRouter } from "vue-router";
import { useStore } from "vuex"; import { useStore } from "vuex";
import { Button, Col, Row, Cell, Loading, Toast } from "vant"; import { Button, Col, Row, Cell, Loading, Toast } from "vant";
import WithdrawList from "./withdrawList.vue";
import WithdrawRulesDialog from "./withdrawRulesDialog.vue";
import WithdrawableDialog from "./withdrawableDialog.vue";
import BindWXDialog from "./bindWXDialog.vue";
import { BonusAccountResponse } from "@/model/bonus"; import { BonusAccountResponse } from "@/model/bonus";
import { BonusAccountStatus, ErrCode } from "@/model/bonus/constant"; import { BonusAccountStatus, ErrCode } from "@/model/bonus/constant";
import { bindWeChat, useNativeBridge } from "@/util/use-native-bridge"; import { bindWeChat, useNativeBridge } from "@/util/use-native-bridge";
import { bindWeiChat, getBonusAccount } from "@/server/api/bonus"; import { bindWeiChat, getBonusAccount } from "@/server/api/bonus";
import WithdrawList from "./withdrawList.vue";
import WithdrawRulesDialog from "./withdrawRulesDialog.vue";
import WithdrawableDialog from "./withdrawableDialog.vue";
import BindWXDialog from "./bindWXDialog.vue";
interface BonusState { interface BonusState {
bonusAccount: BonusAccountResponse | null; bonusAccount: BonusAccountResponse | null;
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
padding: 146px 32px 0; padding: 146px 32px 0;
background: #fff; background: #fff;
min-height: 100vh; min-height: 100vh;
&-info { .info {
text-align: center; text-align: center;
} }
&-input { .input {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
position: absolute; position: absolute;
bottom: 0; bottom: 0;
} }
.label-money-symbol { .money-symbol {
width: 62px; width: 62px;
font-size: 60px; font-size: 60px;
font-weight: 600; font-weight: 600;
...@@ -125,11 +125,11 @@ ...@@ -125,11 +125,11 @@
.handle-btn { .handle-btn {
padding: 0 72px; padding: 0 72px;
margin-top: 107px; margin-top: 107px;
.withdraw-title { .title {
font-size: 36px; font-size: 36px;
line-height: 50px; line-height: 50px;
} }
.withdraw-tips { .tips {
opacity: 0.5; opacity: 0.5;
line-height: 32px; line-height: 32px;
} }
......
<template> <template>
<div class="bonus-withdraw"> <div class="bonus-withdraw">
<ul class="bonus-withdraw-info"> <ul class="info">
<li class="bonus-withdraw-input"> <li class="input">
<span class="label-money-symbol">¥</span> <span class="money-symbol">¥</span>
<van-field <van-field
v-model="withdrawAmount" v-model="withdrawAmount"
type="number" type="number"
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
clearable clearable
:border="false" :border="false"
input-align="center" input-align="center"
class="bonus-withdraw-input-field" class="input-field"
></van-field> ></van-field>
<van-button <van-button
class="all" class="all"
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
>全部</van-button >全部</van-button
> >
</li> </li>
<li class="bonus-withdraw-input-valid">今日可提现金额¥{{ withdrawableTotal }}元</li> <li class="input-valid">今日可提现金额¥{{ withdrawableTotal }}元</li>
<li class="bonus-withdraw-input-tip"> <li class="input-tip">
<i class="iconfont icon-wenhao"></i> <i class="iconfont icon-wenhao"></i>
<span>单日累计提现不超过{{ studentDailyWithdrawLimit }}元!</span> <span>单日累计提现不超过{{ studentDailyWithdrawLimit }}元!</span>
</li> </li>
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
</van-cell> </van-cell>
<div class="handle-btn"> <div class="handle-btn">
<van-button round type="primary" size="large" color="#F1551E" block @click="withdrawSubmit"> <van-button round type="primary" size="large" color="#F1551E" block @click="withdrawSubmit">
<div class="withdraw-title">确认提现</div> <div class="title">确认提现</div>
<div class="withdraw-tips">预计24小时内到账</div> <div class="tips">预计24小时内到账</div>
</van-button> </van-button>
</div> </div>
<!-- 提现弹窗 --> <!-- 提现弹窗 -->
...@@ -59,9 +59,11 @@ ...@@ -59,9 +59,11 @@
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, onMounted, reactive, toRefs } from "vue"; import { computed, defineComponent, onMounted, reactive, toRefs } from "vue";
import { Button, Cell, Dialog, Field, Toast } from "vant";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { useStore } from "vuex"; import { useStore } from "vuex";
import { Button, Cell, Dialog, Field, Toast } from "vant";
import { sendNativeMessage } from "@/util/use-native-bridge"; import { sendNativeMessage } from "@/util/use-native-bridge";
import { getWithdrawRisk } from "@/server/api/bonus"; import { getWithdrawRisk } from "@/server/api/bonus";
import { WithdrawResponse } from "@/model/bonus"; import { WithdrawResponse } from "@/model/bonus";
...@@ -71,7 +73,6 @@ import WithdrawDialog from "./withdrawDialog.vue"; ...@@ -71,7 +73,6 @@ import WithdrawDialog from "./withdrawDialog.vue";
interface State { interface State {
WithdrawResponse?: WithdrawResponse | object; WithdrawResponse?: WithdrawResponse | object;
withdrawAccountId: string; withdrawAccountId: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: number | string | boolean | any; [key: string]: number | string | boolean | any;
} }
......
...@@ -60,13 +60,14 @@ ...@@ -60,13 +60,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
// eslint-disable-next-line @typescript-eslint/no-explicit-any
declare const TencentCaptcha: any; declare const TencentCaptcha: any;
import { defineComponent, ref, watchEffect, reactive, computed, toRefs } from "vue"; import { defineComponent, ref, watchEffect, reactive, computed, toRefs } from "vue";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { useStore } from "vuex"; import { useStore } from "vuex";
import { Dialog, Button, Field, Toast, Cell } from "vant"; import { Dialog, Button, Field, Toast, Cell } from "vant";
import { checkCaptcha, withdraw } from "@/server/api/bonus"; import { checkCaptcha, withdraw } from "@/server/api/bonus";
import { countDown } from "@/util/timer"; import { countDown } from "@/util/timer";
...@@ -80,7 +81,6 @@ interface TencentCaptchaResponse { ...@@ -80,7 +81,6 @@ interface TencentCaptchaResponse {
interface State { interface State {
timeoutParams?: { timeCounter: number | undefined }; timeoutParams?: { timeCounter: number | undefined };
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: number | string | boolean | any; [key: string]: number | string | boolean | any;
} }
......
...@@ -25,8 +25,10 @@ ...@@ -25,8 +25,10 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, ref, watchEffect } from "vue"; import { defineComponent, ref, watchEffect } from "vue";
import { Dialog, Button } from "vant";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { Dialog, Button } from "vant";
export default defineComponent({ export default defineComponent({
components: { components: {
[Dialog.Component.name]: Dialog.Component, [Dialog.Component.name]: Dialog.Component,
......
<template> <template>
<van-list <pull-refresh-list v-slot="{ list }" :request="getWithdrawList" :paramsFn="paramsFn">
:modelValue="paging.loading" <div class="withdraw-list" v-for="item in list" :key="item.id">
:finished="isFinished" <div class="header">
:finished-text="finishText" <div class="header-status">
@load="loadMore"
>
<template v-if="paging.list.length">
<div class="withdraw-list" v-for="item in paging.list" :key="item.id">
<div class="withdraw-list-header">
<div class="withdraw-list-header-status">
<i <i
class="iconfont" class="iconfont"
:class=" :class="
...@@ -48,44 +42,35 @@ ...@@ -48,44 +42,35 @@
<li v-if="item.status === WithdrawStatus.WITHDRAWING"> <li v-if="item.status === WithdrawStatus.WITHDRAWING">
预计时间:{{ item.expectedPayTime }} 预计时间:{{ item.expectedPayTime }}
</li> </li>
<li v-if="item.status === WithdrawStatus.RECEIVED"> <li v-if="item.status === WithdrawStatus.RECEIVED">到账时间:{{ item.withdrawPayTime }}</li>
到账时间:{{ item.withdrawPayTime }}
</li>
<li v-if="item.status === WithdrawStatus.FAILED">失败时间:{{ item.failTime }}</li> <li v-if="item.status === WithdrawStatus.FAILED">失败时间:{{ item.failTime }}</li>
<li v-if="item.status === WithdrawStatus.FAILED">失败原因:{{ item.reason }}</li> <li v-if="item.status === WithdrawStatus.FAILED">失败原因:{{ item.reason }}</li>
</ul> </ul>
</div> </div>
</template> </pull-refresh-list>
<van-empty key="2" image="search" v-if="paging.error" :description="paging.error" />
<van-empty v-else-if="paging.isLoad && paging.total < 1" />
</van-list>
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, computed, onMounted } from "vue"; import { defineComponent, computed } from "vue";
import { List, PullRefresh, Empty, Loading } from "vant";
import { usePaging } from "@/util/use-paging";
import { getWithdrawList } from "@/server/api/bonus";
import { useStore } from "vuex"; import { useStore } from "vuex";
import { getWithdrawList } from "@/server/api/bonus";
import { WithdrawStatus } from "@/model/bonus/constant"; import { WithdrawStatus } from "@/model/bonus/constant";
import PullRefreshList from "./components/pull-pefresh-list.vue";
export default defineComponent({ export default defineComponent({
components: { components: {
[List.name]: List, PullRefreshList
[PullRefresh.name]: PullRefresh,
[Empty.name]: Empty,
[Loading.name]: Loading
}, },
setup() { setup() {
const store = useStore(); const store = useStore();
const bonusStoreState = computed(() => store.state.bonus); const bonusStoreState = computed(() => store.state.bonus);
const [paging, loadMore, refresh, helpers] = usePaging(getWithdrawList, () => ({ const paramsFn = () => ({
studentId: bonusStoreState.value.studentId studentId: bonusStoreState.value.studentId
})); });
onMounted(refresh);
return { ...helpers, paging, loadMore, refresh, WithdrawStatus }; return { WithdrawStatus, getWithdrawList, paramsFn };
} }
}); });
</script> </script>
...@@ -97,11 +82,16 @@ export default defineComponent({ ...@@ -97,11 +82,16 @@ export default defineComponent({
padding: 20px 19px; padding: 20px 19px;
border-radius: 10px; border-radius: 10px;
box-shadow: 0px 10px 20px 0px rgba(221, 221, 221, 0.3); box-shadow: 0px 10px 20px 0px rgba(221, 221, 221, 0.3);
&-header { .header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
&-status { .apply-money {
color: #f1551e;
font-weight: 550;
}
}
.header-status {
display: flex; display: flex;
align-items: center; align-items: center;
i { i {
...@@ -117,11 +107,6 @@ export default defineComponent({ ...@@ -117,11 +107,6 @@ export default defineComponent({
font-size: 28px; font-size: 28px;
} }
} }
.apply-money {
color: #f1551e;
font-weight: 550;
}
}
&-detail { &-detail {
background: #f5faff; background: #f5faff;
opacity: 0.9; opacity: 0.9;
......
...@@ -23,7 +23,9 @@ ...@@ -23,7 +23,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, ref, watchEffect } from "vue"; import { defineComponent, ref, watchEffect } from "vue";
import { Dialog, Button } from "vant"; import { Dialog, Button } from "vant";
import { makeCall } from "@/util/use-native-bridge"; import { makeCall } from "@/util/use-native-bridge";
export default defineComponent({ export default defineComponent({
......
...@@ -11,9 +11,12 @@ ...@@ -11,9 +11,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, ref, watchEffect } from "vue"; import { defineComponent, ref, watchEffect } from "vue";
import { Dialog, Button } from "vant"; import { Dialog, Button } from "vant";
import { makeCall } from "@/util/use-native-bridge"; import { makeCall } from "@/util/use-native-bridge";
import { formatBonusTipTxt } from "@/util/formatBonusTipTxt"; import { formatBonusTipTxt } from "@/util/formatBonusTipTxt";
export default defineComponent({ export default defineComponent({
components: { components: {
[Dialog.Component.name]: Dialog.Component, [Dialog.Component.name]: Dialog.Component,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment