hldy_app/component/public/game/skilmove.vue

88 lines
1.6 KiB
Vue
Raw Normal View History

2025-04-17 17:18:37 +08:00
<template>
<view class="all-circle">
<view class="move-circle" @click="confirm">
{{ismove? `确定`:`移动`}}
</view>
<view class="delete-circle-bad" @click="back">
{{ismove? `取消`:`删除`}}
</view>
</view>
</template>
<script setup lang="ts">
import {
ref
} from 'vue'
const props = defineProps({
ismove: {
type: Boolean,
required: true,
},
});
const emit = defineEmits(['clickcard']);
const confirm = () =>{
emit('clickcard',0)
}
const back = () =>{
emit('clickcard',1)
}
</script>
<style scoped lang="less">
.all-circle{
position: absolute;
bottom: 300rpx;
right: 50rpx;
width: 500rpx;
height: 500rpx;
}
.move-circle{
position: absolute;
bottom: 200rpx;
right: 40rpx;
width: 160rpx;
height: 160rpx;
border-radius: 50%;
background: linear-gradient(to right, #00c9ff, #0076ff);
// opacity:0.5;
z-index: 9999;
display: flex;
align-items: center;
color: #fff;
font-size: 35rpx;
justify-content: center;
}
.delete-circle{
position: absolute;
bottom: 50rpx;
right: 150rpx;
width: 160rpx;
height: 160rpx;
border-radius: 50%;
background: linear-gradient(to right, #00c9ff, #0076ff);
// opacity:0.5;
z-index: 9999;
display: flex;
align-items: center;
color: #fff;
font-size: 35rpx;
justify-content: center;
}
.delete-circle-bad{
position: absolute;
bottom: 50rpx;
right: 150rpx;
width: 160rpx;
height: 160rpx;
border-radius: 50%;
background-color: #c2c9d3;
z-index: 9999;
display: flex;
align-items: center;
color: #fff;
font-size: 35rpx;
justify-content: center;
}
</style>