Commit 1937e4e5 by zhangbin

gx

parent a6c76fe2
...@@ -1423,6 +1423,36 @@ const routes = [ ...@@ -1423,6 +1423,36 @@ const routes = [
title: "最美网格员", title: "最美网格员",
}, },
}, },
// 判断版本进入新or旧页面
{
path: "/version",
name: "version",
component: () =>
import ("@/views/version/index.vue"),
meta: {
title: "镇合意",
},
},
// 跳转小程序
{
path: "/applets",
name: "applets",
component: () =>
import ("@/views/applets/index"),
meta: {
title: "镇合意",
},
},
// 互助倡议书
{
path: "/mutualaid",
name: "mutualaid",
component: () =>
import ("@/views/mutualaid/index"),
meta: {
title: "互助倡议书",
},
},
// 临时页面 // 临时页面
{ {
path: "/temp", path: "/temp",
......
...@@ -7,8 +7,8 @@ Vue.use(Toast); ...@@ -7,8 +7,8 @@ Vue.use(Toast);
const env = process.env.NODE_ENV === "development" ? "dev" : "prod"; const env = process.env.NODE_ENV === "development" ? "dev" : "prod";
const baseUrl = { const baseUrl = {
dev: "http://192.168.3.144:10010/", // dev: "http://192.168.3.144:10010/",
// dev: "http://81.69.231.72:10010/", dev: "http://81.69.231.72:10010/",
// dev: "https://www.smart-zj.cn:55901/smartApp/", // dev: "https://www.smart-zj.cn:55901/smartApp/",
// prod: 'http://81.69.231.72:9090/', // prod: 'http://81.69.231.72:9090/',
......
<template>
<div>
<!-- applets
<button style="width: 80px; background: #07c160; border-radius: 5px">
<a style="color: #fff" :href="src">跳转</a>
</button> -->
</div>
</template>
<script>
import axios from 'axios'
export default {
data() {},
methods: {
init() {
axios({
url: 'https://appointment.smart-zj.cn/applet/applet/wx/getScheme',
method: 'get',
headers: {
'Content-Type': "application/json",
},
}).then((res) => {
console.log('res', res);
if (res.data.status == 100) {
location.href = res.data.data // 'weixin://dl/business/?t=N8K8YFAvn4k'
this.back()
} else {
this.$dialog.confirm({
message: "系统繁忙,请稍后重试!",
showCancelButton: false,
}).then(() => {
this.back()
})
}
})
},
// 返回首页
back() {
if (window.android !== undefined) {
window.android.backHome();
} else {
window.webkit && window.webkit.messageHandlers.backHome.postMessage("");
}
},
},
created() {
this.init()
},
}
</script>
<style>
</style>
\ No newline at end of file
...@@ -539,7 +539,7 @@ import { ...@@ -539,7 +539,7 @@ import {
queryApplyingDeedTaxInfo, queryApplyingDeedTaxInfo,
idCardVerification idCardVerification
} from "@/api/deedtax.js"; } from "@/api/deedtax.js";
import { decryptByDES } from "@/utils/utils"; // import { decryptByDES } from "@/utils/utils";
Vue.use(Button) Vue.use(Button)
.use(Tab) .use(Tab)
...@@ -752,10 +752,10 @@ export default { ...@@ -752,10 +752,10 @@ export default {
jump() { jump() {
idCardVerification({idCard: this.userInfo.idCardNo}).then((res) => { idCardVerification({idCard: this.userInfo.idCardNo}).then((res) => {
if (res.data) { if (res.data) {
let params = { // let params = {
idCard: decryptByDES(this.userInfo.idCardNo, "MnuYbhGv"), // idCard: decryptByDES(this.userInfo.idCardNo, "MnuYbhGv"),
}; // };
queryUserApplyForRecord(params).then((res) => { queryUserApplyForRecord({idCard: this.userInfo.idCardNo}).then((res) => {
console.log(res); console.log(res);
// alert(JSON.stringify(res)) // alert(JSON.stringify(res))
if (res.code == 200) { if (res.code == 200) {
......
...@@ -144,7 +144,7 @@ import { ...@@ -144,7 +144,7 @@ import {
queryApplyingDeedTaxInfo, queryApplyingDeedTaxInfo,
idCardVerification idCardVerification
} from "@/api/deedtax.js"; } from "@/api/deedtax.js";
import { decryptByDES } from "@/utils/utils"; // import { decryptByDES } from "@/utils/utils";
Vue.use(Step) Vue.use(Step)
.use(Steps) .use(Steps)
...@@ -174,10 +174,10 @@ export default { ...@@ -174,10 +174,10 @@ export default {
go() { go() {
idCardVerification({idCard: this.userInfo.idCardNo}).then((res) => { idCardVerification({idCard: this.userInfo.idCardNo}).then((res) => {
if (res.data) { if (res.data) {
let params = { // let params = {
idCard: decryptByDES(this.userInfo.idCardNo, "MnuYbhGv"), // idCard: decryptByDES(this.userInfo.idCardNo, "MnuYbhGv"),
}; // };
queryUserApplyForRecord(params).then((res) => { queryUserApplyForRecord({idCard: this.userInfo.idCardNo}).then((res) => {
// alert(JSON.stringify(res)) // alert(JSON.stringify(res))
if (res.code == 200) { if (res.code == 200) {
if (res.data.state == 0) { if (res.data.state == 0) {
...@@ -232,8 +232,6 @@ export default { ...@@ -232,8 +232,6 @@ export default {
message: "经系统查询,您已享受过相关政策补贴 ,不能再次申报契税补贴政策。如有异议请联系市财政窗口,地址:镇江市政务服务中心(冠城路8号工人大厦)二楼市财政局窗口,联系电话:0511-89881850", message: "经系统查询,您已享受过相关政策补贴 ,不能再次申报契税补贴政策。如有异议请联系市财政窗口,地址:镇江市政务服务中心(冠城路8号工人大厦)二楼市财政局窗口,联系电话:0511-89881850",
}) })
} }
}).catch((res) => {
alert(JSON.stringify(res))
}) })
}, },
change(val) { change(val) {
......
<template>
<div class="mutualaid">
<img src="./img/mutualaid.jpg" alt="">
</div>
</template>
<script>
export default {
}
</script>
<style lang="stylus" scoped>
.mutualaid{
width 100%;
height 100%;
overflow: scroll;
img{
width 100%;
}
}
</style>
\ No newline at end of file
...@@ -28,7 +28,7 @@ import { ...@@ -28,7 +28,7 @@ import {
mattersGuideGet mattersGuideGet
} from "@/api/policy"; } from "@/api/policy";
import {queryUserApplyForRecord,queryApplyingDeedTaxInfo,idCardVerification} from '@/api/deedtax' import {queryUserApplyForRecord,queryApplyingDeedTaxInfo,idCardVerification} from '@/api/deedtax'
import { decryptByDES } from "@/utils/utils"; // import { decryptByDES } from "@/utils/utils";
import imgUrl from "@/assets/policy/banner.png"; import imgUrl from "@/assets/policy/banner.png";
Vue.use(Button).use(Dialog); Vue.use(Button).use(Dialog);
...@@ -185,12 +185,12 @@ export default { ...@@ -185,12 +185,12 @@ export default {
) { ) {
idCardVerification({idCard: this.userInfo.idCardNo}).then((res) => { idCardVerification({idCard: this.userInfo.idCardNo}).then((res) => {
if (res.data) { if (res.data) {
let params = { // let params = {
// userId: this.userInfo.userId, // // userId: this.userInfo.userId,
// idCard: this.userInfo.idCardNo // // idCard: this.userInfo.idCardNo
idCard: decryptByDES(this.userInfo.idCardNo, "MnuYbhGv") // idCard: decryptByDES(this.userInfo.idCardNo, "MnuYbhGv")
} // }
queryUserApplyForRecord(params).then((res) => { queryUserApplyForRecord({idCard: this.userInfo.idCardNo}).then((res) => {
console.log(res) console.log(res)
if (res.code == 200) { if (res.code == 200) {
if (res.data.state == 0) { if (res.data.state == 0) {
......
...@@ -76,7 +76,7 @@ import { Tab, Tabs, PullRefresh, List, Search, Button,Dialog } from "vant"; ...@@ -76,7 +76,7 @@ import { Tab, Tabs, PullRefresh, List, Search, Button,Dialog } from "vant";
import { mattersHousingList, mattersHousingUpdateState } from "@/api/policy"; import { mattersHousingList, mattersHousingUpdateState } from "@/api/policy";
import { policyEnume } from "@/utils/utils"; import { policyEnume } from "@/utils/utils";
import {queryUserApplyForRecord,queryApplyingDeedTaxInfo,idCardVerification} from '@/api/deedtax' import {queryUserApplyForRecord,queryApplyingDeedTaxInfo,idCardVerification} from '@/api/deedtax'
import { decryptByDES } from "@/utils/utils"; // import { decryptByDES } from "@/utils/utils";
Vue.use(Tab) Vue.use(Tab)
.use(Tabs) .use(Tabs)
...@@ -193,12 +193,12 @@ export default { ...@@ -193,12 +193,12 @@ export default {
update(record) { update(record) {
idCardVerification({idCard: this.userInfo.idCardNo}).then((res) => { idCardVerification({idCard: this.userInfo.idCardNo}).then((res) => {
if (res.data) { if (res.data) {
let params = { // let params = {
// userId: this.userInfo.userId, // // userId: this.userInfo.userId,
// idCard: this.userInfo.idCardNo // // idCard: this.userInfo.idCardNo
idCard: decryptByDES(this.userInfo.idCardNo, "MnuYbhGv") // idCard: decryptByDES(this.userInfo.idCardNo, "MnuYbhGv")
} // }
queryUserApplyForRecord(params).then((res) => { queryUserApplyForRecord({idCard: this.userInfo.idCardNo}).then((res) => {
console.log(res) console.log(res)
if (res.code == 200) { if (res.code == 200) {
if (res.data.state == 0) { if (res.data.state == 0) {
......
<template>
<div class="version">
</div>
</template>
<script>
export default {
data() {
return {
version: null,
}
},
methods: {
// 比较版本
check() {
alert(this.version);
let arr = this.version.split(".");
if (
arr[0] * 1 > 5 ||
(arr[0] * 1 == 5 && arr[1] * 1 > 2) ||
(arr[0] * 1 == 5 && arr[1] * 1 == 2 && arr[2] * 1 >= 8)
) {
alert(123)
} else {
alert(456)
}
},
getVersion(res) {
this.version = res;
this.check();
},
},
created() {
alert(this.$route.query.name)
//获取当前版本号
if (window.android !== undefined) {
this.version = window.android.getVersion();
this.check();
} else {
window.webkit &&
window.webkit.messageHandlers.getVersion.postMessage("getVersion");
}
},
mounted() {
window.getVersion = this.getVersion;
},
}
</script>
<style>
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment