| 
					
				 | 
			
			
				@@ -1,7 +1,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import request from '@/student/home-layout-orchestra/request-home'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { verifyUrl } from '@/helpers/toolsValidate'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { openDefaultWebView } from '@/student/home-layout-orchestra/state-orchestra'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { PullRefresh, Swipe, SwipeItem, Image, Tabs, Tab } from 'vant'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { PullRefresh, Swipe, SwipeItem, Image, Tabs, Tab, Popup } from 'vant'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { defineComponent } from 'vue'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import HotAlbum from './components/hot-album'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import InfoList from './components/info-list'
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -12,6 +12,11 @@ import TalentStyle from './components/talent-style' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import TheHomeHeader from './components/TheHomeHeader'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import VideoClass from './components/video-class'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import styles from './index.module.less'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import Download from './model/download'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import popupClose from './images/popup-close.png'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { postMessage } from '@/helpers/native-message'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { browser } from '@/helpers/utils'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { state } from '@/state'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default defineComponent({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'home-index',
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -37,7 +42,8 @@ export default defineComponent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       },
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       sageList: [], // 推荐达人
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       videoList: [], // 视频课
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      headerHeight: 0
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      headerHeight: 0,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      downloadStatus: false
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   },
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   mounted() {
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -188,6 +194,38 @@ export default defineComponent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </Tab>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </Tabs>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </PullRefresh>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <Popup
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          v-model:show={this.downloadStatus}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          round
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          style={{ width: '86%', background: 'transparent' }}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          closeable
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          closeIcon={popupClose}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        >
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <Download
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            buttonText={
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              state.orchestraInfo.installStatus ? '唤起酷乐秀' : '下载酷乐秀'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            onConfirm={() => {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              const type = browser().orchestraAndroid
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ? 'com.cooleshow.student'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                : 'ColexiuStudent'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (state.orchestraInfo.installStatus) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                postMessage({ api: 'openApp', content: { type: type } })
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                postMessage({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  api: 'downloadApp',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  content: { type: type, url: '' }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                })
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          />
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </Popup>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        {/* 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          ColexiuStudent IOS 学生端
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          com.cooleshow.student ADNROID 学生端
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          com.cooleshow.teacher ADNROID 老师端
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         */}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     )
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }
 
			 |