diff --git a/src/app.scss b/src/app.scss index 4d0beeb..1c9f3cf 100644 --- a/src/app.scss +++ b/src/app.scss @@ -2,9 +2,9 @@ // background-color: #f5f5f5 !important; // } -body { - line-height: 1; -} +// body { +// line-height: 1; +// } .mt-15 { margin-top: 15px; diff --git a/src/components/Popup.vue b/src/components/Popup.vue new file mode 100644 index 0000000..305e1b4 --- /dev/null +++ b/src/components/Popup.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/src/pages/aoshi/index/index.scss b/src/pages/aoshi/index/index.scss index 87d56bf..cc324e6 100644 --- a/src/pages/aoshi/index/index.scss +++ b/src/pages/aoshi/index/index.scss @@ -555,3 +555,10 @@ body { width: 700px; } } + +.popup-content { + background-color: #fff; + width: 70%; + padding: 20px; + border-radius: 8px; +} \ No newline at end of file diff --git a/src/pages/aoshi/index/index.vue b/src/pages/aoshi/index/index.vue index 00ab079..dc1cda2 100644 --- a/src/pages/aoshi/index/index.vue +++ b/src/pages/aoshi/index/index.vue @@ -2,6 +2,7 @@ import { onBeforeUnmount, onMounted, ref } from 'vue' import Taro from '@tarojs/taro' import Lottie from 'lottie-web' +import HPopup from '../../../components/Popup.vue' import * as dayjs from 'dayjs' import dan from '../../../static/dan.png' import he from '../../../static/he.png' @@ -380,6 +381,13 @@ onBeforeUnmount(() => { clearInterval(time_i.value) innerAudioContext.stop() }) + +const showPopup = ref(false) +const game_info = ref({}) + +Taro.useDidShow(() => { + game_info.value = Taro.getStorageSync('gameItem') +}) diff --git a/src/pages/balloon/index/index.scss b/src/pages/balloon/index/index.scss index ff2c62a..90ba0f1 100644 --- a/src/pages/balloon/index/index.scss +++ b/src/pages/balloon/index/index.scss @@ -47,3 +47,10 @@ } } } + +.popup-content { + background-color: #fff; + width: 70%; + padding: 20px; + border-radius: 8px; +} \ No newline at end of file diff --git a/src/pages/turntable/index/index.scss b/src/pages/turntable/index/index.scss index 01cb2cf..87d9736 100644 --- a/src/pages/turntable/index/index.scss +++ b/src/pages/turntable/index/index.scss @@ -555,3 +555,10 @@ body { width: 700px; } } + +.popup-content { + background-color: #fff; + width: 70%; + padding: 20px; + border-radius: 8px; +} \ No newline at end of file diff --git a/src/pages/turntable/index/index.vue b/src/pages/turntable/index/index.vue index cd4cfec..88e6e94 100644 --- a/src/pages/turntable/index/index.vue +++ b/src/pages/turntable/index/index.vue @@ -3,6 +3,7 @@ import { onBeforeUnmount, onMounted, ref } from 'vue' import Taro from '@tarojs/taro' import Lottie from 'lottie-web' import * as dayjs from 'dayjs' +import HPopup from '../../../components/Popup.vue' import dan from '../../../static/dan.png' import he from '../../../static/he.png' import shuang from '../../../static/shuang.png' @@ -424,6 +425,13 @@ onBeforeUnmount(() => { ws.value?.close() innerAudioContext.stop() }) + +const showPopup = ref(false) +const game_info = ref({}) + +Taro.useDidShow(() => { + game_info.value = Taro.getStorageSync('gameItem') +})