Feat:增加提现规则
This commit is contained in:
@@ -603,3 +603,11 @@ export function queryUserGuide(params) {
|
||||
export function setUserGuide(params) {
|
||||
return request.post('/user/guide/status', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 提现规则
|
||||
*/
|
||||
export function getWithdrawalRules() {
|
||||
return request.get('/extract/rule')
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,10 @@
|
||||
</view>
|
||||
|
||||
<view class="amount-box">
|
||||
<view class="title bold">提现金额:</view>
|
||||
<view class="v12-justify-between">
|
||||
<view class="title bold">提现金额:</view>
|
||||
<view class="title" @click="showRules">提现规则</view>
|
||||
</view>
|
||||
<view class="item acea-row row-middle">
|
||||
<view class="dollar bold">¥</view>
|
||||
<view class="input">
|
||||
@@ -68,18 +71,25 @@
|
||||
</block>
|
||||
</blPaymentPasswordInput>
|
||||
</uni-popup>
|
||||
|
||||
<uni-popup ref="rulesPopup" class="rules-popup" safe-area background-color="#fff" type="bottom">
|
||||
<view class="rules-content">
|
||||
<view class="rules-title">提现规则</view>
|
||||
<rich-text v-if="withdrawalRules" class="rules-text" :nodes="withdrawalRules" />
|
||||
<view v-else class="rules-text">暂无提现规则</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapGetters} from "vuex";
|
||||
import { getBank, bankCardList, postCashInfo } from "@/api/user";
|
||||
import { getBank, bankCardList, postCashInfo, getWithdrawalRules } from "@/api/user";
|
||||
import NP from "number-precision";
|
||||
import uniPopup from '@/components/uni-popup/uni-popup.vue';
|
||||
import blPaymentPasswordInput from '@/components/blPaymentPasswordInput.vue';
|
||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||
import { formatRichText } from '@/utils'
|
||||
|
||||
export default {
|
||||
mixins: [pageListenMixins],
|
||||
@@ -97,7 +107,8 @@ export default {
|
||||
gdLimit: 0, //最低固定费率额度
|
||||
feeRate: 0, //手续费费率
|
||||
remark: "", //提现说明
|
||||
pageKeyId: Object.freeze('userExtractIndex')
|
||||
pageKeyId: Object.freeze('userExtractIndex'),
|
||||
withdrawalRules: '',
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -135,6 +146,12 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
showRules() {
|
||||
getWithdrawalRules().then(res => {
|
||||
this.withdrawalRules = formatRichText(res.data);
|
||||
this.$refs.rulesPopup.open();
|
||||
})
|
||||
},
|
||||
calculateSxf: function (amout) {
|
||||
var sxf = 0;
|
||||
if (amout == 0) {
|
||||
@@ -477,4 +494,32 @@ export default {
|
||||
line-height: 40rpx;
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
|
||||
.rules-popup /deep/ .uni-popup__wrapper-box {
|
||||
background: #FFFFFF;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
}
|
||||
|
||||
.rules-content {
|
||||
padding: 32rpx;
|
||||
padding-bottom: calc(32rpx + constant(safe-area-inset-bottom));
|
||||
padding-bottom: calc(32rpx + env(safe-area-inset-bottom));
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.rules-title {
|
||||
margin-bottom: 24rpx;
|
||||
color: #333333;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
line-height: 44rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.rules-text {
|
||||
color: #666666;
|
||||
font-size: 26rpx;
|
||||
line-height: 40rpx;
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user