返回按钮

This commit is contained in:
lmj
2022-11-22 14:01:20 +08:00
parent 3f1545e7b2
commit e5dec24a94

View File

@@ -1,7 +1,7 @@
<template> <template>
<view class="top"> <view class="top">
<view v-show="showBack" class="top-back" @click="toBack()"> <view v-show="showBack" class="top-back" @click="toBack()">
<u-icon name="arrow-left"></u-icon> <u-icon color="#333" size="20" name="arrow-left"></u-icon>
</view> </view>
<view class="top-title"><slot></slot></view> <view class="top-title"><slot></slot></view>
<view @click="topgae()" style="color: #387DF7;"> <view @click="topgae()" style="color: #387DF7;">
@@ -71,23 +71,20 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.top{ .top{
height: 40px; height: 40px;
// display: none;
// background:linear-gradient(to bottom,#6BA0FC, #6297FD);
background-color: #fff; background-color: #fff;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.top-back{ .top-back{
// float: left; color: #333;
color: #000; padding-top:10px;
padding-top:6px;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
// padding-left: 15px; padding-left: 15px;
} }
.top-title{ .top-title{
text-align: center; text-align: center;
font-size: 16px; font-size: 16px;
color: #000; color: #333;
height: 40px; height: 40px;
text-align: center; text-align: center;
width: 80%; width: 80%;