|
@@ -78,6 +78,12 @@
|
|
<!-- 页面底端 -->
|
|
<!-- 页面底端 -->
|
|
<customTabbarAdminVue :current-tab="0"></customTabbarAdminVue>
|
|
<customTabbarAdminVue :current-tab="0"></customTabbarAdminVue>
|
|
<tip-dialog ref="tipDialogRef" :title="tipTitle" :content="tipContent"></tip-dialog>
|
|
<tip-dialog ref="tipDialogRef" :title="tipTitle" :content="tipContent"></tip-dialog>
|
|
|
|
+
|
|
|
|
+ <!-- 安卓强制升级 -->
|
|
|
|
+ <tipMiddleDialog ref="tipDialogRef2" :closeFlag='false' :title="tipTitle" @confirm-btn="BanbenConfirmBtn" :showTip="true"
|
|
|
|
+ :notClose="true" :content="tipContentAndroid">
|
|
|
|
+ </tipMiddleDialog>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -90,6 +96,11 @@ import {getAppNoticeList,getAppNoticeWait,getGlIndexInfo,getIndexKechengList} fr
|
|
import tipDialog from '@/components/dialog/tipDialog.vue';
|
|
import tipDialog from '@/components/dialog/tipDialog.vue';
|
|
import config from '../../../config.js'
|
|
import config from '../../../config.js'
|
|
import * as httpApi from "@/api/login.js"
|
|
import * as httpApi from "@/api/login.js"
|
|
|
|
+import tipMiddleDialog from '@/components/dialog/tipMiddleDialog.vue';
|
|
|
|
+import {
|
|
|
|
+ useVersionUpdate
|
|
|
|
+} from "@/utils/versionUpdate.js";
|
|
|
|
+
|
|
const version = config.appInfo.version;
|
|
const version = config.appInfo.version;
|
|
const tipDialogRef = ref(null);
|
|
const tipDialogRef = ref(null);
|
|
const tipTitle = '升级提醒';
|
|
const tipTitle = '升级提醒';
|
|
@@ -100,6 +111,14 @@ const tzNum = ref(0);
|
|
const tzContent = ref('');
|
|
const tzContent = ref('');
|
|
const searchType = ref('');
|
|
const searchType = ref('');
|
|
const current = ref(0);
|
|
const current = ref(0);
|
|
|
|
+const tipContentAndroid = '您的APP不是最新版本,部分功能不能使用,请升级至最新版本!'
|
|
|
|
+
|
|
|
|
+const tipDialogRef2 = ref(null)
|
|
|
|
+const updateUrl = ref(null)
|
|
|
|
+
|
|
|
|
+const {
|
|
|
|
+ initDownload
|
|
|
|
+ } = useVersionUpdate()
|
|
let indexInfoData = reactive({
|
|
let indexInfoData = reactive({
|
|
searchType:1,
|
|
searchType:1,
|
|
bzCount: 0,
|
|
bzCount: 0,
|
|
@@ -236,10 +255,27 @@ function tjBtnClick(data){
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ function BanbenConfirmBtn() {
|
|
|
|
+ const systemInfo = uni.getSystemInfoSync();
|
|
|
|
+ if (systemInfo.platform == 'ios') {
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ initDownload(updateUrl.value)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
function getLoginInit(){
|
|
function getLoginInit(){
|
|
httpApi.getVersion({}).then(res => {
|
|
httpApi.getVersion({}).then(res => {
|
|
- if(version!=res.data.version){
|
|
|
|
- tipDialogRef.value.handleShow();
|
|
|
|
|
|
+ if (version == res.data.version) {
|
|
|
|
+ updateUrl.value = res.data.updateUrl
|
|
|
|
+ tipDialogRef2.value.handleShow();
|
|
|
|
+ const systemInfo = uni.getSystemInfoSync();
|
|
|
|
+ if (systemInfo.platform == 'ios') {
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ tipDialogRef2.value.handleShow();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|