铝交易,微信公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.4 KiB

  1. <template>
  2. <view class="top-bar">
  3. <!--左边-->
  4. <view class="titleCls">
  5. <view>
  6. <img src="../../static/image/cart/1.png" style="width:100%;height:100%;">
  7. </view>
  8. <span class="text">铝产品现货交易平台</span>
  9. </view>
  10. <!--右边-->
  11. <view v-if="showRight == '1'" @click="switchIdentity" class="change">
  12. {{ $t('pages.index.index.purchaser') }}
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. props : {
  19. showRight : {
  20. default : '0',
  21. type : String,
  22. }
  23. },
  24. data(){
  25. return {
  26. }
  27. },
  28. methods : {
  29. // 切换身份
  30. switchIdentity() {
  31. uni.navigateTo({
  32. url: '/pages_order/auth/selectionIdentity'
  33. })
  34. },
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. // 顶部栏
  40. .top-bar {
  41. display: flex;
  42. justify-content: space-between;
  43. height: 120rpx;
  44. background-color: $uni-color;
  45. .titleCls {
  46. display: flex;
  47. padding: 20rpx 10rpx;
  48. .text {
  49. display: flex;
  50. justify-content: center;
  51. align-items: center;
  52. font-size: 30rpx;
  53. color: #FFFFFF;
  54. margin-left: 20rpx;
  55. }
  56. }
  57. .change {
  58. display: flex;
  59. align-items: center;
  60. justify-content: center;
  61. width: 30%;
  62. height: 70rpx;
  63. border-radius: 40rpx;
  64. color: white;
  65. font-size: 28rpx;
  66. margin: 20rpx 10rpx 0 0;
  67. background: $uni-color;
  68. border: 1px solid #757986;
  69. //margin-top: 20rpx;
  70. border-radius: 40rpx;
  71. }
  72. }
  73. </style>