es-nav-title-base.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view>
  3. <view class="es-h-88 es-pl-10 es es-ac es-bc-white">
  4. <view class="es-w-100 es-h-88 es es-ac">
  5. <view v-if="left!='none'" class="es-icon-ret-black" @tap="close"></view>
  6. </view>
  7. <view class="es-f1 es es-ac es-pc view-title es-c-00 es-omit">{{title}}</view>
  8. <view class="es-w-100 es-h-88 es x-c es-ae">
  9. <view class="es-c-white es-fs-28 es-fw-500 " v-if="right!='none'" @tap="rightClick">{{right}}</view>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. name:"es-nav-title-base",
  17. data() {
  18. return {
  19. };
  20. },
  21. props:[
  22. 'title','left','right'
  23. ],
  24. methods:{
  25. close:function(){
  26. uni.navigateBack({
  27. animationType: 'pop-out',
  28. animationDuration: 200
  29. });
  30. },
  31. rightClick(){
  32. },
  33. }
  34. }
  35. </script>
  36. <style>
  37. .view-title{
  38. font-weight:500;
  39. font-family: PingFang SC;
  40. color:#333;
  41. font-weight: 500;
  42. font-size: 34rpx;
  43. }
  44. .es-icon-ret-white1{
  45. background-image: url("../../static/images/other/ret-white.png");
  46. width: 18rpx;
  47. height: 31rpx;
  48. background-size: 100% 100%;
  49. }
  50. .es-icon-ret-black{
  51. background-image: url("../../static/image/black_back.png");
  52. width: 54rpx;
  53. height: 54rpx;
  54. background-size: 100% 100%;
  55. }
  56. </style>