index.wxml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <!-- LOGO -->
  2. <view class="login_logo">
  3. <image src="../../static/logo.png" mode="aspectFill"></image>
  4. </view>
  5. <!-- 手机登录 -->
  6. <block wx:if="{{pageType=='login'}}">
  7. <My_RectangularFrame title="手机登录">
  8. <view class="form_box">
  9. <!-- 手机号 -->
  10. <view class="input_text_box">
  11. <image class="input_text_img" src="../../static/login/Phone.png" mode="aspectFill"></image>
  12. <view class="input_text_input">
  13. <van-field model:value="{{ fphonenumber }}" data-name="fphonenumber" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fphonenumber}}" type="number" input-class="input-class" placeholder="请输入手机号" border="{{ false }}" />
  14. </view>
  15. </view>
  16. <!-- 验证码 -->
  17. <view class="input_text_box">
  18. <image class="input_text_img" src="../../static/login/verificationcode.png" mode="aspectFill"></image>
  19. <view class="input_text_input" style="width: 250rpx; background-color: brown;">
  20. <van-field model:value="{{ password }}" data-name="password" bind:focus='inputFocus' type="number" input-class="input-class" error="{{errTips.password}}" placeholder="请输入验证码" border="{{ false }}" />
  21. </view>
  22. <view class="input_text_code" bindtap="getVerifyCode">
  23. {{countDownTime==60?'获取':countDownTime+'s'}}
  24. </view>
  25. </view>
  26. <view class="rules">
  27. <van-checkbox checked-color='#4CBECF' icon-size="12px" label-class='rules-text' value="{{ rulesChecked }}" bind:change="rulesOnChange" />
  28. <view class="view" bindtap="viewRules">《<text>阅读用户隐私协议</text>》</view>
  29. </view>
  30. </view>
  31. </My_RectangularFrame>
  32. </block>
  33. <!-- 个人注册 -->
  34. <block wx:if="{{pageType=='signin'}}">
  35. <My_RectangularFrame title="欢迎进入布万家">
  36. <view class="form_box">
  37. <!-- 商户名 -->
  38. <view class="input_text_box">
  39. <image class="input_text_img" src="../../static/login/username.png" mode="aspectFit"></image>
  40. <view class="input_text_input">
  41. <van-field value="{{ fname }}" data-name="fname" bind:input='eliminate' input-class="input-class" placeholder="请输入账号名" border="{{ false }}" />
  42. </view>
  43. </view>
  44. <!-- 身份 -->
  45. <view class="input_text_box">
  46. <image class="input_text_img" src="../../static/login/identity.png" mode="aspectFill"></image>
  47. <view class="input_text_input">
  48. <van-field value="{{ frole }}" data-name="frole" bind:input='eliminate' input-class="input-class" placeholder="请填写身份/职位" border="{{ false }}" />
  49. </view>
  50. </view>
  51. </view>
  52. </My_RectangularFrame>
  53. </block>
  54. <!-- 商户认证 -->
  55. <block wx:if="{{pageType=='firm'}}">
  56. <My_RectangularFrame title="成为布万家商户">
  57. <view class="form_box firm">
  58. <!-- 品牌名 -->
  59. <view class="input_text_title">品牌名</view>
  60. <view class="input_text_box box_mar_bot">
  61. <view class="input_text_input marLeft">
  62. <van-field value="{{ fbrand }}" bind:input='eliminate' data-name="fbrand" input-class="input-class" placeholder="请输入品牌名" border="{{ false }}" />
  63. </view>
  64. </view>
  65. <!-- 品牌LOGO -->
  66. <view class="input_text_title">品牌LOGO</view>
  67. <view class="box_mar_bot">
  68. <My_UploadFiles id="UploadFiles" UploadShow="1" fileList="{{attinfos}}" UploadShow="{{true}}" upType="Logo" maxCount='1' size="55px" bindimageChange="imageChange"></My_UploadFiles>
  69. </view>
  70. <!-- 品牌展示图 -->
  71. <view class="input_text_title">品牌展示图</view>
  72. <view class="box_mar_bot">
  73. <My_UploadFiles id="coverUploadFiles" UploadShow="1" fileList="{{coverAttinfos}}" UploadShow="{{true}}" upType="LogoCover" maxCount='1' size="55px" bindimageChange="coverImageChange"></My_UploadFiles>
  74. </view>
  75. <!-- 经营类目 -->
  76. <view style="position: relative; margin-bottom: 15rpx;">
  77. <view class="input_text_title">经营类目</view>
  78. <view style="width: 100%; height: 50%; z-index: 999; position: absolute;" bindtap="showPop"></view>
  79. <view class="input_text_box box_mar_bot">
  80. <view class="input_text_input marLeft">
  81. <van-field model:value="{{ showSaleprodclass }}" data-name="showSaleprod" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.showSaleprod}}" input-class="input-class" placeholder="请输入经营类目" border="{{ false }}" />
  82. </view>
  83. </view>
  84. </view>
  85. <!-- 注册公司名 -->
  86. <view class="input_text_title">注册公司名</view>
  87. <view class="input_text_box box_mar_bot">
  88. <view class="input_text_input marLeft">
  89. <van-field value="{{ fagentname }}" bind:input='eliminate' data-name="fagentname" input-class="input-class" placeholder="请输入公司名称" border="{{ false }}" />
  90. </view>
  91. </view>
  92. <!-- 联系人 -->
  93. <view class="input_text_title">联系人</view>
  94. <view class="input_text_box box_mar_bot">
  95. <view class="input_text_input marLeft">
  96. <van-field model:value="{{ fcontact }}" bind:input='eliminate' data-name="fcontact" input-class="input-class" placeholder="请输入联系人" border="{{ false }}" />
  97. </view>
  98. </view>
  99. <!-- 联系方式 -->
  100. <view class="input_text_title">联系方式</view>
  101. <view class="input_text_box box_mar_bot">
  102. <view class="input_text_input marLeft">
  103. <van-field model:value="{{ fphonenumber }}" data-name="fphonenumber" input-class="input-class" placeholder="请输入联系方式" border="{{ false }}" />
  104. </view>
  105. </view>
  106. <!-- 公司介绍 -->
  107. <view class="input_text_title">公司介绍</view>
  108. <view class="input_text_box box_mar_bot" style="height: 230rpx; align-items: flex-start;">
  109. <van-field value="{{ fintroduction }}" data-name="fintroduction" bind:input='eliminate' type="textarea" placeholder="请填写公司介绍" autosize border="{{ false }}" input-class="input-class-textarea" />
  110. </view>
  111. <!-- 地址 -->
  112. <view class="input_text_title">地址</view>
  113. <view class="input_text_box box_mar_bot">
  114. <view class="input_text_input marLeft">
  115. <van-field value="{{ faddress }}" bind:input='eliminate' data-name="faddress" input-class="input-class" placeholder="请输入地址" border="{{ false }}" />
  116. </view>
  117. </view>
  118. <!-- 统一社会代码 -->
  119. <view class="input_text_title">统一社会代码</view>
  120. <view class="input_text_box box_mar_bot">
  121. <view class="input_text_input marLeft">
  122. <van-field value="{{ fdutyparagraph }}" bind:input='eliminate' data-name="fdutyparagraph" input-class="input-class" placeholder="请输入统一社会代码" border="{{ false }}" />
  123. </view>
  124. </view>
  125. </view>
  126. </My_RectangularFrame>
  127. </block>
  128. <!-- 切换用户 -->
  129. <block wx:if="{{pageType=='changeUser'}}">
  130. <My_RectangularFrame title="请选择账号">
  131. <My_ChangeUser userIndex='{{userIndex}}' bind:userChange="userChange"></My_ChangeUser>
  132. </My_RectangularFrame>
  133. </block>
  134. <!-- 提交按钮 -->
  135. <view class="input_text_but">
  136. <van-button custom-class='login-custom-class' data-name="{{pageType}}" bindtap="submitData" size='large' round color="linear-gradient(180deg, #83E0E9 0%, #4CBECF 100%)">
  137. {{butText}}
  138. </van-button>
  139. </view>
  140. <!-- 跳过 -->
  141. <view hidden="{{pageType=='login'||pageType=='changeUser'}}" class="jump-over">
  142. <text bindtap="jumpOverToIndex">跳过</text>
  143. </view>
  144. <!-- 背景图片 -->
  145. <My_Background></My_Background>
  146. <!-- 弹出层 -->
  147. <van-action-sheet show="{{ popups }}" bind:close="showPop">
  148. <My_Checkbox title="经营类目" bind:saleprodChange="saleprodChange" dataList="{{dataList}}" isRequest='{{false}}'></My_Checkbox><!-- saleprodclass="{{saleprodclass}}" -->
  149. <view style="height: 34rpx;"></view>
  150. </van-action-sheet>