|
@@ -61,7 +61,7 @@
|
|
|
finished-text="- 没有更多内容 -"
|
|
|
:immediate-check="false"
|
|
|
@load="getList()">
|
|
|
- <van-cell-group class="data-content" v-for="(item, index) in dataList" :key="index">
|
|
|
+ <van-cell-group class="data-content" v-for="(item, index) in dataList" :key="index" @click="showDetail(item)">
|
|
|
<van-cell style="padding: 16px 12px; 12px" :center="true">
|
|
|
<template #title>
|
|
|
<span style="font-size: .17rem; color:#333333; font-weight: 500; padding-right: .05rem;padding-bottom: .05rem;">{{ item.sysMusicScoreName }}</span>
|
|
@@ -73,7 +73,7 @@
|
|
|
<img v-if="getLevelByScore(item.score) == 3" class="scoreImg" src="./images/3.png" alt="">
|
|
|
</p>
|
|
|
</van-cell>
|
|
|
- <van-cell :clickable="false" center style="padding: 12px 12px 16px">
|
|
|
+ <van-cell is-link :clickable="false" center style="padding: 12px 12px 16px">
|
|
|
<template #title>
|
|
|
<van-grid :border="false" column-num="4" :clickable="true">
|
|
|
<van-grid-item text="综合得分" class="van-hairline--right">
|
|
@@ -105,6 +105,7 @@
|
|
|
<script>
|
|
|
import MHeader from "@/components/MHeader";
|
|
|
import MEmpty from '@/components/MEmpty';
|
|
|
+import { postMessage } from "@/helpers/native-message";
|
|
|
import dayjs from "dayjs";
|
|
|
import { browser } from "@/common/common";
|
|
|
import { queryMusicCompareRecord } from './api.js'
|
|
@@ -157,6 +158,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ showDetail(item) {
|
|
|
+ if(item.notesDataIndex > 0){
|
|
|
+ postMessage({
|
|
|
+ api: "openAccompanyWebView",
|
|
|
+ content: {
|
|
|
+ url: location.origin + `/accompany/#/report/${item.id}`,
|
|
|
+ orientation: 0,
|
|
|
+ isHideTitle: true,
|
|
|
+ statusBarTextColor: false,
|
|
|
+ isOpenLight: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.$toast('本次评测未生成报告')
|
|
|
+ }
|
|
|
+ },
|
|
|
async getList() {
|
|
|
try {
|
|
|
let res = await queryMusicCompareRecord(this.searchList)
|