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=",
|
||||
"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": {
|
||||
"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",
|
||||
@@ -5116,8 +5124,7 @@
|
||||
"follow-redirects": {
|
||||
"version": "1.14.3",
|
||||
"resolved": "https://registry.nlark.com/follow-redirects/download/follow-redirects-1.14.3.tgz",
|
||||
"integrity": "sha1-atp4EY2NJMruWVWVrM3ArGq9Ai4=",
|
||||
"dev": true
|
||||
"integrity": "sha1-atp4EY2NJMruWVWVrM3ArGq9Ai4="
|
||||
},
|
||||
"for-in": {
|
||||
"version": "1.0.2",
|
||||
@@ -6337,6 +6344,11 @@
|
||||
"integrity": "sha1-J8dlOb4U2L0Sghmi1zGwkzeQTnk=",
|
||||
"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": {
|
||||
"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",
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
"build": "vue-cli-service build"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.21.4",
|
||||
"core-js": "^3.17.2",
|
||||
"element-ui": "^2.15.6",
|
||||
"js-md5": "^0.7.3",
|
||||
"less": "^4.1.1",
|
||||
"less-loader": "^6.2.0",
|
||||
"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 '@/assets/style/global.css'
|
||||
import '@/assets/style/flex.css'
|
||||
import md5 from 'js-md5'
|
||||
Vue.prototype.$md5 = md5
|
||||
|
||||
Vue.use(ElementUI)
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<img src="@/assets/evalute.png" alt="" />
|
||||
<div>
|
||||
<div>
|
||||
<span> 应征户姓名:{{ this.source.name }} </span>
|
||||
|
||||
@@ -151,6 +151,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from '@/util'
|
||||
export default {
|
||||
data() {
|
||||
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: {
|
||||
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() {
|
||||
console.log(11)
|
||||
console.log('跳转二维码页面')
|
||||
},
|
||||
// 跳转评估页面
|
||||
evaluate() {
|
||||
this.$router.push('/evaluate')
|
||||
},
|
||||
// 跳转协议页面
|
||||
compensate() {
|
||||
this.$router.push('/compensate')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user