index.wxml 8.7 KB

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