index.axml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <view>
  2. <hh-event
  3. a:for="{{ ampe_params }}"
  4. number="{{item.number}}"
  5. name="{{item.name}}"
  6. initParams="{{item.initParams}}"
  7. aromeCode="{{item.aromeCode}}"
  8. >
  9. </hh-event>
  10. <container title="系统信息">
  11. <view slot="headerRight" onTap="changeMsg">
  12. {{isKEightDevice?'该设备支持刷脸核身':'该设备不支持刷脸核身'}}
  13. </view>
  14. <view class="content">
  15. <list a:if="{{ isKEightDevice && showSystemInfo }}" radius="">
  16. <list-item extraBrief="{{systemInfo.arome_hardwareName}}">设备型号</list-item>
  17. <list-item extraBrief="{{systemInfo.arome_deviceId}}">设备SN</list-item>
  18. <list-item extraBrief="{{systemInfo.arome_hostAppId}}">小程序APPID</list-item>
  19. <list-item extraBrief="{{systemInfo.productId}}">设备PRODUCTID</list-item>
  20. </list>
  21. </view>
  22. <view a:if="{{ systemInfoStr && showSystemInfo }}" class="result">
  23. {{systemInfoStr}}
  24. </view>
  25. </container>
  26. <container title="初始化刷脸服务">
  27. <view slot="headerRight">
  28. <icon onTap="close" data-type="init" type="RedoOutline" style="font-size: 25px; margin-right: 15px" />
  29. <icon onTap="doSetting" data-type="init" type="SetOutline" style="font-size: 25px" />
  30. </view>
  31. <view class="content">
  32. <ant-button type="primary" subText="aromeInitBpaasService" onTap="doInit">
  33. (1)初始化刷脸服务
  34. </ant-button>
  35. <view a:if="{{ initObj }}" class="result">
  36. 入参:
  37. {{initObj}}
  38. </view>
  39. <view a:if="{{ initResult }}" class="result">
  40. 结果:
  41. {{initResult}}
  42. </view>
  43. </view>
  44. </container>
  45. <container title="调用1:N刷脸服务">
  46. <view slot="headerRight">
  47. <icon onTap="close" data-type="oneVN" type="RedoOutline" style="font-size: 25px; margin-right: 15px" />
  48. <icon onTap="doSetting" data-type="oneVN" type="SetOutline" style="font-size: 25px" />
  49. </view>
  50. <view class="content">
  51. <ant-button type="primary" subText="aromeStartBpaasService" onTap="doOneVN">
  52. (2)调用1:N刷脸服务
  53. </ant-button>
  54. <view a:if="{{ oneVNObj }}" class="result">
  55. 入参:
  56. {{oneVNObj}}
  57. </view>
  58. <view a:if="{{ oneVNResult }}" class="result">
  59. 结果:
  60. {{oneVNResult}}
  61. </view>
  62. </view>
  63. </container>
  64. <container title="调用订阅授权服务">
  65. <view slot="headerRight">
  66. <icon onTap="close" data-type="auth" type="RedoOutline" style="font-size: 25px; margin-right: 15px" />
  67. <icon onTap="doSetting" data-type="auth" type="SetOutline" style="font-size: 25px" />
  68. </view>
  69. <view class="content">
  70. <ant-button type="primary" subText="aromeBPaasNoFaceAuth" onTap="doAuth">
  71. (3)调用订阅授权服务
  72. </ant-button>
  73. <view a:if="{{ authObj }}" class="result">
  74. 入参:
  75. {{authObj}}
  76. </view>
  77. <view a:if="{{ authResult }}" class="result">
  78. 结果:
  79. {{authResult}}
  80. </view>
  81. </view>
  82. </container>
  83. </view>