index.vue 1.61 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
<template>
<view class="Intelligent">
<view class="Intelligent-box" @click="Intelligentbox">
<img src="/static/shenfenz.png" alt="" />
<view class="">
身份证识别
</view>
</view>
<view class="Intelligent-box1" @click="Intelligentbox1">
<img src="/static/yuyan.png" alt="" />
<view class="">
填写病例
</view>
</view>
</view>
</template>

<script>
import {request} from '../../request/request.js'
export default {
mounted() {
this.getPatient()
},
data(){
return {
patientForm:{
}
}
},
methods:{
async getPatient (){
const res = await request({url:'/patient'})
console.log(res,'res');
this.patientForm = res
},
//跳转相机扫描
Intelligentbox(){
uni.navigateTo({
url:'/pages/cardscanning/index'
})
},
Intelligentbox1(){
const userInfo = {
id: this.patientForm.id
}
uni.navigateTo({
url:`/pages/lnterpolation/index?userInfo=${JSON.stringify(userInfo)}`
})
}
}
}
</script>

<style scoped lang="scss">
.Intelligent{
padding: 32rpx;
.Intelligent-box,.Intelligent-box1{
width: 690rpx;
height: 185rpx;
background: #FFFFFF;
box-shadow: 4rpx 0rpx 20rpx 0rpx #ADB9BE;
border-radius: 12rpx 12rpx 12rpx 12rpx;
opacity: 0.9;
margin-bottom: 40rpx;
display: flex;
align-items: center;
img{
width: 100rpx;
height: 100rpx;
margin:0 30rpx;
}
view:{
font-family: Adobe Heiti Std;
font-size: 32rpx;
color: #111111;
line-height: 16rpx;
text-align: left;
font-style: normal;
text-transform: none;
};
}
}
</style>