|
@@ -20,12 +20,12 @@ const menuItems = [
|
|
|
{ id: 'diary', name: '科学日记', icon: 'https://oss.xiaoxiongcode.com/static/home/riji.png' }
|
|
{ id: 'diary', name: '科学日记', icon: 'https://oss.xiaoxiongcode.com/static/home/riji.png' }
|
|
|
]
|
|
]
|
|
|
const menu2Items = [
|
|
const menu2Items = [
|
|
|
- { id: '1', name: '观察', icon: 'https://oss.xiaoxiongcode.com/static/home/kanke.png' },
|
|
|
|
|
- { id: '2', name: '提问', icon: 'https://oss.xiaoxiongcode.com/static/home/lianxi.png' },
|
|
|
|
|
- { id: '3', name: '假设', icon: 'https://oss.xiaoxiongcode.com/static/home/shiyan.png' },
|
|
|
|
|
- { id: '4', name: '实验', icon: 'https://oss.xiaoxiongcode.com/static/home/riji.png' },
|
|
|
|
|
- { id: '5', name: '总结', icon: 'https://oss.xiaoxiongcode.com/static/home/riji.png' },
|
|
|
|
|
- { id: '6', name: '拓展', icon: 'https://oss.xiaoxiongcode.com/static/home/riji.png' },
|
|
|
|
|
|
|
+ { id: '1', name: '观察', icon: 'https://oss.xiaoxiongcode.com/static/home/观察.png' },
|
|
|
|
|
+ { id: '2', name: '提问', icon: 'https://oss.xiaoxiongcode.com/static/home/卡通扁平化功能图标设计.png' },
|
|
|
|
|
+ { id: '3', name: '假设', icon: 'https://oss.xiaoxiongcode.com/static/home/假设.png' },
|
|
|
|
|
+ { id: '4', name: '实验', icon: 'https://oss.xiaoxiongcode.com/static/home/实验.png' },
|
|
|
|
|
+ { id: '5', name: '总结', icon: 'https://oss.xiaoxiongcode.com/static/home/总结.png' },
|
|
|
|
|
+ { id: '6', name: '拓展', icon: 'https://oss.xiaoxiongcode.com/static/home/拓展.png' },
|
|
|
]
|
|
]
|
|
|
//当前进度
|
|
//当前进度
|
|
|
const progress = ref(1)
|
|
const progress = ref(1)
|
|
@@ -37,7 +37,7 @@ function initOnlibeRecord() {
|
|
|
recorderManager.value = uni.getRecorderManager();
|
|
recorderManager.value = uni.getRecorderManager();
|
|
|
innerAudioContext.value = uni.createInnerAudioContext();
|
|
innerAudioContext.value = uni.createInnerAudioContext();
|
|
|
innerAudioContext.value.autoplay = true;
|
|
innerAudioContext.value.autoplay = true;
|
|
|
- recorderManager.value.onStop(function (res) {
|
|
|
|
|
|
|
+ recorderManager.value?.onStop(function (res) {
|
|
|
console.log('recorder stop' + JSON.stringify(res));
|
|
console.log('recorder stop' + JSON.stringify(res));
|
|
|
if (res.duration < 5000) {
|
|
if (res.duration < 5000) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|