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

94 lines
1.9 KiB

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