查询版本加内外网处理
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref,getCurrentInstance } from 'vue';
|
||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
import { versionCheck,getBindStatus } from '@/api/auth.js';
|
import { versionCheck,getBindStatus } from '@/api/auth.js';
|
||||||
import { formatIOS } from '@/utils/status.js'
|
import { formatIOS } from '@/utils/status.js'
|
||||||
@@ -28,6 +28,7 @@ import { requestAndroidPermissionAsync,requestAndroidPermission } from '@/utils/
|
|||||||
import {showAlert} from '@/utils/message.js'
|
import {showAlert} from '@/utils/message.js'
|
||||||
import { useUserStore } from '@/stores/user';
|
import { useUserStore } from '@/stores/user';
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
|
const { proxy } = getCurrentInstance();
|
||||||
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// 获取 存储手机的module
|
// 获取 存储手机的module
|
||||||
@@ -89,8 +90,10 @@ onLoad(async(opt) => {
|
|||||||
|
|
||||||
// 检查版本是否是最新的s
|
// 检查版本是否是最新的s
|
||||||
const getOSVesion = async()=>{
|
const getOSVesion = async()=>{
|
||||||
|
let networkEnv = proxy.$NETWORK_ENV;//1-内网 2-外网
|
||||||
systemInfo = uni.getSystemInfoSync();
|
systemInfo = uni.getSystemInfoSync();
|
||||||
let param = {
|
let param = {
|
||||||
|
runEnv:networkEnv,
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
verNumber:systemInfo.appWgtVersion,//当前版本号
|
verNumber:systemInfo.appWgtVersion,//当前版本号
|
||||||
// #endif
|
// #endif
|
||||||
|
|||||||
Reference in New Issue
Block a user