铝交易,微信公众号
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.

83 lines
1.4 KiB

4 months ago
4 months ago
4 months ago
4 months ago
  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"> {{ $t('pageTitle.proName') }}</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. ,
  29. methods: {
  30. // 切换身份
  31. switchIdentity() {
  32. uni.navigateTo({
  33. url: '/pages_order/auth/selectionIdentity'
  34. })
  35. }
  36. ,
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. // 顶部栏
  42. .top-bar {
  43. display: flex;
  44. justify-content: space-between;
  45. height: 120rpx;
  46. background-color: $uni-color;
  47. .titleCls {
  48. display: flex;
  49. padding: 20rpx 10rpx;
  50. .text {
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. font-size: 30rpx;
  55. color: #FFFFFF;
  56. margin-left: 20rpx;
  57. }
  58. }
  59. .change {
  60. display: flex;
  61. align-items: center;
  62. justify-content: center;
  63. width: 30%;
  64. height: 70rpx;
  65. border-radius: 40rpx;
  66. color: white;
  67. font-size: 28rpx;
  68. margin: 20rpx 10rpx 0 0;
  69. background: $uni-color;
  70. border: 1px solid #757986;
  71. //margin-top: 20rpx;
  72. border-radius: 40rpx;
  73. }
  74. }
  75. </style>