skyblued пре 2 година
родитељ
комит
99a909f418
1 измењених фајлова са 24 додато и 7 уклоњено
  1. 24 7
      src/views/accompany/music-list.tsx

+ 24 - 7
src/views/accompany/music-list.tsx

@@ -87,7 +87,7 @@ export default defineComponent({
         const res: any = await request.post(state.platformApi + '/musicSheet/page', {
           data: {
             ...data.pagenation,
-            keyword: data.keyword,
+            keyword: data.keyword
             // musicTag: data.value2 || data.value1
           }
         })
@@ -197,6 +197,27 @@ export default defineComponent({
             </Search>
           </div>
         </Sticky>
+        <Cell
+          center
+          title="无别(【冥加】会员,测试"
+          isLink
+          onClick={() => {
+            const origin = /(localhost|192)/.test(location.host)
+              ? 'http://192.168.3.114:3000'
+              : location.origin
+            let src = `${origin}/orchestra-music-score/?id=1603573996544364546&Authorization=${sessionStorage.getItem('Authorization')}`
+            postMessage({
+              api: 'openAccompanyWebView',
+              content: {
+                url: src,
+                orientation: 0,
+                isHideTitle: true,
+                statusBarTextColor: false,
+                isOpenLight: true
+              }
+            })
+          }}
+        ></Cell>
         <PullRefresh v-model:modelValue={data.refreshing} onRefresh={onRefresh}>
           <List
             immediateCheck={false}
@@ -210,12 +231,7 @@ export default defineComponent({
             <CellGroup inset>
               {data.list.map((item: any) => {
                 return (
-                  <Cell
-                    center
-                    title={item.musicSheetName}
-                    isLink
-                    onClick={() => openView(item)}
-                  >
+                  <Cell center title={item.musicSheetName} isLink onClick={() => openView(item)}>
                     {{
                       icon: () => (
                         <Icon style={{ marginRight: '12px' }} size={40} name={imgDefault} />
@@ -227,6 +243,7 @@ export default defineComponent({
             </CellGroup>
           </List>
         </PullRefresh>
+
         {!data.loading && !data.list.length && <OEmpty tips="空空如也" />}
       </div>
     )