update:更新首页

This commit is contained in:
2021-09-10 09:23:12 +08:00
parent 1b894fc60e
commit c68e83163e
6 changed files with 68 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@@ -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)

View File

@@ -1,5 +1,6 @@
<template>
<div class="container">
<img src="@/assets/evalute.png" alt="" />
<div>
<div>
<span> 应征户姓名{{ this.source.name }} </span>

View File

@@ -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')
},