You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
5.6 KiB
1 lines
5.6 KiB
<view class="page1"><block wx:if="{{recordState==true}}"><view class="voice-model"><image src="/static/images/maikefeng.png" alt class="_img"></image><view class="voice-text">语音识别中...</view></view></block><view data-ref="top" class="top vue-ref"><view data-event-opts="{{[['tap',[['backPage',['$event']]]]]}}" style="width:40px;height:40px;position:absolute;top:100rpx;left:30rpx;" bindtap="__e"><uni-icons vue-id="6dc51116-1" type="left" color="#000" size="27" bind:__l="__l"></uni-icons></view><view class="title">对话</view></view><view class="content" style="{{'height:'+(height-165+'px')+';'}}"><view class="prompt"><view class="prompt-title"><view class="hello-right"></view><view class="ai-bot"></view><view class="hello-left"><text style="font-size:40rpx;font-weight:800;line-height:56rpx;color:#fff;">Hi</text></view></view><view class="prompt-title-text"><text>欢迎使用Ai助手,为了提高语音及文字识别准确率,建议您按照以下规则操作:</text><text style="color:#FF9797;">1.语音规则:(颜色在前,尺码在后)</text><text>例1:“货号87-12白色M码10件”</text><text>例2:“货号87-12,所有颜色所有尺码10件”</text><text style="color:#FF9797;">2.建议您不同商品用“货号”两字分隔</text><text>例:“<text style="color:#FF9797;">货号87-12</text>白色M码10件,<text style="color:#FF9797;">货号ZK001</text>黑色L码10件”</text><text>3.如需手动输入,则要点击“确认”按钮发送对话</text><text>4.录入完成后点击开始识别按钮进行AI识别</text><text>5.点击可查看<text data-event-opts="{{[['tap',[['goTutorial',['$event']]]]]}}" style="color:blue;" bindtap="__e">使用教程</text></text></view></view><view class="prompt" style="height:80rpx;line-height:80rpx;padding-left:20rpx;"><text>{{"您当前选择的客户是:"+khName.name}}</text></view><view style="width:100%;height:100rpx;text-align:center;font-size:11px;color:#777;line-height:100rpx;"> 点击可编辑语音输入的内容~ </view><view style="width:526rpx;float:right;margin-right:20rpx;text-align:left;padding-bottom:60rpx;"><block wx:for="{{msgList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view style="width:526rpx;display:block;float:right;"><view data-event-opts="{{[['tap',[['editTextBtn',['$0',index],[[['msgList','',index]]]]]]]}}" style="display:inline-block;width:auto;height:auto;min-height:40px;background:linear-gradient(127.96deg, #6585fa 0%, #6ad5fe 100%);color:#fff;padding:20rpx 10px;border-radius:10px;border-bottom-right-radius:0;margin-bottom:20px;float:right;" bindtap="__e">{{''+item.text+''}}</view></view></block></view></view><view data-event-opts="{{[['tap',[['addReg',['$event']]]]]}}" style="width:150rpx;position:absolute;bottom:86px;z-index:99;right:10px;height:60rpx;text-align:center;line-height:60rpx;color:#fff;border-radius:5px;background:linear-gradient(90deg, #FF9797, #FFC1E0);" bindtap="__e"> 开始识别 </view><view class="bottom"><view style="width:10%;height:90rpx;line-height:90rpx;margin-top:20rpx;text-align:center;"><block wx:if="{{isVoice}}"><uni-icons vue-id="6dc51116-2" type="chat" size="26" data-event-opts="{{[['^tap',[['switchChat',[false]]]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></block><block wx:if="{{!isVoice}}"><uni-icons vue-id="6dc51116-3" type="mic" size="26" data-event-opts="{{[['^tap',[['switchChat',[true]]]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></block></view><view style="width:76%;height:90rpx;line-height:90rpx;text-align:center;background:#eee;margin-top:10px;border-radius:10px;font-size:30rpx;color:#777;"><block wx:if="{{isVoice}}"><view data-event-opts="{{[['touchstart',[['kaishi',['$event']]]],['touchend',[['jieshu',['$event']]]]]}}" bindtouchstart="__e" bindtouchend="__e"><text>按住 说话</text></view></block><block wx:if="{{!isVoice}}"><view style="width:100%;height:90rpx;line-height:90rpx;border-radius:10px;text-align:left;padding-left:20rpx;"><input style="height:90rpx;" type="text" placeholder="请输入对话内容" data-event-opts="{{[['input',[['__set_model',['','editText','$event',[]]]]]]}}" value="{{editText}}" bindinput="__e"/></view></block></view><block wx:if="{{!isVoice}}"><view data-event-opts="{{[['tap',[['inputSaveText',['$event']]]]]}}" style="width:12%;background:linear-gradient(90deg, #60F3FF, #088FEB);height:70rpx;line-height:70rpx;text-align:center;margin:15px 0 0 1%;color:#fff;border-radius:5px;" bindtap="__e"> 确定 </view></block></view><uni-popup class="vue-ref" vue-id="6dc51116-4" background-color="#fff" data-ref="popup" bind:__l="__l" vue-slots="{{['default']}}"><view class="popup-content"><view class="popup-title"><text>修改当前内容</text><uni-icons style="height:40rpx;line-height:40rpx;position:absolute !important;bottom:0;right:30rpx;" vue-id="{{('6dc51116-5')+','+('6dc51116-4')}}" type="closeempty" color="red" size="16" data-event-opts="{{[['^tap',[['close']]]]}}" bind:tap="__e" bind:__l="__l"></uni-icons></view><view class="popup-container"><textarea style="padding:20rpx;width:100%;border:1px solid #eee;" maxlength="-1" data-event-opts="{{[['input',[['__set_model',['','editText','$event',[]]]]]]}}" value="{{editText}}" bindinput="__e"></textarea><view class="popup-bottom"><view data-event-opts="{{[['tap',[['saveText',['$event']]]]]}}" style="width:100%;height:70rpx;line-height:70rpx;text-align:center;border-radius:0;background:linear-gradient(90deg, #60F3FF, #088FEB);color:#fff;" bindtap="__e"> 确认无误 </view></view></view></view></uni-popup><block wx:if="{{isNoVoice}}"><view class="mask-model">貌似没有检测到您上次的语音录入信息,正在反复识别中</view></block></view>
|