Browse Source

fix: "设备信息优惠券+机器密码修改"

Ritchie 1 year ago
parent
commit
3722aaa972
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/views/device/deviceOper.vue
  2. 2 1
      src/views/device/deviceSet.vue

+ 1 - 1
src/views/device/deviceOper.vue

@@ -111,7 +111,7 @@
         </div>
         <div class="operText">{{ $t("device.showGoods") }}</div>
       </div>
-      <div v-if="device.machineType === '1'" class="operItem" @click="changePasswordClk()">
+      <div v-if="user.type < 3" class="operItem" @click="changePasswordClk()">
         <div class="operIcon">
           <img class="operImg" src="../../assets/device/operIcon/password.png" />
         </div>

+ 2 - 1
src/views/device/deviceSet.vue

@@ -108,7 +108,7 @@
           </van-field>
         </div>
         <!-- 优惠券 -->
-        <van-field colon readonly :label="`${$t('device.coupon')}`" placeholder="" v-if="user.type < 2">
+        <van-field colon readonly :label="`${$t('device.coupon')}`" placeholder=""  v-if="user.type < 2 && user.ifForeign === '0' ">
           <template #input>
             <div class="l-flex-RC">
               <span>{{ couponStatusNameComp }}</span>
@@ -505,6 +505,7 @@ export default {
       toEditAdRule,
       adRuleList,
       machineType,
+      user,
     };
   },
 };