2024-05-29 21:49:52 +08:00
|
|
|
<template>
|
2025-01-16 12:24:40 +08:00
|
|
|
<navigator :url="url">
|
|
|
|
<view class="flex column boxshadow rad32 but mac ofh" :style="{background:bg}">
|
|
|
|
<view class="imgBox">
|
|
|
|
<u--image :src="imgSrc" width="188rpx" height="188rpx"></u--image>
|
|
|
|
</view>
|
|
|
|
<view class="tc w100 fb butBt fci fz44 l-h-12">{{butBt}}</view>
|
|
|
|
<view class="tc w100 butSt fci fz32">{{butSt}}</view>
|
2024-05-29 21:49:52 +08:00
|
|
|
</view>
|
2025-01-16 12:24:40 +08:00
|
|
|
</navigator>
|
2024-05-29 21:49:52 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: "mainBut",
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
|
|
|
|
};
|
|
|
|
},
|
|
|
|
props: {
|
2025-01-16 12:24:40 +08:00
|
|
|
url:{
|
|
|
|
type:String,
|
|
|
|
required: true,
|
|
|
|
},
|
2024-05-29 21:49:52 +08:00
|
|
|
bg: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
required: true,
|
|
|
|
deep: true
|
|
|
|
},
|
|
|
|
imgSrc: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
required: true,
|
|
|
|
deep: true
|
|
|
|
},
|
|
|
|
butBt: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
required: true,
|
|
|
|
deep: true
|
|
|
|
},
|
|
|
|
butSt: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
required: true,
|
|
|
|
deep: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.but {
|
|
|
|
width: 339rpx;
|
|
|
|
height: 339rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.imgBox {
|
2025-01-16 12:24:40 +08:00
|
|
|
width: 188rpx;
|
|
|
|
height: 188rpx;
|
|
|
|
margin-top: 36rpx;
|
2024-05-29 21:49:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.butBt {
|
|
|
|
height: 48rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.butSt {
|
|
|
|
height: 40rpx;
|
|
|
|
}
|
|
|
|
</style>
|