chenlei hace 6 meses
padre
commit
afdd636c4c
Se han modificado 2 ficheros con 18 adiciones y 4 borrados
  1. 17 4
      pc/wcarrier/comp/authorize.vue
  2. 1 0
      pc/wcarrier/join.vue

+ 17 - 4
pc/wcarrier/comp/authorize.vue

@@ -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

+ 1 - 0
pc/wcarrier/join.vue

@@ -349,6 +349,7 @@ export default {
       })
     },
     async init(args) {
+      this.inited = false
       this.args = args
       this.getCarrierInfo()
     },