Bladeren bron

异常提示修改

zuypeng 1 jaar geleden
bovenliggende
commit
c8f2033c51
2 gewijzigde bestanden met toevoegingen van 3 en 6 verwijderingen
  1. 2 5
      src/pages-wash/device/index.vue
  2. 1 1
      src/utils/https.ts

+ 2 - 5
src/pages-wash/device/index.vue

@@ -4,16 +4,13 @@
       <view class="device-header_name">
         <text>洗车机编号:{{ state.device.shortId }}</text>
       </view>
-      <uv-tags plain size="mini" type="primary" :text="fmtDictName('WashDevice.status',state.device.state)"></uv-tags>
-
       <view class="device-header_fun">
-        <view class="device-header_func-tag" v-for="f in state.device.functionList" :key="f">
+        <view class="device-header_func-tag" v-for="f in state.device.functionList" :key="f" style="margin-right: 10px;">
           <uv-tags :text="f"  size="mini"   plain plainFill bgColor="#19A497" color="white"> </uv-tags>
         </view>
-<!--        <uv-tags plain size="mini" type="info" :text="f" v-for="(f,i) in state.device.functions.split('|')" :key="i"></uv-tags>-->
       </view>
       <view class="device-header_fun">
-        <uv-tags plain size="mini" type="primary" :text="state.device.state"></uv-tags>
+        <uv-tags plain size="mini" type="primary" :text="fmtDictName('WashDevice.status',state.device.state)"></uv-tags>
       </view>
 
     </view>

+ 1 - 1
src/utils/https.ts

@@ -134,7 +134,7 @@ const request = (options: any) => {
                     }, 300)
 
                 } else {
-                    let errMsg = response.msg || '网络异常,请稍后重试';
+                    let errMsg = response.message || '网络异常,请稍后重试';
                     uni.showToast({
                         title: errMsg,
                         icon: 'none'