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 }} + + +