12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <template>
- <view class="content">
- <view class="box bottom" @click="deviceClick('MW-M3')">
- <image src="https://airsmart-photo1.oss-cn-shanghai.aliyuncs.com/wx/productModel/3X/MW-M3.png"
- mode="aspectFit" class="img" />
- <text class="text">猫王·MW-M3</text>
- </view>
- <view class="line line1"></view>
- <view class="box top" @click="deviceClick('MW-M4')">
- <image src="https://airsmart-photo1.oss-cn-shanghai.aliyuncs.com/wx/productModel/3X/MW-M4.png"
- mode="aspectFit" class="img" />
- <text class="text">猫王·MW-M4</text>
- </view>
- <view style="height: 60rpx"></view>
- <bt-alert v-if="show" @close="btAlertClose" />
- </view>
- </template>
- <script>
- import BtAlert from '../../../components/btAlert/btAlert.vue';
- export default {
- components: {
- BtAlert
- },
- data() {
- return {
- show: false,
- };
- },
- methods: {
- deviceClick(model) {
- if (model == 'MW-M3') {
- uni.navigateTo({
- url: `../connectDevice/connectDevice?model=MW-M3&name=猫王·MW-M3`,
- })
- } else if (model == 'MW-M4') {
- uni.navigateTo({
- url: `../connectDevice/connectDevice?model=MW-M4&name=猫王·MW-M4`,
- })
- }
- },
- btAlertClose() {
- this.show = false
- }
- },
- };
- </script>
- <style>
- .content {
- display: flex;
- flex-direction: column;
- width: 100vw;
- height: 100vh;
- justify-content: center;
- align-items: center;
- }
- .line1 {
- width: 56vw;
- }
- .box {
- display: flex;
- flex-direction: column;
- width: 50vw;
- height: 50vw;
- margin-left: auto;
- margin-right: auto;
- align-items: center;
- }
- .img {
- width: 37.33vw;
- height: 34.4vw;
- }
- .top {
- margin-top: 3.3vh;
- justify-content: flex-start;
- }
- .bottom {
- margin-bottom: 3.3vh;
- justify-content: flex-end;
- }
- .text {
- margin-top: 30rpx;
- font-size: 24rpx;
- }
- </style>
|