123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- <view class="box scroll-area">
- <view class="menu">
- <view
- a:for="{{menuList}}"
- a:for-index="menuIndex"
- a:for-item="menuItem"
- class="menu-item {{activeTab==menuItem.id?'background':''}}"
- data-item="{{menuItem}}"
- data-index="{{menuIndex}}"
- onTap="onMenuChange"
- >
- <view a:if="{{ activeTab==menuItem.id }}" class="bor-t"></view>
- {{menuItem.name}}
- <view a:if="{{ activeTab==menuItem.id }}" class="bor-b"></view>
- </view>
- </view>
- <view class="center">
- <view
- a:for="{{menuList}}"
- a:for-index="menuIndex"
- a:for-item="menuItem"
- class="{{`scroll-item menu-box-${menuItem.id}`}}"
- id="{{`menu-box-${menuItem.id}`}}"
- data-item="{{menuItem}}"
- data-id="{{menuItem.id}}"
- >
- <!--<block a:if="{{ menuItem.id == -1}}">
- <container title="webview">
- </container>
- <view class="content">
- <ant-button
- type="primary"
- onTap="goToWebView"
- >
- location
- </ant-button>
- </view>
- </block>-->
- <block a:if="{{ menuItem.id == 0}}">
- <container title="系统信息">
- <view slot="headerRight" onTap="changeMsg" style="font-size: 16px;">
- {{isKEightDevice?'该设备支持刷脸核身':'该设备不支持刷脸核身'}}
- </view>
- <view class="content">
- <list a:if="{{ isKEightDevice && showSystemInfo }}" radius="">
- <list-item extraBrief="{{systemInfo.arome_hardwareName}}">设备型号</list-item>
- <list-item extraBrief="{{systemInfo.arome_deviceId}}">设备SN</list-item>
- <list-item extraBrief="{{systemInfo.arome_hostAppId}}">小程序APPID</list-item>
- <list-item extraBrief="{{systemInfo.productId}}">设备PRODUCTID</list-item>
- </list>
- </view>
- <view
- a:if="{{ systemInfoStr && showSystemInfo }}"
- class="result"
- style="font-size: 0.18rem;"
- >
- {{systemInfoStr}}
- </view>
- </container>
- <container title="初始化刷脸服务">
- <view slot="headerRight">
- <icon onTap="close" data-type="init" type="RedoOutline" style="font-size: 25px; margin-right: 15px" />
- <icon
- onTap="doSetting"
- data-type="init"
- type="SetOutline"
- style="font-size: 25px"
- />
- </view>
- <view class="content">
- <ant-button
- type="primary"
- subText="aromeInitBpaasService"
- onTap="doInit"
- >
- (1)初始化刷脸服务
- </ant-button>
- <view a:if="{{ initObj }}" class="result" style="font-size: 0.18rem;">
- <view style="font-size: 0.18rem;line-height: 0.5rem;height: 0.5rem;">入参:</view>
- {{initObj}}
- </view>
- <view a:if="{{ initResult }}" class="result" style="font-size: 0.18rem;">
- <view style="font-size: 0.18rem;line-height: 0.5rem;height: 0.5rem;">结果:</view>
- {{initResult}}
- </view>
- </view>
- </container>
- <container title="调用1:N刷脸服务">
- <view slot="headerRight">
- <icon
- onTap="close"
- data-type="oneVN"
- type="RedoOutline"
- style="font-size: 25px; margin-right: 15px"
- />
- <icon
- onTap="doSetting"
- data-type="oneVN"
- type="SetOutline"
- style="font-size: 25px"
- />
- </view>
- <view class="content">
- <ant-button
- type="primary"
- subText="aromeStartBpaasService"
- onTap="doOneVN"
- >
- (2)调用1:N刷脸服务
- </ant-button>
- <view a:if="{{ oneVNObj }}" class="result" style="font-size: 0.18rem;">
- <view style="font-size: 0.18rem;line-height: 0.5rem;height: 0.5rem;">入参:</view>
- {{oneVNObj}}
- </view>
- <view a:if="{{ oneVNResult }}" class="result" style="font-size: 0.18rem;">
- <view style="font-size: 0.18rem;line-height: 0.5rem;height: 0.5rem;">结果:</view>
- {{oneVNResult}}
- </view>
- </view>
- </container>
- <container title="调用订阅授权服务">
- <view slot="headerRight">
- <icon onTap="close" data-type="auth" type="RedoOutline" style="font-size: 25px; margin-right: 15px" />
- <icon
- onTap="doSetting"
- data-type="auth"
- type="SetOutline"
- style="font-size: 25px"
- />
- </view>
- <view class="content">
- <ant-button
- type="primary"
- subText="aromeBPaasNoFaceAuth"
- onTap="doAuth"
- >
- (3)调用订阅授权服务
- </ant-button>
- <view a:if="{{ authObj }}" class="result" style="font-size: 0.18rem;">
- <view style="font-size: 0.18rem;line-height: 0.5rem;height: 0.5rem;">入参:</view>
- {{authObj}}
- </view>
- <view a:if="{{ authResult }}" class="result" style="font-size: 0.18rem;">
- <view style="font-size: 0.18rem;line-height: 0.5rem;height: 0.5rem;">结果:</view>
- {{authResult}}
- </view>
- </view>
- </container>
- </block>
- <block a:elif="{{ menuItem.id == 19}}">
- <container title="在线地址">
- <view slot="headerRight">
- <icon
- onTap="close"
- data-type="imgUpload"
- type="RedoOutline"
- style="font-size: 25px; margin-right: 15px"
- />
- </view>
- <view class="content" style="font-size: 0.18rem;">
- 在线URL:
- <textarea
- class="form-textarea"
- placeholder="请编辑线上url地址"
- value="{{downloadFileChunkItem.originalUrl}}"
- auto-height
- style="width:100%"
- data-field="originalUrl"
- onInput="handleChange"
- maxlength="-1"
- >
- </textarea>
- 文件名:
- <textarea
- class="form-textarea"
- placeholder="请编辑保存的文件名"
- value="{{downloadFileChunkItem.fileName}}"
- auto-height
- style="width:100%"
- data-field="fileName"
- onInput="handleChange"
- maxlength="-1"
- >
- </textarea>
- <view class="upload-content-btn" onTap="handleUpload" data-type="img">
- 切片上传
- </view>
- <block a:if="{{ downloadFileChunkItem.status == 'success' }}">
- {{downloadFileChunkItem.fileType}}
- <image
- a:if="{{ downloadFileChunkItem.fileType == 'image' }}"
- src='{{downloadFileChunkItem.url}}'
- class='img'
- >
- </image>
- <video
- a:elif="{{ downloadFileChunkItem.fileType == 'video' }}"
- class='img'
- src="{{downloadFileChunkItem.url}}"
- />
- <view style="font-size: 0.18rem;">
- {{`分片 ${downloadFileChunkItem.chunkIndex}/${downloadFileChunkItem.totalChunks} 上传成功`}}
- </view>
- </block>
- <view
- a:elif="{{ downloadFileChunkItem.status == 'error' }}"
- class="result"
- style="font-size: 0.18rem;"
- >
- <view style="font-size: 0.18rem;line-height: 0.5rem;height: 0.5rem;">结果:</view>
- {{downloadFileChunkItem.errorTips}}
- </view>
- <view a:elif="{{ downloadFileChunkItem.status == 'padding' }}">
- 上传中.....
- </view>
- </view>
- </container>
- <!--<container title="视频上传"><view slot="headerRight"><icon
- onTap="close"
- data-type="videoUpload"
- type="RedoOutline"
- style="font-size: 25px; margin-right: 15px"
- /></view><view class="content"><view class="upload-content-btn" onTap="handleUpload" data-type="video">
- 上传</view><video
- class='img'
- style="width:{{videoChunkItem.width/2}}px;height:{{videoChunkItem.height/2}}px"
- src="{{videoChunkItem.url}}"
- /><view style="font-size: 0.18rem;">
- {{`分片 ${videoChunkItem.chunkIndex}/${videoChunkItem.totalChunks} 上传成功`}}</view></view></container>-->
- </block>
- <block a:else>
- <hh-event
- a:for="{{ menuItem.ampe_params }}"
- number="{{item.number}}"
- name="{{item.name}}"
- initParams="{{item.initParams}}"
- aromeCode="{{item.aromeCode}}"
- isCumulative="{{item.isCumulative}}"
- tips="{{item.tips || ''}}"
- >
- </hh-event>
- </block>
- </view>
- </view>
- </view>
|