Compare commits
2 Commits
e15d65e7e4
...
d550f22253
| Author | SHA1 | Date | |
|---|---|---|---|
| d550f22253 | |||
| c68e83163e |
16
FrontCode1/vue/package-lock.json
generated
16
FrontCode1/vue/package-lock.json
generated
@@ -2396,6 +2396,14 @@
|
|||||||
"integrity": "sha1-1h9G2DslGSUOJ4Ta9bCUeai0HFk=",
|
"integrity": "sha1-1h9G2DslGSUOJ4Ta9bCUeai0HFk=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"axios": {
|
||||||
|
"version": "0.21.4",
|
||||||
|
"resolved": "https://registry.nlark.com/axios/download/axios-0.21.4.tgz?cache=0&sync_timestamp=1630942582656&other_urls=https%3A%2F%2Fregistry.nlark.com%2Faxios%2Fdownload%2Faxios-0.21.4.tgz",
|
||||||
|
"integrity": "sha1-xnuQ3AVo5cHPKwuFjEO6KOLtpXU=",
|
||||||
|
"requires": {
|
||||||
|
"follow-redirects": "^1.14.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"babel-helper-vue-jsx-merge-props": {
|
"babel-helper-vue-jsx-merge-props": {
|
||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npm.taobao.org/babel-helper-vue-jsx-merge-props/download/babel-helper-vue-jsx-merge-props-2.0.3.tgz",
|
"resolved": "https://registry.npm.taobao.org/babel-helper-vue-jsx-merge-props/download/babel-helper-vue-jsx-merge-props-2.0.3.tgz",
|
||||||
@@ -5116,8 +5124,7 @@
|
|||||||
"follow-redirects": {
|
"follow-redirects": {
|
||||||
"version": "1.14.3",
|
"version": "1.14.3",
|
||||||
"resolved": "https://registry.nlark.com/follow-redirects/download/follow-redirects-1.14.3.tgz",
|
"resolved": "https://registry.nlark.com/follow-redirects/download/follow-redirects-1.14.3.tgz",
|
||||||
"integrity": "sha1-atp4EY2NJMruWVWVrM3ArGq9Ai4=",
|
"integrity": "sha1-atp4EY2NJMruWVWVrM3ArGq9Ai4="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"for-in": {
|
"for-in": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
@@ -6337,6 +6344,11 @@
|
|||||||
"integrity": "sha1-J8dlOb4U2L0Sghmi1zGwkzeQTnk=",
|
"integrity": "sha1-J8dlOb4U2L0Sghmi1zGwkzeQTnk=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"js-md5": {
|
||||||
|
"version": "0.7.3",
|
||||||
|
"resolved": "https://registry.npm.taobao.org/js-md5/download/js-md5-0.7.3.tgz",
|
||||||
|
"integrity": "sha1-tPL7sLMnRV9ZjWcn447Ccs0Jw/I="
|
||||||
|
},
|
||||||
"js-message": {
|
"js-message": {
|
||||||
"version": "1.0.7",
|
"version": "1.0.7",
|
||||||
"resolved": "https://registry.npm.taobao.org/js-message/download/js-message-1.0.7.tgz?cache=0&sync_timestamp=1605129209185&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjs-message%2Fdownload%2Fjs-message-1.0.7.tgz",
|
"resolved": "https://registry.npm.taobao.org/js-message/download/js-message-1.0.7.tgz?cache=0&sync_timestamp=1605129209185&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjs-message%2Fdownload%2Fjs-message-1.0.7.tgz",
|
||||||
|
|||||||
@@ -7,8 +7,10 @@
|
|||||||
"build": "vue-cli-service build"
|
"build": "vue-cli-service build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"axios": "^0.21.4",
|
||||||
"core-js": "^3.17.2",
|
"core-js": "^3.17.2",
|
||||||
"element-ui": "^2.15.6",
|
"element-ui": "^2.15.6",
|
||||||
|
"js-md5": "^0.7.3",
|
||||||
"less": "^4.1.1",
|
"less": "^4.1.1",
|
||||||
"less-loader": "^6.2.0",
|
"less-loader": "^6.2.0",
|
||||||
"normalize.css": "^8.0.1",
|
"normalize.css": "^8.0.1",
|
||||||
|
|||||||
BIN
FrontCode1/vue/src/assets/evalute.png
Normal file
BIN
FrontCode1/vue/src/assets/evalute.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
@@ -8,6 +8,8 @@ import 'element-ui/lib/theme-chalk/index.css'
|
|||||||
import 'normalize.css/normalize.css'
|
import 'normalize.css/normalize.css'
|
||||||
// import '@/assets/style/global.css'
|
// import '@/assets/style/global.css'
|
||||||
import '@/assets/style/flex.css'
|
import '@/assets/style/flex.css'
|
||||||
|
import md5 from 'js-md5'
|
||||||
|
Vue.prototype.$md5 = md5
|
||||||
|
|
||||||
Vue.use(ElementUI)
|
Vue.use(ElementUI)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<img src="@/assets/evalute.png" alt="" />
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<span> 应征户姓名:{{ this.source.name }} </span>
|
<span> 应征户姓名:{{ this.source.name }} </span>
|
||||||
|
|||||||
@@ -151,6 +151,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import request from '@/util'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -167,16 +168,62 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
const servicecode = 'fwzs'
|
||||||
|
const date = new Date()
|
||||||
|
const fwzspwd = 'fwzspwd'
|
||||||
|
const ticket = this.$route.query.ticket
|
||||||
|
const time =
|
||||||
|
date.getFullYear() +
|
||||||
|
'' +
|
||||||
|
this.pad(date.getMonth() + 1, 2) +
|
||||||
|
'' +
|
||||||
|
this.pad(date.getDate(), 2) +
|
||||||
|
'' +
|
||||||
|
this.pad(date.getHours(), 2) +
|
||||||
|
'' +
|
||||||
|
this.pad(date.getMinutes(), 2) +
|
||||||
|
'' +
|
||||||
|
this.pad(date.getSeconds(), 2) +
|
||||||
|
''
|
||||||
|
const sign = this.$md5(servicecode + fwzspwd + time)
|
||||||
|
var url = `https://appapi.zjzwfw.gov.cn/sso/servlet/simpleauth?method=ticketValidation&servicecode=${servicecode}&time=${time}&sign=${sign}&st=${ticket}&datatype=datatype`
|
||||||
|
// 第一次请求
|
||||||
|
const data = request({
|
||||||
|
url: url,
|
||||||
|
})
|
||||||
|
console.log(1, data)
|
||||||
|
// 第二次请求
|
||||||
|
const datatype = {
|
||||||
|
result: '0',
|
||||||
|
token: '1231231231232asdasd',
|
||||||
|
}
|
||||||
|
const token = 'token'
|
||||||
|
const url2 = `https://appapi.zjzwfw.gov.cn/sso/servlet/simpleauth?method=getUserInfo&servicecode=${servicecode}&time=${time}&sign=${sign}&token=${token}&datatype=${datatype}`
|
||||||
|
const data2 = request({
|
||||||
|
url: url2,
|
||||||
|
})
|
||||||
|
console.log(2, data2)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handle() {
|
handle() {
|
||||||
console.log(111)
|
console.log('评估页面跳转')
|
||||||
|
},
|
||||||
|
pad(num, n) {
|
||||||
|
var tbl = []
|
||||||
|
var len = n - num.toString().length
|
||||||
|
if (len <= 0) return num
|
||||||
|
if (!tbl[len]) tbl[len] = new Array(len + 1).join('0')
|
||||||
|
return tbl[len] + num
|
||||||
},
|
},
|
||||||
QRcode() {
|
QRcode() {
|
||||||
console.log(11)
|
console.log('跳转二维码页面')
|
||||||
},
|
},
|
||||||
|
// 跳转评估页面
|
||||||
evaluate() {
|
evaluate() {
|
||||||
this.$router.push('/evaluate')
|
this.$router.push('/evaluate')
|
||||||
},
|
},
|
||||||
|
// 跳转协议页面
|
||||||
compensate() {
|
compensate() {
|
||||||
this.$router.push('/compensate')
|
this.$router.push('/compensate')
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user