scanResult.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='扫码结果'></cus-header>
  4. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/03/ea285d8f-ad96-447e-8f4a-77d495f2fac6.png"></image>
  5. <p>扫码成功</p>
  6. <p class="tip">设备已就绪,需添加角色才能使用<br>快去创建角色吧~</p>
  7. <div class="zt_btn" @tap="addRole">为设备添加角色</div>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data(){
  13. return {
  14. scanParams:''
  15. }
  16. },
  17. onLoad(option) {
  18. if(option.scanParams) this.scanParams = JSON.parse(option.scanParams);
  19. },
  20. methods:{
  21. addRole(){
  22. uni.navigateTo({
  23. url:'/pagesRole/addRole?type=1&scanParams='+JSON.stringify(this.scanParams)
  24. })
  25. },
  26. goBack(){
  27. uni.reLaunch({
  28. url:'/pages/home'
  29. })
  30. },
  31. }
  32. }
  33. </script>
  34. <style scoped lang="less">
  35. .page{
  36. background: #FFFFFF;
  37. display: flex;
  38. flex-direction: column;
  39. align-items: center;
  40. padding: 0 60rpx;
  41. image{
  42. width: 400rpx;
  43. height: 430rpx;
  44. margin-top: 92rpx;
  45. }
  46. p{
  47. font-family: PingFang-SC, PingFang-SC;
  48. font-weight: bold;
  49. font-size: 40rpx;
  50. color: #111111;
  51. line-height: 40rpx;
  52. text-align: center;
  53. margin-top: 35rpx;
  54. &.tip{
  55. font-weight: 400;
  56. font-size: 26rpx;
  57. color: #7C8592;
  58. line-height: 41rpx;
  59. text-align: center;
  60. margin-top: 29rpx;
  61. }
  62. }
  63. .zt_btn{
  64. margin-top: 232rpx;
  65. }
  66. .qx_btn{
  67. margin-top: 60rpx;
  68. }
  69. }
  70. </style>