register-select.vue 2.4 KB

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