65 lines
2.2 KiB
Plaintext
65 lines
2.2 KiB
Plaintext
<!--pages/API/voice/voice.wxml-->
|
|
<import src="../../common/head.wxml" />
|
|
<import src="../../common/foot.wxml" />
|
|
|
|
<view class="container">
|
|
<template is="head" data="{{title: '录音/音频'}}"/>
|
|
|
|
<view class="page-body">
|
|
<view class="page-section">
|
|
<block wx:if="{{recording === false}}">
|
|
<view class="page-body-time">
|
|
<text class="time-big">{{formatedRecordTime}}</text>
|
|
</view>
|
|
<view class="page-body-buttons">
|
|
<view class="page-body-button"></view>
|
|
<view class="page-body-button" bindtap="startRecord">
|
|
<image src="/image/record.png"></image>
|
|
</view>
|
|
<view class="page-body-button"></view>
|
|
</view>
|
|
</block>
|
|
|
|
<block wx:if="{{recording === true}}">
|
|
<view class="page-body-time">
|
|
<text class="time-big">{{formatedRecordTime}}</text>
|
|
</view>
|
|
<view class="page-body-buttons">
|
|
<view class="page-body-button"></view>
|
|
<view class="page-body-button" bindtap="stopRecord">
|
|
<view class="button-stop-record"></view>
|
|
</view>
|
|
<view class="page-body-button"></view>
|
|
</view>
|
|
</block>
|
|
|
|
<block wx:if="{{filePath && recording === false}}">
|
|
<button type="primary" bindtap="playVoice">播放</button>
|
|
<button type="primary" bindtap="pauseVoice">暂停</button>
|
|
<button type="primary" bindtap="stopVoice">结束</button>
|
|
</block>
|
|
|
|
<!-- <block wx:if="{{hasRecord === true && playing === true}}">
|
|
<view class="page-body-time">
|
|
<text class="time-big">{{formatedPlayTime}}</text>
|
|
<text class="time-small">{{formatedRecordTime}}</text>
|
|
</view>
|
|
<view class="page-body-buttons">
|
|
<view class="page-body-button" bindtap="stopVoice">
|
|
<image src="/image/stop.png"></image>
|
|
</view>
|
|
<view class="page-body-button" bindtap="pauseVoice">
|
|
<image src="/image/pause.png"></image>
|
|
</view>
|
|
<view class="page-body-button" bindtap="clear">
|
|
<image src="/image/trash.png"></image>
|
|
</view>
|
|
</view>
|
|
</block> -->
|
|
</view>
|
|
</view>
|
|
|
|
<template is="foot" />
|
|
</view>
|
|
|