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

99 lines
2.1 KiB

7 months ago
  1. <template>
  2. <view>
  3. <navbar :title="$t('pageTitle.selectIdentity')"
  4. :leftClick="!$route.query.back" @leftClick="$utils.navigateBack"/>
  5. <view class="container">
  6. <view class="title">{{ $t('components.selectIdentity') }}</view>
  7. <view class="button-group">
  8. <!--供应商-->
  9. <view class="identity-button" @click="selectIdentity(0)">
  10. <view class="identity-text"> {{ $t('other.iAmBuyer') }}</view>
  11. <view class="identity-icon">
  12. <img src="../../static/image/index/5.png" style="width: 100%; height: 100%;">
  13. </view>
  14. </view>
  15. <!--采购-->
  16. <view class="identity-button" @click="selectIdentity(1)">
  17. <view class="identity-text"> {{ $t('other.iAmSupplier') }}</view>
  18. <view class="identity-icon">
  19. <img src="../../static/image/index/6.png" style="width: 100%; height: 100%;">
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import {mapGetters} from 'vuex'
  28. export default {
  29. computed: {
  30. ...mapGetters(['userShop', "userInfo"]),
  31. },
  32. methods: {
  33. selectIdentity(identity) {
  34. // if (userInfo)
  35. uni.navigateTo({
  36. url: `/pages_order/auth/registerShop?identity=${identity}`
  37. })
  38. },
  39. }
  40. }
  41. </script>
  42. <style scoped lang="scss">
  43. * {
  44. box-sizing: border-box;
  45. }
  46. .container {
  47. display: flex;
  48. flex-direction: column;
  49. align-items: center;
  50. justify-content: center;
  51. //height: 100vh;
  52. background-color: #f5f5f5;
  53. .title {
  54. font-size: 40rpx;
  55. color: #333;
  56. margin: 80rpx 0;
  57. }
  58. .button-group {
  59. display: flex;
  60. flex-direction: column;
  61. align-items: center;
  62. justify-content: center;
  63. width: 100vw;
  64. //padding: 0 20px;
  65. .identity-button {
  66. display: flex;
  67. align-items: center;
  68. justify-content: space-between;
  69. width: 80%;
  70. margin-bottom: 40rpx;
  71. padding: 40rpx 50rpx;
  72. background-color: #2d2f59;
  73. border-radius: 20rpx;
  74. color: white;
  75. .identity-text {
  76. font-size: 40rpx;
  77. }
  78. .identity-icon {
  79. width: 130rpx;
  80. height: 130rpx;
  81. }
  82. }
  83. }
  84. }
  85. </style>