scanResult.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. }
  16. },
  17. methods:{
  18. addRole(){
  19. uni.navigateTo({
  20. url:'/pagesRole/addRole?type=1'
  21. })
  22. },
  23. goBack(){
  24. uni.reLaunch({
  25. url:'/pages/home'
  26. })
  27. },
  28. }
  29. }
  30. </script>
  31. <style scoped lang="less">
  32. .page{
  33. background: #FFFFFF;
  34. display: flex;
  35. flex-direction: column;
  36. align-items: center;
  37. padding: 0 60rpx;
  38. image{
  39. width: 400rpx;
  40. height: 430rpx;
  41. margin-top: 92rpx;
  42. }
  43. p{
  44. font-family: PingFang-SC, PingFang-SC;
  45. font-weight: bold;
  46. font-size: 40rpx;
  47. color: #111111;
  48. line-height: 40rpx;
  49. text-align: center;
  50. margin-top: 35rpx;
  51. &.tip{
  52. font-weight: 400;
  53. font-size: 26rpx;
  54. color: #7C8592;
  55. line-height: 41rpx;
  56. text-align: center;
  57. margin-top: 29rpx;
  58. }
  59. }
  60. .zt_btn{
  61. margin-top: 232rpx;
  62. }
  63. .qx_btn{
  64. margin-top: 60rpx;
  65. }
  66. }
  67. </style>