shop-applet/components/content-top/index.vue

55 lines
1.1 KiB
Vue
Raw Permalink Normal View History

2023-09-25 09:28:22 +08:00
<template>
<view class="contentgb">
<view class="return_top">
<view class="z-bootm-img1" @click="returnbom()">
2024-05-11 14:23:35 +08:00
<u-image width="40rpx" height="14rpx" src="@/static/images/fb1.png" mode="widthFit"></u-image>
2023-09-25 09:28:22 +08:00
</view>
<view class="z-bootm-l"></view>
<view class="z-bootm-img2" @click="returnbom()">
2024-05-11 14:23:35 +08:00
<u-image width="38rpx" height="38rpx" src="@/static/images/fb2.png" mode="widthFit"></u-image>
2023-09-25 09:28:22 +08:00
</view>
</view>
</view>
</template>
<script>
export default {
data() {
2024-05-11 14:23:35 +08:00
return {}
2023-09-25 09:28:22 +08:00
},
methods: {
returnbom() {
2024-03-08 11:09:34 +08:00
console.log(1);
uni.sendHostEvent('closeApp', (ret) => {
2023-09-25 09:28:22 +08:00
//发送消息成功回调
console.log('关闭应用' + JSON.stringify(ret));
});
}
}
}
</script>
<style lang="scss" scoped>
.contentgb {
width: 166rpx;
height: 56rpx;
.return_top {
2024-05-11 14:23:35 +08:00
display: flex;
justify-content: center;
align-items: center;
2023-09-25 09:28:22 +08:00
width: 166rpx;
height: 56rpx;
background: rgba(255, 255, 255, 0.6);
border-radius: 44rpx 44rpx;
position: relative;
.z-bootm-l {
width: 1px;
height: 32rpx;
background: rgba(0, 0, 0, 0.2);
2024-05-11 14:23:35 +08:00
margin: 0 16rpx;
2023-09-25 09:28:22 +08:00
}
}
}
</style>