Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/hqyDev' into online

lex-xin 10 mesi fa
parent
commit
ea54f57ae0

+ 3 - 3
src/views/creation/index-shareRoute.vue

@@ -14,7 +14,7 @@
             class="nav"
             :class="{ isScreenScroll: isScreenScroll }"
             :fixed="false"
-            :title="state.musicDetail.musicSheetName"
+            title="作品详情"
             left-arrow
             @click-left="goBack"
          />
@@ -377,7 +377,7 @@ export default {
                const jsonConfig = JSON.parse(res.data.jsonConfig)
                jsonConfig.speedRate && (this.staffState.speedRate = jsonConfig.speedRate)
                jsonConfig.musicRenderType && (this.staffState.musicRenderType = jsonConfig.musicRenderType)
-               jsonConfig.partIndex && (this.staffState.partIndex = jsonConfig.partIndex)
+               jsonConfig["part-index"] && (this.staffState.partIndex = jsonConfig["part-index"])
             } catch {}
             // 五线谱
             this.initStaff()
@@ -645,7 +645,7 @@ export default {
       this.state.heightA = this.$refs.playBoxDom.offsetHeight
       document.addEventListener("scroll", this.handleScroll)
       document.addEventListener("visibilitychange", this.handleVisibilitychange)
-      this.setFullHeight()
+      !browser().isApp && this.setFullHeight()
       window.addEventListener("resize", this.setFullHeight)
    },
    destroyed() {

+ 1 - 0
src/views/creation/index.less

@@ -23,6 +23,7 @@
             color: #fff;
          }
          .van-nav-bar__title {
+            line-height: 46px;
             font-size: 0.2rem;
             color: #fff;
          }

+ 1 - 1
src/views/creation/index.vue

@@ -571,7 +571,7 @@ export default {
             const jsonConfig = JSON.parse(res.data.jsonConfig)
             jsonConfig.speedRate && (this.staffState.speedRate = jsonConfig.speedRate)
             jsonConfig.musicRenderType && (this.staffState.musicRenderType = jsonConfig.musicRenderType)
-            jsonConfig.partIndex && (this.staffState.partIndex = jsonConfig.partIndex)
+            jsonConfig["part-index"] && (this.staffState.partIndex = jsonConfig["part-index"])
          } catch {}
          // 五线谱
          this.initStaff()