|
|
@@ -21,22 +21,22 @@
|
|
|
<div class="label-color">转账授权</div>
|
|
|
<div
|
|
|
class="p-color"
|
|
|
- :class="{ 'gray-color': !isBindPhone,'green-color':balanceAuthed,pointer:!$props.readOnly}"
|
|
|
+ :class="{ 'gray-color': !isBindPhone||this.$props.readOnly ,'green-color':balanceAuthed,pointer:!$props.readOnly}"
|
|
|
@click="authEvent(0)"
|
|
|
>
|
|
|
<i class="el-icon-loading
|
|
|
-" v-if="$reqState($interfaces.pay.sign_balance_protocol).ing"></i>{{balanceAuthed?'已授权':'去授权'}}
|
|
|
+" v-if="$reqState($interfaces.pay.sign_balance_protocol).ing"></i>{{authText(balanceAuthed)}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="center justify-between p-spacd2 defbt" v-if="isDealer">
|
|
|
<div class="label-color">提现授权</div>
|
|
|
<div
|
|
|
class="p-color"
|
|
|
- :class="{ 'gray-color': !isBindPhone,'green-color':withdrawAuthed,pointer:!$props.readOnly }"
|
|
|
+ :class="{ 'gray-color': !isBindPhone||this.$props.readOnly,'green-color':withdrawAuthed,pointer:!$props.readOnly }"
|
|
|
@click="authEvent(1)"
|
|
|
>
|
|
|
<i class="el-icon-loading
|
|
|
-" v-if="$reqState($interfaces.pay.sign_balance_protocol).ing"></i>{{withdrawAuthed?'已授权':'去授权'}}
|
|
|
+" v-if="$reqState($interfaces.pay.sign_balance_protocol).ing"></i>{{authText(withdrawAuthed)}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -239,6 +239,19 @@ export default {
|
|
|
this.formStepOne.tel = this.$props.value
|
|
|
},
|
|
|
methods: {
|
|
|
+ authText(authed) {
|
|
|
+ let rv = '未授权'
|
|
|
+ if (authed) {
|
|
|
+ rv = '已授权'
|
|
|
+ } else {
|
|
|
+ if (this.$props.readOnly) {
|
|
|
+ rv = '未授权'
|
|
|
+ } else {
|
|
|
+ rv = '去授权'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return rv
|
|
|
+ },
|
|
|
authEvent(type) {
|
|
|
if (this.$props.readOnly) {
|
|
|
return
|