|
@@ -29,13 +29,13 @@
|
|
|
|
|
|
</view>
|
|
|
<view class="btn">
|
|
|
- <u-button color="#1F1F1F" @click="submit" size="large" shape="circle">确定</u-button>
|
|
|
+ <u-button color="#1F1F1F" :loading="loading" @click="submit" size="large" shape="circle">确定</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { transfer } from '@/api/wallet'
|
|
|
+import { transfer, getWallet } from '@/api/wallet'
|
|
|
import currency from "@/utils/currency"
|
|
|
export default {
|
|
|
data() {
|
|
@@ -68,13 +68,12 @@ export default {
|
|
|
uni.showToast({
|
|
|
title: '提现成功',
|
|
|
icon: 'success',
|
|
|
- duration: 2000
|
|
|
+ duration: 5000
|
|
|
});
|
|
|
- setTimeout(() => {
|
|
|
- uni.navigateBack();
|
|
|
- }, 2000);
|
|
|
+ this.getWallet()
|
|
|
+ this.price = null
|
|
|
}
|
|
|
- uni.hideLoading();
|
|
|
+ uni.hideLoading({ noConflict: true });
|
|
|
}
|
|
|
)
|
|
|
} else {
|
|
@@ -83,14 +82,22 @@ export default {
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
});
|
|
|
+ this.price = null
|
|
|
this.loading = false
|
|
|
- uni.hideLoading();
|
|
|
+ uni.hideLoading({ noConflict: true });
|
|
|
}
|
|
|
},
|
|
|
getAll() {
|
|
|
if (this.amount > 0) {
|
|
|
this.price = this.amount / 100;
|
|
|
}
|
|
|
+ },
|
|
|
+ getWallet() {
|
|
|
+ getWallet().then(({ content }) => {
|
|
|
+ if (content) {
|
|
|
+ this.amount = content.amount
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|