whj hace 1 día
padre
commit
d168f00243
Se han modificado 1 ficheros con 7 adiciones y 7 borrados
  1. 7 7
      pages/catalog/detail.uvue

+ 7 - 7
pages/catalog/detail.uvue

@@ -20,12 +20,12 @@ const menuItems = [
   { id: 'diary', name: '科学日记', icon: 'https://oss.xiaoxiongcode.com/static/home/riji.png' }
 ]
 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)
@@ -37,7 +37,7 @@ function initOnlibeRecord() {
   recorderManager.value = uni.getRecorderManager();
   innerAudioContext.value = uni.createInnerAudioContext();
   innerAudioContext.value.autoplay = true;
-  recorderManager.value.onStop(function (res) {
+  recorderManager.value?.onStop(function (res) {
     console.log('recorder stop' + JSON.stringify(res));
     if (res.duration < 5000) {
       uni.showToast({