You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< view class = "wrap" >
< view class = "cancelcode" >
< view > 核销码 : { { code } } < / view >
< u -button @ click = 'cancelcode' type = "primary" text = "核销" color = 'deepskyblue' > < / u - b u t t o n >
< / view >
< view class = "cancelinfo" >
< view > 访客信息 < / view >
< view >
< view > 姓名 : < / view >
< view > 访问日期 : < / view >
< view > 访问时段 : < / view >
< view > 访问事由 : < / view >
< view > 拜访单位 : < / view >
< view > 受访人 : < / view >
< view > 受访科室 : < / view >
< / view >
< / view >
< / view >
< / template >
< script >
export default {
data ( ) {
return {
code : ''
}
} ,
onLoad ( options ) {
this . code = options . code
} ,
methods : {
cancelcode ( ) {
uni . showToast ( {
icon : "none" ,
title : '核销成功' ,
duration : 3000
} )
setTimeout ( function ( ) {
uni . navigateTo ( {
url : '/pages/index/index'
} )
} , 500 )
}
}
}
< / script >
< style scoped >
. wrap {
padding : 30 rpx
}
. cancelcode {
/* display: flex;
justify-content: space-between; */
}
. cancelcode view {
margin - bottom : 30 rpx ;
font - size : 36 rpx ;
}
/ deep / . cancelcode . u - button _ _text {
font - size : 36 rpx ! important ;
}
. cancelinfo {
font - size : 36 rpx ;
margin - top : 30 rpx
}
. cancelinfo view {
color : # ddd ;
margin - bottom : 30 rpx
}
. cancelinfo view view {
color : # 333
}
< / style >