wangxy 1 maand geleden
bovenliggende
commit
1707ee1cbf
1 gewijzigde bestanden met toevoegingen van 7 en 3 verwijderingen
  1. 7 3
      pages/study/index.vue

+ 7 - 3
pages/study/index.vue

@@ -38,8 +38,8 @@
 			@dao-tip-close="daoTipClose"></dao-tip-dialog>
 		<tipMiddleDialog ref="tipDialogRef" :closeFlag='false' @confirm-btn="BanbenConfirmBtn" :title="tipTitle"
 			:content="tipContentVersion"></tipMiddleDialog>
-		<tip-dialog ref="tipDialogRef2" :closeFlag='false' :title="tipTitle"
-			:content="tipContentVersionAndroid"></tip-dialog>
+		<tipMiddleDialog ref="tipDialogRef2" :closeFlag='false' :title="tipTitle" @confirm-btn="BanbenConfirmBtn"
+			:content="tipContentVersionAndroid"></tipMiddleDialog>
 	</view>
 </template>
 <script setup>
@@ -117,6 +117,7 @@
 	const typeId = ref(null);
 	const zhangList = ref(null);
 	const gradeTerm = ref(null);
+	const updateUrl = ref(null);
 	let infoData = reactive({
 		jieList: [],
 		haveFlag: '',
@@ -141,7 +142,7 @@
 	const tipDialogRef2 = ref(null);
 	const tipTitle = '升级提醒';
 	const tipContentVersion = '您的APP不是最新版本,部分功能不能使用,请升级至最新版本!';
-	const tipContentVersionAndroid = '您的APP不是最新版本,部分功能不能使用,请到应用商店升级至最新版本!'
+	const tipContentVersionAndroid = '您的APP不是最新版本,部分功能不能使用,请升级至最新版本!'
 
 	onLoad((options) => {
 		init(options);
@@ -154,11 +155,14 @@
 		if (systemInfo.platform == 'ios') {
 			const appStoreUrl = 'itms-apps://itunes.apple.com/app/6741551741'
 			plus.runtime.openURL(appStoreUrl)
+		} else {
+			plus.runtime.openURL(updateUrl.value)
 		}
 	}
 
 	function getLoginInit() {
 		getVersion({}).then(res => {
+			updateUrl.value = res.data.updateUrl	
 			if (version != res.data.version) {
 				const systemInfo = uni.getSystemInfoSync();
 				if (systemInfo.platform == 'ios') {