From 394ee531e0f78ef44d93cb9a6e984d4bfb80fe85 Mon Sep 17 00:00:00 2001 From: yangyao Date: Wed, 21 Jan 2026 16:31:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/control/index.vue | 68 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 61 insertions(+), 7 deletions(-) diff --git a/pages/control/index.vue b/pages/control/index.vue index a015f6c..8267574 100644 --- a/pages/control/index.vue +++ b/pages/control/index.vue @@ -11,6 +11,39 @@ import { useI18n } from 'vue-i18n'; const { t, locale } = useI18n(); const userStore = useUserStore(); +// 表情数组 +const emotionList = ref([ + { + icon:'heart', + text:'HAPPY', + isCurrent: true, + }, + { + icon:'heart', + text:'LOVE', + isCurrent: false, + }, + { + icon:'heart', + text:'EXCITED', + isCurrent: false, + }, + { + icon:'heart', + text:'PEACEFUL', + isCurrent: false, + } + +]) + +// 选择表情数组 +const selectEmotion = (index) => { + for (let i = 0; i < emotionList.value.length; i++) { + emotionList.value[i].isCurrent = i === index; + } +} + + /** * @desc 跳转至详情页面 @@ -28,6 +61,11 @@ const getProductList = async()=>{ console.log("商品数据",productData.value); } +//返回按钮 +const back = function() { + uni.navigateBack() +} + onLoad(()=>{ @@ -53,7 +91,7 @@ const handleBook = (productId) => { - + Control Console @@ -65,22 +103,38 @@ const handleBook = (productId) => { - + TEXT TO SPEECH - + - - + + - - + + + + + TEXT TO SPEECH + + + + + + {{ item.text }} + + +