feat(custom): 澳拾改版
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
<template>
|
||||
<view class="index">
|
||||
<swiper class="swiper" :circular="true" :autoplay="true">
|
||||
<swiper-item v-for="(item, index) in list" :key="index">
|
||||
<image :src="item" />
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="container">
|
||||
<!-- <view>摇骰子</view> -->
|
||||
<view class="index">
|
||||
<swiper class="swiper" :circular="true" :autoplay="true">
|
||||
<swiper-item v-for="(item, index) in list" :key="index">
|
||||
<image :src="item" />
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="container">
|
||||
<!-- <view>摇骰子</view> -->
|
||||
|
||||
<rich-text :nodes="info.introduction"></rich-text>
|
||||
<view class="btn" @click="startGame()">开始游戏</view>
|
||||
<rich-text :nodes="info.introduction"></rich-text>
|
||||
<view class="btn" @click="startGame()">开始游戏</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
@@ -20,16 +20,16 @@ import Taro from '@tarojs/taro'
|
||||
import './index.scss'
|
||||
|
||||
const info = ref<any>({})
|
||||
const list = ref<string[]>([])
|
||||
|
||||
Taro.useLoad(() => {
|
||||
info.value = Taro.getStorageSync('gameItem')
|
||||
info.value = Taro.getStorageSync('gameItem')
|
||||
list.value.push(info.value.cover)
|
||||
})
|
||||
|
||||
const list = ref(['https://files.wanzhuanyongcheng.com/file/img/yaotouzi/banner/qietu.png'])
|
||||
|
||||
const startGame = () => {
|
||||
Taro.navigateTo({
|
||||
url: info.value.url,
|
||||
})
|
||||
Taro.navigateTo({
|
||||
url: info.value.url,
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user