index.wxml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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 autosize 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>
  27. </My_RectangularFrame>
  28. </block>
  29. <!-- 个人注册 -->
  30. <block wx:if="{{pageType=='signin'}}">
  31. <My_RectangularFrame title="欢迎进入布万家">
  32. <view class="form_box">
  33. <!-- 手机号 -->
  34. <view class="input_text_box">
  35. <image class="input_text_img" src="../../static/login/username.png" mode="aspectFit"></image>
  36. <view class="input_text_input">
  37. <van-field autosize model:value="{{ fname }}" input-class="input-class" placeholder="请输入账号名" border="{{ false }}" />
  38. </view>
  39. </view>
  40. <!-- 验证码 -->
  41. <view class="input_text_box">
  42. <image class="input_text_img" src="../../static/login/identity.png" mode="aspectFill"></image>
  43. <view class="input_text_input">
  44. <van-field autosize model:value="{{ frole }}" input-class="input-class" placeholder="请填写身份/职位" border="{{ false }}" />
  45. </view>
  46. </view>
  47. </view>
  48. </My_RectangularFrame>
  49. </block>
  50. <!-- 商户认证 -->
  51. <block wx:if="{{pageType=='firm'}}">
  52. <My_RectangularFrame title="成为布万家商户">
  53. <view class="form_box firm">
  54. <!-- 品牌名 -->
  55. <view class="input_text_title">品牌名<text>*</text></view>
  56. <view class="input_text_box box_mar_bot">
  57. <view class="input_text_input marLeft">
  58. <van-field autosize model:value="{{ fbrand }}" data-name="fbrand" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fbrand}}" input-class="input-class" placeholder="请输入品牌名" border="{{ false }}" />
  59. </view>
  60. </view>
  61. <!-- 品牌LOGO -->
  62. <view class="input_text_title">品牌LOGO<text>*</text></view>
  63. <view class="box_mar_bot">
  64. <My_UploadFiles id="UploadFiles" UploadShow="1" fileList="{{attinfos}}" UploadShow="{{true}}" upType="Logo" maxCount='1' logoTips="{{errTips.logoTips}}" size="55px" Tips="请上传logo图片" bindimageChange="imageChange"></My_UploadFiles>
  65. </view>
  66. <!-- 经营类目 -->
  67. <view style="position: relative; margin-bottom: 15rpx;">
  68. <view class="input_text_title">经营类目<text>*</text></view>
  69. <view style="width: 100%; height: 50%; z-index: 999; position: absolute;" bindtap="showPop"></view>
  70. <view class="input_text_box box_mar_bot">
  71. <view class="input_text_input marLeft">
  72. <van-field autosize model:value="{{ showSaleprodclass }}" data-name="showSaleprod" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.showSaleprod}}" input-class="input-class" placeholder="请输入经营类目" border="{{ false }}" />
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 注册公司名 -->
  77. <view class="input_text_title">注册公司名<text>*</text></view>
  78. <view class="input_text_box box_mar_bot">
  79. <view class="input_text_input marLeft">
  80. <van-field autosize model:value="{{ fagentname }}" data-name="fagentname" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fagentname}}" input-class="input-class" placeholder="请输入公司名称" border="{{ false }}" />
  81. </view>
  82. </view>
  83. <!-- 联系人 -->
  84. <view class="input_text_title">联系人<text>*</text></view>
  85. <view class="input_text_box box_mar_bot">
  86. <view class="input_text_input marLeft">
  87. <van-field autosize model:value="{{ fcontact }}" data-name="fcontact" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fcontact}}" input-class="input-class" placeholder="请输入联系人" border="{{ false }}" />
  88. </view>
  89. </view>
  90. <!-- 联系方式 -->
  91. <view class="input_text_title">联系方式<text>*</text></view>
  92. <view class="input_text_box box_mar_bot">
  93. <view class="input_text_input marLeft">
  94. <van-field autosize model:value="{{ fphonenumber }}" data-name="fphonenumber" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fphonenumber}}" 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 textarea">
  100. <!-- 未做数据绑定 -->
  101. <textarea value="{{fintroduction}}" placeholder="请填写公司介绍" placeholder-style="color:#DAD9DB; font-size:30rpx;" bindinput="fintroductionInput"></textarea>
  102. </view>
  103. <!-- 地址 -->
  104. <view class="input_text_title">地址</view>
  105. <view class="input_text_box box_mar_bot">
  106. <view class="input_text_input marLeft">
  107. <van-field autosize model:value="{{ faddress }}" input-class="input-class" placeholder="请输入地址" border="{{ false }}" />
  108. </view>
  109. </view>
  110. <!-- 统一社会代码 -->
  111. <view class="input_text_title">统一社会代码</view>
  112. <view class="input_text_box box_mar_bot">
  113. <view class="input_text_input marLeft">
  114. <van-field autosize model:value="{{ fdutyparagraph }}" input-class="input-class" placeholder="请输入统一社会代码" border="{{ false }}" />
  115. </view>
  116. </view>
  117. </view>
  118. </My_RectangularFrame>
  119. </block>
  120. <!-- 切换用户 -->
  121. <block wx:if="{{pageType=='changeUser'}}">
  122. <My_RectangularFrame title="请选择账号">
  123. <My_ChangeUser userIndex='{{userIndex}}' bind:userChange="userChange"></My_ChangeUser>
  124. </My_RectangularFrame>
  125. </block>
  126. <!-- 提交按钮 -->
  127. <view class="input_text_but">
  128. <van-button data-name="{{pageType}}" bindtap="submitData" size='large' round color="linear-gradient(180deg, #83E0E9 0%, #4CBECF 100%)">
  129. {{butText}}
  130. </van-button>
  131. </view>
  132. <!-- 跳过 -->
  133. <view hidden="{{pageType=='login'||pageType=='changeUser'}}" class="jump-over">
  134. <text bindtap="jumpOverToIndex">跳过</text>
  135. </view>
  136. <!-- 背景图片 -->
  137. <My_Background></My_Background>
  138. <!-- 弹出层 -->
  139. <van-action-sheet show="{{ popups }}" bind:close="showPop">
  140. <My_Checkbox title="经营类目" bind:saleprodChange="saleprodChange" dataList="{{dataList}}" isRequest='{{false}}'></My_Checkbox><!-- saleprodclass="{{saleprodclass}}" -->
  141. <view style="height: 34rpx;"></view>
  142. </van-action-sheet>