index.wxml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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>
  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 value="{{ fname }}" data-name="fname" bind:input='eliminate' 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 value="{{ frole }}" data-name="frole" bind:input='eliminate' 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 value="{{ fbrand }}" bind:input='eliminate' 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 class="input_text_title">品牌展示图<text>*</text></view>
  68. <view class="box_mar_bot">
  69. <My_UploadFiles id="coverUploadFiles" UploadShow="1" fileList="{{coverAttinfos}}" UploadShow="{{true}}" upType="LogoCover" maxCount='1' logoTips="{{errTips.coverTips}}" size="55px" Tips="请上传品牌展示图" bindimageChange="coverImageChange"></My_UploadFiles>
  70. </view>
  71. <!-- 经营类目 -->
  72. <view style="position: relative; margin-bottom: 15rpx;">
  73. <view class="input_text_title">经营类目<text>*</text></view>
  74. <view style="width: 100%; height: 50%; z-index: 999; position: absolute;" bindtap="showPop"></view>
  75. <view class="input_text_box box_mar_bot">
  76. <view class="input_text_input marLeft">
  77. <van-field model:value="{{ showSaleprodclass }}" data-name="showSaleprod" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.showSaleprod}}" input-class="input-class" placeholder="请输入经营类目" border="{{ false }}" />
  78. </view>
  79. </view>
  80. </view>
  81. <!-- 注册公司名 -->
  82. <view class="input_text_title">注册公司名<text>*</text></view>
  83. <view class="input_text_box box_mar_bot">
  84. <view class="input_text_input marLeft">
  85. <van-field value="{{ fagentname }}" bind:input='eliminate' data-name="fagentname" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fagentname}}" input-class="input-class" placeholder="请输入公司名称" border="{{ false }}" />
  86. </view>
  87. </view>
  88. <!-- 联系人 -->
  89. <view class="input_text_title">联系人<text>*</text></view>
  90. <view class="input_text_box box_mar_bot">
  91. <view class="input_text_input marLeft">
  92. <van-field model:value="{{ fcontact }}" bind:input='eliminate' data-name="fcontact" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fcontact}}" input-class="input-class" placeholder="请输入联系人" border="{{ false }}" />
  93. </view>
  94. </view>
  95. <!-- 联系方式 -->
  96. <view class="input_text_title">联系方式<text>*</text></view>
  97. <view class="input_text_box box_mar_bot">
  98. <view class="input_text_input marLeft">
  99. <van-field model:value="{{ fphonenumber }}" data-name="fphonenumber" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fphonenumber}}" input-class="input-class" placeholder="请输入联系方式" border="{{ false }}" />
  100. </view>
  101. </view>
  102. <!-- 公司介绍 -->
  103. <view class="input_text_title">公司介绍<text>*</text></view>
  104. <view class="input_text_box box_mar_bot" style="height: 230rpx; align-items: flex-start;">
  105. <van-field value="{{ fintroduction }}" data-name="fintroduction" bind:input='eliminate' type="textarea" placeholder="请填写公司介绍" autosize border="{{ false }}" input-class="input-class-textarea" />
  106. </view>
  107. <!-- 地址 -->
  108. <view class="input_text_title">地址<text>*</text></view>
  109. <view class="input_text_box box_mar_bot">
  110. <view class="input_text_input marLeft">
  111. <van-field value="{{ faddress }}" bind:input='eliminate' data-name="faddress" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.faddress}}" input-class="input-class" placeholder="请输入地址" border="{{ false }}" />
  112. </view>
  113. </view>
  114. <!-- 统一社会代码 -->
  115. <view class="input_text_title">统一社会代码</view>
  116. <view class="input_text_box box_mar_bot">
  117. <view class="input_text_input marLeft">
  118. <van-field value="{{ fdutyparagraph }}" bind:input='eliminate' data-name="fdutyparagraph" input-class="input-class" placeholder="请输入统一社会代码" border="{{ false }}" />
  119. </view>
  120. </view>
  121. </view>
  122. </My_RectangularFrame>
  123. </block>
  124. <!-- 切换用户 -->
  125. <block wx:if="{{pageType=='changeUser'}}">
  126. <My_RectangularFrame title="请选择账号">
  127. <My_ChangeUser userIndex='{{userIndex}}' bind:userChange="userChange"></My_ChangeUser>
  128. </My_RectangularFrame>
  129. </block>
  130. <!-- 提交按钮 -->
  131. <view class="input_text_but">
  132. <van-button data-name="{{pageType}}" bindtap="submitData" size='large' round color="linear-gradient(180deg, #83E0E9 0%, #4CBECF 100%)">
  133. {{butText}}
  134. </van-button>
  135. </view>
  136. <!-- 跳过 -->
  137. <view hidden="{{pageType=='login'||pageType=='changeUser'}}" class="jump-over">
  138. <text bindtap="jumpOverToIndex">跳过</text>
  139. </view>
  140. <!-- 背景图片 -->
  141. <My_Background></My_Background>
  142. <!-- 弹出层 -->
  143. <van-action-sheet show="{{ popups }}" bind:close="showPop">
  144. <My_Checkbox title="经营类目" bind:saleprodChange="saleprodChange" dataList="{{dataList}}" isRequest='{{false}}'></My_Checkbox><!-- saleprodclass="{{saleprodclass}}" -->
  145. <view style="height: 34rpx;"></view>
  146. </van-action-sheet>