Browse Source

提币新增撤销按钮

master
liaoxinyu 1 year ago
parent
commit
07e42dcf0b
  1. 12
      pages.json
  2. 10
      pages/assets/records.vue

12
pages.json

@ -173,6 +173,9 @@
{ {
"path": "pages/service/service" "path": "pages/service/service"
}, },
{
"path" : "pages/assets/records"
},
{ {
"path": "pages/service/index", "path": "pages/service/index",
"style": { "style": {
@ -207,15 +210,6 @@
} }
} }
} }
,{
"path" : "pages/assets/records",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
], ],
"globalStyle": { "globalStyle": {
"app-plus": { "app-plus": {

10
pages/assets/records.vue

@ -20,6 +20,7 @@
<th class="p-b-md fn-left p-l-md">{{ $t("assets.c9") }}</th> <th class="p-b-md fn-left p-l-md">{{ $t("assets.c9") }}</th>
<th class="p-b-md fn-left">{{ $t("assets.d0") }}</th> <th class="p-b-md fn-left">{{ $t("assets.d0") }}</th>
<th class="p-b-md fn-right p-r-md">{{ $t("assets.c0") }}</th> <th class="p-b-md fn-right p-r-md">{{ $t("assets.c0") }}</th>
<th class="p-b-md fn-right p-r-md">{{ $t("exchange.g3") }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -39,6 +40,9 @@
{{ item.amount }} {{ item.amount }}
<span class="color-default">({{ item.coin_name }})</span> <span class="color-default">({{ item.coin_name }})</span>
</td> </td>
<td class="" v-if="item.status==0">
<span style="color: #4381F6;width: 60px;height: 30px;font-size: 12px;" @click="cancelWithdraw(item)">{{$t('exchange.g4')}}</span>
</td>
</tr> </tr>
<!-- <tr v-if="loadMore"> <!-- <tr v-if="loadMore">
<td colspan="3" class="fn-center p-xs link-active" @click="more"> <td colspan="3" class="fn-center p-xs link-active" @click="more">
@ -72,6 +76,12 @@ import formData from "@/utils/class/date";
}, },
}, },
methods: { methods: {
cancelWithdraw(item) {
Wallet.cancelWithdraw({ withdraw_id: item.id }).then(res => {
this.$toast(this.$t('otc.d4'));
this.getWithdrawRecords()
})
},
// //
getWithdrawRecords() { getWithdrawRecords() {
let data = { let data = {

Loading…
Cancel
Save