120 lines
2.0 KiB
Vue
120 lines
2.0 KiB
Vue
<template>
|
|
<view class="contentgb">
|
|
<view class="iconfont icon-xiangzuo" v-if="isshow" style="margin-top: 10rpx;color: #fff;margin-left: 30rpx;" @click="close">
|
|
</view>
|
|
<view class="name" v-if="isshow">
|
|
{{name}}
|
|
</view>
|
|
<view class="return_top">
|
|
<view class="z-bootm-img1" @click="returnbom()">
|
|
<image src="@/static/images/fb1.png" mode="aspectFit"></image>
|
|
</view>
|
|
<view class="z-bootm-l"></view>
|
|
<view class="z-bootm-img2" @click="returnbom()">
|
|
<image src="@/static/images/fb2.png" mode="aspectFit"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'retuntop',
|
|
props: {
|
|
isshow: {
|
|
type: Boolean
|
|
},
|
|
name: {
|
|
type: String
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
mounted() {
|
|
console.log(this.isshow)
|
|
},
|
|
methods: {
|
|
close(){
|
|
uni.navigateBack({
|
|
delta:0
|
|
})
|
|
},
|
|
returnbom() {
|
|
uni.sendHostEvent('closeApp', (ret) => {
|
|
//发送消息成功回调
|
|
console.log('关闭应用' + JSON.stringify(ret));
|
|
});
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.contentgb {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
.name {
|
|
font-size: 35rpx;
|
|
font-family: Source Han Sans CN-Medium, Source Han Sans CN;
|
|
font-weight: 500;
|
|
color: #FFFFFF;
|
|
margin-top: 5rpx;
|
|
}
|
|
|
|
.return_top {
|
|
width: 166rpx;
|
|
height: 56rpx;
|
|
background: rgba(255, 255, 255, 0.6);
|
|
border-radius: 44rpx 44rpx;
|
|
margin-right: 30rpx;
|
|
|
|
position: relative;
|
|
|
|
.z-bootm-img1 {
|
|
width: 41rpx;
|
|
height: 13rpx;
|
|
|
|
position: absolute;
|
|
top: 5rpx;
|
|
left: 25rpx;
|
|
|
|
image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.z-bootm-l {
|
|
width: 1px;
|
|
height: 32rpx;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
margin: auto 0;
|
|
|
|
position: absolute;
|
|
top: 10rpx;
|
|
left: 85rpx;
|
|
}
|
|
|
|
.z-bootm-img2 {
|
|
width: 38rpx;
|
|
height: 34rpx;
|
|
margin-top: -15rpx;
|
|
margin-left: -15rpx;
|
|
position: absolute;
|
|
right: 25rpx;
|
|
top: 25rpx;
|
|
|
|
image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
</style> |