Bladeren bron

fix:细节修复

chenlei 5 maanden geleden
bovenliggende
commit
8bb26de01f
2 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. BIN
      src/assets/imgs/default-author.png
  2. 4 2
      src/views/report/Detail.vue

BIN
src/assets/imgs/default-author.png


+ 4 - 2
src/views/report/Detail.vue

@@ -29,6 +29,7 @@ const productId = route.query.productId
 const isSubscribe=ref(true)
 const isFree=ref(true)
 const priceNum=ref('')
+const riskLevelInfo=ref('')
 const visible = ref(false);
 const subscribeStatus = ref('')//expired --过期 unSubscribe--未订阅 subscribed--订阅中
 const riskLevelStatus=ref('')//expired过期的 unTest未测评 unMatch风险等级不匹配
@@ -63,9 +64,10 @@ async function getReportInfo() {
     productId: productId
   })
   if (res.Ret === 200 && res.ErrCode === 0) {
-    const { detail, authorInfo, price } = res.data
+    const { detail, authorInfo, price, riskLevel } = res.data
     authorInfoList.value=authorInfo
     reportInfo.value = detail
+    riskLevelInfo.value = riskLevel
     isLogin.value=res.data.login
     riskLevelStatus.value=res.data.riskLevelStatus
     headImgStyle.value = reportInfo.value.headResource.style ? JSON.parse(reportInfo.value.headResource.style) : []
@@ -312,7 +314,7 @@ function goDetails(item){
         </template>
       </div>
       <div class="time-box">
-        <span class="time">{{ reportInfo.publishTime }}&nbsp;{{reportInfo.riskLevel}}</span>
+        <span class="time">{{ reportInfo.publishTime }}&nbsp;{{riskLevelInfo}}</span>
         <span class="btn" @click="isShowMZSM = true">免责声明</span>
       </div>
     </template>