register-select.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view class="container register">
  3. <view class="main">
  4. <view class="main-item">
  5. <view class="item" @click.stop="this.$api.navigateTo('/pages/seller/login/register-general')">
  6. <view class="icon">
  7. <image src="https://static.caimei365.com/app/img/icon/icon-general.png" mode=""></image>
  8. </view>
  9. <view class="text">个人机构</view>
  10. </view>
  11. <view class="item" @click.stop="this.$api.navigateTo('/pages/seller/login/register-member')">
  12. <view class="icon">
  13. <image src="https://static.caimei365.com/app/img/icon/icon-member.png" mode=""></image>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="main-item-text" v-if="insideFLag === 1" @click.stop="this.$api.navigateTo('/pages/seller/login/register-invite')">
  18. 邀请机构注册
  19. <text class="iconfont icon-youjiantou"></text>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. insideFLag:0
  29. }
  30. },
  31. onLoad() {
  32. this.initGetStotage()
  33. },
  34. computed: {},
  35. methods: {
  36. async initGetStotage() {
  37. // 初始化
  38. const userInfo = await this.$api.getStorage()
  39. this.insideFLag = userInfo.insideFLag ? userInfo.insideFLag : 0
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss">
  45. .register {
  46. width: 100%;
  47. height: 100%;
  48. position: relative;
  49. box-sizing: border-box;
  50. padding-top: 100rpx;
  51. .main {
  52. width: 100%;
  53. height: 370rpx;
  54. .main-item-text {
  55. width: 100%;
  56. height: 100rpx;
  57. float: left;
  58. box-sizing: border-box;
  59. margin-top: 150rpx;
  60. text-align: center;
  61. font-size: 28rpx;
  62. line-height: 100rpx;
  63. color: #FF5B00;
  64. }
  65. .main-item {
  66. width: 100%;
  67. height: auto;
  68. float: left;
  69. box-sizing: border-box;
  70. margin-top: 20rpx;
  71. .item {
  72. width: 100%;
  73. height: auto;
  74. float: left;
  75. display: flex;
  76. flex-direction: column;
  77. align-items: center;
  78. margin-top: 80rpx;
  79. .icon {
  80. width: 190rpx;
  81. height: 190rpx;
  82. image {
  83. width: 190rpx;
  84. height: 190rpx;
  85. display: block;
  86. }
  87. }
  88. .text {
  89. line-height: 54rpx;
  90. font-size: $font-size-30;
  91. text-align: center;
  92. color: #333333;
  93. &.none {
  94. color: #999999;
  95. font-size: $font-size-26;
  96. line-height: 28rpx;
  97. }
  98. }
  99. .text-small {
  100. line-height: 54rpx;
  101. font-size: $font-size-24;
  102. text-align: center;
  103. color: #999999;
  104. }
  105. }
  106. }
  107. }
  108. }
  109. </style>