Commit 2ab00957 by gonglei

加入框架代码

1 parent b58b9514
<template>
<view class="order-tabs">
<scroll-view scroll-x class="tabs-scroll">
<uni-segmented-control class="state-segmented" :current="current" :values="tabs" style-type="text" active-color="#333" inActiveColor="#666" @clickItem="onClickItem"/>
<uni-segmented-control :current="current" :values="tabs" style-type="text" active-color="#333" inActiveColor="#666" @clickItem="onClickItem"/>
</scroll-view>
</view>
<scroll-view class="scroll-content" scroll-y :refresher-enabled="true" :refresher-triggered="loading" @scrolltolower="doInfinite()" @refresherrefresh="pageReload()">
......@@ -11,7 +11,7 @@
<view class="recharge-item">
<view class="recharge-header">
<span class="order-id">订单编号:{{ recharge.outTradeNo }}</span>
<span class="recharge-copy"> <image src="/static/images/common/copy.png" style="width: 16px;height: 16px;transform: translateY(3px);"></image> </span>
<span class="recharge-copy" @click="copyOutTradeNo(recharge)"> <image src="/static/images/common/copy.png" style="width: 16px;height: 16px;transform: translateY(3px);"></image> </span>
</view>
<view class="payment-time">充值时间:{{ recharge.paymentTime }}</view>
<view class="recharge-info">
......@@ -107,8 +107,18 @@ export default class RechargeRefundPage extends PaginationComponent<Recharge> {
return this.pagination.content;
}
onClickItem(): void {
onClickItem(e: any) {
if (this.current !== e.currentIndex) {
this.current = e.currentIndex;
if (this.current === 0) {
this.pagination.addDefaultFilter('refundState', 'UNREFUND');
} else if (this.current === 1) {
this.pagination.addDefaultFilter('refundState', 'REFUNDING');
} else {
this.pagination.addDefaultFilter('refundState', 'REFUNDED');
}
this.pageReload();
}
}
refundRecharge(recharge: Recharge): void {
......@@ -124,6 +134,13 @@ export default class RechargeRefundPage extends PaginationComponent<Recharge> {
this.refundDialog.close();
}).finally(() => uni.hideLoading());
}
copyOutTradeNo(recharge: Recharge) {
uni.setClipboardData({
data: recharge.outTradeNo,
success: () => uni.showToast({title: '已复制到剪贴板', icon: 'none'})
});
}
}
</script>
......
......@@ -390,27 +390,27 @@
"enablePullDownRefresh": false
}
},
{
"path": "WithdrawForm",
"style": {
"navigationBarTitleText": "提现申请",
"enablePullDownRefresh": false
}
},
{
"path": "WithdrawSuccess",
"style": {
"navigationBarTitleText": "提现申请",
"enablePullDownRefresh": false
}
},
{
"path": "WithdrawConfirmPage",
"style": {
"navigationStyle": "custom",
"enablePullDownRefresh": false
}
},
// {
// "path": "WithdrawForm",
// "style": {
// "navigationBarTitleText": "提现申请",
// "enablePullDownRefresh": false
// }
// },
// {
// "path": "WithdrawSuccess",
// "style": {
// "navigationBarTitleText": "提现申请",
// "enablePullDownRefresh": false
// }
// },
// {
// "path": "WithdrawConfirmPage",
// "style": {
// "navigationStyle": "custom",
// "enablePullDownRefresh": false
// }
// },
{
"path": "RechargePage",
"style": {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!