scanResult.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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/05/29/80f1f0c3-1a39-49d7-a9bb-cb43f618d1a6.png"></image>
  5. <p>设备绑定成功</p>
  6. <p class="tip">您可以创建新角色,或选择已有角色<br>配置到当前设备</p>
  7. <div class="zt_btn" @tap="addRole">为设备添加角色</div>
  8. <div class="qx_btn" @tap="goBack">返回首页</div>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data(){
  14. return {
  15. deviceId:''
  16. }
  17. },
  18. onLoad(option) {
  19. this.deviceId = option.deviceId;
  20. },
  21. methods:{
  22. addRole(){
  23. uni.navigateTo({
  24. url:'/pagesRole/addRole?type=1&deviceId='+this.deviceId
  25. })
  26. },
  27. goBack(){
  28. uni.reLaunch({
  29. url:'/pages/home'
  30. })
  31. },
  32. }
  33. }
  34. </script>
  35. <style scoped lang="less">
  36. .page{
  37. background: #FFFFFF;
  38. display: flex;
  39. flex-direction: column;
  40. align-items: center;
  41. padding: 0 60rpx;
  42. image{
  43. width: 400rpx;
  44. height: 430rpx;
  45. margin-top: 92rpx;
  46. }
  47. p{
  48. font-family: PingFang-SC, PingFang-SC;
  49. font-weight: bold;
  50. font-size: 40rpx;
  51. color: #111111;
  52. line-height: 40rpx;
  53. text-align: center;
  54. margin-top: 35rpx;
  55. &.tip{
  56. font-weight: 400;
  57. font-size: 26rpx;
  58. color: #7C8592;
  59. line-height: 41rpx;
  60. text-align: center;
  61. margin-top: 29rpx;
  62. }
  63. }
  64. .zt_btn{
  65. margin-top: 232rpx;
  66. }
  67. .qx_btn{
  68. margin-top: 60rpx;
  69. }
  70. }
  71. </style>