Explorar o código

fix: 修复

chenjj hai 1 mes
pai
achega
aaa1e96afd
Modificáronse 2 ficheiros con 7 adicións e 5 borrados
  1. 2 2
      components/picker/index.vue
  2. 5 3
      pages_home/pages/details/index.vue

+ 2 - 2
components/picker/index.vue

@@ -96,7 +96,7 @@ const confirm = (e) => {
   console.log(e);
   
   const id = getid(e.indexs);
-  emit('submit', {key:  e.value.join('/'),value: id });
+  emit('submit', {key:  e.value.filter(Boolean).join('/'),value: id });
   show.value = false;
 };
 
@@ -148,7 +148,7 @@ const piceInit = (id) => {
   const names = indexsToNames(indexs)
   pickValue.value.indexs = indexs;
 
-  return names.join('/')
+  return names.filter(Boolean).join('/')
   } catch (error) {
       console.log('piceInit-error',error);
       

+ 5 - 3
pages_home/pages/details/index.vue

@@ -1,9 +1,11 @@
 <template>
     <view class="details-main">
         <view class="status-box">
-            <img :src="statusData.img" alt="" style="width: 160rpx;height: 160rpx;margin-bottom: 36rpx;">
+            <img src="/static/serverImg/home/no.png" alt="" style="width: 160rpx;height: 160rpx;margin-bottom: 36rpx;" v-if="details.appStatus === '3'">
+            <img src="/static/serverImg/home/ok.png" alt="" style="width: 160rpx;height: 160rpx;margin-bottom: 36rpx;" v-if="['1','2'].includes(details.appStatus)">
+
             <text class="status-text">{{ statusData.text }}</text>
-            <text v-if="statusData.rejectReason" class="text2">{{ statusData.rejectReason }}</text>
+            <text v-if="statusData.rejectReason" class="text2">失败原因:{{ statusData.rejectReason }}</text>
         </view>
         <view class="status-main">
 
@@ -50,7 +52,7 @@
                 </view>
             </view>
 
-            <view class="status-btn" v-if="details.appStatus === 3" @click="startSubmit">重新提交</view>
+            <view class="status-btn" v-if="details.appStatus === '3'" @click="startSubmit">重新提交</view>
 
         </view>